* configure.ac: Fix --enable-languages=all.
[platform/upstream/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 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 READELF_FOR_TARGET
574 RANLIB_FOR_TARGET
575 OBJDUMP_FOR_TARGET
576 NM_FOR_TARGET
577 LIPO_FOR_TARGET
578 LD_FOR_TARGET
579 DLLTOOL_FOR_TARGET
580 AS_FOR_TARGET
581 AR_FOR_TARGET
582 GOC_FOR_TARGET
583 GFORTRAN_FOR_TARGET
584 GCJ_FOR_TARGET
585 GCC_FOR_TARGET
586 CXX_FOR_TARGET
587 CC_FOR_TARGET
588 READELF
589 OBJDUMP
590 OBJCOPY
591 WINDMC
592 WINDRES
593 STRIP
594 RANLIB
595 NM
596 LIPO
597 LD
598 DLLTOOL
599 AS
600 AR
601 RUNTEST
602 EXPECT
603 MAKEINFO
604 FLEX
605 LEX
606 M4
607 BISON
608 YACC
609 WINDRES_FOR_BUILD
610 WINDMC_FOR_BUILD
611 RANLIB_FOR_BUILD
612 NM_FOR_BUILD
613 LD_FOR_BUILD
614 LDFLAGS_FOR_BUILD
615 GOC_FOR_BUILD
616 GFORTRAN_FOR_BUILD
617 GCJ_FOR_BUILD
618 DLLTOOL_FOR_BUILD
619 CXX_FOR_BUILD
620 CXXFLAGS_FOR_BUILD
621 CFLAGS_FOR_BUILD
622 CC_FOR_BUILD
623 AS_FOR_BUILD
624 AR_FOR_BUILD
625 target_configdirs
626 configdirs
627 build_configdirs
628 INSTALL_GDB_TK
629 GDB_TK
630 CONFIGURE_GDB_TK
631 build_tooldir
632 tooldir
633 GCC_SHLIB_SUBDIR
634 RPATH_ENVVAR
635 target_configargs
636 host_configargs
637 build_configargs
638 BUILD_CONFIG
639 LDFLAGS_FOR_TARGET
640 CXXFLAGS_FOR_TARGET
641 CFLAGS_FOR_TARGET
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
644 stage1_languages
645 extra_host_libiberty_configure_flags
646 clooginc
647 clooglibs
648 islinc
649 poststage1_ldflags
650 poststage1_libs
651 stage1_libs
652 stage1_ldflags
653 extra_isl_gmp_configure_flags
654 extra_mpc_mpfr_configure_flags
655 extra_mpc_gmp_configure_flags
656 extra_mpfr_configure_flags
657 gmpinc
658 gmplibs
659 do_compare
660 GNATMAKE
661 GNATBIND
662 ac_ct_CXX
663 CXXFLAGS
664 CXX
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
671 CC
672 EXTRA_CONFIGARGS_LIBJAVA
673 target_subdir
674 host_subdir
675 build_subdir
676 build_libsubdir
677 AWK
678 SED
679 LN_S
680 LN
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 target_os
685 target_vendor
686 target_cpu
687 target
688 host_os
689 host_vendor
690 host_cpu
691 host
692 target_noncanonical
693 host_noncanonical
694 build_noncanonical
695 build_os
696 build_vendor
697 build_cpu
698 build
699 TOPLEVEL_CONFIGURE_ARGUMENTS
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_URL
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files='serialization_dependencies
739 host_makefile_frag
740 target_makefile_frag
741 alphaieee_frag
742 ospace_frag'
743 ac_user_opts='
744 enable_option_checking
745 with_build_libsubdir
746 enable_gold
747 enable_ld
748 enable_libquadmath
749 enable_libquadmath_support
750 enable_libada
751 enable_libssp
752 enable_static_libjava
753 enable_bootstrap
754 with_mpc
755 with_mpc_include
756 with_mpc_lib
757 with_mpfr_dir
758 with_mpfr
759 with_mpfr_include
760 with_mpfr_lib
761 with_gmp_dir
762 with_gmp
763 with_gmp_include
764 with_gmp_lib
765 with_host_libstdcxx
766 with_stage1_ldflags
767 with_stage1_libs
768 with_boot_libs
769 with_boot_ldflags
770 with_cloog
771 with_isl
772 with_isl_include
773 with_isl_lib
774 enable_isl_version_check
775 with_cloog_include
776 with_cloog_lib
777 enable_cloog_version_check
778 enable_lto
779 enable_stage1_languages
780 enable_objc_gc
781 with_build_sysroot
782 with_debug_prefix_map
783 with_build_config
784 enable_serial_configure
785 with_build_time_tools
786 enable_maintainer_mode
787 enable_stage1_checking
788 enable_werror
789 '
790       ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 CXX
799 CXXFLAGS
800 CCC
801 build_configargs
802 host_configargs
803 target_configargs
804 AR
805 AS
806 DLLTOOL
807 LD
808 LIPO
809 NM
810 RANLIB
811 STRIP
812 WINDRES
813 WINDMC
814 OBJCOPY
815 OBJDUMP
816 READELF
817 CC_FOR_TARGET
818 CXX_FOR_TARGET
819 GCC_FOR_TARGET
820 GCJ_FOR_TARGET
821 GFORTRAN_FOR_TARGET
822 GOC_FOR_TARGET
823 AR_FOR_TARGET
824 AS_FOR_TARGET
825 DLLTOOL_FOR_TARGET
826 LD_FOR_TARGET
827 LIPO_FOR_TARGET
828 NM_FOR_TARGET
829 OBJDUMP_FOR_TARGET
830 RANLIB_FOR_TARGET
831 READELF_FOR_TARGET
832 STRIP_FOR_TARGET
833 WINDRES_FOR_TARGET
834 WINDMC_FOR_TARGET'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889   # If the previous option needs an argument, assign it.
890   if test -n "$ac_prev"; then
891     eval $ac_prev=\$ac_option
892     ac_prev=
893     continue
894   fi
895
896   case $ac_option in
897   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898   *)    ac_optarg=yes ;;
899   esac
900
901   # Accept the important Cygnus configure options, so we can diagnose typos.
902
903   case $ac_dashdash$ac_option in
904   --)
905     ac_dashdash=yes ;;
906
907   -bindir | --bindir | --bindi | --bind | --bin | --bi)
908     ac_prev=bindir ;;
909   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910     bindir=$ac_optarg ;;
911
912   -build | --build | --buil | --bui | --bu)
913     ac_prev=build_alias ;;
914   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915     build_alias=$ac_optarg ;;
916
917   -cache-file | --cache-file | --cache-fil | --cache-fi \
918   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919     ac_prev=cache_file ;;
920   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922     cache_file=$ac_optarg ;;
923
924   --config-cache | -C)
925     cache_file=config.cache ;;
926
927   -datadir | --datadir | --datadi | --datad)
928     ac_prev=datadir ;;
929   -datadir=* | --datadir=* | --datadi=* | --datad=*)
930     datadir=$ac_optarg ;;
931
932   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933   | --dataroo | --dataro | --datar)
934     ac_prev=datarootdir ;;
935   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937     datarootdir=$ac_optarg ;;
938
939   -disable-* | --disable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=no ;;
954
955   -docdir | --docdir | --docdi | --doc | --do)
956     ac_prev=docdir ;;
957   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958     docdir=$ac_optarg ;;
959
960   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961     ac_prev=dvidir ;;
962   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963     dvidir=$ac_optarg ;;
964
965   -enable-* | --enable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       as_fn_error "invalid feature name: $ac_useropt"
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=\$ac_optarg ;;
980
981   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983   | --exec | --exe | --ex)
984     ac_prev=exec_prefix ;;
985   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987   | --exec=* | --exe=* | --ex=*)
988     exec_prefix=$ac_optarg ;;
989
990   -gas | --gas | --ga | --g)
991     # Obsolete; use --with-gas.
992     with_gas=yes ;;
993
994   -help | --help | --hel | --he | -h)
995     ac_init_help=long ;;
996   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997     ac_init_help=recursive ;;
998   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999     ac_init_help=short ;;
1000
1001   -host | --host | --hos | --ho)
1002     ac_prev=host_alias ;;
1003   -host=* | --host=* | --hos=* | --ho=*)
1004     host_alias=$ac_optarg ;;
1005
1006   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007     ac_prev=htmldir ;;
1008   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009   | --ht=*)
1010     htmldir=$ac_optarg ;;
1011
1012   -includedir | --includedir | --includedi | --included | --include \
1013   | --includ | --inclu | --incl | --inc)
1014     ac_prev=includedir ;;
1015   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016   | --includ=* | --inclu=* | --incl=* | --inc=*)
1017     includedir=$ac_optarg ;;
1018
1019   -infodir | --infodir | --infodi | --infod | --info | --inf)
1020     ac_prev=infodir ;;
1021   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022     infodir=$ac_optarg ;;
1023
1024   -libdir | --libdir | --libdi | --libd)
1025     ac_prev=libdir ;;
1026   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027     libdir=$ac_optarg ;;
1028
1029   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030   | --libexe | --libex | --libe)
1031     ac_prev=libexecdir ;;
1032   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033   | --libexe=* | --libex=* | --libe=*)
1034     libexecdir=$ac_optarg ;;
1035
1036   -localedir | --localedir | --localedi | --localed | --locale)
1037     ac_prev=localedir ;;
1038   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039     localedir=$ac_optarg ;;
1040
1041   -localstatedir | --localstatedir | --localstatedi | --localstated \
1042   | --localstate | --localstat | --localsta | --localst | --locals)
1043     ac_prev=localstatedir ;;
1044   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046     localstatedir=$ac_optarg ;;
1047
1048   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049     ac_prev=mandir ;;
1050   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051     mandir=$ac_optarg ;;
1052
1053   -nfp | --nfp | --nf)
1054     # Obsolete; use --without-fp.
1055     with_fp=no ;;
1056
1057   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058   | --no-cr | --no-c | -n)
1059     no_create=yes ;;
1060
1061   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063     no_recursion=yes ;;
1064
1065   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067   | --oldin | --oldi | --old | --ol | --o)
1068     ac_prev=oldincludedir ;;
1069   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072     oldincludedir=$ac_optarg ;;
1073
1074   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075     ac_prev=prefix ;;
1076   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077     prefix=$ac_optarg ;;
1078
1079   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080   | --program-pre | --program-pr | --program-p)
1081     ac_prev=program_prefix ;;
1082   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084     program_prefix=$ac_optarg ;;
1085
1086   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087   | --program-suf | --program-su | --program-s)
1088     ac_prev=program_suffix ;;
1089   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091     program_suffix=$ac_optarg ;;
1092
1093   -program-transform-name | --program-transform-name \
1094   | --program-transform-nam | --program-transform-na \
1095   | --program-transform-n | --program-transform- \
1096   | --program-transform | --program-transfor \
1097   | --program-transfo | --program-transf \
1098   | --program-trans | --program-tran \
1099   | --progr-tra | --program-tr | --program-t)
1100     ac_prev=program_transform_name ;;
1101   -program-transform-name=* | --program-transform-name=* \
1102   | --program-transform-nam=* | --program-transform-na=* \
1103   | --program-transform-n=* | --program-transform-=* \
1104   | --program-transform=* | --program-transfor=* \
1105   | --program-transfo=* | --program-transf=* \
1106   | --program-trans=* | --program-tran=* \
1107   | --progr-tra=* | --program-tr=* | --program-t=*)
1108     program_transform_name=$ac_optarg ;;
1109
1110   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111     ac_prev=pdfdir ;;
1112   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113     pdfdir=$ac_optarg ;;
1114
1115   -psdir | --psdir | --psdi | --psd | --ps)
1116     ac_prev=psdir ;;
1117   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118     psdir=$ac_optarg ;;
1119
1120   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121   | -silent | --silent | --silen | --sile | --sil)
1122     silent=yes ;;
1123
1124   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125     ac_prev=sbindir ;;
1126   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127   | --sbi=* | --sb=*)
1128     sbindir=$ac_optarg ;;
1129
1130   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132   | --sharedst | --shareds | --shared | --share | --shar \
1133   | --sha | --sh)
1134     ac_prev=sharedstatedir ;;
1135   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138   | --sha=* | --sh=*)
1139     sharedstatedir=$ac_optarg ;;
1140
1141   -site | --site | --sit)
1142     ac_prev=site ;;
1143   -site=* | --site=* | --sit=*)
1144     site=$ac_optarg ;;
1145
1146   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147     ac_prev=srcdir ;;
1148   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149     srcdir=$ac_optarg ;;
1150
1151   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152   | --syscon | --sysco | --sysc | --sys | --sy)
1153     ac_prev=sysconfdir ;;
1154   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156     sysconfdir=$ac_optarg ;;
1157
1158   -target | --target | --targe | --targ | --tar | --ta | --t)
1159     ac_prev=target_alias ;;
1160   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161     target_alias=$ac_optarg ;;
1162
1163   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164     verbose=yes ;;
1165
1166   -version | --version | --versio | --versi | --vers | -V)
1167     ac_init_version=: ;;
1168
1169   -with-* | --with-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error "invalid package name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=\$ac_optarg ;;
1184
1185   -without-* | --without-*)
1186     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187     # Reject names that are not valid shell variable names.
1188     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189       as_fn_error "invalid package name: $ac_useropt"
1190     ac_useropt_orig=$ac_useropt
1191     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192     case $ac_user_opts in
1193       *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197          ac_unrecognized_sep=', ';;
1198     esac
1199     eval with_$ac_useropt=no ;;
1200
1201   --x)
1202     # Obsolete; use --with-x.
1203     with_x=yes ;;
1204
1205   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206   | --x-incl | --x-inc | --x-in | --x-i)
1207     ac_prev=x_includes ;;
1208   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210     x_includes=$ac_optarg ;;
1211
1212   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214     ac_prev=x_libraries ;;
1215   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217     x_libraries=$ac_optarg ;;
1218
1219   -*) as_fn_error "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information."
1221     ;;
1222
1223   *=*)
1224     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225     # Reject names that are not valid shell variable names.
1226     case $ac_envvar in #(
1227       '' | [0-9]* | *[!_$as_cr_alnum]* )
1228       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229     esac
1230     eval $ac_envvar=\$ac_optarg
1231     export $ac_envvar ;;
1232
1233   *)
1234     # FIXME: should be removed in autoconf 3.0.
1235     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239     ;;
1240
1241   esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246   as_fn_error "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250   case $enable_option_checking in
1251     no) ;;
1252     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1253     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254   esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259                 datadir sysconfdir sharedstatedir localstatedir includedir \
1260                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261                 libdir localedir mandir
1262 do
1263   eval ac_val=\$$ac_var
1264   # Remove trailing slashes.
1265   case $ac_val in
1266     */ )
1267       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268       eval $ac_var=\$ac_val;;
1269   esac
1270   # Be sure to have absolute directory names.
1271   case $ac_val in
1272     [\\/$]* | ?:[\\/]* )  continue;;
1273     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274   esac
1275   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287   if test "x$build_alias" = x; then
1288     cross_compiling=maybe
1289     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1290     If a cross compiler is detected then cross compile mode will be used." >&2
1291   elif test "x$build_alias" != "x$host_alias"; then
1292     cross_compiling=yes
1293   fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305   as_fn_error "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307   as_fn_error "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$as_myself" : 'X\(//\)[^/]' \| \
1317          X"$as_myself" : 'X\(//\)$' \| \
1318          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351         pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354   srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 case $srcdir in
1363   *" "*)
1364     as_fn_error "path to source, $srcdir, contains spaces"
1365     ;;
1366 esac
1367 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1368
1369 for ac_var in $ac_precious_vars; do
1370   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_env_${ac_var}_value=\$${ac_var}
1372   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380   # Omit some internal or obsolete options to make the list less imposing.
1381   # This message is too long to be a string in the A/UX 3.1 sh.
1382   cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393   -h, --help              display this help and exit
1394       --help=short        display options specific to this package
1395       --help=recursive    display the short help of all the included packages
1396   -V, --version           display version information and exit
1397   -q, --quiet, --silent   do not print \`checking...' messages
1398       --cache-file=FILE   cache test results in FILE [disabled]
1399   -C, --config-cache      alias for \`--cache-file=config.cache'
1400   -n, --no-create         do not create output files
1401       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404   --prefix=PREFIX         install architecture-independent files in PREFIX
1405                           [$ac_default_prefix]
1406   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                           [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417   --bindir=DIR            user executables [EPREFIX/bin]
1418   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1419   --libexecdir=DIR        program executables [EPREFIX/libexec]
1420   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1421   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1422   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1423   --libdir=DIR            object code libraries [EPREFIX/lib]
1424   --includedir=DIR        C header files [PREFIX/include]
1425   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1426   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1427   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1428   --infodir=DIR           info documentation [DATAROOTDIR/info]
1429   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1430   --mandir=DIR            man documentation [DATAROOTDIR/man]
1431   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1432   --htmldir=DIR           html documentation [DOCDIR]
1433   --dvidir=DIR            dvi documentation [DOCDIR]
1434   --pdfdir=DIR            pdf documentation [DOCDIR]
1435   --psdir=DIR             ps documentation [DOCDIR]
1436 _ACEOF
1437
1438   cat <<\_ACEOF
1439
1440 Program names:
1441   --program-prefix=PREFIX            prepend PREFIX to installed program names
1442   --program-suffix=SUFFIX            append SUFFIX to installed program names
1443   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1444
1445 System types:
1446   --build=BUILD     configure for building on BUILD [guessed]
1447   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1448   --target=TARGET   configure for building compilers for TARGET [HOST]
1449 _ACEOF
1450 fi
1451
1452 if test -n "$ac_init_help"; then
1453
1454   cat <<\_ACEOF
1455
1456 Optional Features:
1457   --disable-option-checking  ignore unrecognized --enable/--with options
1458   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1459   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1460   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1461   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1462   --disable-libquadmath   do not build libquadmath directory
1463   --disable-libquadmath-support
1464                           disable libquadmath support for Fortran
1465   --enable-libada         build libada directory
1466   --enable-libssp         build libssp directory
1467   --enable-static-libjava[=ARG]
1468                           build static libjava [default=no]
1469   --enable-bootstrap      enable bootstrapping [yes if native build]
1470   --disable-isl-version-check
1471                           disable check for ISL version
1472   --disable-cloog-version-check
1473                           disable check for CLooG version
1474   --enable-lto            enable link time optimization support
1475   --enable-stage1-languages[=all]
1476                           choose additional languages to build during stage1.
1477                           Mostly useful for compiler development
1478   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1479                           Objective-C runtime
1480   --enable-serial-[{host,target,build}-]configure
1481                           force sequential configuration of sub-packages for
1482                           the host, target or build machine, or all
1483                           sub-packages
1484   --enable-maintainer-mode
1485                           enable make rules and dependencies not useful (and
1486                           sometimes confusing) to the casual installer
1487   --enable-stage1-checking[=all]
1488                           choose additional checking for stage1 of the
1489                           compiler
1490   --enable-werror         enable -Werror in bootstrap stage2 and later
1491
1492 Optional Packages:
1493   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1494   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1495   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1496   --with-mpc=PATH         specify prefix directory for installed MPC package.
1497                           Equivalent to --with-mpc-include=PATH/include plus
1498                           --with-mpc-lib=PATH/lib
1499   --with-mpc-include=PATH specify directory for installed MPC include files
1500   --with-mpc-lib=PATH     specify directory for the installed MPC library
1501   --with-mpfr-dir=PATH    this option has been REMOVED
1502   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1503                           Equivalent to --with-mpfr-include=PATH/include plus
1504                           --with-mpfr-lib=PATH/lib
1505   --with-mpfr-include=PATH
1506                           specify directory for installed MPFR include files
1507   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1508   --with-gmp-dir=PATH     this option has been REMOVED
1509   --with-gmp=PATH         specify prefix directory for the installed GMP
1510                           package. Equivalent to
1511                           --with-gmp-include=PATH/include plus
1512                           --with-gmp-lib=PATH/lib
1513   --with-gmp-include=PATH specify directory for installed GMP include files
1514   --with-gmp-lib=PATH     specify directory for the installed GMP library
1515   --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1516                           linking with PPL
1517   --with-stage1-ldflags=FLAGS
1518                           linker flags for stage1
1519   --with-stage1-libs=LIBS libraries for stage1
1520   --with-boot-libs=LIBS   libraries for stage2 and later
1521   --with-boot-ldflags=FLAGS
1522                           linker flags for stage2 and later
1523   --with-cloog=PATH       Specify prefix directory for the installed CLooG-ISL
1524                           package. Equivalent to
1525                           --with-cloog-include=PATH/include plus
1526                           --with-cloog-lib=PATH/lib
1527   --with-isl=PATH         Specify prefix directory for the installed ISL
1528                           package. Equivalent to
1529                           --with-isl-include=PATH/include plus
1530                           --with-isl-lib=PATH/lib
1531   --with-isl-include=PATH Specify directory for installed ISL include files
1532   --with-isl-lib=PATH     Specify the directory for the installed ISL library
1533   --with-cloog-include=PATH
1534                           Specify directory for installed CLooG include files
1535   --with-cloog-lib=PATH   Specify the directory for the installed CLooG
1536                           library
1537   --with-build-sysroot=SYSROOT
1538                           use sysroot as the system root during the build
1539   --with-debug-prefix-map='A=B C=D ...'
1540                           map A to B, C to D ... in debug information
1541   --with-build-config='NAME NAME2...'
1542                           use config/NAME.mk build configuration
1543   --with-build-time-tools=PATH
1544                           use given path to find target tools during the build
1545
1546 Some influential environment variables:
1547   CC          C compiler command
1548   CFLAGS      C compiler flags
1549   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1550               nonstandard directory <lib dir>
1551   LIBS        libraries to pass to the linker, e.g. -l<library>
1552   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553               you have headers in a nonstandard directory <include dir>
1554   CXX         C++ compiler command
1555   CXXFLAGS    C++ compiler flags
1556   build_configargs
1557               additional configure arguments for build directories
1558   host_configargs
1559               additional configure arguments for host directories
1560   target_configargs
1561               additional configure arguments for target directories
1562   AR          AR for the host
1563   AS          AS for the host
1564   DLLTOOL     DLLTOOL for the host
1565   LD          LD for the host
1566   LIPO        LIPO for the host
1567   NM          NM for the host
1568   RANLIB      RANLIB for the host
1569   STRIP       STRIP for the host
1570   WINDRES     WINDRES for the host
1571   WINDMC      WINDMC for the host
1572   OBJCOPY     OBJCOPY for the host
1573   OBJDUMP     OBJDUMP for the host
1574   READELF     READELF for the host
1575   CC_FOR_TARGET
1576               CC for the target
1577   CXX_FOR_TARGET
1578               CXX for the target
1579   GCC_FOR_TARGET
1580               GCC for the target
1581   GCJ_FOR_TARGET
1582               GCJ for the target
1583   GFORTRAN_FOR_TARGET
1584               GFORTRAN for the target
1585   GOC_FOR_TARGET
1586               GOC for the target
1587   AR_FOR_TARGET
1588               AR for the target
1589   AS_FOR_TARGET
1590               AS for the target
1591   DLLTOOL_FOR_TARGET
1592               DLLTOOL for the target
1593   LD_FOR_TARGET
1594               LD for the target
1595   LIPO_FOR_TARGET
1596               LIPO for the target
1597   NM_FOR_TARGET
1598               NM for the target
1599   OBJDUMP_FOR_TARGET
1600               OBJDUMP for the target
1601   RANLIB_FOR_TARGET
1602               RANLIB for the target
1603   READELF_FOR_TARGET
1604               READELF for the target
1605   STRIP_FOR_TARGET
1606               STRIP for the target
1607   WINDRES_FOR_TARGET
1608               WINDRES for the target
1609   WINDMC_FOR_TARGET
1610               WINDMC for the target
1611
1612 Use these variables to override the choices made by `configure' or to help
1613 it to find libraries and programs with nonstandard names/locations.
1614
1615 Report bugs to the package provider.
1616 _ACEOF
1617 ac_status=$?
1618 fi
1619
1620 if test "$ac_init_help" = "recursive"; then
1621   # If there are subdirs, report their specific --help.
1622   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1623     test -d "$ac_dir" ||
1624       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625       continue
1626     ac_builddir=.
1627
1628 case "$ac_dir" in
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *)
1631   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1632   # A ".." for each directory in $ac_dir_suffix.
1633   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1634   case $ac_top_builddir_sub in
1635   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637   esac ;;
1638 esac
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1643
1644 case $srcdir in
1645   .)  # We are building in place.
1646     ac_srcdir=.
1647     ac_top_srcdir=$ac_top_builddir_sub
1648     ac_abs_top_srcdir=$ac_pwd ;;
1649   [\\/]* | ?:[\\/]* )  # Absolute name.
1650     ac_srcdir=$srcdir$ac_dir_suffix;
1651     ac_top_srcdir=$srcdir
1652     ac_abs_top_srcdir=$srcdir ;;
1653   *) # Relative name.
1654     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655     ac_top_srcdir=$ac_top_build_prefix$srcdir
1656     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 esac
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659
1660     cd "$ac_dir" || { ac_status=$?; continue; }
1661     # Check for guested configure.
1662     if test -f "$ac_srcdir/configure.gnu"; then
1663       echo &&
1664       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665     elif test -f "$ac_srcdir/configure"; then
1666       echo &&
1667       $SHELL "$ac_srcdir/configure" --help=recursive
1668     else
1669       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670     fi || ac_status=$?
1671     cd "$ac_pwd" || { ac_status=$?; break; }
1672   done
1673 fi
1674
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1677   cat <<\_ACEOF
1678 configure
1679 generated by GNU Autoconf 2.64
1680
1681 Copyright (C) 2009 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1684 _ACEOF
1685   exit
1686 fi
1687
1688 ## ------------------------ ##
1689 ## Autoconf initialization. ##
1690 ## ------------------------ ##
1691
1692 # ac_fn_c_try_compile LINENO
1693 # --------------------------
1694 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_compile ()
1696 {
1697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698   rm -f conftest.$ac_objext
1699   if { { ac_try="$ac_compile"
1700 case "(($ac_try" in
1701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702   *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706   (eval "$ac_compile") 2>conftest.err
1707   ac_status=$?
1708   if test -s conftest.err; then
1709     grep -v '^ *+' conftest.err >conftest.er1
1710     cat conftest.er1 >&5
1711     mv -f conftest.er1 conftest.err
1712   fi
1713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714   test $ac_status = 0; } && {
1715          test -z "$ac_c_werror_flag" ||
1716          test ! -s conftest.err
1717        } && test -s conftest.$ac_objext; then :
1718   ac_retval=0
1719 else
1720   $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723         ac_retval=1
1724 fi
1725   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726   return $ac_retval
1727
1728 } # ac_fn_c_try_compile
1729
1730 # ac_fn_cxx_try_compile LINENO
1731 # ----------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_cxx_try_compile ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   rm -f conftest.$ac_objext
1737   if { { ac_try="$ac_compile"
1738 case "(($ac_try" in
1739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740   *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744   (eval "$ac_compile") 2>conftest.err
1745   ac_status=$?
1746   if test -s conftest.err; then
1747     grep -v '^ *+' conftest.err >conftest.er1
1748     cat conftest.er1 >&5
1749     mv -f conftest.er1 conftest.err
1750   fi
1751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752   test $ac_status = 0; } && {
1753          test -z "$ac_cxx_werror_flag" ||
1754          test ! -s conftest.err
1755        } && test -s conftest.$ac_objext; then :
1756   ac_retval=0
1757 else
1758   $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1760
1761         ac_retval=1
1762 fi
1763   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764   return $ac_retval
1765
1766 } # ac_fn_cxx_try_compile
1767
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_link ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   rm -f conftest.$ac_objext conftest$ac_exeext
1775   if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_link") 2>conftest.err
1783   ac_status=$?
1784   if test -s conftest.err; then
1785     grep -v '^ *+' conftest.err >conftest.er1
1786     cat conftest.er1 >&5
1787     mv -f conftest.er1 conftest.err
1788   fi
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } && {
1791          test -z "$ac_c_werror_flag" ||
1792          test ! -s conftest.err
1793        } && test -s conftest$ac_exeext && {
1794          test "$cross_compiling" = yes ||
1795          $as_test_x conftest$ac_exeext
1796        }; then :
1797   ac_retval=0
1798 else
1799   $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802         ac_retval=1
1803 fi
1804   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806   # interfere with the next link command; also delete a directory that is
1807   # left behind by Apple's compiler.  We do this before executing the actions.
1808   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810   return $ac_retval
1811
1812 } # ac_fn_c_try_link
1813
1814 # ac_fn_c_try_run LINENO
1815 # ----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817 # that executables *can* be run.
1818 ac_fn_c_try_run ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824   *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828   (eval "$ac_link") 2>&5
1829   ac_status=$?
1830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832   { { case "(($ac_try" in
1833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834   *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838   (eval "$ac_try") 2>&5
1839   ac_status=$?
1840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841   test $ac_status = 0; }; }; then :
1842   ac_retval=0
1843 else
1844   $as_echo "$as_me: program exited with status $ac_status" >&5
1845        $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848        ac_retval=$ac_status
1849 fi
1850   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852   return $ac_retval
1853
1854 } # ac_fn_c_try_run
1855 cat >config.log <<_ACEOF
1856 This file contains any messages produced by compilers while
1857 running configure, to aid debugging if configure makes a mistake.
1858
1859 It was created by $as_me, which was
1860 generated by GNU Autoconf 2.64.  Invocation command line was
1861
1862   $ $0 $@
1863
1864 _ACEOF
1865 exec 5>>config.log
1866 {
1867 cat <<_ASUNAME
1868 ## --------- ##
1869 ## Platform. ##
1870 ## --------- ##
1871
1872 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1873 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1874 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1875 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1876 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1877
1878 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1879 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1880
1881 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1882 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1883 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1884 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1885 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1886 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1887 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1888
1889 _ASUNAME
1890
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896     $as_echo "PATH: $as_dir"
1897   done
1898 IFS=$as_save_IFS
1899
1900 } >&5
1901
1902 cat >&5 <<_ACEOF
1903
1904
1905 ## ----------- ##
1906 ## Core tests. ##
1907 ## ----------- ##
1908
1909 _ACEOF
1910
1911
1912 # Keep a trace of the command line.
1913 # Strip out --no-create and --no-recursion so they do not pile up.
1914 # Strip out --silent because we don't want to record it for future runs.
1915 # Also quote any args containing shell meta-characters.
1916 # Make two passes to allow for proper duplicate-argument suppression.
1917 ac_configure_args=
1918 ac_configure_args0=
1919 ac_configure_args1=
1920 ac_must_keep_next=false
1921 for ac_pass in 1 2
1922 do
1923   for ac_arg
1924   do
1925     case $ac_arg in
1926     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1927     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1928     | -silent | --silent | --silen | --sile | --sil)
1929       continue ;;
1930     *\'*)
1931       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1932     esac
1933     case $ac_pass in
1934     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1935     2)
1936       as_fn_append ac_configure_args1 " '$ac_arg'"
1937       if test $ac_must_keep_next = true; then
1938         ac_must_keep_next=false # Got value, back to normal.
1939       else
1940         case $ac_arg in
1941           *=* | --config-cache | -C | -disable-* | --disable-* \
1942           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1943           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1944           | -with-* | --with-* | -without-* | --without-* | --x)
1945             case "$ac_configure_args0 " in
1946               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1947             esac
1948             ;;
1949           -* ) ac_must_keep_next=true ;;
1950         esac
1951       fi
1952       as_fn_append ac_configure_args " '$ac_arg'"
1953       ;;
1954     esac
1955   done
1956 done
1957 { ac_configure_args0=; unset ac_configure_args0;}
1958 { ac_configure_args1=; unset ac_configure_args1;}
1959
1960 # When interrupted or exit'd, cleanup temporary files, and complete
1961 # config.log.  We remove comments because anyway the quotes in there
1962 # would cause problems or look ugly.
1963 # WARNING: Use '\'' to represent an apostrophe within the trap.
1964 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1965 trap 'exit_status=$?
1966   # Save into config.log some information that might help in debugging.
1967   {
1968     echo
1969
1970     cat <<\_ASBOX
1971 ## ---------------- ##
1972 ## Cache variables. ##
1973 ## ---------------- ##
1974 _ASBOX
1975     echo
1976     # The following way of writing the cache mishandles newlines in values,
1977 (
1978   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1979     eval ac_val=\$$ac_var
1980     case $ac_val in #(
1981     *${as_nl}*)
1982       case $ac_var in #(
1983       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1984 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1985       esac
1986       case $ac_var in #(
1987       _ | IFS | as_nl) ;; #(
1988       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1989       *) { eval $ac_var=; unset $ac_var;} ;;
1990       esac ;;
1991     esac
1992   done
1993   (set) 2>&1 |
1994     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1995     *${as_nl}ac_space=\ *)
1996       sed -n \
1997         "s/'\''/'\''\\\\'\'''\''/g;
1998           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1999       ;; #(
2000     *)
2001       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2002       ;;
2003     esac |
2004     sort
2005 )
2006     echo
2007
2008     cat <<\_ASBOX
2009 ## ----------------- ##
2010 ## Output variables. ##
2011 ## ----------------- ##
2012 _ASBOX
2013     echo
2014     for ac_var in $ac_subst_vars
2015     do
2016       eval ac_val=\$$ac_var
2017       case $ac_val in
2018       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019       esac
2020       $as_echo "$ac_var='\''$ac_val'\''"
2021     done | sort
2022     echo
2023
2024     if test -n "$ac_subst_files"; then
2025       cat <<\_ASBOX
2026 ## ------------------- ##
2027 ## File substitutions. ##
2028 ## ------------------- ##
2029 _ASBOX
2030       echo
2031       for ac_var in $ac_subst_files
2032       do
2033         eval ac_val=\$$ac_var
2034         case $ac_val in
2035         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036         esac
2037         $as_echo "$ac_var='\''$ac_val'\''"
2038       done | sort
2039       echo
2040     fi
2041
2042     if test -s confdefs.h; then
2043       cat <<\_ASBOX
2044 ## ----------- ##
2045 ## confdefs.h. ##
2046 ## ----------- ##
2047 _ASBOX
2048       echo
2049       cat confdefs.h
2050       echo
2051     fi
2052     test "$ac_signal" != 0 &&
2053       $as_echo "$as_me: caught signal $ac_signal"
2054     $as_echo "$as_me: exit $exit_status"
2055   } >&5
2056   rm -f core *.core core.conftest.* &&
2057     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2058     exit $exit_status
2059 ' 0
2060 for ac_signal in 1 2 13 15; do
2061   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2062 done
2063 ac_signal=0
2064
2065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2066 rm -f -r conftest* confdefs.h
2067
2068 $as_echo "/* confdefs.h */" > confdefs.h
2069
2070 # Predefined preprocessor variables.
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_NAME "$PACKAGE_NAME"
2074 _ACEOF
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_STRING "$PACKAGE_STRING"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_URL "$PACKAGE_URL"
2094 _ACEOF
2095
2096
2097 # Let the site file select an alternate cache file if it wants to.
2098 # Prefer an explicitly selected file to automatically selected ones.
2099 ac_site_file1=NONE
2100 ac_site_file2=NONE
2101 if test -n "$CONFIG_SITE"; then
2102   ac_site_file1=$CONFIG_SITE
2103 elif test "x$prefix" != xNONE; then
2104   ac_site_file1=$prefix/share/config.site
2105   ac_site_file2=$prefix/etc/config.site
2106 else
2107   ac_site_file1=$ac_default_prefix/share/config.site
2108   ac_site_file2=$ac_default_prefix/etc/config.site
2109 fi
2110 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2111 do
2112   test "x$ac_site_file" = xNONE && continue
2113   if test -r "$ac_site_file"; then
2114     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2116     sed 's/^/| /' "$ac_site_file" >&5
2117     . "$ac_site_file"
2118   fi
2119 done
2120
2121 if test -r "$cache_file"; then
2122   # Some versions of bash will fail to source /dev/null (special
2123   # files actually), so we avoid doing that.
2124   if test -f "$cache_file"; then
2125     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2126 $as_echo "$as_me: loading cache $cache_file" >&6;}
2127     case $cache_file in
2128       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2129       *)                      . "./$cache_file";;
2130     esac
2131   fi
2132 else
2133   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2134 $as_echo "$as_me: creating cache $cache_file" >&6;}
2135   >$cache_file
2136 fi
2137
2138 # Check that the precious variables saved in the cache have kept the same
2139 # value.
2140 ac_cache_corrupted=false
2141 for ac_var in $ac_precious_vars; do
2142   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2143   eval ac_new_set=\$ac_env_${ac_var}_set
2144   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2145   eval ac_new_val=\$ac_env_${ac_var}_value
2146   case $ac_old_set,$ac_new_set in
2147     set,)
2148       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2149 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2150       ac_cache_corrupted=: ;;
2151     ,set)
2152       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2153 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2154       ac_cache_corrupted=: ;;
2155     ,);;
2156     *)
2157       if test "x$ac_old_val" != "x$ac_new_val"; then
2158         # differences in whitespace do not lead to failure.
2159         ac_old_val_w=`echo x $ac_old_val`
2160         ac_new_val_w=`echo x $ac_new_val`
2161         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2162           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2163 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2164           ac_cache_corrupted=:
2165         else
2166           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2167 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2168           eval $ac_var=\$ac_old_val
2169         fi
2170         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2171 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2172         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2173 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2174       fi;;
2175   esac
2176   # Pass precious variables to config.status.
2177   if test "$ac_new_set" = set; then
2178     case $ac_new_val in
2179     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2180     *) ac_arg=$ac_var=$ac_new_val ;;
2181     esac
2182     case " $ac_configure_args " in
2183       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2184       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2185     esac
2186   fi
2187 done
2188 if $ac_cache_corrupted; then
2189   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2191   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2192 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2193   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2194 fi
2195 ## -------------------- ##
2196 ## Main body of script. ##
2197 ## -------------------- ##
2198
2199 ac_ext=c
2200 ac_cpp='$CPP $CPPFLAGS'
2201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213 progname=$0
2214 # if PWD already has a value, it is probably wrong.
2215 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2216
2217 # Export original configure arguments for use by sub-configures.
2218 # Quote arguments with shell meta charatcers.
2219 TOPLEVEL_CONFIGURE_ARGUMENTS=
2220 set -- "$progname" "$@"
2221 for ac_arg
2222 do
2223   case "$ac_arg" in
2224   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2225     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2226     # if the argument is of the form -foo=baz, quote the baz part only
2227     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2228   *) ;;
2229   esac
2230   # Add the quoted argument to the list.
2231   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2232 done
2233 if test "$silent" = yes; then
2234   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2235 fi
2236 # Remove the initial space we just introduced and, as these will be
2237 # expanded by make, quote '$'.
2238 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2239
2240
2241 # Find the build, host, and target systems.
2242 ac_aux_dir=
2243 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2244   for ac_t in install-sh install.sh shtool; do
2245     if test -f "$ac_dir/$ac_t"; then
2246       ac_aux_dir=$ac_dir
2247       ac_install_sh="$ac_aux_dir/$ac_t -c"
2248       break 2
2249     fi
2250   done
2251 done
2252 if test -z "$ac_aux_dir"; then
2253   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2254 fi
2255
2256 # These three variables are undocumented and unsupported,
2257 # and are intended to be withdrawn in a future Autoconf release.
2258 # They can cause serious problems if a builder's source tree is in a directory
2259 # whose full name contains unusual characters.
2260 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2261 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2262 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2263
2264
2265 # Make sure we can run config.sub.
2266 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2267   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2268
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2270 $as_echo_n "checking build system type... " >&6; }
2271 if test "${ac_cv_build+set}" = set; then :
2272   $as_echo_n "(cached) " >&6
2273 else
2274   ac_build_alias=$build_alias
2275 test "x$ac_build_alias" = x &&
2276   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2277 test "x$ac_build_alias" = x &&
2278   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2279 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2280   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2281
2282 fi
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2284 $as_echo "$ac_cv_build" >&6; }
2285 case $ac_cv_build in
2286 *-*-*) ;;
2287 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2288 esac
2289 build=$ac_cv_build
2290 ac_save_IFS=$IFS; IFS='-'
2291 set x $ac_cv_build
2292 shift
2293 build_cpu=$1
2294 build_vendor=$2
2295 shift; shift
2296 # Remember, the first character of IFS is used to create $*,
2297 # except with old shells:
2298 build_os=$*
2299 IFS=$ac_save_IFS
2300 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2301
2302
2303  case ${build_alias} in
2304   "") build_noncanonical=${build} ;;
2305   *) build_noncanonical=${build_alias} ;;
2306 esac
2307
2308
2309
2310  case ${host_alias} in
2311   "") host_noncanonical=${build_noncanonical} ;;
2312   *) host_noncanonical=${host_alias} ;;
2313 esac
2314
2315
2316
2317  case ${target_alias} in
2318   "") target_noncanonical=${host_noncanonical} ;;
2319   *) target_noncanonical=${target_alias} ;;
2320 esac
2321
2322
2323
2324
2325 test "$host_noncanonical" = "$target_noncanonical" &&
2326   test "$program_prefix$program_suffix$program_transform_name" = \
2327     NONENONEs,x,x, &&
2328   program_transform_name=s,y,y,
2329
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2331 $as_echo_n "checking host system type... " >&6; }
2332 if test "${ac_cv_host+set}" = set; then :
2333   $as_echo_n "(cached) " >&6
2334 else
2335   if test "x$host_alias" = x; then
2336   ac_cv_host=$ac_cv_build
2337 else
2338   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2339     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2340 fi
2341
2342 fi
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2344 $as_echo "$ac_cv_host" >&6; }
2345 case $ac_cv_host in
2346 *-*-*) ;;
2347 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2348 esac
2349 host=$ac_cv_host
2350 ac_save_IFS=$IFS; IFS='-'
2351 set x $ac_cv_host
2352 shift
2353 host_cpu=$1
2354 host_vendor=$2
2355 shift; shift
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2358 host_os=$*
2359 IFS=$ac_save_IFS
2360 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2361
2362
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2364 $as_echo_n "checking target system type... " >&6; }
2365 if test "${ac_cv_target+set}" = set; then :
2366   $as_echo_n "(cached) " >&6
2367 else
2368   if test "x$target_alias" = x; then
2369   ac_cv_target=$ac_cv_host
2370 else
2371   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2372     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2373 fi
2374
2375 fi
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2377 $as_echo "$ac_cv_target" >&6; }
2378 case $ac_cv_target in
2379 *-*-*) ;;
2380 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2381 esac
2382 target=$ac_cv_target
2383 ac_save_IFS=$IFS; IFS='-'
2384 set x $ac_cv_target
2385 shift
2386 target_cpu=$1
2387 target_vendor=$2
2388 shift; shift
2389 # Remember, the first character of IFS is used to create $*,
2390 # except with old shells:
2391 target_os=$*
2392 IFS=$ac_save_IFS
2393 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2394
2395
2396 # The aliases save the names the user supplied, while $host etc.
2397 # will get canonicalized.
2398 test -n "$target_alias" &&
2399   test "$program_prefix$program_suffix$program_transform_name" = \
2400     NONENONEs,x,x, &&
2401   program_prefix=${target_alias}-
2402
2403 test "$program_prefix" != NONE &&
2404   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2405 # Use a double $ so make ignores it.
2406 test "$program_suffix" != NONE &&
2407   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2408 # Double any \ or $.
2409 # By default was `s,x,x', remove it if useless.
2410 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2411 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2412
2413
2414
2415 # Get 'install' or 'install-sh' and its variants.
2416 # Find a good install program.  We prefer a C program (faster),
2417 # so one script is as good as another.  But avoid the broken or
2418 # incompatible versions:
2419 # SysV /etc/install, /usr/sbin/install
2420 # SunOS /usr/etc/install
2421 # IRIX /sbin/install
2422 # AIX /bin/install
2423 # AmigaOS /C/install, which installs bootblocks on floppy discs
2424 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2425 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2426 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2427 # OS/2's system install, which has a completely different semantic
2428 # ./install, which can be erroneously created by make from ./install.sh.
2429 # Reject install programs that cannot install multiple files.
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2431 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2432 if test -z "$INSTALL"; then
2433 if test "${ac_cv_path_install+set}" = set; then :
2434   $as_echo_n "(cached) " >&6
2435 else
2436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441     # Account for people who put trailing slashes in PATH elements.
2442 case $as_dir/ in #((
2443   ./ | .// | /[cC]/* | \
2444   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2445   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2446   /usr/ucb/* ) ;;
2447   *)
2448     # OSF1 and SCO ODT 3.0 have their own names for install.
2449     # Don't use installbsd from OSF since it installs stuff as root
2450     # by default.
2451     for ac_prog in ginstall scoinst install; do
2452       for ac_exec_ext in '' $ac_executable_extensions; do
2453         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2454           if test $ac_prog = install &&
2455             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456             # AIX install.  It has an incompatible calling convention.
2457             :
2458           elif test $ac_prog = install &&
2459             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2460             # program-specific install script used by HP pwplus--don't use.
2461             :
2462           else
2463             rm -rf conftest.one conftest.two conftest.dir
2464             echo one > conftest.one
2465             echo two > conftest.two
2466             mkdir conftest.dir
2467             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2468               test -s conftest.one && test -s conftest.two &&
2469               test -s conftest.dir/conftest.one &&
2470               test -s conftest.dir/conftest.two
2471             then
2472               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2473               break 3
2474             fi
2475           fi
2476         fi
2477       done
2478     done
2479     ;;
2480 esac
2481
2482   done
2483 IFS=$as_save_IFS
2484
2485 rm -rf conftest.one conftest.two conftest.dir
2486
2487 fi
2488   if test "${ac_cv_path_install+set}" = set; then
2489     INSTALL=$ac_cv_path_install
2490   else
2491     # As a last resort, use the slow shell script.  Don't cache a
2492     # value for INSTALL within a source directory, because that will
2493     # break other packages using the cache if that directory is
2494     # removed, or if the value is a relative name.
2495     INSTALL=$ac_install_sh
2496   fi
2497 fi
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2499 $as_echo "$INSTALL" >&6; }
2500
2501 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2502 # It thinks the first close brace ends the variable substitution.
2503 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2504
2505 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2506
2507 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2508
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2510 $as_echo_n "checking whether ln works... " >&6; }
2511 if test "${acx_cv_prog_LN+set}" = set; then :
2512   $as_echo_n "(cached) " >&6
2513 else
2514   rm -f conftestdata_t
2515 echo >conftestdata_f
2516 if ln conftestdata_f conftestdata_t 2>/dev/null
2517 then
2518   acx_cv_prog_LN=ln
2519 else
2520   acx_cv_prog_LN=no
2521 fi
2522 rm -f conftestdata_f conftestdata_t
2523
2524 fi
2525 if test $acx_cv_prog_LN = no; then
2526   LN="cp"
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2528 $as_echo "no, using $LN" >&6; }
2529 else
2530   LN="$acx_cv_prog_LN"
2531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2532 $as_echo "yes" >&6; }
2533 fi
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2536 $as_echo_n "checking whether ln -s works... " >&6; }
2537 LN_S=$as_ln_s
2538 if test "$LN_S" = "ln -s"; then
2539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2540 $as_echo "yes" >&6; }
2541 else
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2543 $as_echo "no, using $LN_S" >&6; }
2544 fi
2545
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2547 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2548 if test "${ac_cv_path_SED+set}" = set; then :
2549   $as_echo_n "(cached) " >&6
2550 else
2551             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2552      for ac_i in 1 2 3 4 5 6 7; do
2553        ac_script="$ac_script$as_nl$ac_script"
2554      done
2555      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2556      { ac_script=; unset ac_script;}
2557      if test -z "$SED"; then
2558   ac_path_SED_found=false
2559   # Loop through the user's path and test for each of PROGNAME-LIST
2560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563   IFS=$as_save_IFS
2564   test -z "$as_dir" && as_dir=.
2565     for ac_prog in sed gsed; do
2566     for ac_exec_ext in '' $ac_executable_extensions; do
2567       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2568       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2569 # Check for GNU ac_path_SED and select it if it is found.
2570   # Check for GNU $ac_path_SED
2571 case `"$ac_path_SED" --version 2>&1` in
2572 *GNU*)
2573   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2574 *)
2575   ac_count=0
2576   $as_echo_n 0123456789 >"conftest.in"
2577   while :
2578   do
2579     cat "conftest.in" "conftest.in" >"conftest.tmp"
2580     mv "conftest.tmp" "conftest.in"
2581     cp "conftest.in" "conftest.nl"
2582     $as_echo '' >> "conftest.nl"
2583     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2584     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2585     as_fn_arith $ac_count + 1 && ac_count=$as_val
2586     if test $ac_count -gt ${ac_path_SED_max-0}; then
2587       # Best one so far, save it but keep looking for a better one
2588       ac_cv_path_SED="$ac_path_SED"
2589       ac_path_SED_max=$ac_count
2590     fi
2591     # 10*(2^10) chars as input seems more than enough
2592     test $ac_count -gt 10 && break
2593   done
2594   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2595 esac
2596
2597       $ac_path_SED_found && break 3
2598     done
2599   done
2600   done
2601 IFS=$as_save_IFS
2602   if test -z "$ac_cv_path_SED"; then
2603     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2604   fi
2605 else
2606   ac_cv_path_SED=$SED
2607 fi
2608
2609 fi
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2611 $as_echo "$ac_cv_path_SED" >&6; }
2612  SED="$ac_cv_path_SED"
2613   rm -f conftest.sed
2614
2615 for ac_prog in gawk mawk nawk awk
2616 do
2617   # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if test "${ac_cv_prog_AWK+set}" = set; then :
2622   $as_echo_n "(cached) " >&6
2623 else
2624   if test -n "$AWK"; then
2625   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630   IFS=$as_save_IFS
2631   test -z "$as_dir" && as_dir=.
2632     for ac_exec_ext in '' $ac_executable_extensions; do
2633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634     ac_cv_prog_AWK="$ac_prog"
2635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636     break 2
2637   fi
2638 done
2639   done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 AWK=$ac_cv_prog_AWK
2645 if test -n "$AWK"; then
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2647 $as_echo "$AWK" >&6; }
2648 else
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653
2654   test -n "$AWK" && break
2655 done
2656
2657
2658 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2659
2660 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2661 # a relative path.
2662 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2663   INSTALL="${srcpwd}/install-sh -c"
2664 fi
2665
2666 # Set srcdir to "." if that's what it is.
2667 # This is important for multilib support.
2668 pwd=`${PWDCMD-pwd}`
2669 if test "${pwd}" = "${srcpwd}" ; then
2670   srcdir=.
2671 fi
2672
2673 topsrcdir=$srcpwd
2674
2675 extra_host_args=
2676
2677 ### To add a new directory to the tree, first choose whether it is a target
2678 ### or a host dependent tool.  Then put it into the appropriate list
2679 ### (library or tools, host or target), doing a dependency sort.
2680
2681 # Subdirs will be configured in the order listed in build_configdirs,
2682 # configdirs, or target_configdirs; see the serialization section below.
2683
2684 # Dependency sorting is only needed when *configuration* must be done in
2685 # a particular order.  In all cases a dependency should be specified in
2686 # the Makefile, whether or not it's implicitly specified here.
2687
2688 # Double entries in build_configdirs, configdirs, or target_configdirs may
2689 # cause circular dependencies and break everything horribly.
2690
2691 # these library is used by various programs built for the build
2692 # environment
2693 #
2694 build_libs="build-libiberty"
2695
2696 # these tools are built for the build environment
2697 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2698
2699 # these libraries are used by various programs built for the host environment
2700 #
2701 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2702
2703 # these tools are built for the host environment
2704 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2705 # know that we are building the simulator.
2706 # binutils, gas and ld appear in that order because it makes sense to run
2707 # "make check" in that particular order.
2708 # If --enable-gold is used, "gold" may replace "ld".
2709 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2710
2711 # libgcj represents the runtime libraries only used by gcj.
2712 libgcj="target-libffi \
2713         target-zlib \
2714         target-libjava"
2715
2716 # these libraries are built for the target environment, and are built after
2717 # the host libraries and the host tools (which may be a cross compiler)
2718 # Note that libiberty is not a target library.
2719 target_libraries="target-libgcc \
2720                 target-libgloss \
2721                 target-newlib \
2722                 target-libgomp \
2723                 target-libatomic \
2724                 target-libitm \
2725                 target-libstdc++-v3 \
2726                 target-libmudflap \
2727                 target-libssp \
2728                 target-libquadmath \
2729                 target-libgfortran \
2730                 target-boehm-gc \
2731                 ${libgcj} \
2732                 target-libobjc \
2733                 target-libada \
2734                 target-libgo"
2735
2736 # these tools are built using the target libraries, and are intended to
2737 # run only in the target environment
2738 #
2739 # note: any program that *uses* libraries that are in the "target_libraries"
2740 # list belongs in this list.
2741 #
2742 target_tools="target-rda"
2743
2744 ################################################################################
2745
2746 ## All tools belong in one of the four categories, and are assigned above
2747 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2748 ## is important because configure will choke if they ever get through.
2749 ## ${configdirs} is directories we build using the host tools.
2750 ## ${target_configdirs} is directories we build using the target tools.
2751 configdirs=`echo ${host_libs} ${host_tools}`
2752 target_configdirs=`echo ${target_libraries} ${target_tools}`
2753 build_configdirs=`echo ${build_libs} ${build_tools}`
2754
2755
2756
2757 ################################################################################
2758
2759 srcname="gnu development package"
2760
2761 # This gets set non-empty for some net releases of packages.
2762 appdirs=""
2763
2764 # Define is_cross_compiler to save on calls to 'test'.
2765 is_cross_compiler=
2766 if test x"${host}" = x"${target}" ; then
2767   is_cross_compiler=no
2768 else
2769   is_cross_compiler=yes
2770 fi
2771
2772 # Find the build and target subdir names.
2773
2774 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2775 # have matching libraries, they should use host libraries: Makefile.tpl
2776 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2777 # However, they still use the build modules, because the corresponding
2778 # host modules (e.g. bison) are only built for the host when bootstrap
2779 # finishes. So:
2780 # - build_subdir is where we find build modules, and never changes.
2781 # - build_libsubdir is where we find build libraries, and can be overridden.
2782
2783 # Prefix 'build-' so this never conflicts with target_subdir.
2784 build_subdir="build-${build_noncanonical}"
2785
2786 # Check whether --with-build-libsubdir was given.
2787 if test "${with_build_libsubdir+set}" = set; then :
2788   withval=$with_build_libsubdir; build_libsubdir="$withval"
2789 else
2790   build_libsubdir="$build_subdir"
2791 fi
2792
2793 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2794 if ( test $srcdir = . && test -d gcc ) \
2795    || test -d $srcdir/../host-${host_noncanonical}; then
2796   host_subdir="host-${host_noncanonical}"
2797 else
2798   host_subdir=.
2799 fi
2800 # No prefix.
2801 target_subdir=${target_noncanonical}
2802
2803 # Be sure to cover against remnants of an in-tree build.
2804 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2805   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2806 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2807 fi
2808
2809 # Skipdirs are removed silently.
2810 skipdirs=
2811 # Noconfigdirs are removed loudly.
2812 noconfigdirs=""
2813
2814 use_gnu_ld=
2815 # Make sure we don't let GNU ld be added if we didn't want it.
2816 if test x$with_gnu_ld = xno ; then
2817   use_gnu_ld=no
2818   noconfigdirs="$noconfigdirs ld gold"
2819 fi
2820
2821 use_gnu_as=
2822 # Make sure we don't let GNU as be added if we didn't want it.
2823 if test x$with_gnu_as = xno ; then
2824   use_gnu_as=no
2825   noconfigdirs="$noconfigdirs gas"
2826 fi
2827
2828 use_included_zlib=
2829 # Make sure we don't let ZLIB be added if we didn't want it.
2830 if test x$with_system_zlib = xyes ; then
2831   use_included_zlib=no
2832   noconfigdirs="$noconfigdirs zlib"
2833 fi
2834
2835 # some tools are so dependent upon X11 that if we're not building with X,
2836 # it's not even worth trying to configure, much less build, that tool.
2837
2838 case ${with_x} in
2839   yes | "") ;; # the default value for this tree is that X11 is available
2840   no)
2841     skipdirs="${skipdirs} tk itcl libgui"
2842     # We won't be able to build gdbtk without X.
2843     enable_gdbtk=no
2844     ;;
2845   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2846 esac
2847
2848 # Some are only suitable for cross toolchains.
2849 # Remove these if host=target.
2850 cross_only="target-libgloss target-newlib target-opcodes"
2851
2852 case $is_cross_compiler in
2853   no) skipdirs="${skipdirs} ${cross_only}" ;;
2854 esac
2855
2856 # If both --with-headers and --with-libs are specified, default to
2857 # --without-newlib.
2858 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2859    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2860   if test x"${with_newlib}" = x ; then
2861     with_newlib=no
2862   fi
2863 fi
2864
2865 # Recognize --with-newlib/--without-newlib.
2866 case ${with_newlib} in
2867   no) skipdirs="${skipdirs} target-newlib" ;;
2868   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2869 esac
2870
2871 # Handle --enable-gold, --enable-ld.
2872 # --disable-gold [--enable-ld]
2873 #     Build only ld.  Default option.
2874 # --enable-gold [--enable-ld]
2875 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2876 #     as "ld.bfd" and "ld".
2877 # --enable-gold=default [--enable-ld]
2878 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2879 #     install ld as "ld.bfd".
2880 # --enable-gold[=default] --disable-ld
2881 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2882 # --enable-gold --enable-ld=default
2883 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2884 #     and ld.bfd).
2885 #     In other words, ld is default
2886 # --enable-gold=default --enable-ld=default
2887 #     Error.
2888
2889 default_ld=
2890 # Check whether --enable-gold was given.
2891 if test "${enable_gold+set}" = set; then :
2892   enableval=$enable_gold; ENABLE_GOLD=$enableval
2893 else
2894   ENABLE_GOLD=no
2895 fi
2896
2897 case "${ENABLE_GOLD}" in
2898   yes|default)
2899     # Check for ELF target.
2900     is_elf=no
2901     case "${target}" in
2902       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2903       | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2904       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2905       | *-*-solaris2* | *-*-nto*)
2906         case "${target}" in
2907           *-*-linux*aout* | *-*-linux*oldld*)
2908             ;;
2909           *)
2910             is_elf=yes
2911             ;;
2912         esac
2913     esac
2914
2915     if test "$is_elf" = "yes"; then
2916       # Check for target supported by gold.
2917       case "${target}" in
2918         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2919           configdirs="$configdirs gold"
2920           if test x${ENABLE_GOLD} = xdefault; then
2921             default_ld=gold
2922           fi
2923           ENABLE_GOLD=yes
2924           ;;
2925       esac
2926     fi
2927     ;;
2928   no)
2929     ;;
2930   *)
2931     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2932     ;;
2933 esac
2934
2935 # Check whether --enable-ld was given.
2936 if test "${enable_ld+set}" = set; then :
2937   enableval=$enable_ld; ENABLE_LD=$enableval
2938 else
2939   ENABLE_LD=yes
2940 fi
2941
2942
2943 case "${ENABLE_LD}" in
2944   default)
2945     if test x${default_ld} != x; then
2946       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2947     fi
2948     ;;
2949   yes)
2950     ;;
2951   no)
2952     if test x${ENABLE_GOLD} != xyes; then
2953       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2954 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2955     fi
2956     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2957     ;;
2958   *)
2959     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2960     ;;
2961 esac
2962
2963 # Configure extra directories which are host specific
2964
2965 case "${host}" in
2966   *-cygwin*)
2967     configdirs="$configdirs libtermcap" ;;
2968 esac
2969
2970 # A target can indicate whether a language isn't supported for some reason.
2971 # Only spaces may be used in this macro; not newlines or tabs.
2972 unsupported_languages=
2973
2974 # Remove more programs from consideration, based on the host or
2975 # target this usually means that a port of the program doesn't
2976 # exist yet.
2977
2978 case "${host}" in
2979   i[3456789]86-*-msdosdjgpp*)
2980     noconfigdirs="$noconfigdirs tcl tk itcl"
2981     ;;
2982 esac
2983
2984
2985 # Check whether --enable-libquadmath was given.
2986 if test "${enable_libquadmath+set}" = set; then :
2987   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2988 else
2989   ENABLE_LIBQUADMATH=yes
2990 fi
2991
2992 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2993   noconfigdirs="$noconfigdirs target-libquadmath"
2994 fi
2995
2996
2997 # Check whether --enable-libquadmath-support was given.
2998 if test "${enable_libquadmath_support+set}" = set; then :
2999   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3000 else
3001   ENABLE_LIBQUADMATH_SUPPORT=yes
3002 fi
3003
3004 enable_libquadmath_support=
3005 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3006   enable_libquadmath_support=no
3007 fi
3008
3009
3010 # Check whether --enable-libada was given.
3011 if test "${enable_libada+set}" = set; then :
3012   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3013 else
3014   ENABLE_LIBADA=yes
3015 fi
3016
3017 if test "${ENABLE_LIBADA}" != "yes" ; then
3018   noconfigdirs="$noconfigdirs gnattools"
3019 fi
3020
3021 # Check whether --enable-libssp was given.
3022 if test "${enable_libssp+set}" = set; then :
3023   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3024 else
3025   ENABLE_LIBSSP=yes
3026 fi
3027
3028
3029 # Save it here so that, even in case of --enable-libgcj, if the Java
3030 # front-end isn't enabled, we still get libgcj disabled.
3031 libgcj_saved=$libgcj
3032 case $enable_libgcj in
3033 yes)
3034   # If we reset it here, it won't get added to noconfigdirs in the
3035   # target-specific build rules, so it will be forcibly enabled
3036   # (unless the Java language itself isn't enabled).
3037   libgcj=
3038   ;;
3039 no)
3040   # Make sure we get it printed in the list of not supported target libs.
3041   # Don't disable libffi, though, other languages use it.
3042   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3043   # Clear libgcj_saved so that even if java is enabled libffi won't be
3044   # built.
3045   libgcj_saved=
3046   ;;
3047 esac
3048
3049 # Check whether --enable-static-libjava was given.
3050 if test "${enable_static_libjava+set}" = set; then :
3051   enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3052 else
3053   ENABLE_STATIC_LIBJAVA=no
3054 fi
3055
3056 enable_static_libjava=
3057 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3058   enable_static_libjava=yes
3059 fi
3060
3061 if test x$enable_static_libjava != xyes ; then
3062   EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3063 fi
3064
3065
3066 # Disable libmudflap on some systems.
3067 if test x$enable_libmudflap = x ; then
3068     case "${target}" in
3069     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3070         # Enable libmudflap by default in GNU and friends.
3071         ;;
3072     *-*-freebsd*)
3073         # Enable libmudflap by default in FreeBSD.
3074         ;;
3075     *)
3076         # Disable it by default everywhere else.
3077         noconfigdirs="$noconfigdirs target-libmudflap"
3078         ;;
3079     esac
3080 fi
3081
3082 # Disable libgomp on non POSIX hosted systems.
3083 if test x$enable_libgomp = x ; then
3084     # Enable libgomp by default on hosted POSIX systems.
3085     case "${target}" in
3086     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3087         ;;
3088     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3089         ;;
3090     *-*-solaris2* | *-*-hpux11*)
3091         ;;
3092     *-*-darwin* | *-*-aix*)
3093         ;;
3094     *)
3095         noconfigdirs="$noconfigdirs target-libgomp"
3096         ;;
3097     esac
3098 fi
3099
3100 # Disable libatomic on unsupported systems.
3101 if test -d ${srcdir}/libatomic; then
3102     if test x$enable_libatomic = x; then
3103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3104 $as_echo_n "checking for libatomic support... " >&6; }
3105         if (srcdir=${srcdir}/libatomic; \
3106                 . ${srcdir}/configure.tgt; \
3107                 test -n "$UNSUPPORTED")
3108         then
3109             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111             noconfigdirs="$noconfigdirs target-libatomic"
3112         else
3113             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3114 $as_echo "yes" >&6; }
3115         fi
3116     fi
3117 fi
3118
3119 # Disable libitm on unsupported systems.
3120 if test -d ${srcdir}/libitm; then
3121     if test x$enable_libitm = x; then
3122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3123 $as_echo_n "checking for libitm support... " >&6; }
3124         if (srcdir=${srcdir}/libitm; \
3125                 . ${srcdir}/configure.tgt; \
3126                 test -n "$UNSUPPORTED")
3127         then
3128             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3130             noconfigdirs="$noconfigdirs target-libitm"
3131         else
3132             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3133 $as_echo "yes" >&6; }
3134         fi
3135     fi
3136 fi
3137
3138 # Disable libssp for some systems.
3139 case "${target}" in
3140   avr-*-*)
3141     # No hosted I/O support.
3142     noconfigdirs="$noconfigdirs target-libssp"
3143     ;;
3144   powerpc-*-aix* | rs6000-*-aix*)
3145     noconfigdirs="$noconfigdirs target-libssp"
3146     ;;
3147   rl78-*-*)
3148     # libssp uses a misaligned load to trigger a fault, but the RL78
3149     # doesn't fault for those - instead, it gives a build-time error
3150     # for explicit misaligned loads.
3151     noconfigdirs="$noconfigdirs target-libssp"
3152     ;;
3153 esac
3154
3155 # Disable libquadmath for some systems.
3156 case "${target}" in
3157   avr-*-*)
3158     noconfigdirs="$noconfigdirs target-libquadmath"
3159     ;;
3160 esac
3161
3162 # Disable libstdc++-v3 for some systems.
3163 case "${target}" in
3164   *-*-vxworks*)
3165     # VxWorks uses the Dinkumware C++ library.
3166     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3167     ;;
3168   arm*-wince-pe*)
3169     # the C++ libraries don't build on top of CE's C libraries
3170     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3171     ;;
3172   avr-*-*)
3173     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3174     ;;
3175 esac
3176
3177 # Disable Fortran for some systems.
3178 case "${target}" in
3179   mmix-*-*)
3180     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3181     unsupported_languages="$unsupported_languages fortran"
3182     ;;
3183 esac
3184
3185 # Disable Java if libffi is not supported.
3186 case "${target}" in
3187   alpha*-*-*)
3188     ;;
3189   arm*-*-*)
3190     ;;
3191   cris-*-*)
3192     ;;
3193   frv-*-*)
3194     ;;
3195   hppa*-*-linux*)
3196     ;;
3197   hppa*-*-hpux*)
3198     ;;
3199   i?86-*-*)
3200     ;;
3201   ia64*-*-*)
3202     ;;
3203   m32r*-*-*)
3204     ;;
3205   m68k-*-*)
3206     ;;
3207   mips*-*-rtems*)
3208     ;;
3209   mips*-*-linux*)
3210     ;;
3211   powerpc*-*-linux*)
3212     ;;
3213   powerpc-*-darwin*)
3214     ;;
3215   powerpc-*-aix* | rs6000-*-aix*)
3216     ;;
3217   powerpc-*-freebsd*)
3218     ;;
3219   powerpc64-*-freebsd*)
3220     ;;
3221   powerpc*-*-rtems*)
3222     ;;
3223   s390-*-* | s390x-*-*)
3224     ;;
3225   sh-*-* | sh[34]*-*-*)
3226     ;;
3227   sh64-*-* | sh5*-*-*)
3228     ;;
3229   sparc*-*-*)
3230     ;;
3231   x86_64-*-*)
3232     ;;
3233   *-*-*)
3234     unsupported_languages="$unsupported_languages java"
3235     ;;
3236 esac
3237
3238 # Disable Java, libgcj or related libraries for some systems.
3239 case "${target}" in
3240   powerpc-*-darwin*)
3241     ;;
3242   i[3456789]86-*-darwin*)
3243     ;;
3244   x86_64-*-darwin[912]*)
3245     ;;
3246   *-*-darwin*)
3247     noconfigdirs="$noconfigdirs ${libgcj}"
3248     ;;
3249   *-*-netware*)
3250     noconfigdirs="$noconfigdirs ${libgcj}"
3251     ;;
3252   *-*-rtems*)
3253     noconfigdirs="$noconfigdirs ${libgcj}"
3254     ;;
3255   *-*-tpf*)
3256     noconfigdirs="$noconfigdirs ${libgcj}"
3257     ;;
3258   *-*-uclinux*)
3259     noconfigdirs="$noconfigdirs ${libgcj}"
3260     ;;
3261   *-*-vxworks*)
3262     noconfigdirs="$noconfigdirs ${libgcj}"
3263     ;;
3264   alpha*-*-*vms*)
3265     noconfigdirs="$noconfigdirs ${libgcj}"
3266     ;;
3267   arm-wince-pe)
3268     noconfigdirs="$noconfigdirs ${libgcj}"
3269     ;;
3270   arm*-*-symbianelf*)
3271     noconfigdirs="$noconfigdirs ${libgcj}"
3272     ;;
3273   bfin-*-*)
3274     noconfigdirs="$noconfigdirs target-boehm-gc"
3275     ;;
3276   cris-*-* | crisv32-*-*)
3277     unsupported_languages="$unsupported_languages java"
3278     case "${target}" in
3279       *-*-linux*)
3280         ;;
3281       *) # See PR46792 regarding target-libffi.
3282         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3283     esac
3284     ;;
3285   hppa*64*-*-linux*)
3286     # In this case, it's because the hppa64-linux target is for
3287     # the kernel only at this point and has no libc, and thus no
3288     # headers, crt*.o, etc., all of which are needed by these.
3289     unsupported_languages="$unsupported_languages java"
3290     ;;
3291   hppa*64*-*-hpux*)
3292     noconfigdirs="$noconfigdirs ${libgcj}"
3293     ;;
3294   hppa*-hp-hpux11*)
3295     ;;
3296   hppa*-*-hpux*)
3297     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3298     # build on HP-UX 10.20.
3299     noconfigdirs="$noconfigdirs ${libgcj}"
3300     ;;
3301   ia64*-*-*vms*)
3302     noconfigdirs="$noconfigdirs ${libgcj}"
3303     ;;
3304   i[3456789]86-w64-mingw*)
3305     noconfigdirs="$noconfigdirs ${libgcj}"
3306     ;;
3307   i[3456789]86-*-mingw*)
3308     noconfigdirs="$noconfigdirs ${libgcj}"
3309     ;;
3310   x86_64-*-mingw*)
3311     noconfigdirs="$noconfigdirs ${libgcj}"
3312     ;;
3313   mmix-*-*)
3314     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3315     ;;
3316   powerpc-*-aix*)
3317     # copied from rs6000-*-* entry
3318     noconfigdirs="$noconfigdirs ${libgcj}"
3319     ;;
3320   rs6000-*-aix*)
3321     noconfigdirs="$noconfigdirs ${libgcj}"
3322     ;;
3323   *-*-lynxos*)
3324     noconfigdirs="$noconfigdirs ${libgcj}"
3325     ;;
3326 esac
3327
3328 # Default libgloss CPU subdirectory.
3329 libgloss_dir="$target_cpu"
3330
3331 case "${target}" in
3332   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3333     libgloss_dir=wince
3334     ;;
3335   arm*-*-*)
3336     libgloss_dir=arm
3337     ;;
3338   cris-*-* | crisv32-*-*)
3339     libgloss_dir=cris
3340     ;;
3341   hppa*-*-*)
3342     libgloss_dir=pa
3343     ;;
3344   i[3456789]86-*-*)
3345     libgloss_dir=i386
3346     ;;
3347   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3348     libgloss_dir=m68hc11
3349     ;;
3350   m68*-*-* | fido-*-*)
3351     libgloss_dir=m68k
3352     ;;
3353   mips*-*-*)
3354     libgloss_dir=mips
3355     ;;
3356   powerpc*-*-*)
3357     libgloss_dir=rs6000
3358     ;;
3359   sparc*-*-*)
3360     libgloss_dir=sparc
3361     ;;
3362 esac
3363
3364 # Disable newlib and libgloss for various target OSes.
3365 case "${target}" in
3366   alpha*-dec-osf*)
3367     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3368     ;;
3369   i[3456789]86-*-linux*)
3370     # This section makes it possible to build newlib natively on linux.
3371     # If we are using a cross compiler then don't configure newlib.
3372     if test x${is_cross_compiler} != xno ; then
3373       noconfigdirs="$noconfigdirs target-newlib"
3374     fi
3375     noconfigdirs="$noconfigdirs target-libgloss"
3376     # If we are not using a cross compiler, do configure newlib.
3377     # Note however, that newlib will only be configured in this situation
3378     # if the --with-newlib option has been given, because otherwise
3379     # 'target-newlib' will appear in skipdirs.
3380     ;;
3381   i[3456789]86-*-rdos*)
3382     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3383     ;;
3384   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3385     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3386     ;;
3387   sparc-*-sunos4*)
3388     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3389     ;;
3390   *-*-aix*)
3391     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3392     ;;
3393   *-*-beos*)
3394     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3395     ;;
3396   *-*-chorusos)
3397     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3398     ;;
3399   *-*-dragonfly*)
3400     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3401     ;;
3402   *-*-freebsd*)
3403     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3404     ;;
3405   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3406     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3407     ;;
3408   *-*-lynxos*)
3409     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3410     ;;
3411   *-*-mingw*)
3412     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3413     ;;
3414   *-*-netbsd*)
3415     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3416     ;;
3417   *-*-netware*)
3418     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3419     ;;
3420   *-*-tpf*)
3421     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3422     ;;
3423   *-*-uclinux*)
3424     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3425     ;;
3426   *-*-vxworks*)
3427     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3428     ;;
3429 esac
3430
3431 case "${target}" in
3432   *-*-chorusos)
3433     ;;
3434   powerpc-*-darwin*)
3435     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3436     noconfigdirs="$noconfigdirs sim target-rda"
3437     ;;
3438   i[3456789]86-*-darwin*)
3439     noconfigdirs="$noconfigdirs ld gprof"
3440     noconfigdirs="$noconfigdirs sim target-rda"
3441     ;;
3442   x86_64-*-darwin[912]*)
3443     noconfigdirs="$noconfigdirs ld gas gprof"
3444     noconfigdirs="$noconfigdirs sim target-rda"
3445     ;;
3446   *-*-darwin*)
3447     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3448     noconfigdirs="$noconfigdirs sim target-rda"
3449     ;;
3450   *-*-dragonfly*)
3451     ;;
3452   *-*-freebsd*)
3453     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3454         && test -f /usr/local/include/gmp.h; then
3455       with_gmp=/usr/local
3456     fi
3457     ;;
3458   *-*-kaos*)
3459     # Remove unsupported stuff on all kaOS configurations.
3460     noconfigdirs="$noconfigdirs target-libgloss"
3461     ;;
3462   *-*-netbsd*)
3463     ;;
3464   *-*-netware*)
3465     ;;
3466   *-*-rtems*)
3467     noconfigdirs="$noconfigdirs target-libgloss"
3468     ;;
3469     # The tpf target doesn't support gdb yet.
3470   *-*-tpf*)
3471     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3472     ;;
3473   *-*-uclinux*)
3474     noconfigdirs="$noconfigdirs target-rda"
3475     ;;
3476   *-*-vxworks*)
3477     ;;
3478   alpha*-dec-osf*)
3479     # ld works, but does not support shared libraries.
3480     # gas doesn't generate exception information.
3481     noconfigdirs="$noconfigdirs gas ld"
3482     ;;
3483   alpha*-*-*vms*)
3484     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3485     ;;
3486   alpha*-*-*)
3487     # newlib is not 64 bit ready
3488     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3489     ;;
3490   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3491     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3492     ;;
3493   arc-*-*)
3494     noconfigdirs="$noconfigdirs target-libgloss"
3495     ;;
3496   arm-*-pe*)
3497     noconfigdirs="$noconfigdirs target-libgloss"
3498     ;;
3499   arm-*-riscix*)
3500     noconfigdirs="$noconfigdirs ld target-libgloss"
3501     ;;
3502   c4x-*-* | tic4x-*-*)
3503     noconfigdirs="$noconfigdirs target-libgloss"
3504     ;;
3505   tic54x-*-*)
3506     noconfigdirs="$noconfigdirs target-libgloss gdb"
3507     ;;
3508   d10v-*-*)
3509     noconfigdirs="$noconfigdirs target-libgloss"
3510     ;;
3511   d30v-*-*)
3512     noconfigdirs="$noconfigdirs gdb"
3513     ;;
3514   fr30-*-elf*)
3515     noconfigdirs="$noconfigdirs gdb"
3516     ;;
3517   moxie-*-*)
3518     noconfigdirs="$noconfigdirs gprof"
3519     ;;
3520   h8300*-*-*)
3521     noconfigdirs="$noconfigdirs target-libgloss"
3522     ;;
3523   h8500-*-*)
3524     noconfigdirs="$noconfigdirs target-libgloss"
3525     ;;
3526   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3527     ;;
3528   hppa*64*-*-linux*)
3529     ;;
3530   hppa*-*-linux*)
3531     ;;
3532   hppa*-*-*elf* | \
3533   hppa*-*-lites* | \
3534   hppa*-*-openbsd* | \
3535   hppa*64*-*-*)
3536     ;;
3537   hppa*-hp-hpux11*)
3538     noconfigdirs="$noconfigdirs ld"
3539     ;;
3540   hppa*-*-pro*)
3541     ;;
3542   hppa*-*-*)
3543     noconfigdirs="$noconfigdirs ld"
3544     ;;
3545   i960-*-*)
3546     noconfigdirs="$noconfigdirs gdb"
3547     ;;
3548   ia64*-*-elf*)
3549     # No gdb support yet.
3550     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3551     ;;
3552   ia64*-**-hpux*)
3553     # No ld support yet.
3554     noconfigdirs="$noconfigdirs libgui itcl ld"
3555     ;;
3556   ia64*-*-*vms*)
3557     # No ld support yet.
3558     noconfigdirs="$noconfigdirs libgui itcl ld"
3559     ;;
3560   i[3456789]86-w64-mingw*)
3561     ;;
3562   i[3456789]86-*-mingw*)
3563     target_configdirs="$target_configdirs target-winsup"
3564     ;;
3565   *-*-cygwin*)
3566     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3567     noconfigdirs="$noconfigdirs target-libgloss"
3568     # always build newlib if winsup directory is present.
3569     if test -d "$srcdir/winsup/cygwin"; then
3570       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3571     elif test -d "$srcdir/newlib"; then
3572       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3573     fi
3574     ;;
3575   i[3456789]86-*-pe)
3576     noconfigdirs="$noconfigdirs target-libgloss"
3577     ;;
3578   i[3456789]86-*-sco3.2v5*)
3579     # The linker does not yet know about weak symbols in COFF,
3580     # and is not configured to handle mixed ELF and COFF.
3581     noconfigdirs="$noconfigdirs ld target-libgloss"
3582     ;;
3583   i[3456789]86-*-sco*)
3584     noconfigdirs="$noconfigdirs gprof target-libgloss"
3585     ;;
3586   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3587     noconfigdirs="$noconfigdirs target-libgloss"
3588     ;;
3589   i[3456789]86-*-sysv4*)
3590     noconfigdirs="$noconfigdirs target-libgloss"
3591     ;;
3592   i[3456789]86-*-beos*)
3593     noconfigdirs="$noconfigdirs gdb"
3594     ;;
3595   i[3456789]86-*-rdos*)
3596     noconfigdirs="$noconfigdirs gdb"
3597     ;;
3598   mmix-*-*)
3599     noconfigdirs="$noconfigdirs gdb"
3600     ;;
3601   mt-*-*)
3602     noconfigdirs="$noconfigdirs sim"
3603     ;;
3604   powerpc-*-aix*)
3605     # copied from rs6000-*-* entry
3606     noconfigdirs="$noconfigdirs gprof"
3607     ;;
3608   powerpc*-*-winnt* | powerpc*-*-pe*)
3609     target_configdirs="$target_configdirs target-winsup"
3610     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3611     # always build newlib.
3612     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3613     ;;
3614     # This is temporary until we can link against shared libraries
3615   powerpcle-*-solaris*)
3616     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3617     ;;
3618   powerpc-*-beos*)
3619     noconfigdirs="$noconfigdirs gdb"
3620     ;;
3621   rs6000-*-lynxos*)
3622     noconfigdirs="$noconfigdirs gprof"
3623     ;;
3624   rs6000-*-aix*)
3625     noconfigdirs="$noconfigdirs gprof"
3626     ;;
3627   rs6000-*-*)
3628     noconfigdirs="$noconfigdirs gprof"
3629     ;;
3630   m68k-apollo-*)
3631     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3632     ;;
3633   microblaze*)
3634     noconfigdirs="$noconfigdirs gprof"
3635     ;;
3636   mips*-sde-elf*)
3637     if test x$with_newlib = xyes; then
3638       noconfigdirs="$noconfigdirs gprof"
3639     fi
3640     ;;
3641   mips*-*-irix5*)
3642     noconfigdirs="$noconfigdirs gprof target-libgloss"
3643     ;;
3644   mips*-*-irix6*)
3645     noconfigdirs="$noconfigdirs gprof target-libgloss"
3646     ;;
3647   mips*-*-bsd*)
3648     noconfigdirs="$noconfigdirs gprof target-libgloss"
3649     ;;
3650   mips*-*-linux*)
3651     ;;
3652   mips*-*-*)
3653     noconfigdirs="$noconfigdirs gprof"
3654     ;;
3655   sh-*-* | sh64-*-*)
3656     case "${target}" in
3657       sh*-*-elf)
3658          ;;
3659       *)
3660          noconfigdirs="$noconfigdirs target-libgloss" ;;
3661     esac
3662     ;;
3663   sparc-*-sunos4*)
3664     if test x${is_cross_compiler} = xno ; then
3665            use_gnu_ld=no
3666     fi
3667     ;;
3668   tic6x-*-*)
3669     noconfigdirs="$noconfigdirs sim"
3670     ;;
3671   tilepro-*-* | tilegx-*-*)
3672     noconfigdirs="$noconfigdirs sim"
3673     ;;
3674   v810-*-*)
3675     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3676     ;;
3677   vax-*-*)
3678     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679     ;;
3680 esac
3681
3682 # If we aren't building newlib, then don't build libgloss, since libgloss
3683 # depends upon some newlib header files.
3684 case "${noconfigdirs}" in
3685   *target-libgloss*) ;;
3686   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3687 esac
3688
3689 # Work in distributions that contain no compiler tools, like Autoconf.
3690 host_makefile_frag=/dev/null
3691 if test -d ${srcdir}/config ; then
3692 case "${host}" in
3693   i[3456789]86-*-msdosdjgpp*)
3694     host_makefile_frag="config/mh-djgpp"
3695     ;;
3696   *-cygwin*)
3697
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3699 $as_echo_n "checking to see if cat works as expected... " >&6; }
3700 echo a >cygwin-cat-check
3701 if test `cat cygwin-cat-check` = a ; then
3702   rm cygwin-cat-check
3703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3704 $as_echo "yes" >&6; }
3705 else
3706   rm cygwin-cat-check
3707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709   as_fn_error "The cat command does not ignore carriage return characters.
3710   Please either mount the build directory in binary mode or run the following
3711   commands before running any configure script:
3712 set -o igncr
3713 export SHELLOPTS
3714   " "$LINENO" 5
3715 fi
3716
3717     host_makefile_frag="config/mh-cygwin"
3718     ;;
3719   *-mingw*)
3720     host_makefile_frag="config/mh-mingw"
3721     ;;
3722   hppa*-hp-hpux10*)
3723     host_makefile_frag="config/mh-pa-hpux10"
3724     ;;
3725   hppa*-hp-hpux*)
3726     host_makefile_frag="config/mh-pa"
3727     ;;
3728   hppa*-*)
3729     host_makefile_frag="config/mh-pa"
3730     ;;
3731   *-*-darwin*)
3732     host_makefile_frag="config/mh-darwin"
3733     ;;
3734   powerpc-*-aix*)
3735     host_makefile_frag="config/mh-ppc-aix"
3736     ;;
3737   rs6000-*-aix*)
3738     host_makefile_frag="config/mh-ppc-aix"
3739     ;;
3740 esac
3741 fi
3742
3743 if test "${build}" != "${host}" ; then
3744   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3745   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3746   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3747   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3748   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3749   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3750   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3751   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3752   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3753   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3754   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3755   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3756   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3757 else
3758   AR_FOR_BUILD="\$(AR)"
3759   AS_FOR_BUILD="\$(AS)"
3760   CC_FOR_BUILD="\$(CC)"
3761   CXX_FOR_BUILD="\$(CXX)"
3762   GCJ_FOR_BUILD="\$(GCJ)"
3763   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3764   GOC_FOR_BUILD="\$(GOC)"
3765   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3766   LD_FOR_BUILD="\$(LD)"
3767   NM_FOR_BUILD="\$(NM)"
3768   RANLIB_FOR_BUILD="\$(RANLIB)"
3769   WINDRES_FOR_BUILD="\$(WINDRES)"
3770   WINDMC_FOR_BUILD="\$(WINDMC)"
3771 fi
3772
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 if test -n "$ac_tool_prefix"; then
3779   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3780 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if test "${ac_cv_prog_CC+set}" = set; then :
3784   $as_echo_n "(cached) " >&6
3785 else
3786   if test -n "$CC"; then
3787   ac_cv_prog_CC="$CC" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794     for ac_exec_ext in '' $ac_executable_extensions; do
3795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798     break 2
3799   fi
3800 done
3801   done
3802 IFS=$as_save_IFS
3803
3804 fi
3805 fi
3806 CC=$ac_cv_prog_CC
3807 if test -n "$CC"; then
3808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3809 $as_echo "$CC" >&6; }
3810 else
3811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 fi
3814
3815
3816 fi
3817 if test -z "$ac_cv_prog_CC"; then
3818   ac_ct_CC=$CC
3819   # Extract the first word of "gcc", so it can be a program name with args.
3820 set dummy gcc; ac_word=$2
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 $as_echo_n "checking for $ac_word... " >&6; }
3823 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3824   $as_echo_n "(cached) " >&6
3825 else
3826   if test -n "$ac_ct_CC"; then
3827   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3828 else
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3831 do
3832   IFS=$as_save_IFS
3833   test -z "$as_dir" && as_dir=.
3834     for ac_exec_ext in '' $ac_executable_extensions; do
3835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3836     ac_cv_prog_ac_ct_CC="gcc"
3837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838     break 2
3839   fi
3840 done
3841   done
3842 IFS=$as_save_IFS
3843
3844 fi
3845 fi
3846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3847 if test -n "$ac_ct_CC"; then
3848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3849 $as_echo "$ac_ct_CC" >&6; }
3850 else
3851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3853 fi
3854
3855   if test "x$ac_ct_CC" = x; then
3856     CC=""
3857   else
3858     case $cross_compiling:$ac_tool_warned in
3859 yes:)
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3862 ac_tool_warned=yes ;;
3863 esac
3864     CC=$ac_ct_CC
3865   fi
3866 else
3867   CC="$ac_cv_prog_CC"
3868 fi
3869
3870 if test -z "$CC"; then
3871           if test -n "$ac_tool_prefix"; then
3872     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3873 set dummy ${ac_tool_prefix}cc; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if test "${ac_cv_prog_CC+set}" = set; then :
3877   $as_echo_n "(cached) " >&6
3878 else
3879   if test -n "$CC"; then
3880   ac_cv_prog_CC="$CC" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885   IFS=$as_save_IFS
3886   test -z "$as_dir" && as_dir=.
3887     for ac_exec_ext in '' $ac_executable_extensions; do
3888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889     ac_cv_prog_CC="${ac_tool_prefix}cc"
3890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891     break 2
3892   fi
3893 done
3894   done
3895 IFS=$as_save_IFS
3896
3897 fi
3898 fi
3899 CC=$ac_cv_prog_CC
3900 if test -n "$CC"; then
3901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3902 $as_echo "$CC" >&6; }
3903 else
3904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3906 fi
3907
3908
3909   fi
3910 fi
3911 if test -z "$CC"; then
3912   # Extract the first word of "cc", so it can be a program name with args.
3913 set dummy cc; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if test "${ac_cv_prog_CC+set}" = set; then :
3917   $as_echo_n "(cached) " >&6
3918 else
3919   if test -n "$CC"; then
3920   ac_cv_prog_CC="$CC" # Let the user override the test.
3921 else
3922   ac_prog_rejected=no
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926   IFS=$as_save_IFS
3927   test -z "$as_dir" && as_dir=.
3928     for ac_exec_ext in '' $ac_executable_extensions; do
3929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3931        ac_prog_rejected=yes
3932        continue
3933      fi
3934     ac_cv_prog_CC="cc"
3935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936     break 2
3937   fi
3938 done
3939   done
3940 IFS=$as_save_IFS
3941
3942 if test $ac_prog_rejected = yes; then
3943   # We found a bogon in the path, so make sure we never use it.
3944   set dummy $ac_cv_prog_CC
3945   shift
3946   if test $# != 0; then
3947     # We chose a different compiler from the bogus one.
3948     # However, it has the same basename, so the bogon will be chosen
3949     # first if we set CC to just the basename; use the full file name.
3950     shift
3951     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3952   fi
3953 fi
3954 fi
3955 fi
3956 CC=$ac_cv_prog_CC
3957 if test -n "$CC"; then
3958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3959 $as_echo "$CC" >&6; }
3960 else
3961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3963 fi
3964
3965
3966 fi
3967 if test -z "$CC"; then
3968   if test -n "$ac_tool_prefix"; then
3969   for ac_prog in cl.exe
3970   do
3971     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974 $as_echo_n "checking for $ac_word... " >&6; }
3975 if test "${ac_cv_prog_CC+set}" = set; then :
3976   $as_echo_n "(cached) " >&6
3977 else
3978   if test -n "$CC"; then
3979   ac_cv_prog_CC="$CC" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3983 do
3984   IFS=$as_save_IFS
3985   test -z "$as_dir" && as_dir=.
3986     for ac_exec_ext in '' $ac_executable_extensions; do
3987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3988     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990     break 2
3991   fi
3992 done
3993   done
3994 IFS=$as_save_IFS
3995
3996 fi
3997 fi
3998 CC=$ac_cv_prog_CC
3999 if test -n "$CC"; then
4000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4001 $as_echo "$CC" >&6; }
4002 else
4003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4005 fi
4006
4007
4008     test -n "$CC" && break
4009   done
4010 fi
4011 if test -z "$CC"; then
4012   ac_ct_CC=$CC
4013   for ac_prog in cl.exe
4014 do
4015   # Extract the first word of "$ac_prog", so it can be a program name with args.
4016 set dummy $ac_prog; ac_word=$2
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 $as_echo_n "checking for $ac_word... " >&6; }
4019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4020   $as_echo_n "(cached) " >&6
4021 else
4022   if test -n "$ac_ct_CC"; then
4023   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028   IFS=$as_save_IFS
4029   test -z "$as_dir" && as_dir=.
4030     for ac_exec_ext in '' $ac_executable_extensions; do
4031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032     ac_cv_prog_ac_ct_CC="$ac_prog"
4033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034     break 2
4035   fi
4036 done
4037   done
4038 IFS=$as_save_IFS
4039
4040 fi
4041 fi
4042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4043 if test -n "$ac_ct_CC"; then
4044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4045 $as_echo "$ac_ct_CC" >&6; }
4046 else
4047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4049 fi
4050
4051
4052   test -n "$ac_ct_CC" && break
4053 done
4054
4055   if test "x$ac_ct_CC" = x; then
4056     CC=""
4057   else
4058     case $cross_compiling:$ac_tool_warned in
4059 yes:)
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4062 ac_tool_warned=yes ;;
4063 esac
4064     CC=$ac_ct_CC
4065   fi
4066 fi
4067
4068 fi
4069
4070
4071 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073 as_fn_error "no acceptable C compiler found in \$PATH
4074 See \`config.log' for more details." "$LINENO" 5; }
4075
4076 # Provide some information about the compiler.
4077 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4078 set X $ac_compile
4079 ac_compiler=$2
4080 for ac_option in --version -v -V -qversion; do
4081   { { ac_try="$ac_compiler $ac_option >&5"
4082 case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087 $as_echo "$ac_try_echo"; } >&5
4088   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4089   ac_status=$?
4090   if test -s conftest.err; then
4091     sed '10a\
4092 ... rest of stderr output deleted ...
4093          10q' conftest.err >conftest.er1
4094     cat conftest.er1 >&5
4095     rm -f conftest.er1 conftest.err
4096   fi
4097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098   test $ac_status = 0; }
4099 done
4100
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h.  */
4103
4104 int
4105 main ()
4106 {
4107
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 ac_clean_files_save=$ac_clean_files
4113 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4114 # Try to create an executable without -o first, disregard a.out.
4115 # It will help us diagnose broken compilers, and finding out an intuition
4116 # of exeext.
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4118 $as_echo_n "checking for C compiler default output file name... " >&6; }
4119 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4120
4121 # The possible output files:
4122 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4123
4124 ac_rmfiles=
4125 for ac_file in $ac_files
4126 do
4127   case $ac_file in
4128     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4129     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4130   esac
4131 done
4132 rm -f $ac_rmfiles
4133
4134 if { { ac_try="$ac_link_default"
4135 case "(($ac_try" in
4136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137   *) ac_try_echo=$ac_try;;
4138 esac
4139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140 $as_echo "$ac_try_echo"; } >&5
4141   (eval "$ac_link_default") 2>&5
4142   ac_status=$?
4143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144   test $ac_status = 0; }; then :
4145   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4146 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4147 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4148 # so that the user can short-circuit this test for compilers unknown to
4149 # Autoconf.
4150 for ac_file in $ac_files ''
4151 do
4152   test -f "$ac_file" || continue
4153   case $ac_file in
4154     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4155         ;;
4156     [ab].out )
4157         # We found the default executable, but exeext='' is most
4158         # certainly right.
4159         break;;
4160     *.* )
4161         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4162         then :; else
4163            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4164         fi
4165         # We set ac_cv_exeext here because the later test for it is not
4166         # safe: cross compilers may not add the suffix if given an `-o'
4167         # argument, so we may need to know it at that point already.
4168         # Even if this section looks crufty: it has the advantage of
4169         # actually working.
4170         break;;
4171     * )
4172         break;;
4173   esac
4174 done
4175 test "$ac_cv_exeext" = no && ac_cv_exeext=
4176
4177 else
4178   ac_file=''
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4181 $as_echo "$ac_file" >&6; }
4182 if test -z "$ac_file"; then :
4183   $as_echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4185
4186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4188 { as_fn_set_status 77
4189 as_fn_error "C compiler cannot create executables
4190 See \`config.log' for more details." "$LINENO" 5; }; }
4191 fi
4192 ac_exeext=$ac_cv_exeext
4193
4194 # Check that the compiler produces executables we can run.  If not, either
4195 # the compiler is broken, or we cross compile.
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4197 $as_echo_n "checking whether the C compiler works... " >&6; }
4198 # If not cross compiling, check that we can run a simple program.
4199 if test "$cross_compiling" != yes; then
4200   if { ac_try='./$ac_file'
4201   { { case "(($ac_try" in
4202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203   *) ac_try_echo=$ac_try;;
4204 esac
4205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4206 $as_echo "$ac_try_echo"; } >&5
4207   (eval "$ac_try") 2>&5
4208   ac_status=$?
4209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210   test $ac_status = 0; }; }; then
4211     cross_compiling=no
4212   else
4213     if test "$cross_compiling" = maybe; then
4214         cross_compiling=yes
4215     else
4216         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4218 as_fn_error "cannot run C compiled programs.
4219 If you meant to cross compile, use \`--host'.
4220 See \`config.log' for more details." "$LINENO" 5; }
4221     fi
4222   fi
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4225 $as_echo "yes" >&6; }
4226
4227 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4228 ac_clean_files=$ac_clean_files_save
4229 # Check that the compiler produces executables we can run.  If not, either
4230 # the compiler is broken, or we cross compile.
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4232 $as_echo_n "checking whether we are cross compiling... " >&6; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4234 $as_echo "$cross_compiling" >&6; }
4235
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4237 $as_echo_n "checking for suffix of executables... " >&6; }
4238 if { { ac_try="$ac_link"
4239 case "(($ac_try" in
4240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241   *) ac_try_echo=$ac_try;;
4242 esac
4243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4244 $as_echo "$ac_try_echo"; } >&5
4245   (eval "$ac_link") 2>&5
4246   ac_status=$?
4247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4248   test $ac_status = 0; }; then :
4249   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4250 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4251 # work properly (i.e., refer to `conftest.exe'), while it won't with
4252 # `rm'.
4253 for ac_file in conftest.exe conftest conftest.*; do
4254   test -f "$ac_file" || continue
4255   case $ac_file in
4256     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4257     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4258           break;;
4259     * ) break;;
4260   esac
4261 done
4262 else
4263   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4265 as_fn_error "cannot compute suffix of executables: cannot compile and link
4266 See \`config.log' for more details." "$LINENO" 5; }
4267 fi
4268 rm -f conftest$ac_cv_exeext
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4270 $as_echo "$ac_cv_exeext" >&6; }
4271
4272 rm -f conftest.$ac_ext
4273 EXEEXT=$ac_cv_exeext
4274 ac_exeext=$EXEEXT
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4276 $as_echo_n "checking for suffix of object files... " >&6; }
4277 if test "${ac_cv_objext+set}" = set; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h.  */
4282
4283 int
4284 main ()
4285 {
4286
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 rm -f conftest.o conftest.obj
4292 if { { ac_try="$ac_compile"
4293 case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299   (eval "$ac_compile") 2>&5
4300   ac_status=$?
4301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302   test $ac_status = 0; }; then :
4303   for ac_file in conftest.o conftest.obj conftest.*; do
4304   test -f "$ac_file" || continue;
4305   case $ac_file in
4306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4307     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4308        break;;
4309   esac
4310 done
4311 else
4312   $as_echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317 as_fn_error "cannot compute suffix of object files: cannot compile
4318 See \`config.log' for more details." "$LINENO" 5; }
4319 fi
4320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4323 $as_echo "$ac_cv_objext" >&6; }
4324 OBJEXT=$ac_cv_objext
4325 ac_objext=$OBJEXT
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4327 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4328 if test "${ac_cv_c_compiler_gnu+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 #ifndef __GNUC__
4338        choke me
4339 #endif
4340
4341   ;
4342   return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346   ac_compiler_gnu=yes
4347 else
4348   ac_compiler_gnu=no
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4352
4353 fi
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4355 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4356 if test $ac_compiler_gnu = yes; then
4357   GCC=yes
4358 else
4359   GCC=
4360 fi
4361 ac_test_CFLAGS=${CFLAGS+set}
4362 ac_save_CFLAGS=$CFLAGS
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4364 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4365 if test "${ac_cv_prog_cc_g+set}" = set; then :
4366   $as_echo_n "(cached) " >&6
4367 else
4368   ac_save_c_werror_flag=$ac_c_werror_flag
4369    ac_c_werror_flag=yes
4370    ac_cv_prog_cc_g=no
4371    CFLAGS="-g"
4372    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h.  */
4374
4375 int
4376 main ()
4377 {
4378
4379   ;
4380   return 0;
4381 }
4382 _ACEOF
4383 if ac_fn_c_try_compile "$LINENO"; then :
4384   ac_cv_prog_cc_g=yes
4385 else
4386   CFLAGS=""
4387       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h.  */
4389
4390 int
4391 main ()
4392 {
4393
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 if ac_fn_c_try_compile "$LINENO"; then :
4399
4400 else
4401   ac_c_werror_flag=$ac_save_c_werror_flag
4402          CFLAGS="-g"
4403          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h.  */
4405
4406 int
4407 main ()
4408 {
4409
4410   ;
4411   return 0;
4412 }
4413 _ACEOF
4414 if ac_fn_c_try_compile "$LINENO"; then :
4415   ac_cv_prog_cc_g=yes
4416 fi
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 fi
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420 fi
4421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422    ac_c_werror_flag=$ac_save_c_werror_flag
4423 fi
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4425 $as_echo "$ac_cv_prog_cc_g" >&6; }
4426 if test "$ac_test_CFLAGS" = set; then
4427   CFLAGS=$ac_save_CFLAGS
4428 elif test $ac_cv_prog_cc_g = yes; then
4429   if test "$GCC" = yes; then
4430     CFLAGS="-g -O2"
4431   else
4432     CFLAGS="-g"
4433   fi
4434 else
4435   if test "$GCC" = yes; then
4436     CFLAGS="-O2"
4437   else
4438     CFLAGS=
4439   fi
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4442 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4443 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   ac_cv_prog_cc_c89=no
4447 ac_save_CC=$CC
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h.  */
4450 #include <stdarg.h>
4451 #include <stdio.h>
4452 #include <sys/types.h>
4453 #include <sys/stat.h>
4454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4455 struct buf { int x; };
4456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4457 static char *e (p, i)
4458      char **p;
4459      int i;
4460 {
4461   return p[i];
4462 }
4463 static char *f (char * (*g) (char **, int), char **p, ...)
4464 {
4465   char *s;
4466   va_list v;
4467   va_start (v,p);
4468   s = g (p, va_arg (v,int));
4469   va_end (v);
4470   return s;
4471 }
4472
4473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4474    function prototypes and stuff, but not '\xHH' hex character constants.
4475    These don't provoke an error unfortunately, instead are silently treated
4476    as 'x'.  The following induces an error, until -std is added to get
4477    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4478    array size at least.  It's necessary to write '\x00'==0 to get something
4479    that's true only with -std.  */
4480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4481
4482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4483    inside strings and character constants.  */
4484 #define FOO(x) 'x'
4485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4486
4487 int test (int i, double x);
4488 struct s1 {int (*f) (int a);};
4489 struct s2 {int (*f) (double a);};
4490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4491 int argc;
4492 char **argv;
4493 int
4494 main ()
4495 {
4496 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4502         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4503 do
4504   CC="$ac_save_CC $ac_arg"
4505   if ac_fn_c_try_compile "$LINENO"; then :
4506   ac_cv_prog_cc_c89=$ac_arg
4507 fi
4508 rm -f core conftest.err conftest.$ac_objext
4509   test "x$ac_cv_prog_cc_c89" != "xno" && break
4510 done
4511 rm -f conftest.$ac_ext
4512 CC=$ac_save_CC
4513
4514 fi
4515 # AC_CACHE_VAL
4516 case "x$ac_cv_prog_cc_c89" in
4517   x)
4518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4519 $as_echo "none needed" >&6; } ;;
4520   xno)
4521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4522 $as_echo "unsupported" >&6; } ;;
4523   *)
4524     CC="$CC $ac_cv_prog_cc_c89"
4525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4526 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4527 esac
4528 if test "x$ac_cv_prog_cc_c89" != xno; then :
4529
4530 fi
4531
4532 ac_ext=c
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537
4538 ac_ext=cpp
4539 ac_cpp='$CXXCPP $CPPFLAGS'
4540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4543 if test -z "$CXX"; then
4544   if test -n "$CCC"; then
4545     CXX=$CCC
4546   else
4547     if test -n "$ac_tool_prefix"; then
4548   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4549   do
4550     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if test "${ac_cv_prog_CXX+set}" = set; then :
4555   $as_echo_n "(cached) " >&6
4556 else
4557   if test -n "$CXX"; then
4558   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563   IFS=$as_save_IFS
4564   test -z "$as_dir" && as_dir=.
4565     for ac_exec_ext in '' $ac_executable_extensions; do
4566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569     break 2
4570   fi
4571 done
4572   done
4573 IFS=$as_save_IFS
4574
4575 fi
4576 fi
4577 CXX=$ac_cv_prog_CXX
4578 if test -n "$CXX"; then
4579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4580 $as_echo "$CXX" >&6; }
4581 else
4582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4584 fi
4585
4586
4587     test -n "$CXX" && break
4588   done
4589 fi
4590 if test -z "$CXX"; then
4591   ac_ct_CXX=$CXX
4592   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4593 do
4594   # Extract the first word of "$ac_prog", so it can be a program name with args.
4595 set dummy $ac_prog; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4599   $as_echo_n "(cached) " >&6
4600 else
4601   if test -n "$ac_ct_CXX"; then
4602   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609     for ac_exec_ext in '' $ac_executable_extensions; do
4610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611     ac_cv_prog_ac_ct_CXX="$ac_prog"
4612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616   done
4617 IFS=$as_save_IFS
4618
4619 fi
4620 fi
4621 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4622 if test -n "$ac_ct_CXX"; then
4623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4624 $as_echo "$ac_ct_CXX" >&6; }
4625 else
4626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4628 fi
4629
4630
4631   test -n "$ac_ct_CXX" && break
4632 done
4633
4634   if test "x$ac_ct_CXX" = x; then
4635     CXX="g++"
4636   else
4637     case $cross_compiling:$ac_tool_warned in
4638 yes:)
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4641 ac_tool_warned=yes ;;
4642 esac
4643     CXX=$ac_ct_CXX
4644   fi
4645 fi
4646
4647   fi
4648 fi
4649 # Provide some information about the compiler.
4650 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4651 set X $ac_compile
4652 ac_compiler=$2
4653 for ac_option in --version -v -V -qversion; do
4654   { { ac_try="$ac_compiler $ac_option >&5"
4655 case "(($ac_try" in
4656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657   *) ac_try_echo=$ac_try;;
4658 esac
4659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4660 $as_echo "$ac_try_echo"; } >&5
4661   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4662   ac_status=$?
4663   if test -s conftest.err; then
4664     sed '10a\
4665 ... rest of stderr output deleted ...
4666          10q' conftest.err >conftest.er1
4667     cat conftest.er1 >&5
4668     rm -f conftest.er1 conftest.err
4669   fi
4670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671   test $ac_status = 0; }
4672 done
4673
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4675 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4676 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4677   $as_echo_n "(cached) " >&6
4678 else
4679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h.  */
4681
4682 int
4683 main ()
4684 {
4685 #ifndef __GNUC__
4686        choke me
4687 #endif
4688
4689   ;
4690   return 0;
4691 }
4692 _ACEOF
4693 if ac_fn_cxx_try_compile "$LINENO"; then :
4694   ac_compiler_gnu=yes
4695 else
4696   ac_compiler_gnu=no
4697 fi
4698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4700
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4703 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4704 if test $ac_compiler_gnu = yes; then
4705   GXX=yes
4706 else
4707   GXX=
4708 fi
4709 ac_test_CXXFLAGS=${CXXFLAGS+set}
4710 ac_save_CXXFLAGS=$CXXFLAGS
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4712 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4713 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4714   $as_echo_n "(cached) " >&6
4715 else
4716   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4717    ac_cxx_werror_flag=yes
4718    ac_cv_prog_cxx_g=no
4719    CXXFLAGS="-g"
4720    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h.  */
4722
4723 int
4724 main ()
4725 {
4726
4727   ;
4728   return 0;
4729 }
4730 _ACEOF
4731 if ac_fn_cxx_try_compile "$LINENO"; then :
4732   ac_cv_prog_cxx_g=yes
4733 else
4734   CXXFLAGS=""
4735       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h.  */
4737
4738 int
4739 main ()
4740 {
4741
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 if ac_fn_cxx_try_compile "$LINENO"; then :
4747
4748 else
4749   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4750          CXXFLAGS="-g"
4751          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h.  */
4753
4754 int
4755 main ()
4756 {
4757
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 if ac_fn_cxx_try_compile "$LINENO"; then :
4763   ac_cv_prog_cxx_g=yes
4764 fi
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 fi
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 fi
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4771 fi
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4773 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4774 if test "$ac_test_CXXFLAGS" = set; then
4775   CXXFLAGS=$ac_save_CXXFLAGS
4776 elif test $ac_cv_prog_cxx_g = yes; then
4777   if test "$GXX" = yes; then
4778     CXXFLAGS="-g -O2"
4779   else
4780     CXXFLAGS="-g"
4781   fi
4782 else
4783   if test "$GXX" = yes; then
4784     CXXFLAGS="-O2"
4785   else
4786     CXXFLAGS=
4787   fi
4788 fi
4789 ac_ext=c
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794
4795
4796 # We must set the default linker to the linker used by gcc for the correct
4797 # operation of libtool.  If LD is not defined and we are using gcc, try to
4798 # set the LD default to the ld used by gcc.
4799 if test -z "$LD"; then
4800   if test "$GCC" = yes; then
4801     case $build in
4802     *-*-mingw*)
4803       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4804     *)
4805       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4806     esac
4807     case $gcc_prog_ld in
4808     # Accept absolute paths.
4809     [\\/]* | [A-Za-z]:[\\/]*)
4810       LD="$gcc_prog_ld" ;;
4811     esac
4812   fi
4813 fi
4814
4815
4816
4817
4818 if test -n "$ac_tool_prefix"; then
4819   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4820 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4824   $as_echo_n "(cached) " >&6
4825 else
4826   if test -n "$GNATBIND"; then
4827   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4828 else
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4831 do
4832   IFS=$as_save_IFS
4833   test -z "$as_dir" && as_dir=.
4834     for ac_exec_ext in '' $ac_executable_extensions; do
4835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838     break 2
4839   fi
4840 done
4841   done
4842 IFS=$as_save_IFS
4843
4844 fi
4845 fi
4846 GNATBIND=$ac_cv_prog_GNATBIND
4847 if test -n "$GNATBIND"; then
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4849 $as_echo "$GNATBIND" >&6; }
4850 else
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853 fi
4854
4855
4856 fi
4857 if test -z "$ac_cv_prog_GNATBIND"; then
4858   ac_ct_GNATBIND=$GNATBIND
4859   # Extract the first word of "gnatbind", so it can be a program name with args.
4860 set dummy gnatbind; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4864   $as_echo_n "(cached) " >&6
4865 else
4866   if test -n "$ac_ct_GNATBIND"; then
4867   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874     for ac_exec_ext in '' $ac_executable_extensions; do
4875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881   done
4882 IFS=$as_save_IFS
4883
4884 fi
4885 fi
4886 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4887 if test -n "$ac_ct_GNATBIND"; then
4888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4889 $as_echo "$ac_ct_GNATBIND" >&6; }
4890 else
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894
4895   if test "x$ac_ct_GNATBIND" = x; then
4896     GNATBIND="no"
4897   else
4898     case $cross_compiling:$ac_tool_warned in
4899 yes:)
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned=yes ;;
4903 esac
4904     GNATBIND=$ac_ct_GNATBIND
4905   fi
4906 else
4907   GNATBIND="$ac_cv_prog_GNATBIND"
4908 fi
4909
4910 if test -n "$ac_tool_prefix"; then
4911   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4912 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4916   $as_echo_n "(cached) " >&6
4917 else
4918   if test -n "$GNATMAKE"; then
4919   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924   IFS=$as_save_IFS
4925   test -z "$as_dir" && as_dir=.
4926     for ac_exec_ext in '' $ac_executable_extensions; do
4927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930     break 2
4931   fi
4932 done
4933   done
4934 IFS=$as_save_IFS
4935
4936 fi
4937 fi
4938 GNATMAKE=$ac_cv_prog_GNATMAKE
4939 if test -n "$GNATMAKE"; then
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4941 $as_echo "$GNATMAKE" >&6; }
4942 else
4943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4945 fi
4946
4947
4948 fi
4949 if test -z "$ac_cv_prog_GNATMAKE"; then
4950   ac_ct_GNATMAKE=$GNATMAKE
4951   # Extract the first word of "gnatmake", so it can be a program name with args.
4952 set dummy gnatmake; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4956   $as_echo_n "(cached) " >&6
4957 else
4958   if test -n "$ac_ct_GNATMAKE"; then
4959   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964   IFS=$as_save_IFS
4965   test -z "$as_dir" && as_dir=.
4966     for ac_exec_ext in '' $ac_executable_extensions; do
4967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970     break 2
4971   fi
4972 done
4973   done
4974 IFS=$as_save_IFS
4975
4976 fi
4977 fi
4978 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4979 if test -n "$ac_ct_GNATMAKE"; then
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4981 $as_echo "$ac_ct_GNATMAKE" >&6; }
4982 else
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986
4987   if test "x$ac_ct_GNATMAKE" = x; then
4988     GNATMAKE="no"
4989   else
4990     case $cross_compiling:$ac_tool_warned in
4991 yes:)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4995 esac
4996     GNATMAKE=$ac_ct_GNATMAKE
4997   fi
4998 else
4999   GNATMAKE="$ac_cv_prog_GNATMAKE"
5000 fi
5001
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5003 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5004 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5005   $as_echo_n "(cached) " >&6
5006 else
5007   cat >conftest.adb <<EOF
5008 procedure conftest is begin null; end conftest;
5009 EOF
5010 acx_cv_cc_gcc_supports_ada=no
5011 # There is a bug in old released versions of GCC which causes the
5012 # driver to exit successfully when the appropriate language module
5013 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5014 # Therefore we must check for the error message as well as an
5015 # unsuccessful exit.
5016 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5017 # given a .adb file, but produce no object file.  So we must check
5018 # if an object file was really produced to guard against this.
5019 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5020 if test x"$errors" = x && test -f conftest.$ac_objext; then
5021   acx_cv_cc_gcc_supports_ada=yes
5022 fi
5023 rm -f conftest.*
5024 fi
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5026 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5027
5028 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5029   have_gnat=yes
5030 else
5031   have_gnat=no
5032 fi
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5035 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5036 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039    echo abfoo >t1
5040   echo cdfoo >t2
5041   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5042   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5043     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5044       :
5045     else
5046       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5047     fi
5048   fi
5049   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5050     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5051       :
5052     else
5053       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5054     fi
5055   fi
5056   rm t1 t2
5057
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5060 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5061 do_compare="$gcc_cv_prog_cmp_skip"
5062
5063
5064
5065 # Check whether --enable-bootstrap was given.
5066 if test "${enable_bootstrap+set}" = set; then :
5067   enableval=$enable_bootstrap;
5068 else
5069   enable_bootstrap=default
5070 fi
5071
5072
5073 # Issue errors and warnings for invalid/strange bootstrap combinations.
5074 if test -r $srcdir/gcc/configure; then
5075   have_compiler=yes
5076 else
5077   have_compiler=no
5078 fi
5079
5080 case "$have_compiler:$host:$target:$enable_bootstrap" in
5081   *:*:*:no) ;;
5082
5083   # Default behavior.  Enable bootstrap if we have a compiler
5084   # and we are in a native configuration.
5085   yes:$build:$build:default)
5086     enable_bootstrap=yes ;;
5087
5088   *:*:*:default)
5089     enable_bootstrap=no ;;
5090
5091   # We have a compiler and we are in a native configuration, bootstrap is ok
5092   yes:$build:$build:yes)
5093     ;;
5094
5095   # Other configurations, but we have a compiler.  Assume the user knows
5096   # what he's doing.
5097   yes:*:*:yes)
5098     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5099 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5100     ;;
5101
5102   # No compiler: if they passed --enable-bootstrap explicitly, fail
5103   no:*:*:yes)
5104     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5105
5106   # Fail if wrong command line
5107   *)
5108     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5109     ;;
5110 esac
5111
5112 # Used for setting $lt_cv_objdir
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5114 $as_echo_n "checking for objdir... " >&6; }
5115 if test "${lt_cv_objdir+set}" = set; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   rm -f .libs 2>/dev/null
5119 mkdir .libs 2>/dev/null
5120 if test -d .libs; then
5121   lt_cv_objdir=.libs
5122 else
5123   # MS-DOS does not allow filenames that begin with a dot.
5124   lt_cv_objdir=_libs
5125 fi
5126 rmdir .libs 2>/dev/null
5127 fi
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5129 $as_echo "$lt_cv_objdir" >&6; }
5130 objdir=$lt_cv_objdir
5131
5132
5133
5134
5135
5136 cat >>confdefs.h <<_ACEOF
5137 #define LT_OBJDIR "$lt_cv_objdir/"
5138 _ACEOF
5139
5140
5141
5142 # Check for GMP, MPFR and MPC
5143 gmplibs="-lmpc -lmpfr -lgmp"
5144 gmpinc=
5145 have_gmp=no
5146
5147 # Specify a location for mpc
5148 # check for this first so it ends up on the link line before mpfr.
5149
5150 # Check whether --with-mpc was given.
5151 if test "${with_mpc+set}" = set; then :
5152   withval=$with_mpc;
5153 fi
5154
5155
5156 # Check whether --with-mpc-include was given.
5157 if test "${with_mpc_include+set}" = set; then :
5158   withval=$with_mpc_include;
5159 fi
5160
5161
5162 # Check whether --with-mpc-lib was given.
5163 if test "${with_mpc_lib+set}" = set; then :
5164   withval=$with_mpc_lib;
5165 fi
5166
5167
5168 if test "x$with_mpc" != x; then
5169   gmplibs="-L$with_mpc/lib $gmplibs"
5170   gmpinc="-I$with_mpc/include $gmpinc"
5171 fi
5172 if test "x$with_mpc_include" != x; then
5173   gmpinc="-I$with_mpc_include $gmpinc"
5174 fi
5175 if test "x$with_mpc_lib" != x; then
5176   gmplibs="-L$with_mpc_lib $gmplibs"
5177 fi
5178 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5179   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5180   gmpinc='-I$$s/mpc/src '"$gmpinc"
5181   # Do not test the mpc version.  Assume that it is sufficient, since
5182   # it is in the source tree, and the library has not been built yet
5183   # but it would be included on the link line in the version check below
5184   # hence making the test fail.
5185   have_gmp=yes
5186 fi
5187
5188 # Specify a location for mpfr
5189 # check for this first so it ends up on the link line before gmp.
5190
5191 # Check whether --with-mpfr-dir was given.
5192 if test "${with_mpfr_dir+set}" = set; then :
5193   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5194 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5195 fi
5196
5197
5198
5199 # Check whether --with-mpfr was given.
5200 if test "${with_mpfr+set}" = set; then :
5201   withval=$with_mpfr;
5202 fi
5203
5204
5205 # Check whether --with-mpfr-include was given.
5206 if test "${with_mpfr_include+set}" = set; then :
5207   withval=$with_mpfr_include;
5208 fi
5209
5210
5211 # Check whether --with-mpfr-lib was given.
5212 if test "${with_mpfr_lib+set}" = set; then :
5213   withval=$with_mpfr_lib;
5214 fi
5215
5216
5217 if test "x$with_mpfr" != x; then
5218   gmplibs="-L$with_mpfr/lib $gmplibs"
5219   gmpinc="-I$with_mpfr/include $gmpinc"
5220 fi
5221 if test "x$with_mpfr_include" != x; then
5222   gmpinc="-I$with_mpfr_include $gmpinc"
5223 fi
5224 if test "x$with_mpfr_lib" != x; then
5225   gmplibs="-L$with_mpfr_lib $gmplibs"
5226 fi
5227 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5228   # MPFR v3.1.0 moved the sources into a src sub-directory.
5229   if test -d ${srcdir}/mpfr/src; then
5230     gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5231     gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5232     extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5233   else
5234     gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5235     gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5236     extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5237   fi
5238   # Do not test the mpfr version.  Assume that it is sufficient, since
5239   # it is in the source tree, and the library has not been built yet
5240   # but it would be included on the link line in the version check below
5241   # hence making the test fail.
5242   have_gmp=yes
5243 fi
5244
5245 # Specify a location for gmp
5246
5247 # Check whether --with-gmp-dir was given.
5248 if test "${with_gmp_dir+set}" = set; then :
5249   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5250 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5251 fi
5252
5253
5254
5255 # Check whether --with-gmp was given.
5256 if test "${with_gmp+set}" = set; then :
5257   withval=$with_gmp;
5258 fi
5259
5260
5261 # Check whether --with-gmp-include was given.
5262 if test "${with_gmp_include+set}" = set; then :
5263   withval=$with_gmp_include;
5264 fi
5265
5266
5267 # Check whether --with-gmp-lib was given.
5268 if test "${with_gmp_lib+set}" = set; then :
5269   withval=$with_gmp_lib;
5270 fi
5271
5272
5273
5274 if test "x$with_gmp" != x; then
5275   gmplibs="-L$with_gmp/lib $gmplibs"
5276   gmpinc="-I$with_gmp/include $gmpinc"
5277 fi
5278 if test "x$with_gmp_include" != x; then
5279   gmpinc="-I$with_gmp_include $gmpinc"
5280 fi
5281 if test "x$with_gmp_lib" != x; then
5282   gmplibs="-L$with_gmp_lib $gmplibs"
5283 fi
5284 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5285   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5286   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5287   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5288   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5289   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5290   # Do not test the gmp version.  Assume that it is sufficient, since
5291   # it is in the source tree, and the library has not been built yet
5292   # but it would be included on the link line in the version check below
5293   # hence making the test fail.
5294   have_gmp=yes
5295 fi
5296
5297 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5298   have_gmp=yes
5299   saved_CFLAGS="$CFLAGS"
5300   CFLAGS="$CFLAGS $gmpinc"
5301   # Check for the recommended and required versions of GMP.
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5303 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5304
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h.  */
5307 #include "gmp.h"
5308 int
5309 main ()
5310 {
5311
5312   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5313   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5314   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5315   choke me
5316   #endif
5317
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 if ac_fn_c_try_compile "$LINENO"; then :
5323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h.  */
5325 #include <gmp.h>
5326 int
5327 main ()
5328 {
5329
5330   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5331   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5332   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5333   choke me
5334   #endif
5335
5336   ;
5337   return 0;
5338 }
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5342 $as_echo "yes" >&6; }
5343 else
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5345 $as_echo "buggy but acceptable" >&6; }
5346 fi
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 else
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }; have_gmp=no
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353
5354   # If we have GMP, check the MPFR version.
5355   if test x"$have_gmp" = xyes; then
5356     # Check for the recommended and required versions of MPFR.
5357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5358 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5359     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h.  */
5361 #include <gmp.h>
5362     #include <mpfr.h>
5363 int
5364 main ()
5365 {
5366
5367     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5368     choke me
5369     #endif
5370
5371   ;
5372   return 0;
5373 }
5374 _ACEOF
5375 if ac_fn_c_try_compile "$LINENO"; then :
5376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h.  */
5378 #include <gmp.h>
5379     #include <mpfr.h>
5380 int
5381 main ()
5382 {
5383
5384     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5385     choke me
5386     #endif
5387
5388   ;
5389   return 0;
5390 }
5391 _ACEOF
5392 if ac_fn_c_try_compile "$LINENO"; then :
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5394 $as_echo "yes" >&6; }
5395 else
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5397 $as_echo "buggy but acceptable" >&6; }
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 else
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }; have_gmp=no
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405   fi
5406
5407   # Check for the MPC header version.
5408   if test x"$have_gmp" = xyes ; then
5409     # Check for the recommended and required versions of MPC.
5410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5411 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5412     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h.  */
5414 #include <mpc.h>
5415 int
5416 main ()
5417 {
5418
5419     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5420     choke me
5421     #endif
5422
5423   ;
5424   return 0;
5425 }
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"; then :
5428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h.  */
5430 #include <mpc.h>
5431 int
5432 main ()
5433 {
5434
5435     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5436     choke me
5437     #endif
5438
5439   ;
5440   return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5445 $as_echo "yes" >&6; }
5446 else
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5448 $as_echo "buggy but acceptable" >&6; }
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 else
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }; have_gmp=no
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456   fi
5457
5458   # Now check the MPFR library.
5459   if test x"$have_gmp" = xyes; then
5460     saved_LIBS="$LIBS"
5461     LIBS="$LIBS $gmplibs"
5462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5463 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5464     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h.  */
5466 #include <mpc.h>
5467 int
5468 main ()
5469 {
5470
5471     mpfr_t n;
5472     mpfr_t x;
5473     mpc_t c;
5474     int t;
5475     mpfr_init (n);
5476     mpfr_init (x);
5477     mpfr_atan2 (n, n, x, GMP_RNDN);
5478     mpfr_erfc (n, x, GMP_RNDN);
5479     mpfr_subnormalize (x, t, GMP_RNDN);
5480     mpfr_clear(n);
5481     mpfr_clear(x);
5482     mpc_init2 (c, 53);
5483     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5484     mpc_cosh (c, c, MPC_RNDNN);
5485     mpc_pow (c, c, c, MPC_RNDNN);
5486     mpc_acosh (c, c, MPC_RNDNN);
5487     mpc_clear (c);
5488
5489   ;
5490   return 0;
5491 }
5492 _ACEOF
5493 if ac_fn_c_try_link "$LINENO"; then :
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5495 $as_echo "yes" >&6; }
5496 else
5497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }; have_gmp=no
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext \
5501     conftest$ac_exeext conftest.$ac_ext
5502     LIBS="$saved_LIBS"
5503   fi
5504
5505   CFLAGS="$saved_CFLAGS"
5506
5507 # The library versions listed in the error message below should match
5508 # the HARD-minimums enforced above.
5509   if test x$have_gmp != xyes; then
5510     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5511 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5512 their locations.  Source code for these libraries can be found at
5513 their respective hosting sites as well as at
5514 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5515 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5516 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5517 make sure that you have installed both the libraries and the header
5518 files.  They may be located in separate packages." "$LINENO" 5
5519   fi
5520 fi
5521
5522 # Flags needed for both GMP, MPFR and/or MPC.
5523
5524
5525
5526
5527
5528
5529
5530 # Allow host libstdc++ to be specified for static linking with PPL.
5531
5532 # Check whether --with-host-libstdcxx was given.
5533 if test "${with_host_libstdcxx+set}" = set; then :
5534   withval=$with_host_libstdcxx;
5535 fi
5536
5537
5538 case $with_host_libstdcxx in
5539   no|yes)
5540     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5541     ;;
5542 esac
5543
5544 # Linker flags to use for stage1 or when not boostrapping.
5545
5546 # Check whether --with-stage1-ldflags was given.
5547 if test "${with_stage1_ldflags+set}" = set; then :
5548   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5549    stage1_ldflags=
5550  else
5551    stage1_ldflags=$withval
5552  fi
5553 else
5554   stage1_ldflags=
5555 fi
5556
5557
5558
5559 # Libraries to use for stage1 or when not bootstrapping.
5560
5561 # Check whether --with-stage1-libs was given.
5562 if test "${with_stage1_libs+set}" = set; then :
5563   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5564    stage1_libs=
5565  else
5566    stage1_libs=$withval
5567  fi
5568 else
5569   stage1_libs=$with_host_libstdcxx
5570 fi
5571
5572
5573
5574 # Libraries to use for stage2 and later builds.  This defaults to the
5575 # argument passed to --with-host-libstdcxx.
5576
5577 # Check whether --with-boot-libs was given.
5578 if test "${with_boot_libs+set}" = set; then :
5579   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5580    poststage1_libs=
5581  else
5582    poststage1_libs=$withval
5583  fi
5584 else
5585   poststage1_libs=$with_host_libstdcxx
5586 fi
5587
5588
5589
5590 # Linker flags to use for stage2 and later builds.
5591
5592 # Check whether --with-boot-ldflags was given.
5593 if test "${with_boot_ldflags+set}" = set; then :
5594   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5595    poststage1_ldflags=
5596  else
5597    poststage1_ldflags=$withval
5598  fi
5599 else
5600   poststage1_ldflags=
5601  # In stages 2 and 3, default to linking libstdc++ and libgcc
5602  # statically.  But if the user explicitly specified the libraries to
5603  # use, trust that they are doing what they want.
5604  if test "$poststage1_libs" = ""; then
5605    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5606  fi
5607 fi
5608
5609
5610
5611 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5612 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5613 # config/isl.m4
5614
5615
5616 # Check whether --with-cloog was given.
5617 if test "${with_cloog+set}" = set; then :
5618   withval=$with_cloog;
5619 fi
5620
5621
5622 # Check whether --with-isl was given.
5623 if test "${with_isl+set}" = set; then :
5624   withval=$with_isl;
5625 fi
5626
5627
5628 # Treat either --without-cloog or --without-isl as a request to disable
5629 # GRAPHITE support and skip all following checks.
5630 if test "x$with_isl" != "xno" &&
5631    test "x$with_cloog" != "xno"; then
5632   # Check for ISL
5633
5634
5635 # Check whether --with-isl-include was given.
5636 if test "${with_isl_include+set}" = set; then :
5637   withval=$with_isl_include;
5638 fi
5639
5640
5641 # Check whether --with-isl-lib was given.
5642 if test "${with_isl_lib+set}" = set; then :
5643   withval=$with_isl_lib;
5644 fi
5645
5646
5647   # Check whether --enable-isl-version-check was given.
5648 if test "${enable_isl_version_check+set}" = set; then :
5649   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5650 else
5651   ENABLE_ISL_CHECK=yes
5652 fi
5653
5654
5655   # Initialize isllibs and islinc.
5656   case $with_isl in
5657     no)
5658       isllibs=
5659       islinc=
5660       ;;
5661     "" | yes)
5662       ;;
5663     *)
5664       isllibs="-L$with_isl/lib"
5665       islinc="-I$with_isl/include"
5666       ;;
5667   esac
5668   if test "x${with_isl_include}" != x ; then
5669     islinc="-I$with_isl_include"
5670   fi
5671   if test "x${with_isl_lib}" != x; then
5672     isllibs="-L$with_isl_lib"
5673   fi
5674         if test "x${islinc}" = x && test "x${isllibs}" = x \
5675      && test -d ${srcdir}/isl; then
5676     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5677     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5678     ENABLE_ISL_CHECK=no
5679   fi
5680
5681
5682
5683   if test "${ENABLE_ISL_CHECK}" = yes ; then
5684     _isl_saved_CFLAGS=$CFLAGS
5685     _isl_saved_LDFLAGS=$LDFLAGS
5686     _isl_saved_LIBS=$LIBS
5687
5688     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5689     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5690     LIBS="${_isl_saved_LIBS} -lisl"
5691     echo $CFLAGS
5692
5693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5694 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5695 if test "${gcc_cv_isl+set}" = set; then :
5696   $as_echo_n "(cached) " >&6
5697 else
5698   if test "$cross_compiling" = yes; then :
5699   gcc_cv_isl=yes
5700 else
5701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h.  */
5703 #include <isl/version.h>
5704    #include <string.h>
5705 int
5706 main ()
5707 {
5708 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5709      return 1;
5710
5711   ;
5712   return 0;
5713 }
5714 _ACEOF
5715 if ac_fn_c_try_run "$LINENO"; then :
5716   gcc_cv_isl=yes
5717 else
5718   gcc_cv_isl=no
5719 fi
5720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5721   conftest.$ac_objext conftest.beam conftest.$ac_ext
5722 fi
5723
5724 fi
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5726 $as_echo "$gcc_cv_isl" >&6; }
5727
5728     CFLAGS=$_isl_saved_CFLAGS
5729     LDFLAGS=$_isl_saved_LDFLAGS
5730     LIBS=$_isl_saved_LIBS
5731   fi
5732
5733
5734
5735
5736
5737
5738   if test "x${with_isl}" = xno; then
5739     graphite_requested=no
5740   elif test "x${with_isl}" != x \
5741     || test "x${with_isl_include}" != x \
5742     || test "x${with_isl_lib}" != x ; then
5743     graphite_requested=yes
5744   else
5745     graphite_requested=no
5746   fi
5747
5748
5749
5750   if test "${gcc_cv_isl}" = no ; then
5751     isllibs=
5752     islinc=
5753   fi
5754
5755   if test "${graphite_requested}" = yes \
5756     && test "x${isllibs}" = x \
5757     && test "x${islinc}" = x ; then
5758
5759     as_fn_error "Unable to find a usable ISL.  See config.log for details." "$LINENO" 5
5760   fi
5761
5762
5763
5764   if test "x$gcc_cv_isl" != "xno"; then
5765     # Check for CLOOG
5766
5767
5768 # Check whether --with-cloog-include was given.
5769 if test "${with_cloog_include+set}" = set; then :
5770   withval=$with_cloog_include;
5771 fi
5772
5773
5774 # Check whether --with-cloog-lib was given.
5775 if test "${with_cloog_lib+set}" = set; then :
5776   withval=$with_cloog_lib;
5777 fi
5778
5779
5780   # Check whether --enable-cloog-version-check was given.
5781 if test "${enable_cloog_version_check+set}" = set; then :
5782   enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5783 else
5784   ENABLE_CLOOG_CHECK=yes
5785 fi
5786
5787
5788   # Initialize clooglibs and clooginc.
5789   case $with_cloog in
5790     no)
5791       clooglibs=
5792       clooginc=
5793       ;;
5794     "" | yes)
5795       ;;
5796     *)
5797       clooglibs="-L$with_cloog/lib"
5798       clooginc="-I$with_cloog/include"
5799       ;;
5800   esac
5801   if test "x${with_cloog_include}" != x ; then
5802     clooginc="-I$with_cloog_include"
5803   fi
5804   if test "x${with_cloog_lib}" != x; then
5805     clooglibs="-L$with_cloog_lib"
5806   fi
5807       if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5808      && test -d ${srcdir}/cloog; then
5809      clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5810      clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
5811   fi
5812
5813   clooginc="-DCLOOG_INT_GMP ${clooginc}"
5814   clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
5815
5816
5817
5818
5819
5820   if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5821     _cloog_saved_CFLAGS=$CFLAGS
5822     _cloog_saved_LDFLAGS=$LDFLAGS
5823
5824     CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5825     LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5826
5827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5828 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5829 if test "${gcc_cv_cloog+set}" = set; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h.  */
5834 #include "cloog/version.h"
5835 int
5836 main ()
5837 {
5838 #if CLOOG_VERSION_MAJOR != 0 \
5839     || CLOOG_VERSION_MINOR != 17 \
5840     || CLOOG_VERSION_REVISION < 0
5841     choke me
5842    #endif
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 if ac_fn_c_try_compile "$LINENO"; then :
5848   gcc_cv_cloog=yes
5849 else
5850   gcc_cv_cloog=no
5851 fi
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5855 $as_echo "$gcc_cv_cloog" >&6; }
5856
5857     CFLAGS=$_cloog_saved_CFLAGS
5858     LDFLAGS=$_cloog_saved_LDFLAGS
5859   fi
5860
5861
5862
5863
5864
5865
5866
5867   if test "x${with_cloog}" = xno; then
5868     graphite_requested=no
5869   elif test "x${with_cloog}" != x \
5870     || test "x${with_cloog_include}" != x \
5871     || test "x${with_cloog_lib}" != x ; then
5872     graphite_requested=yes
5873   else
5874     graphite_requested=no
5875   fi
5876
5877
5878
5879   if test "${gcc_cv_cloog}" = no ; then
5880     clooglibs=
5881     clooginc=
5882   fi
5883
5884   if test "${graphite_requested}" = yes \
5885     && test "x${clooglibs}" = x \
5886     && test "x${clooginc}" = x ; then
5887
5888       as_fn_error "Unable to find a usable CLooG.  See config.log for details." "$LINENO" 5
5889   fi
5890
5891
5892   fi
5893 fi
5894
5895 # If either the ISL or the CLooG check failed, disable builds of in-tree
5896 # variants of both
5897 if test "x$with_isl" = xno ||
5898    test "x$with_cloog" = xno ||
5899    test "x$gcc_cv_cloog" = xno ||
5900    test "x$gcc_cv_isl" = xno; then
5901   noconfigdirs="$noconfigdirs cloog isl"
5902   islinc=
5903   clooginc=
5904   clooglibs=
5905 fi
5906
5907
5908
5909
5910
5911
5912 # Check for LTO support.
5913 # Check whether --enable-lto was given.
5914 if test "${enable_lto+set}" = set; then :
5915   enableval=$enable_lto; enable_lto=$enableval
5916 else
5917   enable_lto=yes; default_enable_lto=yes
5918 fi
5919
5920
5921
5922
5923
5924 target_elf=no
5925 case $target in
5926   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5927   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5928   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5929     target_elf=no
5930     ;;
5931   *)
5932     target_elf=yes
5933     ;;
5934 esac
5935
5936 if test $target_elf = yes; then :
5937   # ELF platforms build the lto-plugin always.
5938   build_lto_plugin=yes
5939
5940 else
5941   if test x"$default_enable_lto" = x"yes" ; then
5942     case $target in
5943       *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
5944       # On other non-ELF platforms, LTO has yet to be validated.
5945       *) enable_lto=no ;;
5946     esac
5947   else
5948   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5949   # It would also be nice to check the binutils support, but we don't
5950   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
5951   # warn during gcc/ subconfigure; unless you're bootstrapping with
5952   # -flto it won't be needed until after installation anyway.
5953     case $target in
5954       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5955       *) if test x"$enable_lto" = x"yes"; then
5956         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5957         fi
5958       ;;
5959     esac
5960   fi
5961   # Among non-ELF, only Windows platforms support the lto-plugin so far.
5962   # Build it unless LTO was explicitly disabled.
5963   case $target in
5964     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5965     *) ;;
5966   esac
5967
5968 fi
5969
5970
5971
5972 # By default, C and C++ are the only stage 1 languages.
5973 stage1_languages=,c,
5974
5975 # Target libraries that we bootstrap.
5976 bootstrap_target_libs=,target-libgcc,
5977
5978 # Figure out what language subdirectories are present.
5979 # Look if the user specified --enable-languages="..."; if not, use
5980 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5981 # go away some day.
5982 # NB:  embedded tabs in this IF block -- do not untabify
5983 if test -d ${srcdir}/gcc; then
5984   if test x"${enable_languages+set}" != xset; then
5985     if test x"${LANGUAGES+set}" = xset; then
5986       enable_languages="${LANGUAGES}"
5987         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5988     else
5989       enable_languages=all
5990     fi
5991   else
5992     if test x"${enable_languages}" = x ||
5993        test x"${enable_languages}" = xyes;
5994        then
5995       echo configure.in: --enable-languages needs at least one language argument 1>&2
5996       exit 1
5997     fi
5998   fi
5999   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6000
6001   # 'f95' is the old name for the 'fortran' language. We issue a warning
6002   # and make the substitution.
6003   case ,${enable_languages}, in
6004     *,f95,*)
6005       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6006       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6007       ;;
6008   esac
6009
6010   # If bootstrapping, C++ must be enabled.
6011   case ",$enable_languages,:$enable_bootstrap" in
6012     *,c++,*:*) ;;
6013     *:yes)
6014       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6015         enable_languages="${enable_languages},c++"
6016       else
6017         as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6018       fi
6019       ;;
6020   esac
6021
6022   # First scan to see if an enabled language requires some other language.
6023   # We assume that a given config-lang.in will list all the language
6024   # front ends it requires, even if some are required indirectly.
6025   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6026     case ${lang_frag} in
6027       ..) ;;
6028       # The odd quoting in the next line works around
6029       # an apparent bug in bash 1.12 on linux.
6030       ${srcdir}/gcc/[*]/config-lang.in) ;;
6031       *)
6032         # From the config-lang.in, get $language, $lang_requires, and
6033         # $lang_requires_boot_languages.
6034         language=
6035         lang_requires=
6036         lang_requires_boot_languages=
6037         . ${lang_frag}
6038         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6039           case ,${enable_languages}, in
6040             *,$other,*) ;;
6041             *,all,*) ;;
6042             *,$language,*)
6043               echo " \`$other' language required by \`$language'; enabling" 1>&2
6044               enable_languages="${enable_languages},${other}"
6045               ;;
6046           esac
6047         done
6048         for other in ${lang_requires_boot_languages} ; do
6049           if test "$other" != "c"; then
6050             case ,${enable_stage1_languages}, in
6051               *,$other,*) ;;
6052               *,all,*) ;;
6053               *)
6054                 case ,${enable_languages}, in
6055                   *,$language,*)
6056                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6057                     enable_stage1_languages="$enable_stage1_languages,${other}"
6058                     ;;
6059                 esac
6060                 ;;
6061             esac
6062           fi
6063         done
6064         ;;
6065     esac
6066   done
6067
6068   new_enable_languages=,c,
6069
6070   # If LTO is enabled, add the LTO front end.
6071   extra_host_libiberty_configure_flags=
6072   if test "$enable_lto" = "yes" ; then
6073     case ,${enable_languages}, in
6074       *,lto,*) ;;
6075       *) enable_languages="${enable_languages},lto" ;;
6076     esac
6077     if test "${build_lto_plugin}" = "yes" ; then
6078       configdirs="$configdirs lto-plugin"
6079       extra_host_libiberty_configure_flags=--enable-shared
6080     fi
6081   fi
6082
6083
6084   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6085   potential_languages=,c,
6086
6087   enabled_target_libs=
6088   disabled_target_libs=
6089
6090   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6091     case ${lang_frag} in
6092       ..) ;;
6093       # The odd quoting in the next line works around
6094       # an apparent bug in bash 1.12 on linux.
6095       ${srcdir}/gcc/[*]/config-lang.in) ;;
6096       *)
6097         # From the config-lang.in, get $language, $target_libs,
6098         # $lang_dirs, $boot_language, and $build_by_default
6099         language=
6100         target_libs=
6101         lang_dirs=
6102         subdir_requires=
6103         boot_language=no
6104         build_by_default=yes
6105         . ${lang_frag}
6106         if test x${language} = x; then
6107           echo "${lang_frag} doesn't set \$language." 1>&2
6108           exit 1
6109         fi
6110
6111         if test "$language" = "c++"; then
6112           boot_language=yes
6113         fi
6114
6115         add_this_lang=no
6116         case ,${enable_languages}, in
6117           *,${language},*)
6118             # Language was explicitly selected; include it
6119             # unless it is C, which is enabled by default.
6120             if test "$language" != "c"; then
6121               add_this_lang=yes
6122             fi
6123             ;;
6124           *,all,*)
6125             # 'all' was selected, select it if it is a default language
6126             if test "$language" != "c"; then
6127               add_this_lang=${build_by_default}
6128             fi
6129             ;;
6130         esac
6131
6132         # Disable languages that need other directories if these aren't available.
6133         for i in $subdir_requires; do
6134           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6135           case ,${enable_languages}, in
6136             *,${language},*)
6137               # Specifically requested language; tell them.
6138               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6139               ;;
6140             *)
6141               # Silently disable.
6142               add_this_lang=unsupported
6143               ;;
6144           esac
6145         done
6146
6147         # Disable Ada if no preexisting GNAT is available.
6148         case ,${enable_languages},:${language}:${have_gnat} in
6149           *,${language},*:ada:no)
6150             # Specifically requested language; tell them.
6151             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6152             ;;
6153           *:ada:no)
6154             # Silently disable.
6155             add_this_lang=unsupported
6156             ;;
6157         esac
6158
6159         # Disable a language that is unsupported by the target.
6160         case " $unsupported_languages " in
6161           *" $language "*)
6162             add_this_lang=unsupported
6163             ;;
6164         esac
6165
6166         case $add_this_lang in
6167           unsupported)
6168             # Remove language-dependent dirs.
6169             disabled_target_libs="$disabled_target_libs $target_libs"
6170             noconfigdirs="$noconfigdirs $lang_dirs"
6171             ;;
6172           no)
6173             # Remove language-dependent dirs; still show language as supported.
6174             disabled_target_libs="$disabled_target_libs $target_libs"
6175             noconfigdirs="$noconfigdirs $lang_dirs"
6176             potential_languages="${potential_languages}${language},"
6177             ;;
6178           yes)
6179             new_enable_languages="${new_enable_languages}${language},"
6180             potential_languages="${potential_languages}${language},"
6181             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6182             enabled_target_libs="$enabled_target_libs $target_libs"
6183             case "${boot_language}:,$enable_stage1_languages," in
6184               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6185                 # Add to (comma-separated) list of stage 1 languages.
6186                 case ",$stage1_languages," in
6187                   *,$language,* | ,yes, | ,all,) ;;
6188                   *) stage1_languages="${stage1_languages}${language}," ;;
6189                 esac
6190                 # We need to bootstrap any supporting libraries.
6191                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6192                 ;;
6193             esac
6194             ;;
6195         esac
6196         ;;
6197     esac
6198   done
6199
6200   # Add target libraries which are only needed for disabled languages
6201   # to noconfigdirs.
6202   if test -n "$disabled_target_libs"; then
6203     for dir in $disabled_target_libs; do
6204       case " $enabled_target_libs " in
6205       *" ${dir} "*) ;;
6206       *) noconfigdirs="$noconfigdirs $dir" ;;
6207       esac
6208     done
6209   fi
6210
6211   # Check whether --enable-stage1-languages was given.
6212 if test "${enable_stage1_languages+set}" = set; then :
6213   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6214     ,no,|,,)
6215       # Set it to something that will have no effect in the loop below
6216       enable_stage1_languages=c ;;
6217     ,yes,)
6218       enable_stage1_languages=`echo $new_enable_languages | \
6219         sed -e "s/^,//" -e "s/,$//" ` ;;
6220     *,all,*)
6221       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6222         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6223   esac
6224
6225   # Add "good" languages from enable_stage1_languages to stage1_languages,
6226   # while "bad" languages go in missing_languages.  Leave no duplicates.
6227   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6228     case $potential_languages in
6229       *,$i,*)
6230         case $stage1_languages in
6231           *,$i,*) ;;
6232           *) stage1_languages="$stage1_languages$i," ;;
6233         esac ;;
6234       *)
6235         case $missing_languages in
6236           *,$i,*) ;;
6237           *) missing_languages="$missing_languages$i," ;;
6238         esac ;;
6239      esac
6240   done
6241 fi
6242
6243
6244   # Remove leading/trailing commas that were added for simplicity
6245   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6246   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6247   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6248   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6249
6250   if test "x$missing_languages" != x; then
6251     as_fn_error "
6252 The following requested languages could not be built: ${missing_languages}
6253 Supported languages are: ${potential_languages}" "$LINENO" 5
6254   fi
6255   if test "x$new_enable_languages" != "x$enable_languages"; then
6256     echo The following languages will be built: ${new_enable_languages}
6257     enable_languages="$new_enable_languages"
6258   fi
6259
6260
6261   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6262 fi
6263
6264 # Handle --disable-<component> generically.
6265 for dir in $configdirs $build_configdirs $target_configdirs ; do
6266   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6267   varname=`echo $dirname | sed -e s/+/_/g`
6268   if eval test x\${enable_${varname}} "=" xno ; then
6269     noconfigdirs="$noconfigdirs $dir"
6270   fi
6271 done
6272
6273 # Check for Boehm's garbage collector
6274 # Check whether --enable-objc-gc was given.
6275 if test "${enable_objc_gc+set}" = set; then :
6276   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6277   *,objc,*:*:yes:*target-boehm-gc*)
6278     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6279     ;;
6280 esac
6281 fi
6282
6283
6284 # Make sure we only build Boehm's garbage collector if required.
6285 case ,${enable_languages},:${enable_objc_gc} in
6286   *,objc,*:yes)
6287     # Keep target-boehm-gc if requested for Objective-C.
6288     ;;
6289   *)
6290     # Otherwise remove target-boehm-gc depending on target-libjava.
6291     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6292       noconfigdirs="$noconfigdirs target-boehm-gc"
6293     fi
6294     ;;
6295 esac
6296
6297 # Disable libitm if we're not building C++
6298 case ,${enable_languages}, in
6299   *,c++,*) ;;
6300   *)
6301     noconfigdirs="$noconfigdirs target-libitm"
6302     ;;
6303 esac
6304
6305 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6306 # $build_configdirs and $target_configdirs.
6307 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6308
6309 notsupp=""
6310 for dir in . $skipdirs $noconfigdirs ; do
6311   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6312   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6313     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6314     if test -r $srcdir/$dirname/configure ; then
6315       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6316         true
6317       else
6318         notsupp="$notsupp $dir"
6319       fi
6320     fi
6321   fi
6322   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6323     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6324     if test -r $srcdir/$dirname/configure ; then
6325       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6326         true
6327       else
6328         notsupp="$notsupp $dir"
6329       fi
6330     fi
6331   fi
6332   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6333     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6334     if test -r $srcdir/$dirname/configure ; then
6335       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6336         true
6337       else
6338         notsupp="$notsupp $dir"
6339       fi
6340     fi
6341   fi
6342 done
6343
6344 # Quietly strip out all directories which aren't configurable in this tree.
6345 # This relies on all configurable subdirectories being autoconfiscated, which
6346 # is now the case.
6347 build_configdirs_all="$build_configdirs"
6348 build_configdirs=
6349 for i in ${build_configdirs_all} ; do
6350   j=`echo $i | sed -e s/build-//g`
6351   if test -f ${srcdir}/$j/configure ; then
6352     build_configdirs="${build_configdirs} $i"
6353   fi
6354 done
6355
6356 configdirs_all="$configdirs"
6357 configdirs=
6358 for i in ${configdirs_all} ; do
6359   if test -f ${srcdir}/$i/configure ; then
6360     configdirs="${configdirs} $i"
6361   fi
6362 done
6363
6364 target_configdirs_all="$target_configdirs"
6365 target_configdirs=
6366 for i in ${target_configdirs_all} ; do
6367   j=`echo $i | sed -e s/target-//g`
6368   if test -f ${srcdir}/$j/configure ; then
6369     target_configdirs="${target_configdirs} $i"
6370   fi
6371 done
6372
6373 # Produce a warning message for the subdirs we can't configure.
6374 # This isn't especially interesting in the Cygnus tree, but in the individual
6375 # FSF releases, it's important to let people know when their machine isn't
6376 # supported by the one or two programs in a package.
6377
6378 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6379   # If $appdirs is non-empty, at least one of those directories must still
6380   # be configured, or we error out.  (E.g., if the gas release supports a
6381   # specified target in some subdirs but not the gas subdir, we shouldn't
6382   # pretend that all is well.)
6383   if test -n "$appdirs" ; then
6384     for dir in $appdirs ; do
6385       if test -r $dir/Makefile.in ; then
6386         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6387           appdirs=""
6388           break
6389         fi
6390         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6391           appdirs=""
6392           break
6393         fi
6394       fi
6395     done
6396     if test -n "$appdirs" ; then
6397       echo "*** This configuration is not supported by this package." 1>&2
6398       exit 1
6399     fi
6400   fi
6401   # Okay, some application will build, or we don't care to check.  Still
6402   # notify of subdirs not getting built.
6403   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6404   echo "    ${notsupp}" 1>&2
6405   echo "    (Any other directories should still work fine.)" 1>&2
6406 fi
6407
6408 case "$host" in
6409   *msdosdjgpp*)
6410     enable_gdbtk=no ;;
6411 esac
6412
6413 # To find our prefix, in gcc_cv_tool_prefix.
6414
6415 # The user is always right.
6416 if test "${PATH_SEPARATOR+set}" != set; then
6417   echo "#! /bin/sh" >conf$$.sh
6418   echo  "exit 0"   >>conf$$.sh
6419   chmod +x conf$$.sh
6420   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6421     PATH_SEPARATOR=';'
6422   else
6423     PATH_SEPARATOR=:
6424   fi
6425   rm -f conf$$.sh
6426 fi
6427
6428
6429
6430 if test "x$exec_prefix" = xNONE; then
6431         if test "x$prefix" = xNONE; then
6432                 gcc_cv_tool_prefix=$ac_default_prefix
6433         else
6434                 gcc_cv_tool_prefix=$prefix
6435         fi
6436 else
6437         gcc_cv_tool_prefix=$exec_prefix
6438 fi
6439
6440 # If there is no compiler in the tree, use the PATH only.  In any
6441 # case, if there is no compiler in the tree nobody should use
6442 # AS_FOR_TARGET and LD_FOR_TARGET.
6443 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6444     gcc_version=`cat $srcdir/gcc/BASE-VER`
6445     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6446     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6447     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6448     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6449     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6450     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6451 else
6452     gcc_cv_tool_dirs=
6453 fi
6454
6455 if test x$build = x$target && test -n "$md_exec_prefix"; then
6456         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6457 fi
6458
6459
6460
6461 copy_dirs=
6462
6463
6464 # Check whether --with-build-sysroot was given.
6465 if test "${with_build_sysroot+set}" = set; then :
6466   withval=$with_build_sysroot; if test x"$withval" != x ; then
6467      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6468    fi
6469 else
6470   SYSROOT_CFLAGS_FOR_TARGET=
6471 fi
6472
6473
6474
6475
6476 # Check whether --with-debug-prefix-map was given.
6477 if test "${with_debug_prefix_map+set}" = set; then :
6478   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6479      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6480      for debug_map in $withval; do
6481        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6482      done
6483    fi
6484 else
6485   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6486 fi
6487
6488
6489
6490 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6491 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6492 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6493 # We want to ensure that TARGET libraries (which we know are built with
6494 # gcc) are built with "-O2 -g", so include those options when setting
6495 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6496 if test "x$CFLAGS_FOR_TARGET" = x; then
6497   CFLAGS_FOR_TARGET=$CFLAGS
6498   case " $CFLAGS " in
6499     *" -O2 "*) ;;
6500     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6501   esac
6502   case " $CFLAGS " in
6503     *" -g "* | *" -g3 "*) ;;
6504     *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6505   esac
6506 fi
6507
6508
6509 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6510   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6511   case " $CXXFLAGS " in
6512     *" -O2 "*) ;;
6513     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6514   esac
6515   case " $CXXFLAGS " in
6516     *" -g "* | *" -g3 "*) ;;
6517     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6518   esac
6519 fi
6520
6521
6522
6523
6524 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6525 # the named directory are copied to $(tooldir)/sys-include.
6526 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6527   if test x${is_cross_compiler} = xno ; then
6528     echo 1>&2 '***' --with-headers is only supported when cross compiling
6529     exit 1
6530   fi
6531   if test x"${with_headers}" != xyes ; then
6532     x=${gcc_cv_tool_prefix}
6533     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6534   fi
6535 fi
6536
6537 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6538 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6539 # are permitted.
6540 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6541   if test x${is_cross_compiler} = xno ; then
6542     echo 1>&2 '***' --with-libs is only supported when cross compiling
6543     exit 1
6544   fi
6545   if test x"${with_libs}" != xyes ; then
6546     # Copy the libraries in reverse order, so that files in the first named
6547     # library override files in subsequent libraries.
6548     x=${gcc_cv_tool_prefix}
6549     for l in ${with_libs}; do
6550       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6551     done
6552   fi
6553 fi
6554
6555 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6556 #
6557 # This is done by determining whether or not the appropriate directory
6558 # is available, and by checking whether or not specific configurations
6559 # have requested that this magic not happen.
6560 #
6561 # The command line options always override the explicit settings in
6562 # configure.in, and the settings in configure.in override this magic.
6563 #
6564 # If the default for a toolchain is to use GNU as and ld, and you don't
6565 # want to do that, then you should use the --without-gnu-as and
6566 # --without-gnu-ld options for the configure script.  Similarly, if
6567 # the default is to use the included zlib and you don't want to do that,
6568 # you should use the --with-system-zlib option for the configure script.
6569
6570 if test x${use_gnu_as} = x &&
6571    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6572   with_gnu_as=yes
6573   extra_host_args="$extra_host_args --with-gnu-as"
6574 fi
6575
6576 if test x${use_gnu_ld} = x &&
6577    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6578   with_gnu_ld=yes
6579   extra_host_args="$extra_host_args --with-gnu-ld"
6580 fi
6581
6582 if test x${use_included_zlib} = x &&
6583    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6584   :
6585 else
6586   with_system_zlib=yes
6587   extra_host_args="$extra_host_args --with-system-zlib"
6588 fi
6589
6590 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6591 # can detect this case.
6592
6593 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6594   with_newlib=yes
6595   extra_host_args="$extra_host_args --with-newlib"
6596 fi
6597
6598 # Handle ${copy_dirs}
6599 set fnord ${copy_dirs}
6600 shift
6601 while test $# != 0 ; do
6602   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6603     :
6604   else
6605     echo Copying $1 to $2
6606
6607     # Use the install script to create the directory and all required
6608     # parent directories.
6609     if test -d $2 ; then
6610       :
6611     else
6612       echo >config.temp
6613       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6614     fi
6615
6616     # Copy the directory, assuming we have tar.
6617     # FIXME: Should we use B in the second tar?  Not all systems support it.
6618     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6619
6620     # It is the responsibility of the user to correctly adjust all
6621     # symlinks.  If somebody can figure out how to handle them correctly
6622     # here, feel free to add the code.
6623
6624     echo $1 > $2/COPIED
6625   fi
6626   shift; shift
6627 done
6628
6629 # Determine a target-dependent exec_prefix that the installed
6630 # gcc will search in.  Keep this list sorted by triplet, with
6631 # the *-*-osname triplets last.
6632 md_exec_prefix=
6633 case "${target}" in
6634   i[34567]86-pc-msdosdjgpp*)
6635     md_exec_prefix=/dev/env/DJDIR/bin
6636     ;;
6637   *-*-hpux* | \
6638   *-*-nto-qnx* | \
6639   *-*-solaris2*)
6640     md_exec_prefix=/usr/ccs/bin
6641     ;;
6642 esac
6643
6644 extra_arflags_for_target=
6645 extra_nmflags_for_target=
6646 extra_ranlibflags_for_target=
6647 target_makefile_frag=/dev/null
6648 case "${target}" in
6649   spu-*-*)
6650     target_makefile_frag="config/mt-spu"
6651     ;;
6652   mips*-sde-elf*)
6653     target_makefile_frag="config/mt-sde"
6654     ;;
6655   mipsisa*-*-elfoabi*)
6656     target_makefile_frag="config/mt-mips-elfoabi"
6657     ;;
6658   mips*-*-*linux* | mips*-*-gnu*)
6659     target_makefile_frag="config/mt-mips-gnu"
6660     ;;
6661   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6662     target_makefile_frag="config/mt-gnu"
6663     ;;
6664   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6665     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6666     # commands to handle both 32-bit and 64-bit objects.  These flags are
6667     # harmless if we're using GNU nm or ar.
6668     extra_arflags_for_target=" -X32_64"
6669     extra_nmflags_for_target=" -B -X32_64"
6670     ;;
6671 esac
6672
6673 alphaieee_frag=/dev/null
6674 case $target in
6675   alpha*-*-*)
6676     # This just makes sure to use the -mieee option to build target libs.
6677     # This should probably be set individually by each library.
6678     alphaieee_frag="config/mt-alphaieee"
6679     ;;
6680 esac
6681
6682 # If --enable-target-optspace always use -Os instead of -O2 to build
6683 # the target libraries, similarly if it is not specified, use -Os
6684 # on selected platforms.
6685 ospace_frag=/dev/null
6686 case "${enable_target_optspace}:${target}" in
6687   yes:*)
6688     ospace_frag="config/mt-ospace"
6689     ;;
6690   :d30v-*)
6691     ospace_frag="config/mt-d30v"
6692     ;;
6693   :m32r-* | :d10v-* | :fr30-*)
6694     ospace_frag="config/mt-ospace"
6695     ;;
6696   no:* | :*)
6697     ;;
6698   *)
6699     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6700     ;;
6701 esac
6702
6703 # Some systems (e.g., one of the i386-aix systems the gas testers are
6704 # using) don't handle "\$" correctly, so don't use it here.
6705 tooldir='${exec_prefix}'/${target_noncanonical}
6706 build_tooldir=${tooldir}
6707
6708 # Create a .gdbinit file which runs the one in srcdir
6709 # and tells GDB to look there for source files.
6710
6711 if test -r ${srcdir}/.gdbinit ; then
6712   case ${srcdir} in
6713     .) ;;
6714     *) cat > ./.gdbinit <<EOF
6715 # ${NO_EDIT}
6716 dir ${srcdir}
6717 dir .
6718 source ${srcdir}/.gdbinit
6719 EOF
6720     ;;
6721   esac
6722 fi
6723
6724 # Make sure that the compiler is able to generate an executable.  If it
6725 # can't, we are probably in trouble.  We don't care whether we can run the
6726 # executable--we might be using a cross compiler--we only care whether it
6727 # can be created.  At this point the main configure script has set CC.
6728 we_are_ok=no
6729 echo "int main () { return 0; }" > conftest.c
6730 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6731 if test $? = 0 ; then
6732   if test -s conftest || test -s conftest.exe ; then
6733     we_are_ok=yes
6734   fi
6735 fi
6736 case $we_are_ok in
6737   no)
6738     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6739     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6740     rm -f conftest*
6741     exit 1
6742     ;;
6743 esac
6744 rm -f conftest*
6745
6746 # Decide which environment variable is used to find dynamic libraries.
6747 case "${host}" in
6748   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6749   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6750   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6751   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6752 esac
6753
6754 # On systems where the dynamic library environment variable is PATH,
6755 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6756 # built executables to PATH.
6757 if test "$RPATH_ENVVAR" = PATH; then
6758   GCC_SHLIB_SUBDIR=/shlib
6759 else
6760   GCC_SHLIB_SUBDIR=
6761 fi
6762
6763 # Record target_configdirs and the configure arguments for target and
6764 # build configuration in Makefile.
6765 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6766 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6767
6768 # If we are building libgomp, bootstrap it.
6769 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6770   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6771 fi
6772
6773 # Determine whether gdb needs tk/tcl or not.
6774 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6775 # and in that case we want gdb to be built without tk.  Ugh!
6776 # In fact I believe gdb is the *only* package directly dependent on tk,
6777 # so we should be able to put the 'maybe's in unconditionally and
6778 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
6779 # 100% sure that that's safe though.
6780
6781 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6782 case "$enable_gdbtk" in
6783   no)
6784     GDB_TK="" ;;
6785   yes)
6786     GDB_TK="${gdb_tk}" ;;
6787   *)
6788     # Only add the dependency on gdbtk when GDBtk is part of the gdb
6789     # distro.  Eventually someone will fix this and move Insight, nee
6790     # gdbtk to a separate directory.
6791     if test -d ${srcdir}/gdb/gdbtk ; then
6792       GDB_TK="${gdb_tk}"
6793     else
6794       GDB_TK=""
6795     fi
6796     ;;
6797 esac
6798 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6799 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6800
6801 # Strip out unwanted targets.
6802
6803 # While at that, we remove Makefiles if we were started for recursive
6804 # configuration, so that the top-level Makefile reconfigures them,
6805 # like we used to do when configure itself was recursive.
6806
6807 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
6808 # but now we're fixing up the Makefile ourselves with the additional
6809 # commands passed to AC_CONFIG_FILES.  Use separate variables
6810 # extrasub-{build,host,target} not because there is any reason to split
6811 # the substitutions up that way, but only to remain below the limit of
6812 # 99 commands in a script, for HP-UX sed.
6813 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6814
6815 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6816   yes:yes:*\ gold\ *:*,c++,*) ;;
6817   yes:yes:*\ gold\ *:*)
6818     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6819     ;;
6820 esac
6821
6822 # Adjust the toplevel makefile according to whether bootstrap was selected.
6823 case $enable_bootstrap in
6824   yes)
6825     bootstrap_suffix=bootstrap
6826     BUILD_CONFIG=bootstrap-debug
6827     ;;
6828   no)
6829     bootstrap_suffix=no-bootstrap
6830     BUILD_CONFIG=
6831     ;;
6832 esac
6833
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6835 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6836
6837
6838 # Check whether --with-build-config was given.
6839 if test "${with_build_config+set}" = set; then :
6840   withval=$with_build_config; case $with_build_config in
6841    yes) with_build_config= ;;
6842    no) with_build_config= BUILD_CONFIG= ;;
6843    esac
6844 fi
6845
6846
6847 if test "x${with_build_config}" != x; then
6848   BUILD_CONFIG=$with_build_config
6849 else
6850   case $BUILD_CONFIG in
6851   bootstrap-debug)
6852     if echo "int f (void) { return 0; }" > conftest.c &&
6853        ${CC} -c conftest.c &&
6854        mv conftest.o conftest.o.g0 &&
6855        ${CC} -c -g conftest.c &&
6856        mv conftest.o conftest.o.g &&
6857        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6858       :
6859     else
6860       BUILD_CONFIG=
6861     fi
6862     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6863     ;;
6864   esac
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6867 $as_echo "$BUILD_CONFIG" >&6; }
6868
6869
6870 extrasub_build=
6871 for module in ${build_configdirs} ; do
6872   if test -z "${no_recursion}" \
6873      && test -f ${build_subdir}/${module}/Makefile; then
6874     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6875     rm -f ${build_subdir}/${module}/Makefile
6876   fi
6877   extrasub_build="$extrasub_build
6878 /^@if build-$module\$/d
6879 /^@endif build-$module\$/d
6880 /^@if build-$module-$bootstrap_suffix\$/d
6881 /^@endif build-$module-$bootstrap_suffix\$/d"
6882 done
6883 extrasub_host=
6884 for module in ${configdirs} ; do
6885   if test -z "${no_recursion}"; then
6886     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6887       if test -f ${file}; then
6888         echo 1>&2 "*** removing ${file} to force reconfigure"
6889         rm -f ${file}
6890       fi
6891     done
6892   fi
6893   extrasub_host="$extrasub_host
6894 /^@if $module\$/d
6895 /^@endif $module\$/d
6896 /^@if $module-$bootstrap_suffix\$/d
6897 /^@endif $module-$bootstrap_suffix\$/d"
6898 done
6899 extrasub_target=
6900 for module in ${target_configdirs} ; do
6901   if test -z "${no_recursion}" \
6902      && test -f ${target_subdir}/${module}/Makefile; then
6903     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6904     rm -f ${target_subdir}/${module}/Makefile
6905   fi
6906
6907   # We only bootstrap target libraries listed in bootstrap_target_libs.
6908   case $bootstrap_target_libs in
6909     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6910     *) target_bootstrap_suffix=no-bootstrap ;;
6911   esac
6912
6913   extrasub_target="$extrasub_target
6914 /^@if target-$module\$/d
6915 /^@endif target-$module\$/d
6916 /^@if target-$module-$target_bootstrap_suffix\$/d
6917 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6918 done
6919
6920 # Do the final fixup along with target modules.
6921 extrasub_target="$extrasub_target
6922 /^@if /,/^@endif /d"
6923
6924 # Create the serialization dependencies.  This uses a temporary file.
6925
6926 # Check whether --enable-serial-configure was given.
6927 if test "${enable_serial_configure+set}" = set; then :
6928   enableval=$enable_serial_configure;
6929 fi
6930
6931
6932 case ${enable_serial_configure} in
6933   yes)
6934     enable_serial_build_configure=yes
6935     enable_serial_host_configure=yes
6936     enable_serial_target_configure=yes
6937     ;;
6938 esac
6939
6940 # These force 'configure's to be done one at a time, to avoid problems
6941 # with contention over a shared config.cache.
6942 rm -f serdep.tmp
6943 echo '# serdep.tmp' > serdep.tmp
6944 olditem=
6945 test "x${enable_serial_build_configure}" = xyes &&
6946 for item in ${build_configdirs} ; do
6947   case ${olditem} in
6948     "") ;;
6949     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6950   esac
6951   olditem=${item}
6952 done
6953 olditem=
6954 test "x${enable_serial_host_configure}" = xyes &&
6955 for item in ${configdirs} ; do
6956   case ${olditem} in
6957     "") ;;
6958     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6959   esac
6960   olditem=${item}
6961 done
6962 olditem=
6963 test "x${enable_serial_target_configure}" = xyes &&
6964 for item in ${target_configdirs} ; do
6965   case ${olditem} in
6966     "") ;;
6967     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6968   esac
6969   olditem=${item}
6970 done
6971 serialization_dependencies=serdep.tmp
6972
6973
6974 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
6975 # target, nonopt, and variable assignments.  These are the ones we
6976 # might not want to pass down to subconfigures.  The exception being
6977 # --cache-file=/dev/null, which is used to turn off the use of cache
6978 # files altogether, and which should be passed on to subconfigures.
6979 # Also strip program-prefix, program-suffix, and program-transform-name,
6980 # so that we can pass down a consistent program-transform-name.
6981 baseargs=
6982 tbaseargs=
6983 keep_next=no
6984 skip_next=no
6985 eval "set -- $ac_configure_args"
6986 for ac_arg
6987 do
6988   if test X"$skip_next" = X"yes"; then
6989     skip_next=no
6990     continue
6991   fi
6992   if test X"$keep_next" = X"yes"; then
6993     case $ac_arg in
6994       *\'*)
6995         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6996     esac
6997     baseargs="$baseargs '$ac_arg'"
6998     tbaseargs="$tbaseargs '$ac_arg'"
6999     keep_next=no
7000     continue
7001   fi
7002
7003   # Handle separated arguments.  Based on the logic generated by
7004   # autoconf 2.59.
7005   case $ac_arg in
7006     *=* | --config-cache | -C | -disable-* | --disable-* \
7007       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7008       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7009       | -with-* | --with-* | -without-* | --without-* | --x)
7010       separate_arg=no
7011       ;;
7012     -*)
7013       separate_arg=yes
7014       ;;
7015     *)
7016       separate_arg=no
7017       ;;
7018   esac
7019
7020   skip_targ=no
7021   case $ac_arg in
7022
7023   --with-* | --without-*)
7024     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7025
7026     case $libopt in
7027     *[-_]include)
7028       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7029       ;;
7030     *[-_]lib)
7031       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7032       ;;
7033     *)
7034       lib=$libopt
7035       ;;
7036     esac
7037
7038
7039     case $lib in
7040     mpc | mpfr | gmp | cloog)
7041       # If we're processing --with-$lib, --with-$lib-include or
7042       # --with-$lib-lib, for one of the libs above, and target is
7043       # different from host, don't pass the current argument to any
7044       # target library's configure.
7045       if test x$is_cross_compiler = xyes; then
7046         skip_targ=yes
7047       fi
7048       ;;
7049     esac
7050     ;;
7051   esac
7052
7053   case "$ac_arg" in
7054     --cache-file=/dev/null | \
7055     -cache-file=/dev/null )
7056       # Handled here to avoid the test to skip args below.
7057       baseargs="$baseargs '$ac_arg'"
7058       tbaseargs="$tbaseargs '$ac_arg'"
7059       # Assert: $separate_arg should always be no.
7060       keep_next=$separate_arg
7061       ;;
7062     --no*)
7063       continue
7064       ;;
7065     --c* | \
7066     --sr* | \
7067     --ho* | \
7068     --bu* | \
7069     --t* | \
7070     --program-* | \
7071     -cache_file* | \
7072     -srcdir* | \
7073     -host* | \
7074     -build* | \
7075     -target* | \
7076     -program-prefix* | \
7077     -program-suffix* | \
7078     -program-transform-name* )
7079       skip_next=$separate_arg
7080       continue
7081       ;;
7082     -*)
7083       # An option.  Add it.
7084       case $ac_arg in
7085         *\'*)
7086           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7087       esac
7088       baseargs="$baseargs '$ac_arg'"
7089       if test X"$skip_targ" = Xno; then
7090         tbaseargs="$tbaseargs '$ac_arg'"
7091       fi
7092       keep_next=$separate_arg
7093       ;;
7094     *)
7095       # Either a variable assignment, or a nonopt (triplet).  Don't
7096       # pass it down; let the Makefile handle this.
7097       continue
7098       ;;
7099   esac
7100 done
7101 # Remove the initial space we just introduced and, as these will be
7102 # expanded by make, quote '$'.
7103 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7104
7105 # Add in --program-transform-name, after --program-prefix and
7106 # --program-suffix have been applied to it.  Autoconf has already
7107 # doubled dollar signs and backslashes in program_transform_name; we want
7108 # the backslashes un-doubled, and then the entire thing wrapped in single
7109 # quotes, because this will be expanded first by make and then by the shell.
7110 # Also, because we want to override the logic in subdir configure scripts to
7111 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7112 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7113 ${program_transform_name}
7114 EOF_SED
7115 gcc_transform_name=`cat conftestsed.out`
7116 rm -f conftestsed.out
7117 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7118 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7119 if test "$silent" = yes; then
7120   baseargs="$baseargs --silent"
7121   tbaseargs="$tbaseargs --silent"
7122 fi
7123 baseargs="$baseargs --disable-option-checking"
7124 tbaseargs="$tbaseargs --disable-option-checking"
7125
7126 # Record and document user additions to sub configure arguments.
7127
7128
7129
7130
7131 # For the build-side libraries, we just need to pretend we're native,
7132 # and not use the same cache file.  Multilibs are neither needed nor
7133 # desired.
7134 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7135
7136 # For host modules, accept cache file option, or specification as blank.
7137 case "${cache_file}" in
7138 "") # empty
7139   cache_file_option="" ;;
7140 /* | [A-Za-z]:[\\/]* ) # absolute path
7141   cache_file_option="--cache-file=${cache_file}" ;;
7142 *) # relative path
7143   cache_file_option="--cache-file=../${cache_file}" ;;
7144 esac
7145
7146 # Host dirs don't like to share a cache file either, horribly enough.
7147 # This seems to be due to autoconf 2.5x stupidity.
7148 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7149
7150 target_configargs="$target_configargs ${tbaseargs}"
7151
7152 # Passing a --with-cross-host argument lets the target libraries know
7153 # whether they are being built with a cross-compiler or being built
7154 # native.  However, it would be better to use other mechanisms to make the
7155 # sorts of decisions they want to make on this basis.  Please consider
7156 # this option to be deprecated.  FIXME.
7157 if test x${is_cross_compiler} = xyes ; then
7158   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7159 fi
7160
7161 # Default to --enable-multilib.
7162 if test x${enable_multilib} = x ; then
7163   target_configargs="--enable-multilib ${target_configargs}"
7164 fi
7165
7166 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7167 # changed from the earlier setting of with_newlib.
7168 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7169   target_configargs="--with-newlib ${target_configargs}"
7170 fi
7171
7172 # Different target subdirs use different values of certain variables
7173 # (notably CXX).  Worse, multilibs use *lots* of different values.
7174 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7175 # it doesn't automatically accept command-line overrides of them.
7176 # This means it's not safe for target subdirs to share a cache file,
7177 # which is disgusting, but there you have it.  Hopefully this can be
7178 # fixed in future.  It's still worthwhile to use a cache file for each
7179 # directory.  I think.
7180
7181 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7182 # We need to pass --target, as newer autoconf's requires consistency
7183 # for target_alias and gcc doesn't manage it consistently.
7184 target_configargs="--cache-file=./config.cache ${target_configargs}"
7185
7186 FLAGS_FOR_TARGET=
7187 case " $target_configdirs " in
7188  *" newlib "*)
7189   case " $target_configargs " in
7190   *" --with-newlib "*)
7191    case "$target" in
7192     *-cygwin*)
7193       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'
7194       ;;
7195    esac
7196
7197    # If we're not building GCC, don't discard standard headers.
7198    if test -d ${srcdir}/gcc; then
7199      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7200
7201      if test "${build}" != "${host}"; then
7202        # On Canadian crosses, CC_FOR_TARGET will have already been set
7203        # by `configure', so we won't have an opportunity to add -Bgcc/
7204        # to it.  This is right: we don't want to search that directory
7205        # for binaries, but we want the header files in there, so add
7206        # them explicitly.
7207        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7208
7209        # Someone might think of using the pre-installed headers on
7210        # Canadian crosses, in case the installed compiler is not fully
7211        # compatible with the compiler being built.  In this case, it
7212        # would be better to flag an error than risking having
7213        # incompatible object files being constructed.  We can't
7214        # guarantee that an error will be flagged, but let's hope the
7215        # compiler will do it, when presented with incompatible header
7216        # files.
7217      fi
7218    fi
7219
7220    case "${target}-${is_cross_compiler}" in
7221    i[3456789]86-*-linux*-no)
7222       # Here host == target, so we don't need to build gcc,
7223       # so we don't want to discard standard headers.
7224       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7225       ;;
7226    *)
7227       # If we're building newlib, use its generic headers last, but search
7228       # for any libc-related directories first (so make it the last -B
7229       # switch).
7230       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7231
7232       # If we're building libgloss, find the startup file, simulator library
7233       # and linker script.
7234       case " $target_configdirs " in
7235         *" libgloss "*)
7236         # Look for startup file, simulator library and maybe linker script.
7237         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7238         # Look for libnosys.a in case the target needs it.
7239         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7240         # Most targets have the linker script in the source directory.
7241         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7242         ;;
7243       esac
7244       ;;
7245    esac
7246    ;;
7247   esac
7248   ;;
7249 esac
7250
7251 case "$target" in
7252   x86_64-*mingw* | *-w64-mingw*)
7253   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7254   # however, use a symlink named 'mingw' in ${prefix} .
7255     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7256     ;;
7257   *-mingw*)
7258   # MinGW can't be handled as Cygwin above since it does not use newlib.
7259     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'
7260     ;;
7261 esac
7262
7263 # Allow the user to override the flags for
7264 # our build compiler if desired.
7265 if test x"${build}" = x"${host}" ; then
7266   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7267   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7268   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7269 fi
7270
7271 # On Canadian crosses, we'll be searching the right directories for
7272 # the previously-installed cross compiler, so don't bother to add
7273 # flags for directories within the install tree of the compiler
7274 # being built; programs in there won't even run.
7275 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7276   # Search for pre-installed headers if nothing else fits.
7277   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7278 fi
7279
7280 if test "x${use_gnu_ld}" = x &&
7281    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7282   # Arrange for us to find uninstalled linker scripts.
7283   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7284 fi
7285
7286 # Search for other target-specific linker scripts and such.
7287 case "${target}" in
7288   mep*)
7289     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7290     ;;
7291 esac
7292
7293 # Makefile fragments.
7294 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7295 do
7296   eval fragval=\$$frag
7297   if test $fragval != /dev/null; then
7298     eval $frag=${srcdir}/$fragval
7299   fi
7300 done
7301
7302
7303
7304
7305
7306 # Miscellanea: directories, flags, etc.
7307
7308
7309
7310
7311
7312
7313
7314
7315 # Build module lists & subconfigure args.
7316
7317
7318
7319 # Host module lists & subconfigure args.
7320
7321
7322
7323
7324 # Target module lists & subconfigure args.
7325
7326
7327
7328 # Build tools.
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346 # Generate default definitions for YACC, M4, LEX and other programs that run
7347 # on the build machine.  These are used if the Makefile can't locate these
7348 # programs in objdir.
7349 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7350
7351 for ac_prog in 'bison -y' byacc yacc
7352 do
7353   # Extract the first word of "$ac_prog", so it can be a program name with args.
7354 set dummy $ac_prog; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if test "${ac_cv_prog_YACC+set}" = set; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360   if test -n "$YACC"; then
7361   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366   IFS=$as_save_IFS
7367   test -z "$as_dir" && as_dir=.
7368     for ac_exec_ext in '' $ac_executable_extensions; do
7369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370     ac_cv_prog_YACC="$ac_prog"
7371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372     break 2
7373   fi
7374 done
7375   done
7376 IFS=$as_save_IFS
7377
7378 fi
7379 fi
7380 YACC=$ac_cv_prog_YACC
7381 if test -n "$YACC"; then
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7383 $as_echo "$YACC" >&6; }
7384 else
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7387 fi
7388
7389
7390   test -n "$YACC" && break
7391 done
7392 test -n "$YACC" || YACC="$MISSING bison -y"
7393
7394 case " $build_configdirs " in
7395   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7396 esac
7397
7398 for ac_prog in bison
7399 do
7400   # Extract the first word of "$ac_prog", so it can be a program name with args.
7401 set dummy $ac_prog; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if test "${ac_cv_prog_BISON+set}" = set; then :
7405   $as_echo_n "(cached) " >&6
7406 else
7407   if test -n "$BISON"; then
7408   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7412 do
7413   IFS=$as_save_IFS
7414   test -z "$as_dir" && as_dir=.
7415     for ac_exec_ext in '' $ac_executable_extensions; do
7416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417     ac_cv_prog_BISON="$ac_prog"
7418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419     break 2
7420   fi
7421 done
7422   done
7423 IFS=$as_save_IFS
7424
7425 fi
7426 fi
7427 BISON=$ac_cv_prog_BISON
7428 if test -n "$BISON"; then
7429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7430 $as_echo "$BISON" >&6; }
7431 else
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7434 fi
7435
7436
7437   test -n "$BISON" && break
7438 done
7439 test -n "$BISON" || BISON="$MISSING bison"
7440
7441 case " $build_configdirs " in
7442   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7443 esac
7444
7445 for ac_prog in gm4 gnum4 m4
7446 do
7447   # Extract the first word of "$ac_prog", so it can be a program name with args.
7448 set dummy $ac_prog; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if test "${ac_cv_prog_M4+set}" = set; then :
7452   $as_echo_n "(cached) " >&6
7453 else
7454   if test -n "$M4"; then
7455   ac_cv_prog_M4="$M4" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462     for ac_exec_ext in '' $ac_executable_extensions; do
7463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464     ac_cv_prog_M4="$ac_prog"
7465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469   done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 M4=$ac_cv_prog_M4
7475 if test -n "$M4"; then
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7477 $as_echo "$M4" >&6; }
7478 else
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483
7484   test -n "$M4" && break
7485 done
7486 test -n "$M4" || M4="$MISSING m4"
7487
7488 case " $build_configdirs " in
7489   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7490 esac
7491
7492 for ac_prog in flex lex
7493 do
7494   # Extract the first word of "$ac_prog", so it can be a program name with args.
7495 set dummy $ac_prog; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if test "${ac_cv_prog_LEX+set}" = set; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   if test -n "$LEX"; then
7502   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509     for ac_exec_ext in '' $ac_executable_extensions; do
7510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511     ac_cv_prog_LEX="$ac_prog"
7512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516   done
7517 IFS=$as_save_IFS
7518
7519 fi
7520 fi
7521 LEX=$ac_cv_prog_LEX
7522 if test -n "$LEX"; then
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7524 $as_echo "$LEX" >&6; }
7525 else
7526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529
7530
7531   test -n "$LEX" && break
7532 done
7533 test -n "$LEX" || LEX="$MISSING flex"
7534
7535 case " $build_configdirs " in
7536   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7537   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7538 esac
7539
7540 for ac_prog in flex
7541 do
7542   # Extract the first word of "$ac_prog", so it can be a program name with args.
7543 set dummy $ac_prog; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if test "${ac_cv_prog_FLEX+set}" = set; then :
7547   $as_echo_n "(cached) " >&6
7548 else
7549   if test -n "$FLEX"; then
7550   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557     for ac_exec_ext in '' $ac_executable_extensions; do
7558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7559     ac_cv_prog_FLEX="$ac_prog"
7560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564   done
7565 IFS=$as_save_IFS
7566
7567 fi
7568 fi
7569 FLEX=$ac_cv_prog_FLEX
7570 if test -n "$FLEX"; then
7571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7572 $as_echo "$FLEX" >&6; }
7573 else
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7576 fi
7577
7578
7579   test -n "$FLEX" && break
7580 done
7581 test -n "$FLEX" || FLEX="$MISSING flex"
7582
7583 case " $build_configdirs " in
7584   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7585 esac
7586
7587 for ac_prog in makeinfo
7588 do
7589   # Extract the first word of "$ac_prog", so it can be a program name with args.
7590 set dummy $ac_prog; ac_word=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7594   $as_echo_n "(cached) " >&6
7595 else
7596   if test -n "$MAKEINFO"; then
7597   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602   IFS=$as_save_IFS
7603   test -z "$as_dir" && as_dir=.
7604     for ac_exec_ext in '' $ac_executable_extensions; do
7605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606     ac_cv_prog_MAKEINFO="$ac_prog"
7607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608     break 2
7609   fi
7610 done
7611   done
7612 IFS=$as_save_IFS
7613
7614 fi
7615 fi
7616 MAKEINFO=$ac_cv_prog_MAKEINFO
7617 if test -n "$MAKEINFO"; then
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7619 $as_echo "$MAKEINFO" >&6; }
7620 else
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7623 fi
7624
7625
7626   test -n "$MAKEINFO" && break
7627 done
7628 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7629
7630 case " $build_configdirs " in
7631   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7632   *)
7633
7634     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7635     # higher, else we use the "missing" dummy.
7636     if ${MAKEINFO} --version \
7637        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7638       :
7639     else
7640       MAKEINFO="$MISSING makeinfo"
7641     fi
7642     ;;
7643
7644 esac
7645
7646 # FIXME: expect and dejagnu may become build tools?
7647
7648 for ac_prog in expect
7649 do
7650   # Extract the first word of "$ac_prog", so it can be a program name with args.
7651 set dummy $ac_prog; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7655   $as_echo_n "(cached) " >&6
7656 else
7657   if test -n "$EXPECT"; then
7658   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7662 do
7663   IFS=$as_save_IFS
7664   test -z "$as_dir" && as_dir=.
7665     for ac_exec_ext in '' $ac_executable_extensions; do
7666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667     ac_cv_prog_EXPECT="$ac_prog"
7668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669     break 2
7670   fi
7671 done
7672   done
7673 IFS=$as_save_IFS
7674
7675 fi
7676 fi
7677 EXPECT=$ac_cv_prog_EXPECT
7678 if test -n "$EXPECT"; then
7679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7680 $as_echo "$EXPECT" >&6; }
7681 else
7682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7684 fi
7685
7686
7687   test -n "$EXPECT" && break
7688 done
7689 test -n "$EXPECT" || EXPECT="expect"
7690
7691 case " $configdirs " in
7692   *" expect "*)
7693     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7694     ;;
7695 esac
7696
7697 for ac_prog in runtest
7698 do
7699   # Extract the first word of "$ac_prog", so it can be a program name with args.
7700 set dummy $ac_prog; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7704   $as_echo_n "(cached) " >&6
7705 else
7706   if test -n "$RUNTEST"; then
7707   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712   IFS=$as_save_IFS
7713   test -z "$as_dir" && as_dir=.
7714     for ac_exec_ext in '' $ac_executable_extensions; do
7715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716     ac_cv_prog_RUNTEST="$ac_prog"
7717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721   done
7722 IFS=$as_save_IFS
7723
7724 fi
7725 fi
7726 RUNTEST=$ac_cv_prog_RUNTEST
7727 if test -n "$RUNTEST"; then
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7729 $as_echo "$RUNTEST" >&6; }
7730 else
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 fi
7734
7735
7736   test -n "$RUNTEST" && break
7737 done
7738 test -n "$RUNTEST" || RUNTEST="runtest"
7739
7740 case " $configdirs " in
7741   *" dejagnu "*)
7742     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7743     ;;
7744 esac
7745
7746
7747 # Host tools.
7748 ncn_tool_prefix=
7749 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7750 ncn_target_tool_prefix=
7751 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7752
7753
7754
7755 if test -n "$AR"; then
7756   ac_cv_prog_AR=$AR
7757 elif test -n "$ac_cv_prog_AR"; then
7758   AR=$ac_cv_prog_AR
7759 fi
7760
7761 if test -n "$ac_cv_prog_AR"; then
7762   for ncn_progname in ar; do
7763     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7764 set dummy ${ncn_progname}; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if test "${ac_cv_prog_AR+set}" = set; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   if test -n "$AR"; then
7771   ac_cv_prog_AR="$AR" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776   IFS=$as_save_IFS
7777   test -z "$as_dir" && as_dir=.
7778     for ac_exec_ext in '' $ac_executable_extensions; do
7779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7780     ac_cv_prog_AR="${ncn_progname}"
7781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782     break 2
7783   fi
7784 done
7785   done
7786 IFS=$as_save_IFS
7787
7788 fi
7789 fi
7790 AR=$ac_cv_prog_AR
7791 if test -n "$AR"; then
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7793 $as_echo "$AR" >&6; }
7794 else
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799
7800   done
7801 fi
7802
7803 for ncn_progname in ar; do
7804   if test -n "$ncn_tool_prefix"; then
7805     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7806 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if test "${ac_cv_prog_AR+set}" = set; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812   if test -n "$AR"; then
7813   ac_cv_prog_AR="$AR" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818   IFS=$as_save_IFS
7819   test -z "$as_dir" && as_dir=.
7820     for ac_exec_ext in '' $ac_executable_extensions; do
7821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824     break 2
7825   fi
7826 done
7827   done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 AR=$ac_cv_prog_AR
7833 if test -n "$AR"; then
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7835 $as_echo "$AR" >&6; }
7836 else
7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841
7842   fi
7843   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7844     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7845 set dummy ${ncn_progname}; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if test "${ac_cv_prog_AR+set}" = set; then :
7849   $as_echo_n "(cached) " >&6
7850 else
7851   if test -n "$AR"; then
7852   ac_cv_prog_AR="$AR" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857   IFS=$as_save_IFS
7858   test -z "$as_dir" && as_dir=.
7859     for ac_exec_ext in '' $ac_executable_extensions; do
7860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861     ac_cv_prog_AR="${ncn_progname}"
7862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863     break 2
7864   fi
7865 done
7866   done
7867 IFS=$as_save_IFS
7868
7869 fi
7870 fi
7871 AR=$ac_cv_prog_AR
7872 if test -n "$AR"; then
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7874 $as_echo "$AR" >&6; }
7875 else
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880
7881   fi
7882   test -n "$ac_cv_prog_AR" && break
7883 done
7884
7885 if test -z "$ac_cv_prog_AR" ; then
7886   set dummy ar
7887   if test $build = $host ; then
7888     AR="$2"
7889   else
7890     AR="${ncn_tool_prefix}$2"
7891   fi
7892 fi
7893
7894
7895
7896 if test -n "$AS"; then
7897   ac_cv_prog_AS=$AS
7898 elif test -n "$ac_cv_prog_AS"; then
7899   AS=$ac_cv_prog_AS
7900 fi
7901
7902 if test -n "$ac_cv_prog_AS"; then
7903   for ncn_progname in as; do
7904     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7905 set dummy ${ncn_progname}; ac_word=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if test "${ac_cv_prog_AS+set}" = set; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   if test -n "$AS"; then
7912   ac_cv_prog_AS="$AS" # Let the user override the test.
7913 else
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7916 do
7917   IFS=$as_save_IFS
7918   test -z "$as_dir" && as_dir=.
7919     for ac_exec_ext in '' $ac_executable_extensions; do
7920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7921     ac_cv_prog_AS="${ncn_progname}"
7922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923     break 2
7924   fi
7925 done
7926   done
7927 IFS=$as_save_IFS
7928
7929 fi
7930 fi
7931 AS=$ac_cv_prog_AS
7932 if test -n "$AS"; then
7933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7934 $as_echo "$AS" >&6; }
7935 else
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7938 fi
7939
7940
7941   done
7942 fi
7943
7944 for ncn_progname in as; do
7945   if test -n "$ncn_tool_prefix"; then
7946     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7947 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if test "${ac_cv_prog_AS+set}" = set; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   if test -n "$AS"; then
7954   ac_cv_prog_AS="$AS" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961     for ac_exec_ext in '' $ac_executable_extensions; do
7962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968   done
7969 IFS=$as_save_IFS
7970
7971 fi
7972 fi
7973 AS=$ac_cv_prog_AS
7974 if test -n "$AS"; then
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7976 $as_echo "$AS" >&6; }
7977 else
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982
7983   fi
7984   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7985     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7986 set dummy ${ncn_progname}; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if test "${ac_cv_prog_AS+set}" = set; then :
7990   $as_echo_n "(cached) " >&6
7991 else
7992   if test -n "$AS"; then
7993   ac_cv_prog_AS="$AS" # Let the user override the test.
7994 else
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998   IFS=$as_save_IFS
7999   test -z "$as_dir" && as_dir=.
8000     for ac_exec_ext in '' $ac_executable_extensions; do
8001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8002     ac_cv_prog_AS="${ncn_progname}"
8003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004     break 2
8005   fi
8006 done
8007   done
8008 IFS=$as_save_IFS
8009
8010 fi
8011 fi
8012 AS=$ac_cv_prog_AS
8013 if test -n "$AS"; then
8014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8015 $as_echo "$AS" >&6; }
8016 else
8017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8019 fi
8020
8021
8022   fi
8023   test -n "$ac_cv_prog_AS" && break
8024 done
8025
8026 if test -z "$ac_cv_prog_AS" ; then
8027   set dummy as
8028   if test $build = $host ; then
8029     AS="$2"
8030   else
8031     AS="${ncn_tool_prefix}$2"
8032   fi
8033 fi
8034
8035
8036
8037 if test -n "$DLLTOOL"; then
8038   ac_cv_prog_DLLTOOL=$DLLTOOL
8039 elif test -n "$ac_cv_prog_DLLTOOL"; then
8040   DLLTOOL=$ac_cv_prog_DLLTOOL
8041 fi
8042
8043 if test -n "$ac_cv_prog_DLLTOOL"; then
8044   for ncn_progname in dlltool; do
8045     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8046 set dummy ${ncn_progname}; ac_word=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8050   $as_echo_n "(cached) " >&6
8051 else
8052   if test -n "$DLLTOOL"; then
8053   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8054 else
8055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 for as_dir in $PATH
8057 do
8058   IFS=$as_save_IFS
8059   test -z "$as_dir" && as_dir=.
8060     for ac_exec_ext in '' $ac_executable_extensions; do
8061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8062     ac_cv_prog_DLLTOOL="${ncn_progname}"
8063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8064     break 2
8065   fi
8066 done
8067   done
8068 IFS=$as_save_IFS
8069
8070 fi
8071 fi
8072 DLLTOOL=$ac_cv_prog_DLLTOOL
8073 if test -n "$DLLTOOL"; then
8074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8075 $as_echo "$DLLTOOL" >&6; }
8076 else
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8079 fi
8080
8081
8082   done
8083 fi
8084
8085 for ncn_progname in dlltool; do
8086   if test -n "$ncn_tool_prefix"; then
8087     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8088 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094   if test -n "$DLLTOOL"; then
8095   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100   IFS=$as_save_IFS
8101   test -z "$as_dir" && as_dir=.
8102     for ac_exec_ext in '' $ac_executable_extensions; do
8103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8104     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106     break 2
8107   fi
8108 done
8109   done
8110 IFS=$as_save_IFS
8111
8112 fi
8113 fi
8114 DLLTOOL=$ac_cv_prog_DLLTOOL
8115 if test -n "$DLLTOOL"; then
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8117 $as_echo "$DLLTOOL" >&6; }
8118 else
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123
8124   fi
8125   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8126     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8127 set dummy ${ncn_progname}; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8131   $as_echo_n "(cached) " >&6
8132 else
8133   if test -n "$DLLTOOL"; then
8134   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8135 else
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8138 do
8139   IFS=$as_save_IFS
8140   test -z "$as_dir" && as_dir=.
8141     for ac_exec_ext in '' $ac_executable_extensions; do
8142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8143     ac_cv_prog_DLLTOOL="${ncn_progname}"
8144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145     break 2
8146   fi
8147 done
8148   done
8149 IFS=$as_save_IFS
8150
8151 fi
8152 fi
8153 DLLTOOL=$ac_cv_prog_DLLTOOL
8154 if test -n "$DLLTOOL"; then
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8156 $as_echo "$DLLTOOL" >&6; }
8157 else
8158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8160 fi
8161
8162
8163   fi
8164   test -n "$ac_cv_prog_DLLTOOL" && break
8165 done
8166
8167 if test -z "$ac_cv_prog_DLLTOOL" ; then
8168   set dummy dlltool
8169   if test $build = $host ; then
8170     DLLTOOL="$2"
8171   else
8172     DLLTOOL="${ncn_tool_prefix}$2"
8173   fi
8174 fi
8175
8176
8177
8178 if test -n "$LD"; then
8179   ac_cv_prog_LD=$LD
8180 elif test -n "$ac_cv_prog_LD"; then
8181   LD=$ac_cv_prog_LD
8182 fi
8183
8184 if test -n "$ac_cv_prog_LD"; then
8185   for ncn_progname in ld; do
8186     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8187 set dummy ${ncn_progname}; ac_word=$2
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189 $as_echo_n "checking for $ac_word... " >&6; }
8190 if test "${ac_cv_prog_LD+set}" = set; then :
8191   $as_echo_n "(cached) " >&6
8192 else
8193   if test -n "$LD"; then
8194   ac_cv_prog_LD="$LD" # Let the user override the test.
8195 else
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 for as_dir in $PATH
8198 do
8199   IFS=$as_save_IFS
8200   test -z "$as_dir" && as_dir=.
8201     for ac_exec_ext in '' $ac_executable_extensions; do
8202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8203     ac_cv_prog_LD="${ncn_progname}"
8204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8205     break 2
8206   fi
8207 done
8208   done
8209 IFS=$as_save_IFS
8210
8211 fi
8212 fi
8213 LD=$ac_cv_prog_LD
8214 if test -n "$LD"; then
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8216 $as_echo "$LD" >&6; }
8217 else
8218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8220 fi
8221
8222
8223   done
8224 fi
8225
8226 for ncn_progname in ld; do
8227   if test -n "$ncn_tool_prefix"; then
8228     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8229 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231 $as_echo_n "checking for $ac_word... " >&6; }
8232 if test "${ac_cv_prog_LD+set}" = set; then :
8233   $as_echo_n "(cached) " >&6
8234 else
8235   if test -n "$LD"; then
8236   ac_cv_prog_LD="$LD" # Let the user override the test.
8237 else
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8240 do
8241   IFS=$as_save_IFS
8242   test -z "$as_dir" && as_dir=.
8243     for ac_exec_ext in '' $ac_executable_extensions; do
8244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8245     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247     break 2
8248   fi
8249 done
8250   done
8251 IFS=$as_save_IFS
8252
8253 fi
8254 fi
8255 LD=$ac_cv_prog_LD
8256 if test -n "$LD"; then
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8258 $as_echo "$LD" >&6; }
8259 else
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8262 fi
8263
8264
8265   fi
8266   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8267     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8268 set dummy ${ncn_progname}; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if test "${ac_cv_prog_LD+set}" = set; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274   if test -n "$LD"; then
8275   ac_cv_prog_LD="$LD" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280   IFS=$as_save_IFS
8281   test -z "$as_dir" && as_dir=.
8282     for ac_exec_ext in '' $ac_executable_extensions; do
8283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284     ac_cv_prog_LD="${ncn_progname}"
8285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286     break 2
8287   fi
8288 done
8289   done
8290 IFS=$as_save_IFS
8291
8292 fi
8293 fi
8294 LD=$ac_cv_prog_LD
8295 if test -n "$LD"; then
8296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8297 $as_echo "$LD" >&6; }
8298 else
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8301 fi
8302
8303
8304   fi
8305   test -n "$ac_cv_prog_LD" && break
8306 done
8307
8308 if test -z "$ac_cv_prog_LD" ; then
8309   set dummy ld
8310   if test $build = $host ; then
8311     LD="$2"
8312   else
8313     LD="${ncn_tool_prefix}$2"
8314   fi
8315 fi
8316
8317
8318
8319 if test -n "$LIPO"; then
8320   ac_cv_prog_LIPO=$LIPO
8321 elif test -n "$ac_cv_prog_LIPO"; then
8322   LIPO=$ac_cv_prog_LIPO
8323 fi
8324
8325 if test -n "$ac_cv_prog_LIPO"; then
8326   for ncn_progname in lipo; do
8327     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8328 set dummy ${ncn_progname}; ac_word=$2
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330 $as_echo_n "checking for $ac_word... " >&6; }
8331 if test "${ac_cv_prog_LIPO+set}" = set; then :
8332   $as_echo_n "(cached) " >&6
8333 else
8334   if test -n "$LIPO"; then
8335   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8336 else
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8339 do
8340   IFS=$as_save_IFS
8341   test -z "$as_dir" && as_dir=.
8342     for ac_exec_ext in '' $ac_executable_extensions; do
8343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8344     ac_cv_prog_LIPO="${ncn_progname}"
8345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8346     break 2
8347   fi
8348 done
8349   done
8350 IFS=$as_save_IFS
8351
8352 fi
8353 fi
8354 LIPO=$ac_cv_prog_LIPO
8355 if test -n "$LIPO"; then
8356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8357 $as_echo "$LIPO" >&6; }
8358 else
8359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 $as_echo "no" >&6; }
8361 fi
8362
8363
8364   done
8365 fi
8366
8367 for ncn_progname in lipo; do
8368   if test -n "$ncn_tool_prefix"; then
8369     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8370 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 $as_echo_n "checking for $ac_word... " >&6; }
8373 if test "${ac_cv_prog_LIPO+set}" = set; then :
8374   $as_echo_n "(cached) " >&6
8375 else
8376   if test -n "$LIPO"; then
8377   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8378 else
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8381 do
8382   IFS=$as_save_IFS
8383   test -z "$as_dir" && as_dir=.
8384     for ac_exec_ext in '' $ac_executable_extensions; do
8385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8386     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388     break 2
8389   fi
8390 done
8391   done
8392 IFS=$as_save_IFS
8393
8394 fi
8395 fi
8396 LIPO=$ac_cv_prog_LIPO
8397 if test -n "$LIPO"; then
8398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8399 $as_echo "$LIPO" >&6; }
8400 else
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8403 fi
8404
8405
8406   fi
8407   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8408     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8409 set dummy ${ncn_progname}; ac_word=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if test "${ac_cv_prog_LIPO+set}" = set; then :
8413   $as_echo_n "(cached) " >&6
8414 else
8415   if test -n "$LIPO"; then
8416   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8417 else
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8420 do
8421   IFS=$as_save_IFS
8422   test -z "$as_dir" && as_dir=.
8423     for ac_exec_ext in '' $ac_executable_extensions; do
8424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8425     ac_cv_prog_LIPO="${ncn_progname}"
8426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427     break 2
8428   fi
8429 done
8430   done
8431 IFS=$as_save_IFS
8432
8433 fi
8434 fi
8435 LIPO=$ac_cv_prog_LIPO
8436 if test -n "$LIPO"; then
8437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8438 $as_echo "$LIPO" >&6; }
8439 else
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8442 fi
8443
8444
8445   fi
8446   test -n "$ac_cv_prog_LIPO" && break
8447 done
8448
8449 if test -z "$ac_cv_prog_LIPO" ; then
8450   set dummy lipo
8451   if test $build = $host ; then
8452     LIPO="$2"
8453   else
8454     LIPO="${ncn_tool_prefix}$2"
8455   fi
8456 fi
8457
8458
8459
8460 if test -n "$NM"; then
8461   ac_cv_prog_NM=$NM
8462 elif test -n "$ac_cv_prog_NM"; then
8463   NM=$ac_cv_prog_NM
8464 fi
8465
8466 if test -n "$ac_cv_prog_NM"; then
8467   for ncn_progname in nm; do
8468     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8469 set dummy ${ncn_progname}; ac_word=$2
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 $as_echo_n "checking for $ac_word... " >&6; }
8472 if test "${ac_cv_prog_NM+set}" = set; then :
8473   $as_echo_n "(cached) " >&6
8474 else
8475   if test -n "$NM"; then
8476   ac_cv_prog_NM="$NM" # Let the user override the test.
8477 else
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8480 do
8481   IFS=$as_save_IFS
8482   test -z "$as_dir" && as_dir=.
8483     for ac_exec_ext in '' $ac_executable_extensions; do
8484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8485     ac_cv_prog_NM="${ncn_progname}"
8486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487     break 2
8488   fi
8489 done
8490   done
8491 IFS=$as_save_IFS
8492
8493 fi
8494 fi
8495 NM=$ac_cv_prog_NM
8496 if test -n "$NM"; then
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8498 $as_echo "$NM" >&6; }
8499 else
8500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8502 fi
8503
8504
8505   done
8506 fi
8507
8508 for ncn_progname in nm; do
8509   if test -n "$ncn_tool_prefix"; then
8510     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8511 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if test "${ac_cv_prog_NM+set}" = set; then :
8515   $as_echo_n "(cached) " >&6
8516 else
8517   if test -n "$NM"; then
8518   ac_cv_prog_NM="$NM" # Let the user override the test.
8519 else
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523   IFS=$as_save_IFS
8524   test -z "$as_dir" && as_dir=.
8525     for ac_exec_ext in '' $ac_executable_extensions; do
8526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8527     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529     break 2
8530   fi
8531 done
8532   done
8533 IFS=$as_save_IFS
8534
8535 fi
8536 fi
8537 NM=$ac_cv_prog_NM
8538 if test -n "$NM"; then
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8540 $as_echo "$NM" >&6; }
8541 else
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8544 fi
8545
8546
8547   fi
8548   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8549     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8550 set dummy ${ncn_progname}; ac_word=$2
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552 $as_echo_n "checking for $ac_word... " >&6; }
8553 if test "${ac_cv_prog_NM+set}" = set; then :
8554   $as_echo_n "(cached) " >&6
8555 else
8556   if test -n "$NM"; then
8557   ac_cv_prog_NM="$NM" # Let the user override the test.
8558 else
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 for as_dir in $PATH
8561 do
8562   IFS=$as_save_IFS
8563   test -z "$as_dir" && as_dir=.
8564     for ac_exec_ext in '' $ac_executable_extensions; do
8565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8566     ac_cv_prog_NM="${ncn_progname}"
8567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568     break 2
8569   fi
8570 done
8571   done
8572 IFS=$as_save_IFS
8573
8574 fi
8575 fi
8576 NM=$ac_cv_prog_NM
8577 if test -n "$NM"; then
8578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8579 $as_echo "$NM" >&6; }
8580 else
8581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8583 fi
8584
8585
8586   fi
8587   test -n "$ac_cv_prog_NM" && break
8588 done
8589
8590 if test -z "$ac_cv_prog_NM" ; then
8591   set dummy nm
8592   if test $build = $host ; then
8593     NM="$2"
8594   else
8595     NM="${ncn_tool_prefix}$2"
8596   fi
8597 fi
8598
8599
8600
8601 if test -n "$RANLIB"; then
8602   ac_cv_prog_RANLIB=$RANLIB
8603 elif test -n "$ac_cv_prog_RANLIB"; then
8604   RANLIB=$ac_cv_prog_RANLIB
8605 fi
8606
8607 if test -n "$ac_cv_prog_RANLIB"; then
8608   for ncn_progname in ranlib; do
8609     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8610 set dummy ${ncn_progname}; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8614   $as_echo_n "(cached) " >&6
8615 else
8616   if test -n "$RANLIB"; then
8617   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8618 else
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620 for as_dir in $PATH
8621 do
8622   IFS=$as_save_IFS
8623   test -z "$as_dir" && as_dir=.
8624     for ac_exec_ext in '' $ac_executable_extensions; do
8625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8626     ac_cv_prog_RANLIB="${ncn_progname}"
8627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8628     break 2
8629   fi
8630 done
8631   done
8632 IFS=$as_save_IFS
8633
8634 fi
8635 fi
8636 RANLIB=$ac_cv_prog_RANLIB
8637 if test -n "$RANLIB"; then
8638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8639 $as_echo "$RANLIB" >&6; }
8640 else
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8643 fi
8644
8645
8646   done
8647 fi
8648
8649 for ncn_progname in ranlib; do
8650   if test -n "$ncn_tool_prefix"; then
8651     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8652 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8654 $as_echo_n "checking for $ac_word... " >&6; }
8655 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8656   $as_echo_n "(cached) " >&6
8657 else
8658   if test -n "$RANLIB"; then
8659   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8660 else
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 for as_dir in $PATH
8663 do
8664   IFS=$as_save_IFS
8665   test -z "$as_dir" && as_dir=.
8666     for ac_exec_ext in '' $ac_executable_extensions; do
8667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8668     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670     break 2
8671   fi
8672 done
8673   done
8674 IFS=$as_save_IFS
8675
8676 fi
8677 fi
8678 RANLIB=$ac_cv_prog_RANLIB
8679 if test -n "$RANLIB"; then
8680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8681 $as_echo "$RANLIB" >&6; }
8682 else
8683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8685 fi
8686
8687
8688   fi
8689   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8690     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8691 set dummy ${ncn_progname}; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8695   $as_echo_n "(cached) " >&6
8696 else
8697   if test -n "$RANLIB"; then
8698   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8699 else
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8702 do
8703   IFS=$as_save_IFS
8704   test -z "$as_dir" && as_dir=.
8705     for ac_exec_ext in '' $ac_executable_extensions; do
8706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707     ac_cv_prog_RANLIB="${ncn_progname}"
8708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709     break 2
8710   fi
8711 done
8712   done
8713 IFS=$as_save_IFS
8714
8715 fi
8716 fi
8717 RANLIB=$ac_cv_prog_RANLIB
8718 if test -n "$RANLIB"; then
8719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8720 $as_echo "$RANLIB" >&6; }
8721 else
8722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8724 fi
8725
8726
8727   fi
8728   test -n "$ac_cv_prog_RANLIB" && break
8729 done
8730
8731 if test -z "$ac_cv_prog_RANLIB" ; then
8732   RANLIB="true"
8733 fi
8734
8735
8736
8737 if test -n "$STRIP"; then
8738   ac_cv_prog_STRIP=$STRIP
8739 elif test -n "$ac_cv_prog_STRIP"; then
8740   STRIP=$ac_cv_prog_STRIP
8741 fi
8742
8743 if test -n "$ac_cv_prog_STRIP"; then
8744   for ncn_progname in strip; do
8745     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8746 set dummy ${ncn_progname}; ac_word=$2
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8748 $as_echo_n "checking for $ac_word... " >&6; }
8749 if test "${ac_cv_prog_STRIP+set}" = set; then :
8750   $as_echo_n "(cached) " >&6
8751 else
8752   if test -n "$STRIP"; then
8753   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8754 else
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756 for as_dir in $PATH
8757 do
8758   IFS=$as_save_IFS
8759   test -z "$as_dir" && as_dir=.
8760     for ac_exec_ext in '' $ac_executable_extensions; do
8761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8762     ac_cv_prog_STRIP="${ncn_progname}"
8763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8764     break 2
8765   fi
8766 done
8767   done
8768 IFS=$as_save_IFS
8769
8770 fi
8771 fi
8772 STRIP=$ac_cv_prog_STRIP
8773 if test -n "$STRIP"; then
8774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8775 $as_echo "$STRIP" >&6; }
8776 else
8777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8779 fi
8780
8781
8782   done
8783 fi
8784
8785 for ncn_progname in strip; do
8786   if test -n "$ncn_tool_prefix"; then
8787     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8788 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790 $as_echo_n "checking for $ac_word... " >&6; }
8791 if test "${ac_cv_prog_STRIP+set}" = set; then :
8792   $as_echo_n "(cached) " >&6
8793 else
8794   if test -n "$STRIP"; then
8795   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8796 else
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 for as_dir in $PATH
8799 do
8800   IFS=$as_save_IFS
8801   test -z "$as_dir" && as_dir=.
8802     for ac_exec_ext in '' $ac_executable_extensions; do
8803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8804     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806     break 2
8807   fi
8808 done
8809   done
8810 IFS=$as_save_IFS
8811
8812 fi
8813 fi
8814 STRIP=$ac_cv_prog_STRIP
8815 if test -n "$STRIP"; then
8816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8817 $as_echo "$STRIP" >&6; }
8818 else
8819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8821 fi
8822
8823
8824   fi
8825   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8826     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8827 set dummy ${ncn_progname}; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if test "${ac_cv_prog_STRIP+set}" = set; then :
8831   $as_echo_n "(cached) " >&6
8832 else
8833   if test -n "$STRIP"; then
8834   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8835 else
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8838 do
8839   IFS=$as_save_IFS
8840   test -z "$as_dir" && as_dir=.
8841     for ac_exec_ext in '' $ac_executable_extensions; do
8842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843     ac_cv_prog_STRIP="${ncn_progname}"
8844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845     break 2
8846   fi
8847 done
8848   done
8849 IFS=$as_save_IFS
8850
8851 fi
8852 fi
8853 STRIP=$ac_cv_prog_STRIP
8854 if test -n "$STRIP"; then
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8856 $as_echo "$STRIP" >&6; }
8857 else
8858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8860 fi
8861
8862
8863   fi
8864   test -n "$ac_cv_prog_STRIP" && break
8865 done
8866
8867 if test -z "$ac_cv_prog_STRIP" ; then
8868   STRIP="true"
8869 fi
8870
8871
8872
8873 if test -n "$WINDRES"; then
8874   ac_cv_prog_WINDRES=$WINDRES
8875 elif test -n "$ac_cv_prog_WINDRES"; then
8876   WINDRES=$ac_cv_prog_WINDRES
8877 fi
8878
8879 if test -n "$ac_cv_prog_WINDRES"; then
8880   for ncn_progname in windres; do
8881     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8882 set dummy ${ncn_progname}; ac_word=$2
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8884 $as_echo_n "checking for $ac_word... " >&6; }
8885 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8886   $as_echo_n "(cached) " >&6
8887 else
8888   if test -n "$WINDRES"; then
8889   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8890 else
8891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 for as_dir in $PATH
8893 do
8894   IFS=$as_save_IFS
8895   test -z "$as_dir" && as_dir=.
8896     for ac_exec_ext in '' $ac_executable_extensions; do
8897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8898     ac_cv_prog_WINDRES="${ncn_progname}"
8899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900     break 2
8901   fi
8902 done
8903   done
8904 IFS=$as_save_IFS
8905
8906 fi
8907 fi
8908 WINDRES=$ac_cv_prog_WINDRES
8909 if test -n "$WINDRES"; then
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8911 $as_echo "$WINDRES" >&6; }
8912 else
8913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8915 fi
8916
8917
8918   done
8919 fi
8920
8921 for ncn_progname in windres; do
8922   if test -n "$ncn_tool_prefix"; then
8923     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8924 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 $as_echo_n "checking for $ac_word... " >&6; }
8927 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   if test -n "$WINDRES"; then
8931   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8932 else
8933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 for as_dir in $PATH
8935 do
8936   IFS=$as_save_IFS
8937   test -z "$as_dir" && as_dir=.
8938     for ac_exec_ext in '' $ac_executable_extensions; do
8939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8940     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8942     break 2
8943   fi
8944 done
8945   done
8946 IFS=$as_save_IFS
8947
8948 fi
8949 fi
8950 WINDRES=$ac_cv_prog_WINDRES
8951 if test -n "$WINDRES"; then
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8953 $as_echo "$WINDRES" >&6; }
8954 else
8955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8957 fi
8958
8959
8960   fi
8961   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8962     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8963 set dummy ${ncn_progname}; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8967   $as_echo_n "(cached) " >&6
8968 else
8969   if test -n "$WINDRES"; then
8970   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8971 else
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8974 do
8975   IFS=$as_save_IFS
8976   test -z "$as_dir" && as_dir=.
8977     for ac_exec_ext in '' $ac_executable_extensions; do
8978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8979     ac_cv_prog_WINDRES="${ncn_progname}"
8980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981     break 2
8982   fi
8983 done
8984   done
8985 IFS=$as_save_IFS
8986
8987 fi
8988 fi
8989 WINDRES=$ac_cv_prog_WINDRES
8990 if test -n "$WINDRES"; then
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8992 $as_echo "$WINDRES" >&6; }
8993 else
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8996 fi
8997
8998
8999   fi
9000   test -n "$ac_cv_prog_WINDRES" && break
9001 done
9002
9003 if test -z "$ac_cv_prog_WINDRES" ; then
9004   set dummy windres
9005   if test $build = $host ; then
9006     WINDRES="$2"
9007   else
9008     WINDRES="${ncn_tool_prefix}$2"
9009   fi
9010 fi
9011
9012
9013
9014 if test -n "$WINDMC"; then
9015   ac_cv_prog_WINDMC=$WINDMC
9016 elif test -n "$ac_cv_prog_WINDMC"; then
9017   WINDMC=$ac_cv_prog_WINDMC
9018 fi
9019
9020 if test -n "$ac_cv_prog_WINDMC"; then
9021   for ncn_progname in windmc; do
9022     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9023 set dummy ${ncn_progname}; ac_word=$2
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9025 $as_echo_n "checking for $ac_word... " >&6; }
9026 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9027   $as_echo_n "(cached) " >&6
9028 else
9029   if test -n "$WINDMC"; then
9030   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9031 else
9032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9033 for as_dir in $PATH
9034 do
9035   IFS=$as_save_IFS
9036   test -z "$as_dir" && as_dir=.
9037     for ac_exec_ext in '' $ac_executable_extensions; do
9038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9039     ac_cv_prog_WINDMC="${ncn_progname}"
9040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9041     break 2
9042   fi
9043 done
9044   done
9045 IFS=$as_save_IFS
9046
9047 fi
9048 fi
9049 WINDMC=$ac_cv_prog_WINDMC
9050 if test -n "$WINDMC"; then
9051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9052 $as_echo "$WINDMC" >&6; }
9053 else
9054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9056 fi
9057
9058
9059   done
9060 fi
9061
9062 for ncn_progname in windmc; do
9063   if test -n "$ncn_tool_prefix"; then
9064     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9065 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 $as_echo_n "checking for $ac_word... " >&6; }
9068 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9069   $as_echo_n "(cached) " >&6
9070 else
9071   if test -n "$WINDMC"; then
9072   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9073 else
9074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 for as_dir in $PATH
9076 do
9077   IFS=$as_save_IFS
9078   test -z "$as_dir" && as_dir=.
9079     for ac_exec_ext in '' $ac_executable_extensions; do
9080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9081     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083     break 2
9084   fi
9085 done
9086   done
9087 IFS=$as_save_IFS
9088
9089 fi
9090 fi
9091 WINDMC=$ac_cv_prog_WINDMC
9092 if test -n "$WINDMC"; then
9093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9094 $as_echo "$WINDMC" >&6; }
9095 else
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9098 fi
9099
9100
9101   fi
9102   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9103     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9104 set dummy ${ncn_progname}; ac_word=$2
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 $as_echo_n "checking for $ac_word... " >&6; }
9107 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9108   $as_echo_n "(cached) " >&6
9109 else
9110   if test -n "$WINDMC"; then
9111   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9112 else
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $PATH
9115 do
9116   IFS=$as_save_IFS
9117   test -z "$as_dir" && as_dir=.
9118     for ac_exec_ext in '' $ac_executable_extensions; do
9119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9120     ac_cv_prog_WINDMC="${ncn_progname}"
9121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122     break 2
9123   fi
9124 done
9125   done
9126 IFS=$as_save_IFS
9127
9128 fi
9129 fi
9130 WINDMC=$ac_cv_prog_WINDMC
9131 if test -n "$WINDMC"; then
9132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9133 $as_echo "$WINDMC" >&6; }
9134 else
9135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136 $as_echo "no" >&6; }
9137 fi
9138
9139
9140   fi
9141   test -n "$ac_cv_prog_WINDMC" && break
9142 done
9143
9144 if test -z "$ac_cv_prog_WINDMC" ; then
9145   set dummy windmc
9146   if test $build = $host ; then
9147     WINDMC="$2"
9148   else
9149     WINDMC="${ncn_tool_prefix}$2"
9150   fi
9151 fi
9152
9153
9154
9155 if test -n "$OBJCOPY"; then
9156   ac_cv_prog_OBJCOPY=$OBJCOPY
9157 elif test -n "$ac_cv_prog_OBJCOPY"; then
9158   OBJCOPY=$ac_cv_prog_OBJCOPY
9159 fi
9160
9161 if test -n "$ac_cv_prog_OBJCOPY"; then
9162   for ncn_progname in objcopy; do
9163     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9164 set dummy ${ncn_progname}; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9168   $as_echo_n "(cached) " >&6
9169 else
9170   if test -n "$OBJCOPY"; then
9171   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9172 else
9173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 for as_dir in $PATH
9175 do
9176   IFS=$as_save_IFS
9177   test -z "$as_dir" && as_dir=.
9178     for ac_exec_ext in '' $ac_executable_extensions; do
9179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9180     ac_cv_prog_OBJCOPY="${ncn_progname}"
9181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9182     break 2
9183   fi
9184 done
9185   done
9186 IFS=$as_save_IFS
9187
9188 fi
9189 fi
9190 OBJCOPY=$ac_cv_prog_OBJCOPY
9191 if test -n "$OBJCOPY"; then
9192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9193 $as_echo "$OBJCOPY" >&6; }
9194 else
9195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9197 fi
9198
9199
9200   done
9201 fi
9202
9203 for ncn_progname in objcopy; do
9204   if test -n "$ncn_tool_prefix"; then
9205     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9206 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9208 $as_echo_n "checking for $ac_word... " >&6; }
9209 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9210   $as_echo_n "(cached) " >&6
9211 else
9212   if test -n "$OBJCOPY"; then
9213   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9214 else
9215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216 for as_dir in $PATH
9217 do
9218   IFS=$as_save_IFS
9219   test -z "$as_dir" && as_dir=.
9220     for ac_exec_ext in '' $ac_executable_extensions; do
9221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9222     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9224     break 2
9225   fi
9226 done
9227   done
9228 IFS=$as_save_IFS
9229
9230 fi
9231 fi
9232 OBJCOPY=$ac_cv_prog_OBJCOPY
9233 if test -n "$OBJCOPY"; then
9234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9235 $as_echo "$OBJCOPY" >&6; }
9236 else
9237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 $as_echo "no" >&6; }
9239 fi
9240
9241
9242   fi
9243   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9244     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9245 set dummy ${ncn_progname}; ac_word=$2
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9247 $as_echo_n "checking for $ac_word... " >&6; }
9248 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9249   $as_echo_n "(cached) " >&6
9250 else
9251   if test -n "$OBJCOPY"; then
9252   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9253 else
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 for as_dir in $PATH
9256 do
9257   IFS=$as_save_IFS
9258   test -z "$as_dir" && as_dir=.
9259     for ac_exec_ext in '' $ac_executable_extensions; do
9260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9261     ac_cv_prog_OBJCOPY="${ncn_progname}"
9262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9263     break 2
9264   fi
9265 done
9266   done
9267 IFS=$as_save_IFS
9268
9269 fi
9270 fi
9271 OBJCOPY=$ac_cv_prog_OBJCOPY
9272 if test -n "$OBJCOPY"; then
9273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9274 $as_echo "$OBJCOPY" >&6; }
9275 else
9276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277 $as_echo "no" >&6; }
9278 fi
9279
9280
9281   fi
9282   test -n "$ac_cv_prog_OBJCOPY" && break
9283 done
9284
9285 if test -z "$ac_cv_prog_OBJCOPY" ; then
9286   set dummy objcopy
9287   if test $build = $host ; then
9288     OBJCOPY="$2"
9289   else
9290     OBJCOPY="${ncn_tool_prefix}$2"
9291   fi
9292 fi
9293
9294
9295
9296 if test -n "$OBJDUMP"; then
9297   ac_cv_prog_OBJDUMP=$OBJDUMP
9298 elif test -n "$ac_cv_prog_OBJDUMP"; then
9299   OBJDUMP=$ac_cv_prog_OBJDUMP
9300 fi
9301
9302 if test -n "$ac_cv_prog_OBJDUMP"; then
9303   for ncn_progname in objdump; do
9304     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9305 set dummy ${ncn_progname}; ac_word=$2
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9307 $as_echo_n "checking for $ac_word... " >&6; }
9308 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9309   $as_echo_n "(cached) " >&6
9310 else
9311   if test -n "$OBJDUMP"; then
9312   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9313 else
9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 for as_dir in $PATH
9316 do
9317   IFS=$as_save_IFS
9318   test -z "$as_dir" && as_dir=.
9319     for ac_exec_ext in '' $ac_executable_extensions; do
9320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9321     ac_cv_prog_OBJDUMP="${ncn_progname}"
9322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9323     break 2
9324   fi
9325 done
9326   done
9327 IFS=$as_save_IFS
9328
9329 fi
9330 fi
9331 OBJDUMP=$ac_cv_prog_OBJDUMP
9332 if test -n "$OBJDUMP"; then
9333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9334 $as_echo "$OBJDUMP" >&6; }
9335 else
9336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337 $as_echo "no" >&6; }
9338 fi
9339
9340
9341   done
9342 fi
9343
9344 for ncn_progname in objdump; do
9345   if test -n "$ncn_tool_prefix"; then
9346     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9347 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349 $as_echo_n "checking for $ac_word... " >&6; }
9350 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9351   $as_echo_n "(cached) " >&6
9352 else
9353   if test -n "$OBJDUMP"; then
9354   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9355 else
9356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 for as_dir in $PATH
9358 do
9359   IFS=$as_save_IFS
9360   test -z "$as_dir" && as_dir=.
9361     for ac_exec_ext in '' $ac_executable_extensions; do
9362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9363     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9365     break 2
9366   fi
9367 done
9368   done
9369 IFS=$as_save_IFS
9370
9371 fi
9372 fi
9373 OBJDUMP=$ac_cv_prog_OBJDUMP
9374 if test -n "$OBJDUMP"; then
9375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9376 $as_echo "$OBJDUMP" >&6; }
9377 else
9378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379 $as_echo "no" >&6; }
9380 fi
9381
9382
9383   fi
9384   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9385     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9386 set dummy ${ncn_progname}; ac_word=$2
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9388 $as_echo_n "checking for $ac_word... " >&6; }
9389 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9390   $as_echo_n "(cached) " >&6
9391 else
9392   if test -n "$OBJDUMP"; then
9393   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9394 else
9395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 for as_dir in $PATH
9397 do
9398   IFS=$as_save_IFS
9399   test -z "$as_dir" && as_dir=.
9400     for ac_exec_ext in '' $ac_executable_extensions; do
9401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9402     ac_cv_prog_OBJDUMP="${ncn_progname}"
9403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9404     break 2
9405   fi
9406 done
9407   done
9408 IFS=$as_save_IFS
9409
9410 fi
9411 fi
9412 OBJDUMP=$ac_cv_prog_OBJDUMP
9413 if test -n "$OBJDUMP"; then
9414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9415 $as_echo "$OBJDUMP" >&6; }
9416 else
9417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 $as_echo "no" >&6; }
9419 fi
9420
9421
9422   fi
9423   test -n "$ac_cv_prog_OBJDUMP" && break
9424 done
9425
9426 if test -z "$ac_cv_prog_OBJDUMP" ; then
9427   set dummy objdump
9428   if test $build = $host ; then
9429     OBJDUMP="$2"
9430   else
9431     OBJDUMP="${ncn_tool_prefix}$2"
9432   fi
9433 fi
9434
9435
9436
9437 if test -n "$READELF"; then
9438   ac_cv_prog_READELF=$READELF
9439 elif test -n "$ac_cv_prog_READELF"; then
9440   READELF=$ac_cv_prog_READELF
9441 fi
9442
9443 if test -n "$ac_cv_prog_READELF"; then
9444   for ncn_progname in readelf; do
9445     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9446 set dummy ${ncn_progname}; ac_word=$2
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448 $as_echo_n "checking for $ac_word... " >&6; }
9449 if test "${ac_cv_prog_READELF+set}" = set; then :
9450   $as_echo_n "(cached) " >&6
9451 else
9452   if test -n "$READELF"; then
9453   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9454 else
9455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456 for as_dir in $PATH
9457 do
9458   IFS=$as_save_IFS
9459   test -z "$as_dir" && as_dir=.
9460     for ac_exec_ext in '' $ac_executable_extensions; do
9461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9462     ac_cv_prog_READELF="${ncn_progname}"
9463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9464     break 2
9465   fi
9466 done
9467   done
9468 IFS=$as_save_IFS
9469
9470 fi
9471 fi
9472 READELF=$ac_cv_prog_READELF
9473 if test -n "$READELF"; then
9474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9475 $as_echo "$READELF" >&6; }
9476 else
9477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478 $as_echo "no" >&6; }
9479 fi
9480
9481
9482   done
9483 fi
9484
9485 for ncn_progname in readelf; do
9486   if test -n "$ncn_tool_prefix"; then
9487     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9488 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490 $as_echo_n "checking for $ac_word... " >&6; }
9491 if test "${ac_cv_prog_READELF+set}" = set; then :
9492   $as_echo_n "(cached) " >&6
9493 else
9494   if test -n "$READELF"; then
9495   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9496 else
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9499 do
9500   IFS=$as_save_IFS
9501   test -z "$as_dir" && as_dir=.
9502     for ac_exec_ext in '' $ac_executable_extensions; do
9503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506     break 2
9507   fi
9508 done
9509   done
9510 IFS=$as_save_IFS
9511
9512 fi
9513 fi
9514 READELF=$ac_cv_prog_READELF
9515 if test -n "$READELF"; then
9516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9517 $as_echo "$READELF" >&6; }
9518 else
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520 $as_echo "no" >&6; }
9521 fi
9522
9523
9524   fi
9525   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9526     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9527 set dummy ${ncn_progname}; ac_word=$2
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9529 $as_echo_n "checking for $ac_word... " >&6; }
9530 if test "${ac_cv_prog_READELF+set}" = set; then :
9531   $as_echo_n "(cached) " >&6
9532 else
9533   if test -n "$READELF"; then
9534   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9535 else
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 for as_dir in $PATH
9538 do
9539   IFS=$as_save_IFS
9540   test -z "$as_dir" && as_dir=.
9541     for ac_exec_ext in '' $ac_executable_extensions; do
9542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9543     ac_cv_prog_READELF="${ncn_progname}"
9544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9545     break 2
9546   fi
9547 done
9548   done
9549 IFS=$as_save_IFS
9550
9551 fi
9552 fi
9553 READELF=$ac_cv_prog_READELF
9554 if test -n "$READELF"; then
9555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9556 $as_echo "$READELF" >&6; }
9557 else
9558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9560 fi
9561
9562
9563   fi
9564   test -n "$ac_cv_prog_READELF" && break
9565 done
9566
9567 if test -z "$ac_cv_prog_READELF" ; then
9568   set dummy readelf
9569   if test $build = $host ; then
9570     READELF="$2"
9571   else
9572     READELF="${ncn_tool_prefix}$2"
9573   fi
9574 fi
9575
9576
9577
9578
9579
9580
9581 # Target tools.
9582
9583 # Check whether --with-build-time-tools was given.
9584 if test "${with_build_time_tools+set}" = set; then :
9585   withval=$with_build_time_tools; case x"$withval" in
9586      x/*) ;;
9587      *)
9588        with_build_time_tools=
9589        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9590 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9591        ;;
9592    esac
9593 else
9594   with_build_time_tools=
9595 fi
9596
9597
9598
9599
9600 if test -n "$CC_FOR_TARGET"; then
9601   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9602 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9603   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9604 fi
9605
9606 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9607   for ncn_progname in cc gcc; do
9608     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9609 set dummy ${ncn_progname}; ac_word=$2
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611 $as_echo_n "checking for $ac_word... " >&6; }
9612 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9613   $as_echo_n "(cached) " >&6
9614 else
9615   if test -n "$CC_FOR_TARGET"; then
9616   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9617 else
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 for as_dir in $PATH
9620 do
9621   IFS=$as_save_IFS
9622   test -z "$as_dir" && as_dir=.
9623     for ac_exec_ext in '' $ac_executable_extensions; do
9624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9627     break 2
9628   fi
9629 done
9630   done
9631 IFS=$as_save_IFS
9632
9633 fi
9634 fi
9635 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9636 if test -n "$CC_FOR_TARGET"; then
9637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9638 $as_echo "$CC_FOR_TARGET" >&6; }
9639 else
9640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641 $as_echo "no" >&6; }
9642 fi
9643
9644
9645   done
9646 fi
9647
9648 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9649   for ncn_progname in cc gcc; do
9650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9651 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9652     if test -x $with_build_time_tools/${ncn_progname}; then
9653       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9655 $as_echo "yes" >&6; }
9656       break
9657     else
9658       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9660     fi
9661   done
9662 fi
9663
9664 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9665   for ncn_progname in cc gcc; do
9666     if test -n "$ncn_target_tool_prefix"; then
9667       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9668 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670 $as_echo_n "checking for $ac_word... " >&6; }
9671 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9672   $as_echo_n "(cached) " >&6
9673 else
9674   if test -n "$CC_FOR_TARGET"; then
9675   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9676 else
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 for as_dir in $PATH
9679 do
9680   IFS=$as_save_IFS
9681   test -z "$as_dir" && as_dir=.
9682     for ac_exec_ext in '' $ac_executable_extensions; do
9683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9684     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686     break 2
9687   fi
9688 done
9689   done
9690 IFS=$as_save_IFS
9691
9692 fi
9693 fi
9694 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9695 if test -n "$CC_FOR_TARGET"; then
9696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9697 $as_echo "$CC_FOR_TARGET" >&6; }
9698 else
9699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9701 fi
9702
9703
9704     fi
9705     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9706       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9707 set dummy ${ncn_progname}; ac_word=$2
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9709 $as_echo_n "checking for $ac_word... " >&6; }
9710 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9711   $as_echo_n "(cached) " >&6
9712 else
9713   if test -n "$CC_FOR_TARGET"; then
9714   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9715 else
9716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717 for as_dir in $PATH
9718 do
9719   IFS=$as_save_IFS
9720   test -z "$as_dir" && as_dir=.
9721     for ac_exec_ext in '' $ac_executable_extensions; do
9722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9723     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9725     break 2
9726   fi
9727 done
9728   done
9729 IFS=$as_save_IFS
9730
9731 fi
9732 fi
9733 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9734 if test -n "$CC_FOR_TARGET"; then
9735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9736 $as_echo "$CC_FOR_TARGET" >&6; }
9737 else
9738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739 $as_echo "no" >&6; }
9740 fi
9741
9742
9743     fi
9744     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9745   done
9746 fi
9747
9748 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9749   set dummy cc gcc
9750   if test $build = $target ; then
9751     CC_FOR_TARGET="$2"
9752   else
9753     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9754   fi
9755 else
9756   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9757 fi
9758
9759
9760
9761 if test -n "$CXX_FOR_TARGET"; then
9762   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9763 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9764   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9765 fi
9766
9767 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9768   for ncn_progname in c++ g++ cxx gxx; do
9769     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9770 set dummy ${ncn_progname}; ac_word=$2
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772 $as_echo_n "checking for $ac_word... " >&6; }
9773 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9774   $as_echo_n "(cached) " >&6
9775 else
9776   if test -n "$CXX_FOR_TARGET"; then
9777   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9778 else
9779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780 for as_dir in $PATH
9781 do
9782   IFS=$as_save_IFS
9783   test -z "$as_dir" && as_dir=.
9784     for ac_exec_ext in '' $ac_executable_extensions; do
9785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9786     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9788     break 2
9789   fi
9790 done
9791   done
9792 IFS=$as_save_IFS
9793
9794 fi
9795 fi
9796 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9797 if test -n "$CXX_FOR_TARGET"; then
9798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9799 $as_echo "$CXX_FOR_TARGET" >&6; }
9800 else
9801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802 $as_echo "no" >&6; }
9803 fi
9804
9805
9806   done
9807 fi
9808
9809 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9810   for ncn_progname in c++ g++ cxx gxx; do
9811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9812 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9813     if test -x $with_build_time_tools/${ncn_progname}; then
9814       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9815       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9816 $as_echo "yes" >&6; }
9817       break
9818     else
9819       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820 $as_echo "no" >&6; }
9821     fi
9822   done
9823 fi
9824
9825 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9826   for ncn_progname in c++ g++ cxx gxx; do
9827     if test -n "$ncn_target_tool_prefix"; then
9828       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9829 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9831 $as_echo_n "checking for $ac_word... " >&6; }
9832 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9833   $as_echo_n "(cached) " >&6
9834 else
9835   if test -n "$CXX_FOR_TARGET"; then
9836   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9837 else
9838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9839 for as_dir in $PATH
9840 do
9841   IFS=$as_save_IFS
9842   test -z "$as_dir" && as_dir=.
9843     for ac_exec_ext in '' $ac_executable_extensions; do
9844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9845     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9847     break 2
9848   fi
9849 done
9850   done
9851 IFS=$as_save_IFS
9852
9853 fi
9854 fi
9855 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9856 if test -n "$CXX_FOR_TARGET"; then
9857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9858 $as_echo "$CXX_FOR_TARGET" >&6; }
9859 else
9860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9861 $as_echo "no" >&6; }
9862 fi
9863
9864
9865     fi
9866     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9867       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9868 set dummy ${ncn_progname}; ac_word=$2
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9870 $as_echo_n "checking for $ac_word... " >&6; }
9871 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9872   $as_echo_n "(cached) " >&6
9873 else
9874   if test -n "$CXX_FOR_TARGET"; then
9875   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9876 else
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9879 do
9880   IFS=$as_save_IFS
9881   test -z "$as_dir" && as_dir=.
9882     for ac_exec_ext in '' $ac_executable_extensions; do
9883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9884     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9886     break 2
9887   fi
9888 done
9889   done
9890 IFS=$as_save_IFS
9891
9892 fi
9893 fi
9894 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9895 if test -n "$CXX_FOR_TARGET"; then
9896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9897 $as_echo "$CXX_FOR_TARGET" >&6; }
9898 else
9899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9901 fi
9902
9903
9904     fi
9905     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9906   done
9907 fi
9908
9909 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9910   set dummy c++ g++ cxx gxx
9911   if test $build = $target ; then
9912     CXX_FOR_TARGET="$2"
9913   else
9914     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9915   fi
9916 else
9917   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9918 fi
9919
9920
9921
9922 if test -n "$GCC_FOR_TARGET"; then
9923   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9924 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9925   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9926 fi
9927
9928 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9929   for ncn_progname in gcc; do
9930     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9931 set dummy ${ncn_progname}; ac_word=$2
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9933 $as_echo_n "checking for $ac_word... " >&6; }
9934 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9935   $as_echo_n "(cached) " >&6
9936 else
9937   if test -n "$GCC_FOR_TARGET"; then
9938   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9939 else
9940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941 for as_dir in $PATH
9942 do
9943   IFS=$as_save_IFS
9944   test -z "$as_dir" && as_dir=.
9945     for ac_exec_ext in '' $ac_executable_extensions; do
9946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9947     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9949     break 2
9950   fi
9951 done
9952   done
9953 IFS=$as_save_IFS
9954
9955 fi
9956 fi
9957 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9958 if test -n "$GCC_FOR_TARGET"; then
9959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9960 $as_echo "$GCC_FOR_TARGET" >&6; }
9961 else
9962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963 $as_echo "no" >&6; }
9964 fi
9965
9966
9967   done
9968 fi
9969
9970 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9971   for ncn_progname in gcc; do
9972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9973 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9974     if test -x $with_build_time_tools/${ncn_progname}; then
9975       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9976       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9977 $as_echo "yes" >&6; }
9978       break
9979     else
9980       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9982     fi
9983   done
9984 fi
9985
9986 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9987   for ncn_progname in gcc; do
9988     if test -n "$ncn_target_tool_prefix"; then
9989       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9990 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992 $as_echo_n "checking for $ac_word... " >&6; }
9993 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9994   $as_echo_n "(cached) " >&6
9995 else
9996   if test -n "$GCC_FOR_TARGET"; then
9997   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9998 else
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in $PATH
10001 do
10002   IFS=$as_save_IFS
10003   test -z "$as_dir" && as_dir=.
10004     for ac_exec_ext in '' $ac_executable_extensions; do
10005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10006     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10008     break 2
10009   fi
10010 done
10011   done
10012 IFS=$as_save_IFS
10013
10014 fi
10015 fi
10016 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10017 if test -n "$GCC_FOR_TARGET"; then
10018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10019 $as_echo "$GCC_FOR_TARGET" >&6; }
10020 else
10021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022 $as_echo "no" >&6; }
10023 fi
10024
10025
10026     fi
10027     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10028       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10029 set dummy ${ncn_progname}; ac_word=$2
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 $as_echo_n "checking for $ac_word... " >&6; }
10032 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10033   $as_echo_n "(cached) " >&6
10034 else
10035   if test -n "$GCC_FOR_TARGET"; then
10036   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10037 else
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in $PATH
10040 do
10041   IFS=$as_save_IFS
10042   test -z "$as_dir" && as_dir=.
10043     for ac_exec_ext in '' $ac_executable_extensions; do
10044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10045     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047     break 2
10048   fi
10049 done
10050   done
10051 IFS=$as_save_IFS
10052
10053 fi
10054 fi
10055 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10056 if test -n "$GCC_FOR_TARGET"; then
10057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10058 $as_echo "$GCC_FOR_TARGET" >&6; }
10059 else
10060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10062 fi
10063
10064
10065     fi
10066     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10067   done
10068 fi
10069
10070 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10071   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10072 else
10073   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10074 fi
10075
10076
10077
10078 if test -n "$GCJ_FOR_TARGET"; then
10079   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10080 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10081   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10082 fi
10083
10084 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10085   for ncn_progname in gcj; do
10086     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10087 set dummy ${ncn_progname}; ac_word=$2
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089 $as_echo_n "checking for $ac_word... " >&6; }
10090 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10091   $as_echo_n "(cached) " >&6
10092 else
10093   if test -n "$GCJ_FOR_TARGET"; then
10094   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10095 else
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10098 do
10099   IFS=$as_save_IFS
10100   test -z "$as_dir" && as_dir=.
10101     for ac_exec_ext in '' $ac_executable_extensions; do
10102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105     break 2
10106   fi
10107 done
10108   done
10109 IFS=$as_save_IFS
10110
10111 fi
10112 fi
10113 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10114 if test -n "$GCJ_FOR_TARGET"; then
10115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10116 $as_echo "$GCJ_FOR_TARGET" >&6; }
10117 else
10118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10120 fi
10121
10122
10123   done
10124 fi
10125
10126 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10127   for ncn_progname in gcj; do
10128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10129 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10130     if test -x $with_build_time_tools/${ncn_progname}; then
10131       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10132       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10133 $as_echo "yes" >&6; }
10134       break
10135     else
10136       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138     fi
10139   done
10140 fi
10141
10142 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10143   for ncn_progname in gcj; do
10144     if test -n "$ncn_target_tool_prefix"; then
10145       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10146 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10148 $as_echo_n "checking for $ac_word... " >&6; }
10149 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10150   $as_echo_n "(cached) " >&6
10151 else
10152   if test -n "$GCJ_FOR_TARGET"; then
10153   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10154 else
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10157 do
10158   IFS=$as_save_IFS
10159   test -z "$as_dir" && as_dir=.
10160     for ac_exec_ext in '' $ac_executable_extensions; do
10161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10162     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164     break 2
10165   fi
10166 done
10167   done
10168 IFS=$as_save_IFS
10169
10170 fi
10171 fi
10172 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10173 if test -n "$GCJ_FOR_TARGET"; then
10174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10175 $as_echo "$GCJ_FOR_TARGET" >&6; }
10176 else
10177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10179 fi
10180
10181
10182     fi
10183     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10184       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10185 set dummy ${ncn_progname}; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10189   $as_echo_n "(cached) " >&6
10190 else
10191   if test -n "$GCJ_FOR_TARGET"; then
10192   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10193 else
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195 for as_dir in $PATH
10196 do
10197   IFS=$as_save_IFS
10198   test -z "$as_dir" && as_dir=.
10199     for ac_exec_ext in '' $ac_executable_extensions; do
10200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10201     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203     break 2
10204   fi
10205 done
10206   done
10207 IFS=$as_save_IFS
10208
10209 fi
10210 fi
10211 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10212 if test -n "$GCJ_FOR_TARGET"; then
10213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10214 $as_echo "$GCJ_FOR_TARGET" >&6; }
10215 else
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10218 fi
10219
10220
10221     fi
10222     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10223   done
10224 fi
10225
10226 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10227   set dummy gcj
10228   if test $build = $target ; then
10229     GCJ_FOR_TARGET="$2"
10230   else
10231     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10232   fi
10233 else
10234   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10235 fi
10236
10237
10238
10239 if test -n "$GFORTRAN_FOR_TARGET"; then
10240   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10241 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10242   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10243 fi
10244
10245 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10246   for ncn_progname in gfortran; do
10247     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10248 set dummy ${ncn_progname}; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10252   $as_echo_n "(cached) " >&6
10253 else
10254   if test -n "$GFORTRAN_FOR_TARGET"; then
10255   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10256 else
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10259 do
10260   IFS=$as_save_IFS
10261   test -z "$as_dir" && as_dir=.
10262     for ac_exec_ext in '' $ac_executable_extensions; do
10263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266     break 2
10267   fi
10268 done
10269   done
10270 IFS=$as_save_IFS
10271
10272 fi
10273 fi
10274 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10275 if test -n "$GFORTRAN_FOR_TARGET"; then
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10277 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10278 else
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10281 fi
10282
10283
10284   done
10285 fi
10286
10287 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10288   for ncn_progname in gfortran; do
10289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10290 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10291     if test -x $with_build_time_tools/${ncn_progname}; then
10292       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10293       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10294 $as_echo "yes" >&6; }
10295       break
10296     else
10297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298 $as_echo "no" >&6; }
10299     fi
10300   done
10301 fi
10302
10303 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10304   for ncn_progname in gfortran; do
10305     if test -n "$ncn_target_tool_prefix"; then
10306       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10307 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309 $as_echo_n "checking for $ac_word... " >&6; }
10310 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10311   $as_echo_n "(cached) " >&6
10312 else
10313   if test -n "$GFORTRAN_FOR_TARGET"; then
10314   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10315 else
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $PATH
10318 do
10319   IFS=$as_save_IFS
10320   test -z "$as_dir" && as_dir=.
10321     for ac_exec_ext in '' $ac_executable_extensions; do
10322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10323     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325     break 2
10326   fi
10327 done
10328   done
10329 IFS=$as_save_IFS
10330
10331 fi
10332 fi
10333 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10334 if test -n "$GFORTRAN_FOR_TARGET"; then
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10336 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10337 else
10338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10340 fi
10341
10342
10343     fi
10344     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10345       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10346 set dummy ${ncn_progname}; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10350   $as_echo_n "(cached) " >&6
10351 else
10352   if test -n "$GFORTRAN_FOR_TARGET"; then
10353   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10354 else
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10357 do
10358   IFS=$as_save_IFS
10359   test -z "$as_dir" && as_dir=.
10360     for ac_exec_ext in '' $ac_executable_extensions; do
10361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10362     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364     break 2
10365   fi
10366 done
10367   done
10368 IFS=$as_save_IFS
10369
10370 fi
10371 fi
10372 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10373 if test -n "$GFORTRAN_FOR_TARGET"; then
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10375 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10376 else
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10379 fi
10380
10381
10382     fi
10383     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10384   done
10385 fi
10386
10387 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10388   set dummy gfortran
10389   if test $build = $target ; then
10390     GFORTRAN_FOR_TARGET="$2"
10391   else
10392     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10393   fi
10394 else
10395   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10396 fi
10397
10398
10399
10400 if test -n "$GOC_FOR_TARGET"; then
10401   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10402 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10403   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10404 fi
10405
10406 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10407   for ncn_progname in gccgo; do
10408     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10409 set dummy ${ncn_progname}; ac_word=$2
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10411 $as_echo_n "checking for $ac_word... " >&6; }
10412 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10413   $as_echo_n "(cached) " >&6
10414 else
10415   if test -n "$GOC_FOR_TARGET"; then
10416   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10417 else
10418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10419 for as_dir in $PATH
10420 do
10421   IFS=$as_save_IFS
10422   test -z "$as_dir" && as_dir=.
10423     for ac_exec_ext in '' $ac_executable_extensions; do
10424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10425     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10427     break 2
10428   fi
10429 done
10430   done
10431 IFS=$as_save_IFS
10432
10433 fi
10434 fi
10435 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10436 if test -n "$GOC_FOR_TARGET"; then
10437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10438 $as_echo "$GOC_FOR_TARGET" >&6; }
10439 else
10440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; }
10442 fi
10443
10444
10445   done
10446 fi
10447
10448 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10449   for ncn_progname in gccgo; do
10450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10451 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10452     if test -x $with_build_time_tools/${ncn_progname}; then
10453       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10454       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10455 $as_echo "yes" >&6; }
10456       break
10457     else
10458       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10460     fi
10461   done
10462 fi
10463
10464 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10465   for ncn_progname in gccgo; do
10466     if test -n "$ncn_target_tool_prefix"; then
10467       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10468 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470 $as_echo_n "checking for $ac_word... " >&6; }
10471 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10472   $as_echo_n "(cached) " >&6
10473 else
10474   if test -n "$GOC_FOR_TARGET"; then
10475   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10476 else
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10479 do
10480   IFS=$as_save_IFS
10481   test -z "$as_dir" && as_dir=.
10482     for ac_exec_ext in '' $ac_executable_extensions; do
10483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10484     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10486     break 2
10487   fi
10488 done
10489   done
10490 IFS=$as_save_IFS
10491
10492 fi
10493 fi
10494 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10495 if test -n "$GOC_FOR_TARGET"; then
10496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10497 $as_echo "$GOC_FOR_TARGET" >&6; }
10498 else
10499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10501 fi
10502
10503
10504     fi
10505     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10506       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10507 set dummy ${ncn_progname}; ac_word=$2
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10509 $as_echo_n "checking for $ac_word... " >&6; }
10510 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10511   $as_echo_n "(cached) " >&6
10512 else
10513   if test -n "$GOC_FOR_TARGET"; then
10514   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10515 else
10516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517 for as_dir in $PATH
10518 do
10519   IFS=$as_save_IFS
10520   test -z "$as_dir" && as_dir=.
10521     for ac_exec_ext in '' $ac_executable_extensions; do
10522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10523     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10525     break 2
10526   fi
10527 done
10528   done
10529 IFS=$as_save_IFS
10530
10531 fi
10532 fi
10533 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10534 if test -n "$GOC_FOR_TARGET"; then
10535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10536 $as_echo "$GOC_FOR_TARGET" >&6; }
10537 else
10538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539 $as_echo "no" >&6; }
10540 fi
10541
10542
10543     fi
10544     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10545   done
10546 fi
10547
10548 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10549   set dummy gccgo
10550   if test $build = $target ; then
10551     GOC_FOR_TARGET="$2"
10552   else
10553     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10554   fi
10555 else
10556   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10557 fi
10558
10559
10560
10561 cat > conftest.c << \EOF
10562 #ifdef __GNUC__
10563   gcc_yay;
10564 #endif
10565 EOF
10566 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10567   have_gcc_for_target=yes
10568 else
10569   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10570   have_gcc_for_target=no
10571 fi
10572 rm conftest.c
10573
10574
10575
10576
10577 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10578   if test -n "$with_build_time_tools"; then
10579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10580 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10581     if test -x $with_build_time_tools/ar; then
10582       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10583       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10585 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10586     else
10587       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10589     fi
10590   elif test $build != $host && test $have_gcc_for_target = yes; then
10591     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10592     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10593     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10594   fi
10595 fi
10596 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10597   # Extract the first word of "ar", so it can be a program name with args.
10598 set dummy ar; ac_word=$2
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10600 $as_echo_n "checking for $ac_word... " >&6; }
10601 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10602   $as_echo_n "(cached) " >&6
10603 else
10604   case $AR_FOR_TARGET in
10605   [\\/]* | ?:[\\/]*)
10606   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10607   ;;
10608   *)
10609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $gcc_cv_tool_dirs
10611 do
10612   IFS=$as_save_IFS
10613   test -z "$as_dir" && as_dir=.
10614     for ac_exec_ext in '' $ac_executable_extensions; do
10615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10616     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618     break 2
10619   fi
10620 done
10621   done
10622 IFS=$as_save_IFS
10623
10624   ;;
10625 esac
10626 fi
10627 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10628 if test -n "$AR_FOR_TARGET"; then
10629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10630 $as_echo "$AR_FOR_TARGET" >&6; }
10631 else
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10634 fi
10635
10636
10637 fi
10638 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10639
10640
10641 if test -n "$AR_FOR_TARGET"; then
10642   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10643 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10644   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10645 fi
10646
10647 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10648   for ncn_progname in ar; do
10649     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10650 set dummy ${ncn_progname}; ac_word=$2
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 $as_echo_n "checking for $ac_word... " >&6; }
10653 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10654   $as_echo_n "(cached) " >&6
10655 else
10656   if test -n "$AR_FOR_TARGET"; then
10657   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10658 else
10659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10661 do
10662   IFS=$as_save_IFS
10663   test -z "$as_dir" && as_dir=.
10664     for ac_exec_ext in '' $ac_executable_extensions; do
10665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10666     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10668     break 2
10669   fi
10670 done
10671   done
10672 IFS=$as_save_IFS
10673
10674 fi
10675 fi
10676 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10677 if test -n "$AR_FOR_TARGET"; then
10678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10679 $as_echo "$AR_FOR_TARGET" >&6; }
10680 else
10681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10683 fi
10684
10685
10686   done
10687 fi
10688
10689 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10690   for ncn_progname in ar; do
10691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10692 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10693     if test -x $with_build_time_tools/${ncn_progname}; then
10694       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10695       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10696 $as_echo "yes" >&6; }
10697       break
10698     else
10699       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10701     fi
10702   done
10703 fi
10704
10705 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10706   for ncn_progname in ar; do
10707     if test -n "$ncn_target_tool_prefix"; then
10708       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10709 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10713   $as_echo_n "(cached) " >&6
10714 else
10715   if test -n "$AR_FOR_TARGET"; then
10716   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10717 else
10718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 for as_dir in $PATH
10720 do
10721   IFS=$as_save_IFS
10722   test -z "$as_dir" && as_dir=.
10723     for ac_exec_ext in '' $ac_executable_extensions; do
10724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10727     break 2
10728   fi
10729 done
10730   done
10731 IFS=$as_save_IFS
10732
10733 fi
10734 fi
10735 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10736 if test -n "$AR_FOR_TARGET"; then
10737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10738 $as_echo "$AR_FOR_TARGET" >&6; }
10739 else
10740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 $as_echo "no" >&6; }
10742 fi
10743
10744
10745     fi
10746     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10747       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10748 set dummy ${ncn_progname}; ac_word=$2
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10750 $as_echo_n "checking for $ac_word... " >&6; }
10751 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10752   $as_echo_n "(cached) " >&6
10753 else
10754   if test -n "$AR_FOR_TARGET"; then
10755   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10756 else
10757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758 for as_dir in $PATH
10759 do
10760   IFS=$as_save_IFS
10761   test -z "$as_dir" && as_dir=.
10762     for ac_exec_ext in '' $ac_executable_extensions; do
10763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10764     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10766     break 2
10767   fi
10768 done
10769   done
10770 IFS=$as_save_IFS
10771
10772 fi
10773 fi
10774 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10775 if test -n "$AR_FOR_TARGET"; then
10776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10777 $as_echo "$AR_FOR_TARGET" >&6; }
10778 else
10779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10780 $as_echo "no" >&6; }
10781 fi
10782
10783
10784     fi
10785     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10786   done
10787 fi
10788
10789 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10790   set dummy ar
10791   if test $build = $target ; then
10792     AR_FOR_TARGET="$2"
10793   else
10794     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10795   fi
10796 else
10797   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10798 fi
10799
10800 else
10801   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10802 fi
10803
10804
10805
10806
10807 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10808   if test -n "$with_build_time_tools"; then
10809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10810 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10811     if test -x $with_build_time_tools/as; then
10812       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10813       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10814       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10815 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10816     else
10817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 $as_echo "no" >&6; }
10819     fi
10820   elif test $build != $host && test $have_gcc_for_target = yes; then
10821     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10822     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10823     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10824   fi
10825 fi
10826 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10827   # Extract the first word of "as", so it can be a program name with args.
10828 set dummy as; ac_word=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 $as_echo_n "checking for $ac_word... " >&6; }
10831 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10832   $as_echo_n "(cached) " >&6
10833 else
10834   case $AS_FOR_TARGET in
10835   [\\/]* | ?:[\\/]*)
10836   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10837   ;;
10838   *)
10839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $gcc_cv_tool_dirs
10841 do
10842   IFS=$as_save_IFS
10843   test -z "$as_dir" && as_dir=.
10844     for ac_exec_ext in '' $ac_executable_extensions; do
10845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10846     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848     break 2
10849   fi
10850 done
10851   done
10852 IFS=$as_save_IFS
10853
10854   ;;
10855 esac
10856 fi
10857 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10858 if test -n "$AS_FOR_TARGET"; then
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10860 $as_echo "$AS_FOR_TARGET" >&6; }
10861 else
10862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 $as_echo "no" >&6; }
10864 fi
10865
10866
10867 fi
10868 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10869
10870
10871 if test -n "$AS_FOR_TARGET"; then
10872   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10873 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10874   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10875 fi
10876
10877 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10878   for ncn_progname in as; do
10879     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10880 set dummy ${ncn_progname}; ac_word=$2
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882 $as_echo_n "checking for $ac_word... " >&6; }
10883 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10884   $as_echo_n "(cached) " >&6
10885 else
10886   if test -n "$AS_FOR_TARGET"; then
10887   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10888 else
10889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890 for as_dir in $PATH
10891 do
10892   IFS=$as_save_IFS
10893   test -z "$as_dir" && as_dir=.
10894     for ac_exec_ext in '' $ac_executable_extensions; do
10895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10896     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10898     break 2
10899   fi
10900 done
10901   done
10902 IFS=$as_save_IFS
10903
10904 fi
10905 fi
10906 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10907 if test -n "$AS_FOR_TARGET"; then
10908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10909 $as_echo "$AS_FOR_TARGET" >&6; }
10910 else
10911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10912 $as_echo "no" >&6; }
10913 fi
10914
10915
10916   done
10917 fi
10918
10919 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10920   for ncn_progname in as; do
10921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10922 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10923     if test -x $with_build_time_tools/${ncn_progname}; then
10924       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10925       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10926 $as_echo "yes" >&6; }
10927       break
10928     else
10929       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10930 $as_echo "no" >&6; }
10931     fi
10932   done
10933 fi
10934
10935 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10936   for ncn_progname in as; do
10937     if test -n "$ncn_target_tool_prefix"; then
10938       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10939 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10941 $as_echo_n "checking for $ac_word... " >&6; }
10942 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10943   $as_echo_n "(cached) " >&6
10944 else
10945   if test -n "$AS_FOR_TARGET"; then
10946   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10947 else
10948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949 for as_dir in $PATH
10950 do
10951   IFS=$as_save_IFS
10952   test -z "$as_dir" && as_dir=.
10953     for ac_exec_ext in '' $ac_executable_extensions; do
10954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10955     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957     break 2
10958   fi
10959 done
10960   done
10961 IFS=$as_save_IFS
10962
10963 fi
10964 fi
10965 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10966 if test -n "$AS_FOR_TARGET"; then
10967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10968 $as_echo "$AS_FOR_TARGET" >&6; }
10969 else
10970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10972 fi
10973
10974
10975     fi
10976     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10977       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10978 set dummy ${ncn_progname}; ac_word=$2
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10980 $as_echo_n "checking for $ac_word... " >&6; }
10981 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10982   $as_echo_n "(cached) " >&6
10983 else
10984   if test -n "$AS_FOR_TARGET"; then
10985   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10986 else
10987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988 for as_dir in $PATH
10989 do
10990   IFS=$as_save_IFS
10991   test -z "$as_dir" && as_dir=.
10992     for ac_exec_ext in '' $ac_executable_extensions; do
10993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10994     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10996     break 2
10997   fi
10998 done
10999   done
11000 IFS=$as_save_IFS
11001
11002 fi
11003 fi
11004 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11005 if test -n "$AS_FOR_TARGET"; then
11006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11007 $as_echo "$AS_FOR_TARGET" >&6; }
11008 else
11009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11011 fi
11012
11013
11014     fi
11015     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11016   done
11017 fi
11018
11019 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11020   set dummy as
11021   if test $build = $target ; then
11022     AS_FOR_TARGET="$2"
11023   else
11024     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11025   fi
11026 else
11027   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11028 fi
11029
11030 else
11031   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11032 fi
11033
11034
11035
11036
11037 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11038   if test -n "$with_build_time_tools"; then
11039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11040 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11041     if test -x $with_build_time_tools/dlltool; then
11042       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11043       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11044       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11045 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11046     else
11047       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11049     fi
11050   elif test $build != $host && test $have_gcc_for_target = yes; then
11051     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11052     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11053     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11054   fi
11055 fi
11056 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11057   # Extract the first word of "dlltool", so it can be a program name with args.
11058 set dummy dlltool; ac_word=$2
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060 $as_echo_n "checking for $ac_word... " >&6; }
11061 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11062   $as_echo_n "(cached) " >&6
11063 else
11064   case $DLLTOOL_FOR_TARGET in
11065   [\\/]* | ?:[\\/]*)
11066   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11067   ;;
11068   *)
11069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070 for as_dir in $gcc_cv_tool_dirs
11071 do
11072   IFS=$as_save_IFS
11073   test -z "$as_dir" && as_dir=.
11074     for ac_exec_ext in '' $ac_executable_extensions; do
11075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11076     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11078     break 2
11079   fi
11080 done
11081   done
11082 IFS=$as_save_IFS
11083
11084   ;;
11085 esac
11086 fi
11087 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11088 if test -n "$DLLTOOL_FOR_TARGET"; then
11089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11090 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11091 else
11092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11094 fi
11095
11096
11097 fi
11098 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11099
11100
11101 if test -n "$DLLTOOL_FOR_TARGET"; then
11102   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11103 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11104   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11105 fi
11106
11107 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11108   for ncn_progname in dlltool; do
11109     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11110 set dummy ${ncn_progname}; ac_word=$2
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112 $as_echo_n "checking for $ac_word... " >&6; }
11113 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11114   $as_echo_n "(cached) " >&6
11115 else
11116   if test -n "$DLLTOOL_FOR_TARGET"; then
11117   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11118 else
11119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120 for as_dir in $PATH
11121 do
11122   IFS=$as_save_IFS
11123   test -z "$as_dir" && as_dir=.
11124     for ac_exec_ext in '' $ac_executable_extensions; do
11125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11126     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128     break 2
11129   fi
11130 done
11131   done
11132 IFS=$as_save_IFS
11133
11134 fi
11135 fi
11136 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11137 if test -n "$DLLTOOL_FOR_TARGET"; then
11138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11139 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11140 else
11141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142 $as_echo "no" >&6; }
11143 fi
11144
11145
11146   done
11147 fi
11148
11149 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11150   for ncn_progname in dlltool; do
11151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11152 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11153     if test -x $with_build_time_tools/${ncn_progname}; then
11154       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11156 $as_echo "yes" >&6; }
11157       break
11158     else
11159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11161     fi
11162   done
11163 fi
11164
11165 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11166   for ncn_progname in dlltool; do
11167     if test -n "$ncn_target_tool_prefix"; then
11168       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11169 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11171 $as_echo_n "checking for $ac_word... " >&6; }
11172 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11173   $as_echo_n "(cached) " >&6
11174 else
11175   if test -n "$DLLTOOL_FOR_TARGET"; then
11176   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11177 else
11178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179 for as_dir in $PATH
11180 do
11181   IFS=$as_save_IFS
11182   test -z "$as_dir" && as_dir=.
11183     for ac_exec_ext in '' $ac_executable_extensions; do
11184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11185     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11187     break 2
11188   fi
11189 done
11190   done
11191 IFS=$as_save_IFS
11192
11193 fi
11194 fi
11195 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11196 if test -n "$DLLTOOL_FOR_TARGET"; then
11197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11198 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11199 else
11200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11202 fi
11203
11204
11205     fi
11206     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11207       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11208 set dummy ${ncn_progname}; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11212   $as_echo_n "(cached) " >&6
11213 else
11214   if test -n "$DLLTOOL_FOR_TARGET"; then
11215   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11216 else
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11219 do
11220   IFS=$as_save_IFS
11221   test -z "$as_dir" && as_dir=.
11222     for ac_exec_ext in '' $ac_executable_extensions; do
11223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11224     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226     break 2
11227   fi
11228 done
11229   done
11230 IFS=$as_save_IFS
11231
11232 fi
11233 fi
11234 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11235 if test -n "$DLLTOOL_FOR_TARGET"; then
11236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11237 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11238 else
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240 $as_echo "no" >&6; }
11241 fi
11242
11243
11244     fi
11245     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11246   done
11247 fi
11248
11249 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11250   set dummy dlltool
11251   if test $build = $target ; then
11252     DLLTOOL_FOR_TARGET="$2"
11253   else
11254     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11255   fi
11256 else
11257   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11258 fi
11259
11260 else
11261   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11262 fi
11263
11264
11265
11266
11267 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11268   if test -n "$with_build_time_tools"; then
11269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11270 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11271     if test -x $with_build_time_tools/ld; then
11272       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11273       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11274       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11275 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11276     else
11277       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11279     fi
11280   elif test $build != $host && test $have_gcc_for_target = yes; then
11281     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11282     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11283     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11284   fi
11285 fi
11286 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11287   # Extract the first word of "ld", so it can be a program name with args.
11288 set dummy ld; ac_word=$2
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290 $as_echo_n "checking for $ac_word... " >&6; }
11291 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11292   $as_echo_n "(cached) " >&6
11293 else
11294   case $LD_FOR_TARGET in
11295   [\\/]* | ?:[\\/]*)
11296   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11297   ;;
11298   *)
11299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $gcc_cv_tool_dirs
11301 do
11302   IFS=$as_save_IFS
11303   test -z "$as_dir" && as_dir=.
11304     for ac_exec_ext in '' $ac_executable_extensions; do
11305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11306     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308     break 2
11309   fi
11310 done
11311   done
11312 IFS=$as_save_IFS
11313
11314   ;;
11315 esac
11316 fi
11317 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11318 if test -n "$LD_FOR_TARGET"; then
11319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11320 $as_echo "$LD_FOR_TARGET" >&6; }
11321 else
11322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11324 fi
11325
11326
11327 fi
11328 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11329
11330
11331 if test -n "$LD_FOR_TARGET"; then
11332   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11333 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11334   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11335 fi
11336
11337 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11338   for ncn_progname in ld; do
11339     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11340 set dummy ${ncn_progname}; ac_word=$2
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342 $as_echo_n "checking for $ac_word... " >&6; }
11343 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11344   $as_echo_n "(cached) " >&6
11345 else
11346   if test -n "$LD_FOR_TARGET"; then
11347   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11348 else
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11351 do
11352   IFS=$as_save_IFS
11353   test -z "$as_dir" && as_dir=.
11354     for ac_exec_ext in '' $ac_executable_extensions; do
11355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11356     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11358     break 2
11359   fi
11360 done
11361   done
11362 IFS=$as_save_IFS
11363
11364 fi
11365 fi
11366 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11367 if test -n "$LD_FOR_TARGET"; then
11368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11369 $as_echo "$LD_FOR_TARGET" >&6; }
11370 else
11371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11373 fi
11374
11375
11376   done
11377 fi
11378
11379 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11380   for ncn_progname in ld; do
11381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11382 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11383     if test -x $with_build_time_tools/${ncn_progname}; then
11384       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11386 $as_echo "yes" >&6; }
11387       break
11388     else
11389       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11391     fi
11392   done
11393 fi
11394
11395 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11396   for ncn_progname in ld; do
11397     if test -n "$ncn_target_tool_prefix"; then
11398       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11399 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401 $as_echo_n "checking for $ac_word... " >&6; }
11402 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11403   $as_echo_n "(cached) " >&6
11404 else
11405   if test -n "$LD_FOR_TARGET"; then
11406   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11407 else
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11410 do
11411   IFS=$as_save_IFS
11412   test -z "$as_dir" && as_dir=.
11413     for ac_exec_ext in '' $ac_executable_extensions; do
11414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11415     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417     break 2
11418   fi
11419 done
11420   done
11421 IFS=$as_save_IFS
11422
11423 fi
11424 fi
11425 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11426 if test -n "$LD_FOR_TARGET"; then
11427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11428 $as_echo "$LD_FOR_TARGET" >&6; }
11429 else
11430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11432 fi
11433
11434
11435     fi
11436     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11437       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11438 set dummy ${ncn_progname}; ac_word=$2
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11440 $as_echo_n "checking for $ac_word... " >&6; }
11441 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11442   $as_echo_n "(cached) " >&6
11443 else
11444   if test -n "$LD_FOR_TARGET"; then
11445   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11446 else
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11449 do
11450   IFS=$as_save_IFS
11451   test -z "$as_dir" && as_dir=.
11452     for ac_exec_ext in '' $ac_executable_extensions; do
11453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11454     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11456     break 2
11457   fi
11458 done
11459   done
11460 IFS=$as_save_IFS
11461
11462 fi
11463 fi
11464 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11465 if test -n "$LD_FOR_TARGET"; then
11466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11467 $as_echo "$LD_FOR_TARGET" >&6; }
11468 else
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 $as_echo "no" >&6; }
11471 fi
11472
11473
11474     fi
11475     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11476   done
11477 fi
11478
11479 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11480   set dummy ld
11481   if test $build = $target ; then
11482     LD_FOR_TARGET="$2"
11483   else
11484     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11485   fi
11486 else
11487   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11488 fi
11489
11490 else
11491   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11492 fi
11493
11494
11495
11496
11497 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11498   if test -n "$with_build_time_tools"; then
11499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11500 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11501     if test -x $with_build_time_tools/lipo; then
11502       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11503       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11504       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11505 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11506     else
11507       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11509     fi
11510   elif test $build != $host && test $have_gcc_for_target = yes; then
11511     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11512     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11513     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11514   fi
11515 fi
11516 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11517   # Extract the first word of "lipo", so it can be a program name with args.
11518 set dummy lipo; ac_word=$2
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520 $as_echo_n "checking for $ac_word... " >&6; }
11521 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11522   $as_echo_n "(cached) " >&6
11523 else
11524   case $LIPO_FOR_TARGET in
11525   [\\/]* | ?:[\\/]*)
11526   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11527   ;;
11528   *)
11529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $gcc_cv_tool_dirs
11531 do
11532   IFS=$as_save_IFS
11533   test -z "$as_dir" && as_dir=.
11534     for ac_exec_ext in '' $ac_executable_extensions; do
11535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538     break 2
11539   fi
11540 done
11541   done
11542 IFS=$as_save_IFS
11543
11544   ;;
11545 esac
11546 fi
11547 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11548 if test -n "$LIPO_FOR_TARGET"; then
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11550 $as_echo "$LIPO_FOR_TARGET" >&6; }
11551 else
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11554 fi
11555
11556
11557 fi
11558 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11559
11560
11561 if test -n "$LIPO_FOR_TARGET"; then
11562   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11563 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11564   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11565 fi
11566
11567 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11568   for ncn_progname in lipo; do
11569     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11570 set dummy ${ncn_progname}; ac_word=$2
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572 $as_echo_n "checking for $ac_word... " >&6; }
11573 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11574   $as_echo_n "(cached) " >&6
11575 else
11576   if test -n "$LIPO_FOR_TARGET"; then
11577   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11578 else
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11581 do
11582   IFS=$as_save_IFS
11583   test -z "$as_dir" && as_dir=.
11584     for ac_exec_ext in '' $ac_executable_extensions; do
11585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11586     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588     break 2
11589   fi
11590 done
11591   done
11592 IFS=$as_save_IFS
11593
11594 fi
11595 fi
11596 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11597 if test -n "$LIPO_FOR_TARGET"; then
11598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11599 $as_echo "$LIPO_FOR_TARGET" >&6; }
11600 else
11601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11603 fi
11604
11605
11606   done
11607 fi
11608
11609 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11610   for ncn_progname in lipo; do
11611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11612 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11613     if test -x $with_build_time_tools/${ncn_progname}; then
11614       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11615       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11616 $as_echo "yes" >&6; }
11617       break
11618     else
11619       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620 $as_echo "no" >&6; }
11621     fi
11622   done
11623 fi
11624
11625 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11626   for ncn_progname in lipo; do
11627     if test -n "$ncn_target_tool_prefix"; then
11628       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11629 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631 $as_echo_n "checking for $ac_word... " >&6; }
11632 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11633   $as_echo_n "(cached) " >&6
11634 else
11635   if test -n "$LIPO_FOR_TARGET"; then
11636   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11637 else
11638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639 for as_dir in $PATH
11640 do
11641   IFS=$as_save_IFS
11642   test -z "$as_dir" && as_dir=.
11643     for ac_exec_ext in '' $ac_executable_extensions; do
11644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11645     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11647     break 2
11648   fi
11649 done
11650   done
11651 IFS=$as_save_IFS
11652
11653 fi
11654 fi
11655 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11656 if test -n "$LIPO_FOR_TARGET"; then
11657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11658 $as_echo "$LIPO_FOR_TARGET" >&6; }
11659 else
11660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11662 fi
11663
11664
11665     fi
11666     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11667       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11668 set dummy ${ncn_progname}; ac_word=$2
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11670 $as_echo_n "checking for $ac_word... " >&6; }
11671 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11672   $as_echo_n "(cached) " >&6
11673 else
11674   if test -n "$LIPO_FOR_TARGET"; then
11675   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11676 else
11677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678 for as_dir in $PATH
11679 do
11680   IFS=$as_save_IFS
11681   test -z "$as_dir" && as_dir=.
11682     for ac_exec_ext in '' $ac_executable_extensions; do
11683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11684     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11686     break 2
11687   fi
11688 done
11689   done
11690 IFS=$as_save_IFS
11691
11692 fi
11693 fi
11694 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11695 if test -n "$LIPO_FOR_TARGET"; then
11696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11697 $as_echo "$LIPO_FOR_TARGET" >&6; }
11698 else
11699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11700 $as_echo "no" >&6; }
11701 fi
11702
11703
11704     fi
11705     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11706   done
11707 fi
11708
11709 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11710   set dummy lipo
11711   if test $build = $target ; then
11712     LIPO_FOR_TARGET="$2"
11713   else
11714     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11715   fi
11716 else
11717   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11718 fi
11719
11720 else
11721   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11722 fi
11723
11724
11725
11726
11727 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11728   if test -n "$with_build_time_tools"; then
11729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11730 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11731     if test -x $with_build_time_tools/nm; then
11732       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11733       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11734       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11735 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11736     else
11737       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11739     fi
11740   elif test $build != $host && test $have_gcc_for_target = yes; then
11741     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11742     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11743     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11744   fi
11745 fi
11746 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11747   # Extract the first word of "nm", so it can be a program name with args.
11748 set dummy nm; ac_word=$2
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11750 $as_echo_n "checking for $ac_word... " >&6; }
11751 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11752   $as_echo_n "(cached) " >&6
11753 else
11754   case $NM_FOR_TARGET in
11755   [\\/]* | ?:[\\/]*)
11756   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11757   ;;
11758   *)
11759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $gcc_cv_tool_dirs
11761 do
11762   IFS=$as_save_IFS
11763   test -z "$as_dir" && as_dir=.
11764     for ac_exec_ext in '' $ac_executable_extensions; do
11765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11766     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11768     break 2
11769   fi
11770 done
11771   done
11772 IFS=$as_save_IFS
11773
11774   ;;
11775 esac
11776 fi
11777 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11778 if test -n "$NM_FOR_TARGET"; then
11779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11780 $as_echo "$NM_FOR_TARGET" >&6; }
11781 else
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783 $as_echo "no" >&6; }
11784 fi
11785
11786
11787 fi
11788 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11789
11790
11791 if test -n "$NM_FOR_TARGET"; then
11792   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11793 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11794   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11795 fi
11796
11797 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11798   for ncn_progname in nm; do
11799     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11800 set dummy ${ncn_progname}; ac_word=$2
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802 $as_echo_n "checking for $ac_word... " >&6; }
11803 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11804   $as_echo_n "(cached) " >&6
11805 else
11806   if test -n "$NM_FOR_TARGET"; then
11807   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11808 else
11809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810 for as_dir in $PATH
11811 do
11812   IFS=$as_save_IFS
11813   test -z "$as_dir" && as_dir=.
11814     for ac_exec_ext in '' $ac_executable_extensions; do
11815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11816     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11818     break 2
11819   fi
11820 done
11821   done
11822 IFS=$as_save_IFS
11823
11824 fi
11825 fi
11826 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11827 if test -n "$NM_FOR_TARGET"; then
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11829 $as_echo "$NM_FOR_TARGET" >&6; }
11830 else
11831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832 $as_echo "no" >&6; }
11833 fi
11834
11835
11836   done
11837 fi
11838
11839 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11840   for ncn_progname in nm; do
11841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11842 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11843     if test -x $with_build_time_tools/${ncn_progname}; then
11844       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11846 $as_echo "yes" >&6; }
11847       break
11848     else
11849       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11851     fi
11852   done
11853 fi
11854
11855 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11856   for ncn_progname in nm; do
11857     if test -n "$ncn_target_tool_prefix"; then
11858       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11859 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   if test -n "$NM_FOR_TARGET"; then
11866   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11867 else
11868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869 for as_dir in $PATH
11870 do
11871   IFS=$as_save_IFS
11872   test -z "$as_dir" && as_dir=.
11873     for ac_exec_ext in '' $ac_executable_extensions; do
11874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11875     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877     break 2
11878   fi
11879 done
11880   done
11881 IFS=$as_save_IFS
11882
11883 fi
11884 fi
11885 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11886 if test -n "$NM_FOR_TARGET"; then
11887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11888 $as_echo "$NM_FOR_TARGET" >&6; }
11889 else
11890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892 fi
11893
11894
11895     fi
11896     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11897       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11898 set dummy ${ncn_progname}; ac_word=$2
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900 $as_echo_n "checking for $ac_word... " >&6; }
11901 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11902   $as_echo_n "(cached) " >&6
11903 else
11904   if test -n "$NM_FOR_TARGET"; then
11905   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11906 else
11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH
11909 do
11910   IFS=$as_save_IFS
11911   test -z "$as_dir" && as_dir=.
11912     for ac_exec_ext in '' $ac_executable_extensions; do
11913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11914     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11916     break 2
11917   fi
11918 done
11919   done
11920 IFS=$as_save_IFS
11921
11922 fi
11923 fi
11924 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11925 if test -n "$NM_FOR_TARGET"; then
11926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11927 $as_echo "$NM_FOR_TARGET" >&6; }
11928 else
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11931 fi
11932
11933
11934     fi
11935     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11936   done
11937 fi
11938
11939 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11940   set dummy nm
11941   if test $build = $target ; then
11942     NM_FOR_TARGET="$2"
11943   else
11944     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11945   fi
11946 else
11947   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11948 fi
11949
11950 else
11951   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11952 fi
11953
11954
11955
11956
11957 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11958   if test -n "$with_build_time_tools"; then
11959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11960 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11961     if test -x $with_build_time_tools/objdump; then
11962       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11963       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11965 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11966     else
11967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11969     fi
11970   elif test $build != $host && test $have_gcc_for_target = yes; then
11971     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11972     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11973     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11974   fi
11975 fi
11976 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11977   # Extract the first word of "objdump", so it can be a program name with args.
11978 set dummy objdump; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11982   $as_echo_n "(cached) " >&6
11983 else
11984   case $OBJDUMP_FOR_TARGET in
11985   [\\/]* | ?:[\\/]*)
11986   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11987   ;;
11988   *)
11989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $gcc_cv_tool_dirs
11991 do
11992   IFS=$as_save_IFS
11993   test -z "$as_dir" && as_dir=.
11994     for ac_exec_ext in '' $ac_executable_extensions; do
11995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11996     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998     break 2
11999   fi
12000 done
12001   done
12002 IFS=$as_save_IFS
12003
12004   ;;
12005 esac
12006 fi
12007 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12008 if test -n "$OBJDUMP_FOR_TARGET"; then
12009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12010 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12011 else
12012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12014 fi
12015
12016
12017 fi
12018 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12019
12020
12021 if test -n "$OBJDUMP_FOR_TARGET"; then
12022   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12023 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12024   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12025 fi
12026
12027 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12028   for ncn_progname in objdump; do
12029     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12030 set dummy ${ncn_progname}; ac_word=$2
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032 $as_echo_n "checking for $ac_word... " >&6; }
12033 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12034   $as_echo_n "(cached) " >&6
12035 else
12036   if test -n "$OBJDUMP_FOR_TARGET"; then
12037   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12038 else
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12041 do
12042   IFS=$as_save_IFS
12043   test -z "$as_dir" && as_dir=.
12044     for ac_exec_ext in '' $ac_executable_extensions; do
12045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12046     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12048     break 2
12049   fi
12050 done
12051   done
12052 IFS=$as_save_IFS
12053
12054 fi
12055 fi
12056 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12057 if test -n "$OBJDUMP_FOR_TARGET"; then
12058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12059 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12060 else
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062 $as_echo "no" >&6; }
12063 fi
12064
12065
12066   done
12067 fi
12068
12069 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12070   for ncn_progname in objdump; do
12071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12072 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12073     if test -x $with_build_time_tools/${ncn_progname}; then
12074       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12075       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12076 $as_echo "yes" >&6; }
12077       break
12078     else
12079       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080 $as_echo "no" >&6; }
12081     fi
12082   done
12083 fi
12084
12085 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12086   for ncn_progname in objdump; do
12087     if test -n "$ncn_target_tool_prefix"; then
12088       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12089 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091 $as_echo_n "checking for $ac_word... " >&6; }
12092 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12093   $as_echo_n "(cached) " >&6
12094 else
12095   if test -n "$OBJDUMP_FOR_TARGET"; then
12096   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12097 else
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12100 do
12101   IFS=$as_save_IFS
12102   test -z "$as_dir" && as_dir=.
12103     for ac_exec_ext in '' $ac_executable_extensions; do
12104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107     break 2
12108   fi
12109 done
12110   done
12111 IFS=$as_save_IFS
12112
12113 fi
12114 fi
12115 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12116 if test -n "$OBJDUMP_FOR_TARGET"; then
12117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12118 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12119 else
12120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12122 fi
12123
12124
12125     fi
12126     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12127       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12128 set dummy ${ncn_progname}; ac_word=$2
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130 $as_echo_n "checking for $ac_word... " >&6; }
12131 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12132   $as_echo_n "(cached) " >&6
12133 else
12134   if test -n "$OBJDUMP_FOR_TARGET"; then
12135   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12136 else
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12139 do
12140   IFS=$as_save_IFS
12141   test -z "$as_dir" && as_dir=.
12142     for ac_exec_ext in '' $ac_executable_extensions; do
12143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12144     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146     break 2
12147   fi
12148 done
12149   done
12150 IFS=$as_save_IFS
12151
12152 fi
12153 fi
12154 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12155 if test -n "$OBJDUMP_FOR_TARGET"; then
12156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12157 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12158 else
12159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12161 fi
12162
12163
12164     fi
12165     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12166   done
12167 fi
12168
12169 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12170   set dummy objdump
12171   if test $build = $target ; then
12172     OBJDUMP_FOR_TARGET="$2"
12173   else
12174     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12175   fi
12176 else
12177   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12178 fi
12179
12180 else
12181   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12182 fi
12183
12184
12185
12186
12187 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12188   if test -n "$with_build_time_tools"; then
12189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12190 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12191     if test -x $with_build_time_tools/ranlib; then
12192       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12193       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12194       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12195 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12196     else
12197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12199     fi
12200   elif test $build != $host && test $have_gcc_for_target = yes; then
12201     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12202     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12203     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12204   fi
12205 fi
12206 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12207   # Extract the first word of "ranlib", so it can be a program name with args.
12208 set dummy ranlib; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12212   $as_echo_n "(cached) " >&6
12213 else
12214   case $RANLIB_FOR_TARGET in
12215   [\\/]* | ?:[\\/]*)
12216   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12217   ;;
12218   *)
12219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $gcc_cv_tool_dirs
12221 do
12222   IFS=$as_save_IFS
12223   test -z "$as_dir" && as_dir=.
12224     for ac_exec_ext in '' $ac_executable_extensions; do
12225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12226     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228     break 2
12229   fi
12230 done
12231   done
12232 IFS=$as_save_IFS
12233
12234   ;;
12235 esac
12236 fi
12237 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12238 if test -n "$RANLIB_FOR_TARGET"; then
12239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12240 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12241 else
12242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12244 fi
12245
12246
12247 fi
12248 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12249
12250
12251 if test -n "$RANLIB_FOR_TARGET"; then
12252   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12253 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12254   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12255 fi
12256
12257 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12258   for ncn_progname in ranlib; do
12259     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12260 set dummy ${ncn_progname}; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262 $as_echo_n "checking for $ac_word... " >&6; }
12263 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12264   $as_echo_n "(cached) " >&6
12265 else
12266   if test -n "$RANLIB_FOR_TARGET"; then
12267   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12268 else
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12271 do
12272   IFS=$as_save_IFS
12273   test -z "$as_dir" && as_dir=.
12274     for ac_exec_ext in '' $ac_executable_extensions; do
12275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278     break 2
12279   fi
12280 done
12281   done
12282 IFS=$as_save_IFS
12283
12284 fi
12285 fi
12286 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12287 if test -n "$RANLIB_FOR_TARGET"; then
12288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12289 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12290 else
12291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12293 fi
12294
12295
12296   done
12297 fi
12298
12299 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12300   for ncn_progname in ranlib; do
12301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12302 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12303     if test -x $with_build_time_tools/${ncn_progname}; then
12304       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12305       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12306 $as_echo "yes" >&6; }
12307       break
12308     else
12309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12311     fi
12312   done
12313 fi
12314
12315 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12316   for ncn_progname in ranlib; do
12317     if test -n "$ncn_target_tool_prefix"; then
12318       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12319 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12323   $as_echo_n "(cached) " >&6
12324 else
12325   if test -n "$RANLIB_FOR_TARGET"; then
12326   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12327 else
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12330 do
12331   IFS=$as_save_IFS
12332   test -z "$as_dir" && as_dir=.
12333     for ac_exec_ext in '' $ac_executable_extensions; do
12334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337     break 2
12338   fi
12339 done
12340   done
12341 IFS=$as_save_IFS
12342
12343 fi
12344 fi
12345 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12346 if test -n "$RANLIB_FOR_TARGET"; then
12347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12348 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12349 else
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12352 fi
12353
12354
12355     fi
12356     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12357       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12358 set dummy ${ncn_progname}; ac_word=$2
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360 $as_echo_n "checking for $ac_word... " >&6; }
12361 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12362   $as_echo_n "(cached) " >&6
12363 else
12364   if test -n "$RANLIB_FOR_TARGET"; then
12365   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12366 else
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 for as_dir in $PATH
12369 do
12370   IFS=$as_save_IFS
12371   test -z "$as_dir" && as_dir=.
12372     for ac_exec_ext in '' $ac_executable_extensions; do
12373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12374     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376     break 2
12377   fi
12378 done
12379   done
12380 IFS=$as_save_IFS
12381
12382 fi
12383 fi
12384 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12385 if test -n "$RANLIB_FOR_TARGET"; then
12386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12387 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12388 else
12389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12391 fi
12392
12393
12394     fi
12395     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12396   done
12397 fi
12398
12399 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12400   set dummy ranlib
12401   if test $build = $target ; then
12402     RANLIB_FOR_TARGET="$2"
12403   else
12404     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12405   fi
12406 else
12407   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12408 fi
12409
12410 else
12411   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12412 fi
12413
12414
12415
12416
12417 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12418   if test -n "$with_build_time_tools"; then
12419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12420 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12421     if test -x $with_build_time_tools/readelf; then
12422       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12423       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12424       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12425 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12426     else
12427       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12429     fi
12430   elif test $build != $host && test $have_gcc_for_target = yes; then
12431     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12432     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12433     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12434   fi
12435 fi
12436 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12437   # Extract the first word of "readelf", so it can be a program name with args.
12438 set dummy readelf; ac_word=$2
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12440 $as_echo_n "checking for $ac_word... " >&6; }
12441 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12442   $as_echo_n "(cached) " >&6
12443 else
12444   case $READELF_FOR_TARGET in
12445   [\\/]* | ?:[\\/]*)
12446   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12447   ;;
12448   *)
12449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $gcc_cv_tool_dirs
12451 do
12452   IFS=$as_save_IFS
12453   test -z "$as_dir" && as_dir=.
12454     for ac_exec_ext in '' $ac_executable_extensions; do
12455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458     break 2
12459   fi
12460 done
12461   done
12462 IFS=$as_save_IFS
12463
12464   ;;
12465 esac
12466 fi
12467 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12468 if test -n "$READELF_FOR_TARGET"; then
12469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12470 $as_echo "$READELF_FOR_TARGET" >&6; }
12471 else
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12474 fi
12475
12476
12477 fi
12478 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12479
12480
12481 if test -n "$READELF_FOR_TARGET"; then
12482   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12483 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12484   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12485 fi
12486
12487 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12488   for ncn_progname in readelf; do
12489     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12490 set dummy ${ncn_progname}; ac_word=$2
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492 $as_echo_n "checking for $ac_word... " >&6; }
12493 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12494   $as_echo_n "(cached) " >&6
12495 else
12496   if test -n "$READELF_FOR_TARGET"; then
12497   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12498 else
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12501 do
12502   IFS=$as_save_IFS
12503   test -z "$as_dir" && as_dir=.
12504     for ac_exec_ext in '' $ac_executable_extensions; do
12505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12506     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12508     break 2
12509   fi
12510 done
12511   done
12512 IFS=$as_save_IFS
12513
12514 fi
12515 fi
12516 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12517 if test -n "$READELF_FOR_TARGET"; then
12518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12519 $as_echo "$READELF_FOR_TARGET" >&6; }
12520 else
12521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 $as_echo "no" >&6; }
12523 fi
12524
12525
12526   done
12527 fi
12528
12529 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12530   for ncn_progname in readelf; do
12531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12532 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12533     if test -x $with_build_time_tools/${ncn_progname}; then
12534       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12536 $as_echo "yes" >&6; }
12537       break
12538     else
12539       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12541     fi
12542   done
12543 fi
12544
12545 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12546   for ncn_progname in readelf; do
12547     if test -n "$ncn_target_tool_prefix"; then
12548       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12549 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551 $as_echo_n "checking for $ac_word... " >&6; }
12552 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12553   $as_echo_n "(cached) " >&6
12554 else
12555   if test -n "$READELF_FOR_TARGET"; then
12556   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12557 else
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559 for as_dir in $PATH
12560 do
12561   IFS=$as_save_IFS
12562   test -z "$as_dir" && as_dir=.
12563     for ac_exec_ext in '' $ac_executable_extensions; do
12564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12565     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567     break 2
12568   fi
12569 done
12570   done
12571 IFS=$as_save_IFS
12572
12573 fi
12574 fi
12575 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12576 if test -n "$READELF_FOR_TARGET"; then
12577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12578 $as_echo "$READELF_FOR_TARGET" >&6; }
12579 else
12580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12582 fi
12583
12584
12585     fi
12586     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12587       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12588 set dummy ${ncn_progname}; ac_word=$2
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590 $as_echo_n "checking for $ac_word... " >&6; }
12591 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12592   $as_echo_n "(cached) " >&6
12593 else
12594   if test -n "$READELF_FOR_TARGET"; then
12595   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12596 else
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12599 do
12600   IFS=$as_save_IFS
12601   test -z "$as_dir" && as_dir=.
12602     for ac_exec_ext in '' $ac_executable_extensions; do
12603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606     break 2
12607   fi
12608 done
12609   done
12610 IFS=$as_save_IFS
12611
12612 fi
12613 fi
12614 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12615 if test -n "$READELF_FOR_TARGET"; then
12616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12617 $as_echo "$READELF_FOR_TARGET" >&6; }
12618 else
12619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12621 fi
12622
12623
12624     fi
12625     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12626   done
12627 fi
12628
12629 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12630   set dummy readelf
12631   if test $build = $target ; then
12632     READELF_FOR_TARGET="$2"
12633   else
12634     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12635   fi
12636 else
12637   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12638 fi
12639
12640 else
12641   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12642 fi
12643
12644
12645
12646
12647 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12648   if test -n "$with_build_time_tools"; then
12649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12650 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12651     if test -x $with_build_time_tools/strip; then
12652       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12653       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12655 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12656     else
12657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12659     fi
12660   elif test $build != $host && test $have_gcc_for_target = yes; then
12661     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12662     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12663     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12664   fi
12665 fi
12666 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12667   # Extract the first word of "strip", so it can be a program name with args.
12668 set dummy strip; ac_word=$2
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670 $as_echo_n "checking for $ac_word... " >&6; }
12671 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12672   $as_echo_n "(cached) " >&6
12673 else
12674   case $STRIP_FOR_TARGET in
12675   [\\/]* | ?:[\\/]*)
12676   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12677   ;;
12678   *)
12679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in $gcc_cv_tool_dirs
12681 do
12682   IFS=$as_save_IFS
12683   test -z "$as_dir" && as_dir=.
12684     for ac_exec_ext in '' $ac_executable_extensions; do
12685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12686     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12688     break 2
12689   fi
12690 done
12691   done
12692 IFS=$as_save_IFS
12693
12694   ;;
12695 esac
12696 fi
12697 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12698 if test -n "$STRIP_FOR_TARGET"; then
12699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12700 $as_echo "$STRIP_FOR_TARGET" >&6; }
12701 else
12702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703 $as_echo "no" >&6; }
12704 fi
12705
12706
12707 fi
12708 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12709
12710
12711 if test -n "$STRIP_FOR_TARGET"; then
12712   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12713 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12714   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12715 fi
12716
12717 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12718   for ncn_progname in strip; do
12719     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12720 set dummy ${ncn_progname}; ac_word=$2
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722 $as_echo_n "checking for $ac_word... " >&6; }
12723 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12724   $as_echo_n "(cached) " >&6
12725 else
12726   if test -n "$STRIP_FOR_TARGET"; then
12727   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12728 else
12729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12731 do
12732   IFS=$as_save_IFS
12733   test -z "$as_dir" && as_dir=.
12734     for ac_exec_ext in '' $ac_executable_extensions; do
12735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12736     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738     break 2
12739   fi
12740 done
12741   done
12742 IFS=$as_save_IFS
12743
12744 fi
12745 fi
12746 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12747 if test -n "$STRIP_FOR_TARGET"; then
12748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12749 $as_echo "$STRIP_FOR_TARGET" >&6; }
12750 else
12751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12753 fi
12754
12755
12756   done
12757 fi
12758
12759 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12760   for ncn_progname in strip; do
12761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12762 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12763     if test -x $with_build_time_tools/${ncn_progname}; then
12764       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12765       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12766 $as_echo "yes" >&6; }
12767       break
12768     else
12769       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12771     fi
12772   done
12773 fi
12774
12775 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12776   for ncn_progname in strip; do
12777     if test -n "$ncn_target_tool_prefix"; then
12778       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12779 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781 $as_echo_n "checking for $ac_word... " >&6; }
12782 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12783   $as_echo_n "(cached) " >&6
12784 else
12785   if test -n "$STRIP_FOR_TARGET"; then
12786   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12787 else
12788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789 for as_dir in $PATH
12790 do
12791   IFS=$as_save_IFS
12792   test -z "$as_dir" && as_dir=.
12793     for ac_exec_ext in '' $ac_executable_extensions; do
12794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12795     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12797     break 2
12798   fi
12799 done
12800   done
12801 IFS=$as_save_IFS
12802
12803 fi
12804 fi
12805 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12806 if test -n "$STRIP_FOR_TARGET"; then
12807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12808 $as_echo "$STRIP_FOR_TARGET" >&6; }
12809 else
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12812 fi
12813
12814
12815     fi
12816     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12817       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12818 set dummy ${ncn_progname}; ac_word=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 $as_echo_n "checking for $ac_word... " >&6; }
12821 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12822   $as_echo_n "(cached) " >&6
12823 else
12824   if test -n "$STRIP_FOR_TARGET"; then
12825   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12826 else
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12829 do
12830   IFS=$as_save_IFS
12831   test -z "$as_dir" && as_dir=.
12832     for ac_exec_ext in '' $ac_executable_extensions; do
12833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12834     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836     break 2
12837   fi
12838 done
12839   done
12840 IFS=$as_save_IFS
12841
12842 fi
12843 fi
12844 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12845 if test -n "$STRIP_FOR_TARGET"; then
12846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12847 $as_echo "$STRIP_FOR_TARGET" >&6; }
12848 else
12849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12851 fi
12852
12853
12854     fi
12855     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12856   done
12857 fi
12858
12859 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12860   set dummy strip
12861   if test $build = $target ; then
12862     STRIP_FOR_TARGET="$2"
12863   else
12864     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12865   fi
12866 else
12867   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12868 fi
12869
12870 else
12871   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12872 fi
12873
12874
12875
12876
12877 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12878   if test -n "$with_build_time_tools"; then
12879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12880 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12881     if test -x $with_build_time_tools/windres; then
12882       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12883       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12885 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12886     else
12887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12889     fi
12890   elif test $build != $host && test $have_gcc_for_target = yes; then
12891     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12892     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12893     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12894   fi
12895 fi
12896 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12897   # Extract the first word of "windres", so it can be a program name with args.
12898 set dummy windres; ac_word=$2
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12900 $as_echo_n "checking for $ac_word... " >&6; }
12901 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12902   $as_echo_n "(cached) " >&6
12903 else
12904   case $WINDRES_FOR_TARGET in
12905   [\\/]* | ?:[\\/]*)
12906   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12907   ;;
12908   *)
12909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 for as_dir in $gcc_cv_tool_dirs
12911 do
12912   IFS=$as_save_IFS
12913   test -z "$as_dir" && as_dir=.
12914     for ac_exec_ext in '' $ac_executable_extensions; do
12915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12916     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12918     break 2
12919   fi
12920 done
12921   done
12922 IFS=$as_save_IFS
12923
12924   ;;
12925 esac
12926 fi
12927 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12928 if test -n "$WINDRES_FOR_TARGET"; then
12929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12930 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12931 else
12932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12933 $as_echo "no" >&6; }
12934 fi
12935
12936
12937 fi
12938 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12939
12940
12941 if test -n "$WINDRES_FOR_TARGET"; then
12942   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12943 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12944   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12945 fi
12946
12947 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12948   for ncn_progname in windres; do
12949     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12950 set dummy ${ncn_progname}; ac_word=$2
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952 $as_echo_n "checking for $ac_word... " >&6; }
12953 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12954   $as_echo_n "(cached) " >&6
12955 else
12956   if test -n "$WINDRES_FOR_TARGET"; then
12957   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12958 else
12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12961 do
12962   IFS=$as_save_IFS
12963   test -z "$as_dir" && as_dir=.
12964     for ac_exec_ext in '' $ac_executable_extensions; do
12965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12966     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968     break 2
12969   fi
12970 done
12971   done
12972 IFS=$as_save_IFS
12973
12974 fi
12975 fi
12976 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12977 if test -n "$WINDRES_FOR_TARGET"; then
12978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12979 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12980 else
12981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982 $as_echo "no" >&6; }
12983 fi
12984
12985
12986   done
12987 fi
12988
12989 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12990   for ncn_progname in windres; do
12991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12992 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12993     if test -x $with_build_time_tools/${ncn_progname}; then
12994       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12995       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12996 $as_echo "yes" >&6; }
12997       break
12998     else
12999       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13001     fi
13002   done
13003 fi
13004
13005 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13006   for ncn_progname in windres; do
13007     if test -n "$ncn_target_tool_prefix"; then
13008       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13009 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011 $as_echo_n "checking for $ac_word... " >&6; }
13012 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13013   $as_echo_n "(cached) " >&6
13014 else
13015   if test -n "$WINDRES_FOR_TARGET"; then
13016   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13017 else
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13020 do
13021   IFS=$as_save_IFS
13022   test -z "$as_dir" && as_dir=.
13023     for ac_exec_ext in '' $ac_executable_extensions; do
13024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13025     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027     break 2
13028   fi
13029 done
13030   done
13031 IFS=$as_save_IFS
13032
13033 fi
13034 fi
13035 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13036 if test -n "$WINDRES_FOR_TARGET"; then
13037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13038 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13039 else
13040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13042 fi
13043
13044
13045     fi
13046     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13047       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13048 set dummy ${ncn_progname}; ac_word=$2
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050 $as_echo_n "checking for $ac_word... " >&6; }
13051 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13052   $as_echo_n "(cached) " >&6
13053 else
13054   if test -n "$WINDRES_FOR_TARGET"; then
13055   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13056 else
13057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058 for as_dir in $PATH
13059 do
13060   IFS=$as_save_IFS
13061   test -z "$as_dir" && as_dir=.
13062     for ac_exec_ext in '' $ac_executable_extensions; do
13063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13064     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066     break 2
13067   fi
13068 done
13069   done
13070 IFS=$as_save_IFS
13071
13072 fi
13073 fi
13074 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13075 if test -n "$WINDRES_FOR_TARGET"; then
13076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13077 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13078 else
13079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13081 fi
13082
13083
13084     fi
13085     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13086   done
13087 fi
13088
13089 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13090   set dummy windres
13091   if test $build = $target ; then
13092     WINDRES_FOR_TARGET="$2"
13093   else
13094     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13095   fi
13096 else
13097   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13098 fi
13099
13100 else
13101   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13102 fi
13103
13104
13105
13106
13107 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13108   if test -n "$with_build_time_tools"; then
13109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13110 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13111     if test -x $with_build_time_tools/windmc; then
13112       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13113       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13115 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13116     else
13117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13119     fi
13120   elif test $build != $host && test $have_gcc_for_target = yes; then
13121     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13122     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13123     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13124   fi
13125 fi
13126 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13127   # Extract the first word of "windmc", so it can be a program name with args.
13128 set dummy windmc; ac_word=$2
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13130 $as_echo_n "checking for $ac_word... " >&6; }
13131 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13132   $as_echo_n "(cached) " >&6
13133 else
13134   case $WINDMC_FOR_TARGET in
13135   [\\/]* | ?:[\\/]*)
13136   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13137   ;;
13138   *)
13139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $gcc_cv_tool_dirs
13141 do
13142   IFS=$as_save_IFS
13143   test -z "$as_dir" && as_dir=.
13144     for ac_exec_ext in '' $ac_executable_extensions; do
13145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13146     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148     break 2
13149   fi
13150 done
13151   done
13152 IFS=$as_save_IFS
13153
13154   ;;
13155 esac
13156 fi
13157 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13158 if test -n "$WINDMC_FOR_TARGET"; then
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13160 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13161 else
13162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13164 fi
13165
13166
13167 fi
13168 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13169
13170
13171 if test -n "$WINDMC_FOR_TARGET"; then
13172   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13173 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13174   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13175 fi
13176
13177 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13178   for ncn_progname in windmc; do
13179     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13180 set dummy ${ncn_progname}; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13184   $as_echo_n "(cached) " >&6
13185 else
13186   if test -n "$WINDMC_FOR_TARGET"; then
13187   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13188 else
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13191 do
13192   IFS=$as_save_IFS
13193   test -z "$as_dir" && as_dir=.
13194     for ac_exec_ext in '' $ac_executable_extensions; do
13195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13196     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198     break 2
13199   fi
13200 done
13201   done
13202 IFS=$as_save_IFS
13203
13204 fi
13205 fi
13206 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13207 if test -n "$WINDMC_FOR_TARGET"; then
13208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13209 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13210 else
13211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13213 fi
13214
13215
13216   done
13217 fi
13218
13219 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13220   for ncn_progname in windmc; do
13221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13222 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13223     if test -x $with_build_time_tools/${ncn_progname}; then
13224       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13225       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13226 $as_echo "yes" >&6; }
13227       break
13228     else
13229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13231     fi
13232   done
13233 fi
13234
13235 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13236   for ncn_progname in windmc; do
13237     if test -n "$ncn_target_tool_prefix"; then
13238       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13239 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13241 $as_echo_n "checking for $ac_word... " >&6; }
13242 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13243   $as_echo_n "(cached) " >&6
13244 else
13245   if test -n "$WINDMC_FOR_TARGET"; then
13246   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13247 else
13248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13250 do
13251   IFS=$as_save_IFS
13252   test -z "$as_dir" && as_dir=.
13253     for ac_exec_ext in '' $ac_executable_extensions; do
13254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13255     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13257     break 2
13258   fi
13259 done
13260   done
13261 IFS=$as_save_IFS
13262
13263 fi
13264 fi
13265 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13266 if test -n "$WINDMC_FOR_TARGET"; then
13267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13268 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13269 else
13270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271 $as_echo "no" >&6; }
13272 fi
13273
13274
13275     fi
13276     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13277       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13278 set dummy ${ncn_progname}; ac_word=$2
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13280 $as_echo_n "checking for $ac_word... " >&6; }
13281 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13282   $as_echo_n "(cached) " >&6
13283 else
13284   if test -n "$WINDMC_FOR_TARGET"; then
13285   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13286 else
13287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 for as_dir in $PATH
13289 do
13290   IFS=$as_save_IFS
13291   test -z "$as_dir" && as_dir=.
13292     for ac_exec_ext in '' $ac_executable_extensions; do
13293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13294     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13296     break 2
13297   fi
13298 done
13299   done
13300 IFS=$as_save_IFS
13301
13302 fi
13303 fi
13304 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13305 if test -n "$WINDMC_FOR_TARGET"; then
13306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13307 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13308 else
13309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310 $as_echo "no" >&6; }
13311 fi
13312
13313
13314     fi
13315     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13316   done
13317 fi
13318
13319 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13320   set dummy windmc
13321   if test $build = $target ; then
13322     WINDMC_FOR_TARGET="$2"
13323   else
13324     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13325   fi
13326 else
13327   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13328 fi
13329
13330 else
13331   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13332 fi
13333
13334
13335 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13336
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13338 $as_echo_n "checking where to find the target ar... " >&6; }
13339 if test "x${build}" != "x${host}" ; then
13340   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13341     # We already found the complete path
13342     ac_dir=`dirname $AR_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     *" binutils "*) ;;
13354     *) ok=no ;;
13355   esac
13356
13357   if test $ok = yes; then
13358     # An in-tree tool is available and we can use it
13359     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13361 $as_echo "just compiled" >&6; }
13362   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13363     # We already found the complete path
13364     ac_dir=`dirname $AR_FOR_TARGET`
13365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13366 $as_echo "pre-installed in $ac_dir" >&6; }
13367   elif test "x$target" = "x$host"; then
13368     # We can use an host tool
13369     AR_FOR_TARGET='$(AR)'
13370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13371 $as_echo "host tool" >&6; }
13372   else
13373     # We need a cross tool
13374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13375 $as_echo "pre-installed" >&6; }
13376   fi
13377 fi
13378
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13380 $as_echo_n "checking where to find the target as... " >&6; }
13381 if test "x${build}" != "x${host}" ; then
13382   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13383     # We already found the complete path
13384     ac_dir=`dirname $AS_FOR_TARGET`
13385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13386 $as_echo "pre-installed in $ac_dir" >&6; }
13387   else
13388     # Canadian cross, just use what we found
13389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13390 $as_echo "pre-installed" >&6; }
13391   fi
13392 else
13393   ok=yes
13394   case " ${configdirs} " in
13395     *" gas "*) ;;
13396     *) ok=no ;;
13397   esac
13398
13399   if test $ok = yes; then
13400     # An in-tree tool is available and we can use it
13401     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13403 $as_echo "just compiled" >&6; }
13404   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13405     # We already found the complete path
13406     ac_dir=`dirname $AS_FOR_TARGET`
13407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13408 $as_echo "pre-installed in $ac_dir" >&6; }
13409   elif test "x$target" = "x$host"; then
13410     # We can use an host tool
13411     AS_FOR_TARGET='$(AS)'
13412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13413 $as_echo "host tool" >&6; }
13414   else
13415     # We need a cross tool
13416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13417 $as_echo "pre-installed" >&6; }
13418   fi
13419 fi
13420
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13422 $as_echo_n "checking where to find the target cc... " >&6; }
13423 if test "x${build}" != "x${host}" ; then
13424   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13425     # We already found the complete path
13426     ac_dir=`dirname $CC_FOR_TARGET`
13427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13428 $as_echo "pre-installed in $ac_dir" >&6; }
13429   else
13430     # Canadian cross, just use what we found
13431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13432 $as_echo "pre-installed" >&6; }
13433   fi
13434 else
13435   ok=yes
13436   case " ${configdirs} " in
13437     *" gcc "*) ;;
13438     *) ok=no ;;
13439   esac
13440
13441   if test $ok = yes; then
13442     # An in-tree tool is available and we can use it
13443     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13445 $as_echo "just compiled" >&6; }
13446   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13447     # We already found the complete path
13448     ac_dir=`dirname $CC_FOR_TARGET`
13449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13450 $as_echo "pre-installed in $ac_dir" >&6; }
13451   elif test "x$target" = "x$host"; then
13452     # We can use an host tool
13453     CC_FOR_TARGET='$(CC)'
13454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13455 $as_echo "host tool" >&6; }
13456   else
13457     # We need a cross tool
13458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13459 $as_echo "pre-installed" >&6; }
13460   fi
13461 fi
13462
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13464 $as_echo_n "checking where to find the target c++... " >&6; }
13465 if test "x${build}" != "x${host}" ; then
13466   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13467     # We already found the complete path
13468     ac_dir=`dirname $CXX_FOR_TARGET`
13469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13470 $as_echo "pre-installed in $ac_dir" >&6; }
13471   else
13472     # Canadian cross, just use what we found
13473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13474 $as_echo "pre-installed" >&6; }
13475   fi
13476 else
13477   ok=yes
13478   case " ${configdirs} " in
13479     *" gcc "*) ;;
13480     *) ok=no ;;
13481   esac
13482   case ,${enable_languages}, in
13483     *,c++,*) ;;
13484     *) ok=no ;;
13485   esac
13486   if test $ok = yes; then
13487     # An in-tree tool is available and we can use it
13488     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13490 $as_echo "just compiled" >&6; }
13491   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13492     # We already found the complete path
13493     ac_dir=`dirname $CXX_FOR_TARGET`
13494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13495 $as_echo "pre-installed in $ac_dir" >&6; }
13496   elif test "x$target" = "x$host"; then
13497     # We can use an host tool
13498     CXX_FOR_TARGET='$(CXX)'
13499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13500 $as_echo "host tool" >&6; }
13501   else
13502     # We need a cross tool
13503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13504 $as_echo "pre-installed" >&6; }
13505   fi
13506 fi
13507
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13509 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13510 if test "x${build}" != "x${host}" ; then
13511   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13512     # We already found the complete path
13513     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13515 $as_echo "pre-installed in $ac_dir" >&6; }
13516   else
13517     # Canadian cross, just use what we found
13518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13519 $as_echo "pre-installed" >&6; }
13520   fi
13521 else
13522   ok=yes
13523   case " ${configdirs} " in
13524     *" gcc "*) ;;
13525     *) ok=no ;;
13526   esac
13527   case ,${enable_languages}, in
13528     *,c++,*) ;;
13529     *) ok=no ;;
13530   esac
13531   if test $ok = yes; then
13532     # An in-tree tool is available and we can use it
13533     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'
13534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13535 $as_echo "just compiled" >&6; }
13536   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13537     # We already found the complete path
13538     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13540 $as_echo "pre-installed in $ac_dir" >&6; }
13541   elif test "x$target" = "x$host"; then
13542     # We can use an host tool
13543     RAW_CXX_FOR_TARGET='$(CXX)'
13544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13545 $as_echo "host tool" >&6; }
13546   else
13547     # We need a cross tool
13548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13549 $as_echo "pre-installed" >&6; }
13550   fi
13551 fi
13552
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13554 $as_echo_n "checking where to find the target dlltool... " >&6; }
13555 if test "x${build}" != "x${host}" ; then
13556   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13557     # We already found the complete path
13558     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13560 $as_echo "pre-installed in $ac_dir" >&6; }
13561   else
13562     # Canadian cross, just use what we found
13563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13564 $as_echo "pre-installed" >&6; }
13565   fi
13566 else
13567   ok=yes
13568   case " ${configdirs} " in
13569     *" binutils "*) ;;
13570     *) ok=no ;;
13571   esac
13572
13573   if test $ok = yes; then
13574     # An in-tree tool is available and we can use it
13575     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13577 $as_echo "just compiled" >&6; }
13578   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13579     # We already found the complete path
13580     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13582 $as_echo "pre-installed in $ac_dir" >&6; }
13583   elif test "x$target" = "x$host"; then
13584     # We can use an host tool
13585     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13587 $as_echo "host tool" >&6; }
13588   else
13589     # We need a cross tool
13590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13591 $as_echo "pre-installed" >&6; }
13592   fi
13593 fi
13594
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13596 $as_echo_n "checking where to find the target gcc... " >&6; }
13597 if test "x${build}" != "x${host}" ; then
13598   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13599     # We already found the complete path
13600     ac_dir=`dirname $GCC_FOR_TARGET`
13601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13602 $as_echo "pre-installed in $ac_dir" >&6; }
13603   else
13604     # Canadian cross, just use what we found
13605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13606 $as_echo "pre-installed" >&6; }
13607   fi
13608 else
13609   ok=yes
13610   case " ${configdirs} " in
13611     *" gcc "*) ;;
13612     *) ok=no ;;
13613   esac
13614
13615   if test $ok = yes; then
13616     # An in-tree tool is available and we can use it
13617     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13619 $as_echo "just compiled" >&6; }
13620   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13621     # We already found the complete path
13622     ac_dir=`dirname $GCC_FOR_TARGET`
13623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13624 $as_echo "pre-installed in $ac_dir" >&6; }
13625   elif test "x$target" = "x$host"; then
13626     # We can use an host tool
13627     GCC_FOR_TARGET='$()'
13628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13629 $as_echo "host tool" >&6; }
13630   else
13631     # We need a cross tool
13632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13633 $as_echo "pre-installed" >&6; }
13634   fi
13635 fi
13636
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13638 $as_echo_n "checking where to find the target gcj... " >&6; }
13639 if test "x${build}" != "x${host}" ; then
13640   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13641     # We already found the complete path
13642     ac_dir=`dirname $GCJ_FOR_TARGET`
13643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13644 $as_echo "pre-installed in $ac_dir" >&6; }
13645   else
13646     # Canadian cross, just use what we found
13647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13648 $as_echo "pre-installed" >&6; }
13649   fi
13650 else
13651   ok=yes
13652   case " ${configdirs} " in
13653     *" gcc "*) ;;
13654     *) ok=no ;;
13655   esac
13656   case ,${enable_languages}, in
13657     *,java,*) ;;
13658     *) ok=no ;;
13659   esac
13660   if test $ok = yes; then
13661     # An in-tree tool is available and we can use it
13662     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13664 $as_echo "just compiled" >&6; }
13665   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13666     # We already found the complete path
13667     ac_dir=`dirname $GCJ_FOR_TARGET`
13668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13669 $as_echo "pre-installed in $ac_dir" >&6; }
13670   elif test "x$target" = "x$host"; then
13671     # We can use an host tool
13672     GCJ_FOR_TARGET='$(GCJ)'
13673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13674 $as_echo "host tool" >&6; }
13675   else
13676     # We need a cross tool
13677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13678 $as_echo "pre-installed" >&6; }
13679   fi
13680 fi
13681
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13683 $as_echo_n "checking where to find the target gfortran... " >&6; }
13684 if test "x${build}" != "x${host}" ; then
13685   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13686     # We already found the complete path
13687     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13689 $as_echo "pre-installed in $ac_dir" >&6; }
13690   else
13691     # Canadian cross, just use what we found
13692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13693 $as_echo "pre-installed" >&6; }
13694   fi
13695 else
13696   ok=yes
13697   case " ${configdirs} " in
13698     *" gcc "*) ;;
13699     *) ok=no ;;
13700   esac
13701   case ,${enable_languages}, in
13702     *,fortran,*) ;;
13703     *) ok=no ;;
13704   esac
13705   if test $ok = yes; then
13706     # An in-tree tool is available and we can use it
13707     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13709 $as_echo "just compiled" >&6; }
13710   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13711     # We already found the complete path
13712     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13714 $as_echo "pre-installed in $ac_dir" >&6; }
13715   elif test "x$target" = "x$host"; then
13716     # We can use an host tool
13717     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13719 $as_echo "host tool" >&6; }
13720   else
13721     # We need a cross tool
13722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13723 $as_echo "pre-installed" >&6; }
13724   fi
13725 fi
13726
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13728 $as_echo_n "checking where to find the target gccgo... " >&6; }
13729 if test "x${build}" != "x${host}" ; then
13730   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13731     # We already found the complete path
13732     ac_dir=`dirname $GOC_FOR_TARGET`
13733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13734 $as_echo "pre-installed in $ac_dir" >&6; }
13735   else
13736     # Canadian cross, just use what we found
13737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13738 $as_echo "pre-installed" >&6; }
13739   fi
13740 else
13741   ok=yes
13742   case " ${configdirs} " in
13743     *" gcc "*) ;;
13744     *) ok=no ;;
13745   esac
13746   case ,${enable_languages}, in
13747     *,go,*) ;;
13748     *) ok=no ;;
13749   esac
13750   if test $ok = yes; then
13751     # An in-tree tool is available and we can use it
13752     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13754 $as_echo "just compiled" >&6; }
13755   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13756     # We already found the complete path
13757     ac_dir=`dirname $GOC_FOR_TARGET`
13758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13759 $as_echo "pre-installed in $ac_dir" >&6; }
13760   elif test "x$target" = "x$host"; then
13761     # We can use an host tool
13762     GOC_FOR_TARGET='$(GOC)'
13763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13764 $as_echo "host tool" >&6; }
13765   else
13766     # We need a cross tool
13767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13768 $as_echo "pre-installed" >&6; }
13769   fi
13770 fi
13771
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13773 $as_echo_n "checking where to find the target ld... " >&6; }
13774 if test "x${build}" != "x${host}" ; then
13775   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13776     # We already found the complete path
13777     ac_dir=`dirname $LD_FOR_TARGET`
13778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13779 $as_echo "pre-installed in $ac_dir" >&6; }
13780   else
13781     # Canadian cross, just use what we found
13782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13783 $as_echo "pre-installed" >&6; }
13784   fi
13785 else
13786   ok=yes
13787   case " ${configdirs} " in
13788     *" ld "*) ;;
13789     *) ok=no ;;
13790   esac
13791
13792   if test $ok = yes; then
13793     # An in-tree tool is available and we can use it
13794     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13796 $as_echo "just compiled" >&6; }
13797   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13798     # We already found the complete path
13799     ac_dir=`dirname $LD_FOR_TARGET`
13800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13801 $as_echo "pre-installed in $ac_dir" >&6; }
13802   elif test "x$target" = "x$host"; then
13803     # We can use an host tool
13804     LD_FOR_TARGET='$(LD)'
13805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13806 $as_echo "host tool" >&6; }
13807   else
13808     # We need a cross tool
13809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13810 $as_echo "pre-installed" >&6; }
13811   fi
13812 fi
13813
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13815 $as_echo_n "checking where to find the target lipo... " >&6; }
13816 if test "x${build}" != "x${host}" ; then
13817   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13818     # We already found the complete path
13819     ac_dir=`dirname $LIPO_FOR_TARGET`
13820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13821 $as_echo "pre-installed in $ac_dir" >&6; }
13822   else
13823     # Canadian cross, just use what we found
13824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13825 $as_echo "pre-installed" >&6; }
13826   fi
13827 else
13828   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13829     # We already found the complete path
13830     ac_dir=`dirname $LIPO_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     LIPO_FOR_TARGET='$(LIPO)'
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 nm" >&5
13846 $as_echo_n "checking where to find the target nm... " >&6; }
13847 if test "x${build}" != "x${host}" ; then
13848   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13849     # We already found the complete path
13850     ac_dir=`dirname $NM_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     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13869 $as_echo "just compiled" >&6; }
13870   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13871     # We already found the complete path
13872     ac_dir=`dirname $NM_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     NM_FOR_TARGET='$(NM)'
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 objdump" >&5
13888 $as_echo_n "checking where to find the target objdump... " >&6; }
13889 if test "x${build}" != "x${host}" ; then
13890   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13891     # We already found the complete path
13892     ac_dir=`dirname $OBJDUMP_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     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13911 $as_echo "just compiled" >&6; }
13912   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13913     # We already found the complete path
13914     ac_dir=`dirname $OBJDUMP_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     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
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 ranlib" >&5
13930 $as_echo_n "checking where to find the target ranlib... " >&6; }
13931 if test "x${build}" != "x${host}" ; then
13932   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13933     # We already found the complete path
13934     ac_dir=`dirname $RANLIB_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     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13953 $as_echo "just compiled" >&6; }
13954   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13955     # We already found the complete path
13956     ac_dir=`dirname $RANLIB_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     RANLIB_FOR_TARGET='$(RANLIB)'
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13972 $as_echo_n "checking where to find the target readelf... " >&6; }
13973 if test "x${build}" != "x${host}" ; then
13974   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13975     # We already found the complete path
13976     ac_dir=`dirname $READELF_FOR_TARGET`
13977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13978 $as_echo "pre-installed in $ac_dir" >&6; }
13979   else
13980     # Canadian cross, just use what we found
13981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13982 $as_echo "pre-installed" >&6; }
13983   fi
13984 else
13985   ok=yes
13986   case " ${configdirs} " in
13987     *" binutils "*) ;;
13988     *) ok=no ;;
13989   esac
13990
13991   if test $ok = yes; then
13992     # An in-tree tool is available and we can use it
13993     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
13994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13995 $as_echo "just compiled" >&6; }
13996   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13997     # We already found the complete path
13998     ac_dir=`dirname $READELF_FOR_TARGET`
13999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14000 $as_echo "pre-installed in $ac_dir" >&6; }
14001   elif test "x$target" = "x$host"; then
14002     # We can use an host tool
14003     READELF_FOR_TARGET='$(READELF)'
14004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14005 $as_echo "host tool" >&6; }
14006   else
14007     # We need a cross tool
14008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14009 $as_echo "pre-installed" >&6; }
14010   fi
14011 fi
14012
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14014 $as_echo_n "checking where to find the target strip... " >&6; }
14015 if test "x${build}" != "x${host}" ; then
14016   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14017     # We already found the complete path
14018     ac_dir=`dirname $STRIP_FOR_TARGET`
14019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14020 $as_echo "pre-installed in $ac_dir" >&6; }
14021   else
14022     # Canadian cross, just use what we found
14023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14024 $as_echo "pre-installed" >&6; }
14025   fi
14026 else
14027   ok=yes
14028   case " ${configdirs} " in
14029     *" binutils "*) ;;
14030     *) ok=no ;;
14031   esac
14032
14033   if test $ok = yes; then
14034     # An in-tree tool is available and we can use it
14035     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14037 $as_echo "just compiled" >&6; }
14038   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14039     # We already found the complete path
14040     ac_dir=`dirname $STRIP_FOR_TARGET`
14041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14042 $as_echo "pre-installed in $ac_dir" >&6; }
14043   elif test "x$target" = "x$host"; then
14044     # We can use an host tool
14045     STRIP_FOR_TARGET='$(STRIP)'
14046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14047 $as_echo "host tool" >&6; }
14048   else
14049     # We need a cross tool
14050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14051 $as_echo "pre-installed" >&6; }
14052   fi
14053 fi
14054
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14056 $as_echo_n "checking where to find the target windres... " >&6; }
14057 if test "x${build}" != "x${host}" ; then
14058   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14059     # We already found the complete path
14060     ac_dir=`dirname $WINDRES_FOR_TARGET`
14061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14062 $as_echo "pre-installed in $ac_dir" >&6; }
14063   else
14064     # Canadian cross, just use what we found
14065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066 $as_echo "pre-installed" >&6; }
14067   fi
14068 else
14069   ok=yes
14070   case " ${configdirs} " in
14071     *" binutils "*) ;;
14072     *) ok=no ;;
14073   esac
14074
14075   if test $ok = yes; then
14076     # An in-tree tool is available and we can use it
14077     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14079 $as_echo "just compiled" >&6; }
14080   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14081     # We already found the complete path
14082     ac_dir=`dirname $WINDRES_FOR_TARGET`
14083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14084 $as_echo "pre-installed in $ac_dir" >&6; }
14085   elif test "x$target" = "x$host"; then
14086     # We can use an host tool
14087     WINDRES_FOR_TARGET='$(WINDRES)'
14088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14089 $as_echo "host tool" >&6; }
14090   else
14091     # We need a cross tool
14092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14093 $as_echo "pre-installed" >&6; }
14094   fi
14095 fi
14096
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14098 $as_echo_n "checking where to find the target windmc... " >&6; }
14099 if test "x${build}" != "x${host}" ; then
14100   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14101     # We already found the complete path
14102     ac_dir=`dirname $WINDMC_FOR_TARGET`
14103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14104 $as_echo "pre-installed in $ac_dir" >&6; }
14105   else
14106     # Canadian cross, just use what we found
14107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108 $as_echo "pre-installed" >&6; }
14109   fi
14110 else
14111   ok=yes
14112   case " ${configdirs} " in
14113     *" binutils "*) ;;
14114     *) ok=no ;;
14115   esac
14116
14117   if test $ok = yes; then
14118     # An in-tree tool is available and we can use it
14119     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14121 $as_echo "just compiled" >&6; }
14122   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14123     # We already found the complete path
14124     ac_dir=`dirname $WINDMC_FOR_TARGET`
14125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14126 $as_echo "pre-installed in $ac_dir" >&6; }
14127   elif test "x$target" = "x$host"; then
14128     # We can use an host tool
14129     WINDMC_FOR_TARGET='$(WINDMC)'
14130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14131 $as_echo "host tool" >&6; }
14132   else
14133     # We need a cross tool
14134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14135 $as_echo "pre-installed" >&6; }
14136   fi
14137 fi
14138
14139
14140
14141
14142
14143 # Certain tools may need extra flags.
14144 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14145 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14146 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14147
14148 # When building target libraries, except in a Canadian cross, we use
14149 # the same toolchain as the compiler we just built.
14150 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14151 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14152 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14153 if test $host = $build; then
14154   case " $configdirs " in
14155     *" gcc "*)
14156       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14157       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14158       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14159       ;;
14160   esac
14161 fi
14162
14163
14164
14165
14166
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14168 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14169 # Check whether --enable-maintainer-mode was given.
14170 if test "${enable_maintainer_mode+set}" = set; then :
14171   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14172 else
14173   USE_MAINTAINER_MODE=no
14174 fi
14175
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14177 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14178
14179
14180 if test "$USE_MAINTAINER_MODE" = yes; then
14181   MAINTAINER_MODE_TRUE=
14182   MAINTAINER_MODE_FALSE='#'
14183 else
14184   MAINTAINER_MODE_TRUE='#'
14185   MAINTAINER_MODE_FALSE=
14186 fi
14187 MAINT=$MAINTAINER_MODE_TRUE
14188
14189 # ---------------------
14190 # GCC bootstrap support
14191 # ---------------------
14192
14193 # Stage specific cflags for build.
14194 stage1_cflags="-g"
14195 case $build in
14196   vax-*-*)
14197     case ${GCC} in
14198       yes) stage1_cflags="-g -Wa,-J" ;;
14199       *) stage1_cflags="-g -J" ;;
14200     esac ;;
14201 esac
14202
14203
14204
14205 # Enable --enable-checking in stage1 of the compiler.
14206 # Check whether --enable-stage1-checking was given.
14207 if test "${enable_stage1_checking+set}" = set; then :
14208   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14209 else
14210   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14211   stage1_checking=--enable-checking=yes,types
14212 else
14213   stage1_checking=--enable-checking=$enable_checking,types
14214 fi
14215 fi
14216
14217
14218
14219 # Enable -Werror in bootstrap stage2 and later.
14220 # Check whether --enable-werror was given.
14221 if test "${enable_werror+set}" = set; then :
14222   enableval=$enable_werror;
14223 else
14224   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14225   enable_werror=yes
14226 else
14227   enable_werror=no
14228 fi
14229 fi
14230
14231 case ${enable_werror} in
14232   yes) stage2_werror_flag="--enable-werror-always" ;;
14233   *) stage2_werror_flag="" ;;
14234 esac
14235
14236
14237 # Specify what files to not compare during bootstrap.
14238
14239 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14240 case "$target" in
14241   hppa*64*-*-hpux*) ;;
14242   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14243 esac
14244
14245
14246 ac_config_files="$ac_config_files Makefile"
14247
14248 cat >confcache <<\_ACEOF
14249 # This file is a shell script that caches the results of configure
14250 # tests run on this system so they can be shared between configure
14251 # scripts and configure runs, see configure's option --config-cache.
14252 # It is not useful on other systems.  If it contains results you don't
14253 # want to keep, you may remove or edit it.
14254 #
14255 # config.status only pays attention to the cache file if you give it
14256 # the --recheck option to rerun configure.
14257 #
14258 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14259 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14260 # following values.
14261
14262 _ACEOF
14263
14264 # The following way of writing the cache mishandles newlines in values,
14265 # but we know of no workaround that is simple, portable, and efficient.
14266 # So, we kill variables containing newlines.
14267 # Ultrix sh set writes to stderr and can't be redirected directly,
14268 # and sets the high bit in the cache file unless we assign to the vars.
14269 (
14270   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14271     eval ac_val=\$$ac_var
14272     case $ac_val in #(
14273     *${as_nl}*)
14274       case $ac_var in #(
14275       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14276 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14277       esac
14278       case $ac_var in #(
14279       _ | IFS | as_nl) ;; #(
14280       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14281       *) { eval $ac_var=; unset $ac_var;} ;;
14282       esac ;;
14283     esac
14284   done
14285
14286   (set) 2>&1 |
14287     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14288     *${as_nl}ac_space=\ *)
14289       # `set' does not quote correctly, so add quotes: double-quote
14290       # substitution turns \\\\ into \\, and sed turns \\ into \.
14291       sed -n \
14292         "s/'/'\\\\''/g;
14293           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14294       ;; #(
14295     *)
14296       # `set' quotes correctly as required by POSIX, so do not add quotes.
14297       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14298       ;;
14299     esac |
14300     sort
14301 ) |
14302   sed '
14303      /^ac_cv_env_/b end
14304      t clear
14305      :clear
14306      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14307      t end
14308      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14309      :end' >>confcache
14310 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14311   if test -w "$cache_file"; then
14312     test "x$cache_file" != "x/dev/null" &&
14313       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14314 $as_echo "$as_me: updating cache $cache_file" >&6;}
14315     cat confcache >$cache_file
14316   else
14317     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14318 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14319   fi
14320 fi
14321 rm -f confcache
14322
14323 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14324 # Let make expand exec_prefix.
14325 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14326
14327 # Transform confdefs.h into DEFS.
14328 # Protect against shell expansion while executing Makefile rules.
14329 # Protect against Makefile macro expansion.
14330 #
14331 # If the first sed substitution is executed (which looks for macros that
14332 # take arguments), then branch to the quote section.  Otherwise,
14333 # look for a macro that doesn't take arguments.
14334 ac_script='
14335 :mline
14336 /\\$/{
14337  N
14338  s,\\\n,,
14339  b mline
14340 }
14341 t clear
14342 :clear
14343 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14344 t quote
14345 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14346 t quote
14347 b any
14348 :quote
14349 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14350 s/\[/\\&/g
14351 s/\]/\\&/g
14352 s/\$/$$/g
14353 H
14354 :any
14355 ${
14356         g
14357         s/^\n//
14358         s/\n/ /g
14359         p
14360 }
14361 '
14362 DEFS=`sed -n "$ac_script" confdefs.h`
14363
14364
14365 ac_libobjs=
14366 ac_ltlibobjs=
14367 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14368   # 1. Remove the extension, and $U if already installed.
14369   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14370   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14371   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14372   #    will be set to the directory where LIBOBJS objects are built.
14373   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14374   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14375 done
14376 LIBOBJS=$ac_libobjs
14377
14378 LTLIBOBJS=$ac_ltlibobjs
14379
14380
14381
14382 : ${CONFIG_STATUS=./config.status}
14383 ac_write_fail=0
14384 ac_clean_files_save=$ac_clean_files
14385 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14387 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14388 as_write_fail=0
14389 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14390 #! $SHELL
14391 # Generated by $as_me.
14392 # Run this file to recreate the current configuration.
14393 # Compiler output produced by configure, useful for debugging
14394 # configure, is in config.log if it exists.
14395
14396 debug=false
14397 ac_cs_recheck=false
14398 ac_cs_silent=false
14399
14400 SHELL=\${CONFIG_SHELL-$SHELL}
14401 export SHELL
14402 _ASEOF
14403 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14404 ## -------------------- ##
14405 ## M4sh Initialization. ##
14406 ## -------------------- ##
14407
14408 # Be more Bourne compatible
14409 DUALCASE=1; export DUALCASE # for MKS sh
14410 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14411   emulate sh
14412   NULLCMD=:
14413   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14414   # is contrary to our usage.  Disable this feature.
14415   alias -g '${1+"$@"}'='"$@"'
14416   setopt NO_GLOB_SUBST
14417 else
14418   case `(set -o) 2>/dev/null` in #(
14419   *posix*) :
14420     set -o posix ;; #(
14421   *) :
14422      ;;
14423 esac
14424 fi
14425
14426
14427 as_nl='
14428 '
14429 export as_nl
14430 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14431 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14432 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14433 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14434 # Prefer a ksh shell builtin over an external printf program on Solaris,
14435 # but without wasting forks for bash or zsh.
14436 if test -z "$BASH_VERSION$ZSH_VERSION" \
14437     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14438   as_echo='print -r --'
14439   as_echo_n='print -rn --'
14440 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14441   as_echo='printf %s\n'
14442   as_echo_n='printf %s'
14443 else
14444   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14445     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14446     as_echo_n='/usr/ucb/echo -n'
14447   else
14448     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14449     as_echo_n_body='eval
14450       arg=$1;
14451       case $arg in #(
14452       *"$as_nl"*)
14453         expr "X$arg" : "X\\(.*\\)$as_nl";
14454         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14455       esac;
14456       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14457     '
14458     export as_echo_n_body
14459     as_echo_n='sh -c $as_echo_n_body as_echo'
14460   fi
14461   export as_echo_body
14462   as_echo='sh -c $as_echo_body as_echo'
14463 fi
14464
14465 # The user is always right.
14466 if test "${PATH_SEPARATOR+set}" != set; then
14467   PATH_SEPARATOR=:
14468   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14469     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14470       PATH_SEPARATOR=';'
14471   }
14472 fi
14473
14474
14475 # IFS
14476 # We need space, tab and new line, in precisely that order.  Quoting is
14477 # there to prevent editors from complaining about space-tab.
14478 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14479 # splitting by setting IFS to empty value.)
14480 IFS=" ""        $as_nl"
14481
14482 # Find who we are.  Look in the path if we contain no directory separator.
14483 case $0 in #((
14484   *[\\/]* ) as_myself=$0 ;;
14485   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14486 for as_dir in $PATH
14487 do
14488   IFS=$as_save_IFS
14489   test -z "$as_dir" && as_dir=.
14490     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14491   done
14492 IFS=$as_save_IFS
14493
14494      ;;
14495 esac
14496 # We did not find ourselves, most probably we were run as `sh COMMAND'
14497 # in which case we are not to be found in the path.
14498 if test "x$as_myself" = x; then
14499   as_myself=$0
14500 fi
14501 if test ! -f "$as_myself"; then
14502   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14503   exit 1
14504 fi
14505
14506 # Unset variables that we do not need and which cause bugs (e.g. in
14507 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14508 # suppresses any "Segmentation fault" message there.  '((' could
14509 # trigger a bug in pdksh 5.2.14.
14510 for as_var in BASH_ENV ENV MAIL MAILPATH
14511 do eval test x\${$as_var+set} = xset \
14512   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14513 done
14514 PS1='$ '
14515 PS2='> '
14516 PS4='+ '
14517
14518 # NLS nuisances.
14519 LC_ALL=C
14520 export LC_ALL
14521 LANGUAGE=C
14522 export LANGUAGE
14523
14524 # CDPATH.
14525 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14526
14527
14528 # as_fn_error ERROR [LINENO LOG_FD]
14529 # ---------------------------------
14530 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14531 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14532 # script with status $?, using 1 if that was 0.
14533 as_fn_error ()
14534 {
14535   as_status=$?; test $as_status -eq 0 && as_status=1
14536   if test "$3"; then
14537     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14538     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14539   fi
14540   $as_echo "$as_me: error: $1" >&2
14541   as_fn_exit $as_status
14542 } # as_fn_error
14543
14544
14545 # as_fn_set_status STATUS
14546 # -----------------------
14547 # Set $? to STATUS, without forking.
14548 as_fn_set_status ()
14549 {
14550   return $1
14551 } # as_fn_set_status
14552
14553 # as_fn_exit STATUS
14554 # -----------------
14555 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14556 as_fn_exit ()
14557 {
14558   set +e
14559   as_fn_set_status $1
14560   exit $1
14561 } # as_fn_exit
14562
14563 # as_fn_unset VAR
14564 # ---------------
14565 # Portably unset VAR.
14566 as_fn_unset ()
14567 {
14568   { eval $1=; unset $1;}
14569 }
14570 as_unset=as_fn_unset
14571 # as_fn_append VAR VALUE
14572 # ----------------------
14573 # Append the text in VALUE to the end of the definition contained in VAR. Take
14574 # advantage of any shell optimizations that allow amortized linear growth over
14575 # repeated appends, instead of the typical quadratic growth present in naive
14576 # implementations.
14577 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14578   eval 'as_fn_append ()
14579   {
14580     eval $1+=\$2
14581   }'
14582 else
14583   as_fn_append ()
14584   {
14585     eval $1=\$$1\$2
14586   }
14587 fi # as_fn_append
14588
14589 # as_fn_arith ARG...
14590 # ------------------
14591 # Perform arithmetic evaluation on the ARGs, and store the result in the
14592 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14593 # must be portable across $(()) and expr.
14594 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14595   eval 'as_fn_arith ()
14596   {
14597     as_val=$(( $* ))
14598   }'
14599 else
14600   as_fn_arith ()
14601   {
14602     as_val=`expr "$@" || test $? -eq 1`
14603   }
14604 fi # as_fn_arith
14605
14606
14607 if expr a : '\(a\)' >/dev/null 2>&1 &&
14608    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14609   as_expr=expr
14610 else
14611   as_expr=false
14612 fi
14613
14614 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14615   as_basename=basename
14616 else
14617   as_basename=false
14618 fi
14619
14620 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14621   as_dirname=dirname
14622 else
14623   as_dirname=false
14624 fi
14625
14626 as_me=`$as_basename -- "$0" ||
14627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14628          X"$0" : 'X\(//\)$' \| \
14629          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14630 $as_echo X/"$0" |
14631     sed '/^.*\/\([^/][^/]*\)\/*$/{
14632             s//\1/
14633             q
14634           }
14635           /^X\/\(\/\/\)$/{
14636             s//\1/
14637             q
14638           }
14639           /^X\/\(\/\).*/{
14640             s//\1/
14641             q
14642           }
14643           s/.*/./; q'`
14644
14645 # Avoid depending upon Character Ranges.
14646 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14647 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14648 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14649 as_cr_digits='0123456789'
14650 as_cr_alnum=$as_cr_Letters$as_cr_digits
14651
14652 ECHO_C= ECHO_N= ECHO_T=
14653 case `echo -n x` in #(((((
14654 -n*)
14655   case `echo 'xy\c'` in
14656   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14657   xy)  ECHO_C='\c';;
14658   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14659        ECHO_T=' ';;
14660   esac;;
14661 *)
14662   ECHO_N='-n';;
14663 esac
14664
14665 rm -f conf$$ conf$$.exe conf$$.file
14666 if test -d conf$$.dir; then
14667   rm -f conf$$.dir/conf$$.file
14668 else
14669   rm -f conf$$.dir
14670   mkdir conf$$.dir 2>/dev/null
14671 fi
14672 if (echo >conf$$.file) 2>/dev/null; then
14673   if ln -s conf$$.file conf$$ 2>/dev/null; then
14674     as_ln_s='ln -s'
14675     # ... but there are two gotchas:
14676     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14677     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14678     # In both cases, we have to default to `cp -p'.
14679     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14680       as_ln_s='cp -p'
14681   elif ln conf$$.file conf$$ 2>/dev/null; then
14682     as_ln_s=ln
14683   else
14684     as_ln_s='cp -p'
14685   fi
14686 else
14687   as_ln_s='cp -p'
14688 fi
14689 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14690 rmdir conf$$.dir 2>/dev/null
14691
14692
14693 # as_fn_mkdir_p
14694 # -------------
14695 # Create "$as_dir" as a directory, including parents if necessary.
14696 as_fn_mkdir_p ()
14697 {
14698
14699   case $as_dir in #(
14700   -*) as_dir=./$as_dir;;
14701   esac
14702   test -d "$as_dir" || eval $as_mkdir_p || {
14703     as_dirs=
14704     while :; do
14705       case $as_dir in #(
14706       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14707       *) as_qdir=$as_dir;;
14708       esac
14709       as_dirs="'$as_qdir' $as_dirs"
14710       as_dir=`$as_dirname -- "$as_dir" ||
14711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14712          X"$as_dir" : 'X\(//\)[^/]' \| \
14713          X"$as_dir" : 'X\(//\)$' \| \
14714          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14715 $as_echo X"$as_dir" |
14716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14717             s//\1/
14718             q
14719           }
14720           /^X\(\/\/\)[^/].*/{
14721             s//\1/
14722             q
14723           }
14724           /^X\(\/\/\)$/{
14725             s//\1/
14726             q
14727           }
14728           /^X\(\/\).*/{
14729             s//\1/
14730             q
14731           }
14732           s/.*/./; q'`
14733       test -d "$as_dir" && break
14734     done
14735     test -z "$as_dirs" || eval "mkdir $as_dirs"
14736   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14737
14738
14739 } # as_fn_mkdir_p
14740 if mkdir -p . 2>/dev/null; then
14741   as_mkdir_p='mkdir -p "$as_dir"'
14742 else
14743   test -d ./-p && rmdir ./-p
14744   as_mkdir_p=false
14745 fi
14746
14747 if test -x / >/dev/null 2>&1; then
14748   as_test_x='test -x'
14749 else
14750   if ls -dL / >/dev/null 2>&1; then
14751     as_ls_L_option=L
14752   else
14753     as_ls_L_option=
14754   fi
14755   as_test_x='
14756     eval sh -c '\''
14757       if test -d "$1"; then
14758         test -d "$1/.";
14759       else
14760         case $1 in #(
14761         -*)set "./$1";;
14762         esac;
14763         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14764         ???[sx]*):;;*)false;;esac;fi
14765     '\'' sh
14766   '
14767 fi
14768 as_executable_p=$as_test_x
14769
14770 # Sed expression to map a string onto a valid CPP name.
14771 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14772
14773 # Sed expression to map a string onto a valid variable name.
14774 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14775
14776
14777 exec 6>&1
14778 ## ----------------------------------- ##
14779 ## Main body of $CONFIG_STATUS script. ##
14780 ## ----------------------------------- ##
14781 _ASEOF
14782 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14783
14784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14785 # Save the log message, to keep $0 and so on meaningful, and to
14786 # report actual input values of CONFIG_FILES etc. instead of their
14787 # values after options handling.
14788 ac_log="
14789 This file was extended by $as_me, which was
14790 generated by GNU Autoconf 2.64.  Invocation command line was
14791
14792   CONFIG_FILES    = $CONFIG_FILES
14793   CONFIG_HEADERS  = $CONFIG_HEADERS
14794   CONFIG_LINKS    = $CONFIG_LINKS
14795   CONFIG_COMMANDS = $CONFIG_COMMANDS
14796   $ $0 $@
14797
14798 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14799 "
14800
14801 _ACEOF
14802
14803 case $ac_config_files in *"
14804 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14805 esac
14806
14807
14808
14809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14810 # Files that config.status was made for.
14811 config_files="$ac_config_files"
14812
14813 _ACEOF
14814
14815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14816 ac_cs_usage="\
14817 \`$as_me' instantiates files and other configuration actions
14818 from templates according to the current configuration.  Unless the files
14819 and actions are specified as TAGs, all are instantiated by default.
14820
14821 Usage: $0 [OPTION]... [TAG]...
14822
14823   -h, --help       print this help, then exit
14824   -V, --version    print version number and configuration settings, then exit
14825   -q, --quiet, --silent
14826                    do not print progress messages
14827   -d, --debug      don't remove temporary files
14828       --recheck    update $as_me by reconfiguring in the same conditions
14829       --file=FILE[:TEMPLATE]
14830                    instantiate the configuration file FILE
14831
14832 Configuration files:
14833 $config_files
14834
14835 Report bugs to the package provider."
14836
14837 _ACEOF
14838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14839 ac_cs_version="\\
14840 config.status
14841 configured by $0, generated by GNU Autoconf 2.64,
14842   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14843
14844 Copyright (C) 2009 Free Software Foundation, Inc.
14845 This config.status script is free software; the Free Software Foundation
14846 gives unlimited permission to copy, distribute and modify it."
14847
14848 ac_pwd='$ac_pwd'
14849 srcdir='$srcdir'
14850 INSTALL='$INSTALL'
14851 AWK='$AWK'
14852 test -n "\$AWK" || AWK=awk
14853 _ACEOF
14854
14855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14856 # The default lists apply if the user does not specify any file.
14857 ac_need_defaults=:
14858 while test $# != 0
14859 do
14860   case $1 in
14861   --*=*)
14862     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14863     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14864     ac_shift=:
14865     ;;
14866   *)
14867     ac_option=$1
14868     ac_optarg=$2
14869     ac_shift=shift
14870     ;;
14871   esac
14872
14873   case $ac_option in
14874   # Handling of the options.
14875   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14876     ac_cs_recheck=: ;;
14877   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14878     $as_echo "$ac_cs_version"; exit ;;
14879   --debug | --debu | --deb | --de | --d | -d )
14880     debug=: ;;
14881   --file | --fil | --fi | --f )
14882     $ac_shift
14883     case $ac_optarg in
14884     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14885     esac
14886     as_fn_append CONFIG_FILES " '$ac_optarg'"
14887     ac_need_defaults=false;;
14888   --he | --h |  --help | --hel | -h )
14889     $as_echo "$ac_cs_usage"; exit ;;
14890   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14891   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14892     ac_cs_silent=: ;;
14893
14894   # This is an error.
14895   -*) as_fn_error "unrecognized option: \`$1'
14896 Try \`$0 --help' for more information." ;;
14897
14898   *) as_fn_append ac_config_targets " $1"
14899      ac_need_defaults=false ;;
14900
14901   esac
14902   shift
14903 done
14904
14905 ac_configure_extra_args=
14906
14907 if $ac_cs_silent; then
14908   exec 6>/dev/null
14909   ac_configure_extra_args="$ac_configure_extra_args --silent"
14910 fi
14911
14912 _ACEOF
14913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14914 if \$ac_cs_recheck; then
14915   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14916   shift
14917   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14918   CONFIG_SHELL='$SHELL'
14919   export CONFIG_SHELL
14920   exec "\$@"
14921 fi
14922
14923 _ACEOF
14924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14925 exec 5>>config.log
14926 {
14927   echo
14928   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14929 ## Running $as_me. ##
14930 _ASBOX
14931   $as_echo "$ac_log"
14932 } >&5
14933
14934 _ACEOF
14935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14936 #
14937 # INIT-COMMANDS
14938 #
14939 extrasub_build="$extrasub_build"
14940    extrasub_host="$extrasub_host"
14941    extrasub_target="$extrasub_target"
14942
14943 _ACEOF
14944
14945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14946
14947 # Handling of arguments.
14948 for ac_config_target in $ac_config_targets
14949 do
14950   case $ac_config_target in
14951     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14952
14953   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14954   esac
14955 done
14956
14957
14958 # If the user did not use the arguments to specify the items to instantiate,
14959 # then the envvar interface is used.  Set only those that are not.
14960 # We use the long form for the default assignment because of an extremely
14961 # bizarre bug on SunOS 4.1.3.
14962 if $ac_need_defaults; then
14963   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14964 fi
14965
14966 # Have a temporary directory for convenience.  Make it in the build tree
14967 # simply because there is no reason against having it here, and in addition,
14968 # creating and moving files from /tmp can sometimes cause problems.
14969 # Hook for its removal unless debugging.
14970 # Note that there is a small window in which the directory will not be cleaned:
14971 # after its creation but before its name has been assigned to `$tmp'.
14972 $debug ||
14973 {
14974   tmp=
14975   trap 'exit_status=$?
14976   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14977 ' 0
14978   trap 'as_fn_exit 1' 1 2 13 15
14979 }
14980 # Create a (secure) tmp directory for tmp files.
14981
14982 {
14983   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14984   test -n "$tmp" && test -d "$tmp"
14985 }  ||
14986 {
14987   tmp=./conf$$-$RANDOM
14988   (umask 077 && mkdir "$tmp")
14989 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14990
14991 # Set up the scripts for CONFIG_FILES section.
14992 # No need to generate them if there are no CONFIG_FILES.
14993 # This happens for instance with `./config.status config.h'.
14994 if test -n "$CONFIG_FILES"; then
14995
14996 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14997   ac_cs_awk_getline=:
14998   ac_cs_awk_pipe_init=
14999   ac_cs_awk_read_file='
15000       while ((getline aline < (F[key])) > 0)
15001         print(aline)
15002       close(F[key])'
15003   ac_cs_awk_pipe_fini=
15004 else
15005   ac_cs_awk_getline=false
15006   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15007   ac_cs_awk_read_file='
15008       print "|#_!!_#|"
15009       print "cat " F[key] " &&"
15010       '$ac_cs_awk_pipe_init
15011   # The final `:' finishes the AND list.
15012   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15013 fi
15014 ac_cr=`echo X | tr X '\015'`
15015 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15016 # But we know of no other shell where ac_cr would be empty at this
15017 # point, so we can use a bashism as a fallback.
15018 if test "x$ac_cr" = x; then
15019   eval ac_cr=\$\'\\r\'
15020 fi
15021 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15022 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15023   ac_cs_awk_cr='\r'
15024 else
15025   ac_cs_awk_cr=$ac_cr
15026 fi
15027
15028 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15029 _ACEOF
15030
15031 # Create commands to substitute file output variables.
15032 {
15033   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15034   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15035   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15036   echo "_ACAWK" &&
15037   echo "_ACEOF"
15038 } >conf$$files.sh &&
15039 . ./conf$$files.sh ||
15040   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15041 rm -f conf$$files.sh
15042
15043 {
15044   echo "cat >conf$$subs.awk <<_ACEOF" &&
15045   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15046   echo "_ACEOF"
15047 } >conf$$subs.sh ||
15048   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15049 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15050 ac_delim='%!_!# '
15051 for ac_last_try in false false false false false :; do
15052   . ./conf$$subs.sh ||
15053     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15054
15055   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15056   if test $ac_delim_n = $ac_delim_num; then
15057     break
15058   elif $ac_last_try; then
15059     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15060   else
15061     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15062   fi
15063 done
15064 rm -f conf$$subs.sh
15065
15066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15067 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15068 _ACEOF
15069 sed -n '
15070 h
15071 s/^/S["/; s/!.*/"]=/
15072 p
15073 g
15074 s/^[^!]*!//
15075 :repl
15076 t repl
15077 s/'"$ac_delim"'$//
15078 t delim
15079 :nl
15080 h
15081 s/\(.\{148\}\).*/\1/
15082 t more1
15083 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15084 p
15085 n
15086 b repl
15087 :more1
15088 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15089 p
15090 g
15091 s/.\{148\}//
15092 t nl
15093 :delim
15094 h
15095 s/\(.\{148\}\).*/\1/
15096 t more2
15097 s/["\\]/\\&/g; s/^/"/; s/$/"/
15098 p
15099 b
15100 :more2
15101 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15102 p
15103 g
15104 s/.\{148\}//
15105 t delim
15106 ' <conf$$subs.awk | sed '
15107 /^[^""]/{
15108   N
15109   s/\n//
15110 }
15111 ' >>$CONFIG_STATUS || ac_write_fail=1
15112 rm -f conf$$subs.awk
15113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15114 _ACAWK
15115 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15116   for (key in S) S_is_set[key] = 1
15117   FS = "\a"
15118   \$ac_cs_awk_pipe_init
15119 }
15120 {
15121   line = $ 0
15122   nfields = split(line, field, "@")
15123   substed = 0
15124   len = length(field[1])
15125   for (i = 2; i < nfields; i++) {
15126     key = field[i]
15127     keylen = length(key)
15128     if (S_is_set[key]) {
15129       value = S[key]
15130       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15131       len += length(value) + length(field[++i])
15132       substed = 1
15133     } else
15134       len += 1 + keylen
15135   }
15136   if (nfields == 3 && !substed) {
15137     key = field[2]
15138     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15139       \$ac_cs_awk_read_file
15140       next
15141     }
15142   }
15143   print line
15144 }
15145 \$ac_cs_awk_pipe_fini
15146 _ACAWK
15147 _ACEOF
15148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15149 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15150   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15151 else
15152   cat
15153 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15154   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15155 _ACEOF
15156
15157 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15158 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15159 # trailing colons and then remove the whole line if VPATH becomes empty
15160 # (actually we leave an empty line to preserve line numbers).
15161 if test "x$srcdir" = x.; then
15162   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15163 s/:*\$(srcdir):*/:/
15164 s/:*\${srcdir}:*/:/
15165 s/:*@srcdir@:*/:/
15166 s/^\([^=]*=[     ]*\):*/\1/
15167 s/:*$//
15168 s/^[^=]*=[       ]*$//
15169 }'
15170 fi
15171
15172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15173 fi # test -n "$CONFIG_FILES"
15174
15175
15176 eval set X "  :F $CONFIG_FILES      "
15177 shift
15178 for ac_tag
15179 do
15180   case $ac_tag in
15181   :[FHLC]) ac_mode=$ac_tag; continue;;
15182   esac
15183   case $ac_mode$ac_tag in
15184   :[FHL]*:*);;
15185   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15186   :[FH]-) ac_tag=-:-;;
15187   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15188   esac
15189   ac_save_IFS=$IFS
15190   IFS=:
15191   set x $ac_tag
15192   IFS=$ac_save_IFS
15193   shift
15194   ac_file=$1
15195   shift
15196
15197   case $ac_mode in
15198   :L) ac_source=$1;;
15199   :[FH])
15200     ac_file_inputs=
15201     for ac_f
15202     do
15203       case $ac_f in
15204       -) ac_f="$tmp/stdin";;
15205       *) # Look for the file first in the build tree, then in the source tree
15206          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15207          # because $ac_f cannot contain `:'.
15208          test -f "$ac_f" ||
15209            case $ac_f in
15210            [\\/$]*) false;;
15211            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15212            esac ||
15213            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15214       esac
15215       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15216       as_fn_append ac_file_inputs " '$ac_f'"
15217     done
15218
15219     # Let's still pretend it is `configure' which instantiates (i.e., don't
15220     # use $as_me), people would be surprised to read:
15221     #    /* config.h.  Generated by config.status.  */
15222     configure_input='Generated from '`
15223           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15224         `' by configure.'
15225     if test x"$ac_file" != x-; then
15226       configure_input="$ac_file.  $configure_input"
15227       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15228 $as_echo "$as_me: creating $ac_file" >&6;}
15229     fi
15230     # Neutralize special characters interpreted by sed in replacement strings.
15231     case $configure_input in #(
15232     *\&* | *\|* | *\\* )
15233        ac_sed_conf_input=`$as_echo "$configure_input" |
15234        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15235     *) ac_sed_conf_input=$configure_input;;
15236     esac
15237
15238     case $ac_tag in
15239     *:-:* | *:-) cat >"$tmp/stdin" \
15240       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15241     esac
15242     ;;
15243   esac
15244
15245   ac_dir=`$as_dirname -- "$ac_file" ||
15246 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15247          X"$ac_file" : 'X\(//\)[^/]' \| \
15248          X"$ac_file" : 'X\(//\)$' \| \
15249          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15250 $as_echo X"$ac_file" |
15251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15252             s//\1/
15253             q
15254           }
15255           /^X\(\/\/\)[^/].*/{
15256             s//\1/
15257             q
15258           }
15259           /^X\(\/\/\)$/{
15260             s//\1/
15261             q
15262           }
15263           /^X\(\/\).*/{
15264             s//\1/
15265             q
15266           }
15267           s/.*/./; q'`
15268   as_dir="$ac_dir"; as_fn_mkdir_p
15269   ac_builddir=.
15270
15271 case "$ac_dir" in
15272 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15273 *)
15274   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15275   # A ".." for each directory in $ac_dir_suffix.
15276   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15277   case $ac_top_builddir_sub in
15278   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15279   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15280   esac ;;
15281 esac
15282 ac_abs_top_builddir=$ac_pwd
15283 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15284 # for backward compatibility:
15285 ac_top_builddir=$ac_top_build_prefix
15286
15287 case $srcdir in
15288   .)  # We are building in place.
15289     ac_srcdir=.
15290     ac_top_srcdir=$ac_top_builddir_sub
15291     ac_abs_top_srcdir=$ac_pwd ;;
15292   [\\/]* | ?:[\\/]* )  # Absolute name.
15293     ac_srcdir=$srcdir$ac_dir_suffix;
15294     ac_top_srcdir=$srcdir
15295     ac_abs_top_srcdir=$srcdir ;;
15296   *) # Relative name.
15297     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15298     ac_top_srcdir=$ac_top_build_prefix$srcdir
15299     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15300 esac
15301 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15302
15303
15304   case $ac_mode in
15305   :F)
15306   #
15307   # CONFIG_FILE
15308   #
15309
15310   case $INSTALL in
15311   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15312   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15313   esac
15314 _ACEOF
15315
15316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15317 # If the template does not know about datarootdir, expand it.
15318 # FIXME: This hack should be removed a few years after 2.60.
15319 ac_datarootdir_hack=; ac_datarootdir_seen=
15320 ac_sed_dataroot='
15321 /datarootdir/ {
15322   p
15323   q
15324 }
15325 /@datadir@/p
15326 /@docdir@/p
15327 /@infodir@/p
15328 /@localedir@/p
15329 /@mandir@/p'
15330 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15331 *datarootdir*) ac_datarootdir_seen=yes;;
15332 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15333   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15334 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15335 _ACEOF
15336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15337   ac_datarootdir_hack='
15338   s&@datadir@&$datadir&g
15339   s&@docdir@&$docdir&g
15340   s&@infodir@&$infodir&g
15341   s&@localedir@&$localedir&g
15342   s&@mandir@&$mandir&g
15343   s&\\\${datarootdir}&$datarootdir&g' ;;
15344 esac
15345 _ACEOF
15346
15347 # Neutralize VPATH when `$srcdir' = `.'.
15348 # Shell code in configure.ac might set extrasub.
15349 # FIXME: do we really want to maintain this feature?
15350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15351 ac_sed_extra="$ac_vpsub
15352 $extrasub
15353 _ACEOF
15354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15355 :t
15356 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15357 s|@configure_input@|$ac_sed_conf_input|;t t
15358 s&@top_builddir@&$ac_top_builddir_sub&;t t
15359 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15360 s&@srcdir@&$ac_srcdir&;t t
15361 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15362 s&@top_srcdir@&$ac_top_srcdir&;t t
15363 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15364 s&@builddir@&$ac_builddir&;t t
15365 s&@abs_builddir@&$ac_abs_builddir&;t t
15366 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15367 s&@INSTALL@&$ac_INSTALL&;t t
15368 $ac_datarootdir_hack
15369 "
15370 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15371 if $ac_cs_awk_getline; then
15372   $AWK -f "$tmp/subs.awk"
15373 else
15374   $AWK -f "$tmp/subs.awk" | $SHELL
15375 fi >$tmp/out \
15376   || as_fn_error "could not create $ac_file" "$LINENO" 5
15377
15378 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15379   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15380   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15381   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15382 which seems to be undefined.  Please make sure it is defined." >&5
15383 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15384 which seems to be undefined.  Please make sure it is defined." >&2;}
15385
15386   rm -f "$tmp/stdin"
15387   case $ac_file in
15388   -) cat "$tmp/out" && rm -f "$tmp/out";;
15389   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15390   esac \
15391   || as_fn_error "could not create $ac_file" "$LINENO" 5
15392  ;;
15393
15394
15395
15396   esac
15397
15398
15399   case $ac_file$ac_mode in
15400     "Makefile":F) sed "$extrasub_build" Makefile |
15401    sed "$extrasub_host" |
15402    sed "$extrasub_target" > mf$$
15403    mv -f mf$$ Makefile ;;
15404
15405   esac
15406 done # for ac_tag
15407
15408
15409 as_fn_exit 0
15410 _ACEOF
15411 ac_clean_files=$ac_clean_files_save
15412
15413 test $ac_write_fail = 0 ||
15414   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15415
15416
15417 # configure is writing to config.log, and then calls config.status.
15418 # config.status does its own redirection, appending to config.log.
15419 # Unfortunately, on DOS this fails, as config.log is still kept open
15420 # by configure, so config.status won't be able to write to it; its
15421 # output is simply discarded.  So we exec the FD to /dev/null,
15422 # effectively closing config.log, so it can be properly (re)opened and
15423 # appended to by config.status.  When coming back to configure, we
15424 # need to make the FD available again.
15425 if test "$no_create" != yes; then
15426   ac_cs_success=:
15427   ac_config_status_args=
15428   test "$silent" = yes &&
15429     ac_config_status_args="$ac_config_status_args --quiet"
15430   exec 5>/dev/null
15431   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15432   exec 5>>config.log
15433   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15434   # would make configure fail if this is the last instruction.
15435   $ac_cs_success || as_fn_exit $?
15436 fi
15437 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15438   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15439 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15440 fi
15441