ChangeLog for last change.
[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 POSTSTAGE1_CONFIGURE_FLAGS
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 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 OBJDUMP
589 OBJCOPY
590 WINDMC
591 WINDRES
592 STRIP
593 RANLIB
594 NM
595 LIPO
596 LD
597 DLLTOOL
598 AS
599 AR
600 RUNTEST
601 EXPECT
602 MAKEINFO
603 FLEX
604 LEX
605 M4
606 BISON
607 YACC
608 WINDRES_FOR_BUILD
609 WINDMC_FOR_BUILD
610 RANLIB_FOR_BUILD
611 NM_FOR_BUILD
612 LD_FOR_BUILD
613 LDFLAGS_FOR_BUILD
614 GOC_FOR_BUILD
615 GFORTRAN_FOR_BUILD
616 GCJ_FOR_BUILD
617 DLLTOOL_FOR_BUILD
618 CXX_FOR_BUILD
619 CXXFLAGS_FOR_BUILD
620 CFLAGS_FOR_BUILD
621 CC_FOR_BUILD
622 AS_FOR_BUILD
623 AR_FOR_BUILD
624 target_configdirs
625 configdirs
626 build_configdirs
627 INSTALL_GDB_TK
628 GDB_TK
629 CONFIGURE_GDB_TK
630 build_tooldir
631 tooldir
632 GCC_SHLIB_SUBDIR
633 RPATH_ENVVAR
634 target_configargs
635 host_configargs
636 build_configargs
637 BUILD_CONFIG
638 LDFLAGS_FOR_TARGET
639 CXXFLAGS_FOR_TARGET
640 CFLAGS_FOR_TARGET
641 DEBUG_PREFIX_CFLAGS_FOR_TARGET
642 SYSROOT_CFLAGS_FOR_TARGET
643 stage1_languages
644 extra_host_libiberty_configure_flags
645 clooginc
646 clooglibs
647 pplinc
648 ppllibs
649 poststage1_ldflags
650 poststage1_libs
651 stage1_libs
652 stage1_ldflags
653 extra_mpc_mpfr_configure_flags
654 extra_mpc_gmp_configure_flags
655 extra_mpfr_configure_flags
656 gmpinc
657 gmplibs
658 do_compare
659 GNATMAKE
660 GNATBIND
661 ac_ct_CXX
662 CXXFLAGS
663 CXX
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
670 CC
671 EXTRA_CONFIGARGS_LIBJAVA
672 target_subdir
673 host_subdir
674 build_subdir
675 build_libsubdir
676 AWK
677 SED
678 LN_S
679 LN
680 INSTALL_DATA
681 INSTALL_SCRIPT
682 INSTALL_PROGRAM
683 target_os
684 target_vendor
685 target_cpu
686 target
687 host_os
688 host_vendor
689 host_cpu
690 host
691 target_noncanonical
692 host_noncanonical
693 build_noncanonical
694 build_os
695 build_vendor
696 build_cpu
697 build
698 TOPLEVEL_CONFIGURE_ARGUMENTS
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files='serialization_dependencies
738 host_makefile_frag
739 target_makefile_frag
740 alphaieee_frag
741 ospace_frag'
742 ac_user_opts='
743 enable_option_checking
744 with_build_libsubdir
745 enable_gold
746 enable_ld
747 enable_libquadmath
748 enable_libquadmath_support
749 enable_libada
750 enable_libssp
751 enable_static_libjava
752 enable_bootstrap
753 enable_build_with_cxx
754 enable_build_poststage1_with_cxx
755 with_mpc
756 with_mpc_include
757 with_mpc_lib
758 with_mpfr_dir
759 with_mpfr
760 with_mpfr_include
761 with_mpfr_lib
762 with_gmp_dir
763 with_gmp
764 with_gmp_include
765 with_gmp_lib
766 with_host_libstdcxx
767 with_stage1_ldflags
768 with_stage1_libs
769 with_boot_libs
770 with_boot_ldflags
771 with_ppl
772 with_ppl_include
773 with_ppl_lib
774 enable_ppl_version_check
775 with_cloog
776 with_cloog_include
777 with_cloog_lib
778 enable_cloog_backend
779 enable_cloog_version_check
780 enable_lto
781 enable_stage1_languages
782 enable_objc_gc
783 with_build_sysroot
784 with_debug_prefix_map
785 with_build_config
786 enable_serial_configure
787 with_build_time_tools
788 enable_maintainer_mode
789 enable_stage1_checking
790 enable_werror
791 '
792       ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 CXX
801 CXXFLAGS
802 CCC
803 build_configargs
804 host_configargs
805 target_configargs
806 AR
807 AS
808 DLLTOOL
809 LD
810 LIPO
811 NM
812 RANLIB
813 STRIP
814 WINDRES
815 WINDMC
816 OBJCOPY
817 OBJDUMP
818 CC_FOR_TARGET
819 CXX_FOR_TARGET
820 GCC_FOR_TARGET
821 GCJ_FOR_TARGET
822 GFORTRAN_FOR_TARGET
823 GOC_FOR_TARGET
824 AR_FOR_TARGET
825 AS_FOR_TARGET
826 DLLTOOL_FOR_TARGET
827 LD_FOR_TARGET
828 LIPO_FOR_TARGET
829 NM_FOR_TARGET
830 OBJDUMP_FOR_TARGET
831 RANLIB_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   --enable-build-with-cxx build with C++ compiler instead of C compiler
1471   --enable-build-poststage1-with-cxx
1472                           build stages 2 and 3 with C++, not C
1473   --disable-ppl-version-check
1474                           disable check for PPL version
1475   --enable-cloog-backend[=BACKEND]
1476                           set the CLooG BACKEND used to either isl, ppl or
1477                           ppl-legacy (default)
1478   --disable-cloog-version-check
1479                           disable check for CLooG version
1480   --enable-lto            enable link time optimization support
1481   --enable-stage1-languages[=all]
1482                           choose additional languages to build during stage1.
1483                           Mostly useful for compiler development
1484   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1485                           Objective-C runtime
1486   --enable-serial-[{host,target,build}-]configure
1487                           force sequential configuration of sub-packages for
1488                           the host, target or build machine, or all
1489                           sub-packages
1490   --enable-maintainer-mode
1491                           enable make rules and dependencies not useful (and
1492                           sometimes confusing) to the casual installer
1493   --enable-stage1-checking[=all]
1494                           choose additional checking for stage1 of the
1495                           compiler
1496   --enable-werror         enable -Werror in bootstrap stage2 and later
1497
1498 Optional Packages:
1499   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1500   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1501   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1502   --with-mpc=PATH         specify prefix directory for installed MPC package.
1503                           Equivalent to --with-mpc-include=PATH/include plus
1504                           --with-mpc-lib=PATH/lib
1505   --with-mpc-include=PATH specify directory for installed MPC include files
1506   --with-mpc-lib=PATH     specify directory for the installed MPC library
1507   --with-mpfr-dir=PATH    this option has been REMOVED
1508   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1509                           Equivalent to --with-mpfr-include=PATH/include plus
1510                           --with-mpfr-lib=PATH/lib
1511   --with-mpfr-include=PATH
1512                           specify directory for installed MPFR include files
1513   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1514   --with-gmp-dir=PATH     this option has been REMOVED
1515   --with-gmp=PATH         specify prefix directory for the installed GMP
1516                           package. Equivalent to
1517                           --with-gmp-include=PATH/include plus
1518                           --with-gmp-lib=PATH/lib
1519   --with-gmp-include=PATH specify directory for installed GMP include files
1520   --with-gmp-lib=PATH     specify directory for the installed GMP library
1521   --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1522                           linking with PPL
1523   --with-stage1-ldflags=FLAGS
1524                           linker flags for stage1
1525   --with-stage1-libs=LIBS libraries for stage1
1526   --with-boot-libs=LIBS   libraries for stage2 and later
1527   --with-boot-ldflags=FLAGS
1528                           linker flags for stage2 and later
1529   --with-ppl=PATH         specify prefix directory for the installed PPL
1530                           package. Equivalent to
1531                           --with-ppl-include=PATH/include plus
1532                           --with-ppl-lib=PATH/lib
1533   --with-ppl-include=PATH specify directory for installed PPL include files
1534   --with-ppl-lib=PATH     specify directory for the installed PPL library
1535   --with-cloog=PATH       Specify prefix directory for the installed CLooG-PPL
1536                           package. Equivalent to
1537                           --with-cloog-include=PATH/include plus
1538                           --with-cloog-lib=PATH/lib
1539   --with-cloog-include=PATH
1540                           Specify directory for installed CLooG include files
1541   --with-cloog-lib=PATH   Specify the directory for the installed CLooG
1542                           library
1543   --with-build-sysroot=SYSROOT
1544                           use sysroot as the system root during the build
1545   --with-debug-prefix-map='A=B C=D ...'
1546                           map A to B, C to D ... in debug information
1547   --with-build-config='NAME NAME2...'
1548                           use config/NAME.mk build configuration
1549   --with-build-time-tools=PATH
1550                           use given path to find target tools during the build
1551
1552 Some influential environment variables:
1553   CC          C compiler command
1554   CFLAGS      C compiler flags
1555   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1556               nonstandard directory <lib dir>
1557   LIBS        libraries to pass to the linker, e.g. -l<library>
1558   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559               you have headers in a nonstandard directory <include dir>
1560   CXX         C++ compiler command
1561   CXXFLAGS    C++ compiler flags
1562   build_configargs
1563               additional configure arguments for build directories
1564   host_configargs
1565               additional configure arguments for host directories
1566   target_configargs
1567               additional configure arguments for target directories
1568   AR          AR for the host
1569   AS          AS for the host
1570   DLLTOOL     DLLTOOL for the host
1571   LD          LD for the host
1572   LIPO        LIPO for the host
1573   NM          NM for the host
1574   RANLIB      RANLIB for the host
1575   STRIP       STRIP for the host
1576   WINDRES     WINDRES for the host
1577   WINDMC      WINDMC for the host
1578   OBJCOPY     OBJCOPY for the host
1579   OBJDUMP     OBJDUMP for the host
1580   CC_FOR_TARGET
1581               CC for the target
1582   CXX_FOR_TARGET
1583               CXX for the target
1584   GCC_FOR_TARGET
1585               GCC for the target
1586   GCJ_FOR_TARGET
1587               GCJ for the target
1588   GFORTRAN_FOR_TARGET
1589               GFORTRAN for the target
1590   GOC_FOR_TARGET
1591               GOC for the target
1592   AR_FOR_TARGET
1593               AR for the target
1594   AS_FOR_TARGET
1595               AS for the target
1596   DLLTOOL_FOR_TARGET
1597               DLLTOOL for the target
1598   LD_FOR_TARGET
1599               LD for the target
1600   LIPO_FOR_TARGET
1601               LIPO for the target
1602   NM_FOR_TARGET
1603               NM for the target
1604   OBJDUMP_FOR_TARGET
1605               OBJDUMP for the target
1606   RANLIB_FOR_TARGET
1607               RANLIB for the target
1608   STRIP_FOR_TARGET
1609               STRIP for the target
1610   WINDRES_FOR_TARGET
1611               WINDRES for the target
1612   WINDMC_FOR_TARGET
1613               WINDMC for the target
1614
1615 Use these variables to override the choices made by `configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1617
1618 Report bugs to the package provider.
1619 _ACEOF
1620 ac_status=$?
1621 fi
1622
1623 if test "$ac_init_help" = "recursive"; then
1624   # If there are subdirs, report their specific --help.
1625   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626     test -d "$ac_dir" ||
1627       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628       continue
1629     ac_builddir=.
1630
1631 case "$ac_dir" in
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *)
1634   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1635   # A ".." for each directory in $ac_dir_suffix.
1636   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1637   case $ac_top_builddir_sub in
1638   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640   esac ;;
1641 esac
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1646
1647 case $srcdir in
1648   .)  # We are building in place.
1649     ac_srcdir=.
1650     ac_top_srcdir=$ac_top_builddir_sub
1651     ac_abs_top_srcdir=$ac_pwd ;;
1652   [\\/]* | ?:[\\/]* )  # Absolute name.
1653     ac_srcdir=$srcdir$ac_dir_suffix;
1654     ac_top_srcdir=$srcdir
1655     ac_abs_top_srcdir=$srcdir ;;
1656   *) # Relative name.
1657     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658     ac_top_srcdir=$ac_top_build_prefix$srcdir
1659     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1660 esac
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662
1663     cd "$ac_dir" || { ac_status=$?; continue; }
1664     # Check for guested configure.
1665     if test -f "$ac_srcdir/configure.gnu"; then
1666       echo &&
1667       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668     elif test -f "$ac_srcdir/configure"; then
1669       echo &&
1670       $SHELL "$ac_srcdir/configure" --help=recursive
1671     else
1672       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673     fi || ac_status=$?
1674     cd "$ac_pwd" || { ac_status=$?; break; }
1675   done
1676 fi
1677
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1680   cat <<\_ACEOF
1681 configure
1682 generated by GNU Autoconf 2.64
1683
1684 Copyright (C) 2009 Free Software Foundation, Inc.
1685 This configure script is free software; the Free Software Foundation
1686 gives unlimited permission to copy, distribute and modify it.
1687 _ACEOF
1688   exit
1689 fi
1690
1691 ## ------------------------ ##
1692 ## Autoconf initialization. ##
1693 ## ------------------------ ##
1694
1695 # ac_fn_c_try_compile LINENO
1696 # --------------------------
1697 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_compile ()
1699 {
1700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701   rm -f conftest.$ac_objext
1702   if { { ac_try="$ac_compile"
1703 case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_compile") 2>conftest.err
1710   ac_status=$?
1711   if test -s conftest.err; then
1712     grep -v '^ *+' conftest.err >conftest.er1
1713     cat conftest.er1 >&5
1714     mv -f conftest.er1 conftest.err
1715   fi
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; } && {
1718          test -z "$ac_c_werror_flag" ||
1719          test ! -s conftest.err
1720        } && test -s conftest.$ac_objext; then :
1721   ac_retval=0
1722 else
1723   $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726         ac_retval=1
1727 fi
1728   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729   return $ac_retval
1730
1731 } # ac_fn_c_try_compile
1732
1733 # ac_fn_cxx_try_compile LINENO
1734 # ----------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_cxx_try_compile ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   rm -f conftest.$ac_objext
1740   if { { ac_try="$ac_compile"
1741 case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_compile") 2>conftest.err
1748   ac_status=$?
1749   if test -s conftest.err; then
1750     grep -v '^ *+' conftest.err >conftest.er1
1751     cat conftest.er1 >&5
1752     mv -f conftest.er1 conftest.err
1753   fi
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; } && {
1756          test -z "$ac_cxx_werror_flag" ||
1757          test ! -s conftest.err
1758        } && test -s conftest.$ac_objext; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764         ac_retval=1
1765 fi
1766   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767   return $ac_retval
1768
1769 } # ac_fn_cxx_try_compile
1770
1771 # ac_fn_c_try_link LINENO
1772 # -----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_link ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   rm -f conftest.$ac_objext conftest$ac_exeext
1778   if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_link") 2>conftest.err
1786   ac_status=$?
1787   if test -s conftest.err; then
1788     grep -v '^ *+' conftest.err >conftest.er1
1789     cat conftest.er1 >&5
1790     mv -f conftest.er1 conftest.err
1791   fi
1792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793   test $ac_status = 0; } && {
1794          test -z "$ac_c_werror_flag" ||
1795          test ! -s conftest.err
1796        } && test -s conftest$ac_exeext && {
1797          test "$cross_compiling" = yes ||
1798          $as_test_x conftest$ac_exeext
1799        }; then :
1800   ac_retval=0
1801 else
1802   $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805         ac_retval=1
1806 fi
1807   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1808   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1809   # interfere with the next link command; also delete a directory that is
1810   # left behind by Apple's compiler.  We do this before executing the actions.
1811   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813   return $ac_retval
1814
1815 } # ac_fn_c_try_link
1816 cat >config.log <<_ACEOF
1817 This file contains any messages produced by compilers while
1818 running configure, to aid debugging if configure makes a mistake.
1819
1820 It was created by $as_me, which was
1821 generated by GNU Autoconf 2.64.  Invocation command line was
1822
1823   $ $0 $@
1824
1825 _ACEOF
1826 exec 5>>config.log
1827 {
1828 cat <<_ASUNAME
1829 ## --------- ##
1830 ## Platform. ##
1831 ## --------- ##
1832
1833 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1834 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1835 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1836 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1837 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1838
1839 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1840 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1841
1842 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1843 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1844 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1845 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1846 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1847 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1848 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1849
1850 _ASUNAME
1851
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855   IFS=$as_save_IFS
1856   test -z "$as_dir" && as_dir=.
1857     $as_echo "PATH: $as_dir"
1858   done
1859 IFS=$as_save_IFS
1860
1861 } >&5
1862
1863 cat >&5 <<_ACEOF
1864
1865
1866 ## ----------- ##
1867 ## Core tests. ##
1868 ## ----------- ##
1869
1870 _ACEOF
1871
1872
1873 # Keep a trace of the command line.
1874 # Strip out --no-create and --no-recursion so they do not pile up.
1875 # Strip out --silent because we don't want to record it for future runs.
1876 # Also quote any args containing shell meta-characters.
1877 # Make two passes to allow for proper duplicate-argument suppression.
1878 ac_configure_args=
1879 ac_configure_args0=
1880 ac_configure_args1=
1881 ac_must_keep_next=false
1882 for ac_pass in 1 2
1883 do
1884   for ac_arg
1885   do
1886     case $ac_arg in
1887     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1888     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1889     | -silent | --silent | --silen | --sile | --sil)
1890       continue ;;
1891     *\'*)
1892       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1893     esac
1894     case $ac_pass in
1895     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1896     2)
1897       as_fn_append ac_configure_args1 " '$ac_arg'"
1898       if test $ac_must_keep_next = true; then
1899         ac_must_keep_next=false # Got value, back to normal.
1900       else
1901         case $ac_arg in
1902           *=* | --config-cache | -C | -disable-* | --disable-* \
1903           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1904           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1905           | -with-* | --with-* | -without-* | --without-* | --x)
1906             case "$ac_configure_args0 " in
1907               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1908             esac
1909             ;;
1910           -* ) ac_must_keep_next=true ;;
1911         esac
1912       fi
1913       as_fn_append ac_configure_args " '$ac_arg'"
1914       ;;
1915     esac
1916   done
1917 done
1918 { ac_configure_args0=; unset ac_configure_args0;}
1919 { ac_configure_args1=; unset ac_configure_args1;}
1920
1921 # When interrupted or exit'd, cleanup temporary files, and complete
1922 # config.log.  We remove comments because anyway the quotes in there
1923 # would cause problems or look ugly.
1924 # WARNING: Use '\'' to represent an apostrophe within the trap.
1925 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1926 trap 'exit_status=$?
1927   # Save into config.log some information that might help in debugging.
1928   {
1929     echo
1930
1931     cat <<\_ASBOX
1932 ## ---------------- ##
1933 ## Cache variables. ##
1934 ## ---------------- ##
1935 _ASBOX
1936     echo
1937     # The following way of writing the cache mishandles newlines in values,
1938 (
1939   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940     eval ac_val=\$$ac_var
1941     case $ac_val in #(
1942     *${as_nl}*)
1943       case $ac_var in #(
1944       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1946       esac
1947       case $ac_var in #(
1948       _ | IFS | as_nl) ;; #(
1949       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950       *) { eval $ac_var=; unset $ac_var;} ;;
1951       esac ;;
1952     esac
1953   done
1954   (set) 2>&1 |
1955     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956     *${as_nl}ac_space=\ *)
1957       sed -n \
1958         "s/'\''/'\''\\\\'\'''\''/g;
1959           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1960       ;; #(
1961     *)
1962       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1963       ;;
1964     esac |
1965     sort
1966 )
1967     echo
1968
1969     cat <<\_ASBOX
1970 ## ----------------- ##
1971 ## Output variables. ##
1972 ## ----------------- ##
1973 _ASBOX
1974     echo
1975     for ac_var in $ac_subst_vars
1976     do
1977       eval ac_val=\$$ac_var
1978       case $ac_val in
1979       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980       esac
1981       $as_echo "$ac_var='\''$ac_val'\''"
1982     done | sort
1983     echo
1984
1985     if test -n "$ac_subst_files"; then
1986       cat <<\_ASBOX
1987 ## ------------------- ##
1988 ## File substitutions. ##
1989 ## ------------------- ##
1990 _ASBOX
1991       echo
1992       for ac_var in $ac_subst_files
1993       do
1994         eval ac_val=\$$ac_var
1995         case $ac_val in
1996         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997         esac
1998         $as_echo "$ac_var='\''$ac_val'\''"
1999       done | sort
2000       echo
2001     fi
2002
2003     if test -s confdefs.h; then
2004       cat <<\_ASBOX
2005 ## ----------- ##
2006 ## confdefs.h. ##
2007 ## ----------- ##
2008 _ASBOX
2009       echo
2010       cat confdefs.h
2011       echo
2012     fi
2013     test "$ac_signal" != 0 &&
2014       $as_echo "$as_me: caught signal $ac_signal"
2015     $as_echo "$as_me: exit $exit_status"
2016   } >&5
2017   rm -f core *.core core.conftest.* &&
2018     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2019     exit $exit_status
2020 ' 0
2021 for ac_signal in 1 2 13 15; do
2022   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2023 done
2024 ac_signal=0
2025
2026 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2027 rm -f -r conftest* confdefs.h
2028
2029 $as_echo "/* confdefs.h */" > confdefs.h
2030
2031 # Predefined preprocessor variables.
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_NAME "$PACKAGE_NAME"
2035 _ACEOF
2036
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2039 _ACEOF
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_STRING "$PACKAGE_STRING"
2047 _ACEOF
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2051 _ACEOF
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_URL "$PACKAGE_URL"
2055 _ACEOF
2056
2057
2058 # Let the site file select an alternate cache file if it wants to.
2059 # Prefer an explicitly selected file to automatically selected ones.
2060 ac_site_file1=NONE
2061 ac_site_file2=NONE
2062 if test -n "$CONFIG_SITE"; then
2063   ac_site_file1=$CONFIG_SITE
2064 elif test "x$prefix" != xNONE; then
2065   ac_site_file1=$prefix/share/config.site
2066   ac_site_file2=$prefix/etc/config.site
2067 else
2068   ac_site_file1=$ac_default_prefix/share/config.site
2069   ac_site_file2=$ac_default_prefix/etc/config.site
2070 fi
2071 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2072 do
2073   test "x$ac_site_file" = xNONE && continue
2074   if test -r "$ac_site_file"; then
2075     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2076 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2077     sed 's/^/| /' "$ac_site_file" >&5
2078     . "$ac_site_file"
2079   fi
2080 done
2081
2082 if test -r "$cache_file"; then
2083   # Some versions of bash will fail to source /dev/null (special
2084   # files actually), so we avoid doing that.
2085   if test -f "$cache_file"; then
2086     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2087 $as_echo "$as_me: loading cache $cache_file" >&6;}
2088     case $cache_file in
2089       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090       *)                      . "./$cache_file";;
2091     esac
2092   fi
2093 else
2094   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2095 $as_echo "$as_me: creating cache $cache_file" >&6;}
2096   >$cache_file
2097 fi
2098
2099 # Check that the precious variables saved in the cache have kept the same
2100 # value.
2101 ac_cache_corrupted=false
2102 for ac_var in $ac_precious_vars; do
2103   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2104   eval ac_new_set=\$ac_env_${ac_var}_set
2105   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2106   eval ac_new_val=\$ac_env_${ac_var}_value
2107   case $ac_old_set,$ac_new_set in
2108     set,)
2109       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2110 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2111       ac_cache_corrupted=: ;;
2112     ,set)
2113       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2114 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2115       ac_cache_corrupted=: ;;
2116     ,);;
2117     *)
2118       if test "x$ac_old_val" != "x$ac_new_val"; then
2119         # differences in whitespace do not lead to failure.
2120         ac_old_val_w=`echo x $ac_old_val`
2121         ac_new_val_w=`echo x $ac_new_val`
2122         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2123           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2124 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2125           ac_cache_corrupted=:
2126         else
2127           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2128 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2129           eval $ac_var=\$ac_old_val
2130         fi
2131         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2132 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2133         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2134 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2135       fi;;
2136   esac
2137   # Pass precious variables to config.status.
2138   if test "$ac_new_set" = set; then
2139     case $ac_new_val in
2140     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2141     *) ac_arg=$ac_var=$ac_new_val ;;
2142     esac
2143     case " $ac_configure_args " in
2144       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2145       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2146     esac
2147   fi
2148 done
2149 if $ac_cache_corrupted; then
2150   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2153 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2154   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2155 fi
2156 ## -------------------- ##
2157 ## Main body of script. ##
2158 ## -------------------- ##
2159
2160 ac_ext=c
2161 ac_cpp='$CPP $CPPFLAGS'
2162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174 progname=$0
2175 # if PWD already has a value, it is probably wrong.
2176 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2177
2178 # Export original configure arguments for use by sub-configures.
2179 # Quote arguments with shell meta charatcers.
2180 TOPLEVEL_CONFIGURE_ARGUMENTS=
2181 set -- "$progname" "$@"
2182 for ac_arg
2183 do
2184   case "$ac_arg" in
2185   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2186     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2187     # if the argument is of the form -foo=baz, quote the baz part only
2188     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2189   *) ;;
2190   esac
2191   # Add the quoted argument to the list.
2192   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2193 done
2194 if test "$silent" = yes; then
2195   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2196 fi
2197 # Remove the initial space we just introduced and, as these will be
2198 # expanded by make, quote '$'.
2199 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2200
2201
2202 # Find the build, host, and target systems.
2203 ac_aux_dir=
2204 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2205   for ac_t in install-sh install.sh shtool; do
2206     if test -f "$ac_dir/$ac_t"; then
2207       ac_aux_dir=$ac_dir
2208       ac_install_sh="$ac_aux_dir/$ac_t -c"
2209       break 2
2210     fi
2211   done
2212 done
2213 if test -z "$ac_aux_dir"; then
2214   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2215 fi
2216
2217 # These three variables are undocumented and unsupported,
2218 # and are intended to be withdrawn in a future Autoconf release.
2219 # They can cause serious problems if a builder's source tree is in a directory
2220 # whose full name contains unusual characters.
2221 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2222 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2223 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2224
2225
2226 # Make sure we can run config.sub.
2227 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2228   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2229
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2231 $as_echo_n "checking build system type... " >&6; }
2232 if test "${ac_cv_build+set}" = set; then :
2233   $as_echo_n "(cached) " >&6
2234 else
2235   ac_build_alias=$build_alias
2236 test "x$ac_build_alias" = x &&
2237   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2238 test "x$ac_build_alias" = x &&
2239   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2240 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2241   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2242
2243 fi
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2245 $as_echo "$ac_cv_build" >&6; }
2246 case $ac_cv_build in
2247 *-*-*) ;;
2248 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2249 esac
2250 build=$ac_cv_build
2251 ac_save_IFS=$IFS; IFS='-'
2252 set x $ac_cv_build
2253 shift
2254 build_cpu=$1
2255 build_vendor=$2
2256 shift; shift
2257 # Remember, the first character of IFS is used to create $*,
2258 # except with old shells:
2259 build_os=$*
2260 IFS=$ac_save_IFS
2261 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2262
2263
2264  case ${build_alias} in
2265   "") build_noncanonical=${build} ;;
2266   *) build_noncanonical=${build_alias} ;;
2267 esac
2268
2269
2270
2271  case ${host_alias} in
2272   "") host_noncanonical=${build_noncanonical} ;;
2273   *) host_noncanonical=${host_alias} ;;
2274 esac
2275
2276
2277
2278  case ${target_alias} in
2279   "") target_noncanonical=${host_noncanonical} ;;
2280   *) target_noncanonical=${target_alias} ;;
2281 esac
2282
2283
2284
2285
2286 test "$host_noncanonical" = "$target_noncanonical" &&
2287   test "$program_prefix$program_suffix$program_transform_name" = \
2288     NONENONEs,x,x, &&
2289   program_transform_name=s,y,y,
2290
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2292 $as_echo_n "checking host system type... " >&6; }
2293 if test "${ac_cv_host+set}" = set; then :
2294   $as_echo_n "(cached) " >&6
2295 else
2296   if test "x$host_alias" = x; then
2297   ac_cv_host=$ac_cv_build
2298 else
2299   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2300     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2301 fi
2302
2303 fi
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2305 $as_echo "$ac_cv_host" >&6; }
2306 case $ac_cv_host in
2307 *-*-*) ;;
2308 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2309 esac
2310 host=$ac_cv_host
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_host
2313 shift
2314 host_cpu=$1
2315 host_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 host_os=$*
2320 IFS=$ac_save_IFS
2321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2322
2323
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2325 $as_echo_n "checking target system type... " >&6; }
2326 if test "${ac_cv_target+set}" = set; then :
2327   $as_echo_n "(cached) " >&6
2328 else
2329   if test "x$target_alias" = x; then
2330   ac_cv_target=$ac_cv_host
2331 else
2332   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2333     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2334 fi
2335
2336 fi
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2338 $as_echo "$ac_cv_target" >&6; }
2339 case $ac_cv_target in
2340 *-*-*) ;;
2341 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2342 esac
2343 target=$ac_cv_target
2344 ac_save_IFS=$IFS; IFS='-'
2345 set x $ac_cv_target
2346 shift
2347 target_cpu=$1
2348 target_vendor=$2
2349 shift; shift
2350 # Remember, the first character of IFS is used to create $*,
2351 # except with old shells:
2352 target_os=$*
2353 IFS=$ac_save_IFS
2354 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2355
2356
2357 # The aliases save the names the user supplied, while $host etc.
2358 # will get canonicalized.
2359 test -n "$target_alias" &&
2360   test "$program_prefix$program_suffix$program_transform_name" = \
2361     NONENONEs,x,x, &&
2362   program_prefix=${target_alias}-
2363
2364 test "$program_prefix" != NONE &&
2365   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2366 # Use a double $ so make ignores it.
2367 test "$program_suffix" != NONE &&
2368   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2369 # Double any \ or $.
2370 # By default was `s,x,x', remove it if useless.
2371 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2373
2374
2375
2376 # Get 'install' or 'install-sh' and its variants.
2377 # Find a good install program.  We prefer a C program (faster),
2378 # so one script is as good as another.  But avoid the broken or
2379 # incompatible versions:
2380 # SysV /etc/install, /usr/sbin/install
2381 # SunOS /usr/etc/install
2382 # IRIX /sbin/install
2383 # AIX /bin/install
2384 # AmigaOS /C/install, which installs bootblocks on floppy discs
2385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2388 # OS/2's system install, which has a completely different semantic
2389 # ./install, which can be erroneously created by make from ./install.sh.
2390 # Reject install programs that cannot install multiple files.
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2392 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2393 if test -z "$INSTALL"; then
2394 if test "${ac_cv_path_install+set}" = set; then :
2395   $as_echo_n "(cached) " >&6
2396 else
2397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400   IFS=$as_save_IFS
2401   test -z "$as_dir" && as_dir=.
2402     # Account for people who put trailing slashes in PATH elements.
2403 case $as_dir/ in #((
2404   ./ | .// | /[cC]/* | \
2405   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2406   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2407   /usr/ucb/* ) ;;
2408   *)
2409     # OSF1 and SCO ODT 3.0 have their own names for install.
2410     # Don't use installbsd from OSF since it installs stuff as root
2411     # by default.
2412     for ac_prog in ginstall scoinst install; do
2413       for ac_exec_ext in '' $ac_executable_extensions; do
2414         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2415           if test $ac_prog = install &&
2416             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2417             # AIX install.  It has an incompatible calling convention.
2418             :
2419           elif test $ac_prog = install &&
2420             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421             # program-specific install script used by HP pwplus--don't use.
2422             :
2423           else
2424             rm -rf conftest.one conftest.two conftest.dir
2425             echo one > conftest.one
2426             echo two > conftest.two
2427             mkdir conftest.dir
2428             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2429               test -s conftest.one && test -s conftest.two &&
2430               test -s conftest.dir/conftest.one &&
2431               test -s conftest.dir/conftest.two
2432             then
2433               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2434               break 3
2435             fi
2436           fi
2437         fi
2438       done
2439     done
2440     ;;
2441 esac
2442
2443   done
2444 IFS=$as_save_IFS
2445
2446 rm -rf conftest.one conftest.two conftest.dir
2447
2448 fi
2449   if test "${ac_cv_path_install+set}" = set; then
2450     INSTALL=$ac_cv_path_install
2451   else
2452     # As a last resort, use the slow shell script.  Don't cache a
2453     # value for INSTALL within a source directory, because that will
2454     # break other packages using the cache if that directory is
2455     # removed, or if the value is a relative name.
2456     INSTALL=$ac_install_sh
2457   fi
2458 fi
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2460 $as_echo "$INSTALL" >&6; }
2461
2462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2463 # It thinks the first close brace ends the variable substitution.
2464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465
2466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2467
2468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2471 $as_echo_n "checking whether ln works... " >&6; }
2472 if test "${acx_cv_prog_LN+set}" = set; then :
2473   $as_echo_n "(cached) " >&6
2474 else
2475   rm -f conftestdata_t
2476 echo >conftestdata_f
2477 if ln conftestdata_f conftestdata_t 2>/dev/null
2478 then
2479   acx_cv_prog_LN=ln
2480 else
2481   acx_cv_prog_LN=no
2482 fi
2483 rm -f conftestdata_f conftestdata_t
2484
2485 fi
2486 if test $acx_cv_prog_LN = no; then
2487   LN="cp"
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2489 $as_echo "no, using $LN" >&6; }
2490 else
2491   LN="$acx_cv_prog_LN"
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493 $as_echo "yes" >&6; }
2494 fi
2495
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2497 $as_echo_n "checking whether ln -s works... " >&6; }
2498 LN_S=$as_ln_s
2499 if test "$LN_S" = "ln -s"; then
2500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2501 $as_echo "yes" >&6; }
2502 else
2503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2504 $as_echo "no, using $LN_S" >&6; }
2505 fi
2506
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2508 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2509 if test "${ac_cv_path_SED+set}" = set; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2513      for ac_i in 1 2 3 4 5 6 7; do
2514        ac_script="$ac_script$as_nl$ac_script"
2515      done
2516      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2517      { ac_script=; unset ac_script;}
2518      if test -z "$SED"; then
2519   ac_path_SED_found=false
2520   # Loop through the user's path and test for each of PROGNAME-LIST
2521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524   IFS=$as_save_IFS
2525   test -z "$as_dir" && as_dir=.
2526     for ac_prog in sed gsed; do
2527     for ac_exec_ext in '' $ac_executable_extensions; do
2528       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2529       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2530 # Check for GNU ac_path_SED and select it if it is found.
2531   # Check for GNU $ac_path_SED
2532 case `"$ac_path_SED" --version 2>&1` in
2533 *GNU*)
2534   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2535 *)
2536   ac_count=0
2537   $as_echo_n 0123456789 >"conftest.in"
2538   while :
2539   do
2540     cat "conftest.in" "conftest.in" >"conftest.tmp"
2541     mv "conftest.tmp" "conftest.in"
2542     cp "conftest.in" "conftest.nl"
2543     $as_echo '' >> "conftest.nl"
2544     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2545     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2546     as_fn_arith $ac_count + 1 && ac_count=$as_val
2547     if test $ac_count -gt ${ac_path_SED_max-0}; then
2548       # Best one so far, save it but keep looking for a better one
2549       ac_cv_path_SED="$ac_path_SED"
2550       ac_path_SED_max=$ac_count
2551     fi
2552     # 10*(2^10) chars as input seems more than enough
2553     test $ac_count -gt 10 && break
2554   done
2555   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2556 esac
2557
2558       $ac_path_SED_found && break 3
2559     done
2560   done
2561   done
2562 IFS=$as_save_IFS
2563   if test -z "$ac_cv_path_SED"; then
2564     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2565   fi
2566 else
2567   ac_cv_path_SED=$SED
2568 fi
2569
2570 fi
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2572 $as_echo "$ac_cv_path_SED" >&6; }
2573  SED="$ac_cv_path_SED"
2574   rm -f conftest.sed
2575
2576 for ac_prog in gawk mawk nawk awk
2577 do
2578   # Extract the first word of "$ac_prog", so it can be a program name with args.
2579 set dummy $ac_prog; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if test "${ac_cv_prog_AWK+set}" = set; then :
2583   $as_echo_n "(cached) " >&6
2584 else
2585   if test -n "$AWK"; then
2586   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593     for ac_exec_ext in '' $ac_executable_extensions; do
2594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595     ac_cv_prog_AWK="$ac_prog"
2596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597     break 2
2598   fi
2599 done
2600   done
2601 IFS=$as_save_IFS
2602
2603 fi
2604 fi
2605 AWK=$ac_cv_prog_AWK
2606 if test -n "$AWK"; then
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2608 $as_echo "$AWK" >&6; }
2609 else
2610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2612 fi
2613
2614
2615   test -n "$AWK" && break
2616 done
2617
2618
2619 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2620
2621 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2622 # a relative path.
2623 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2624   INSTALL="${srcpwd}/install-sh -c"
2625 fi
2626
2627 # Set srcdir to "." if that's what it is.
2628 # This is important for multilib support.
2629 pwd=`${PWDCMD-pwd}`
2630 if test "${pwd}" = "${srcpwd}" ; then
2631   srcdir=.
2632 fi
2633
2634 topsrcdir=$srcpwd
2635
2636 extra_host_args=
2637
2638 ### To add a new directory to the tree, first choose whether it is a target
2639 ### or a host dependent tool.  Then put it into the appropriate list
2640 ### (library or tools, host or target), doing a dependency sort.
2641
2642 # Subdirs will be configured in the order listed in build_configdirs,
2643 # configdirs, or target_configdirs; see the serialization section below.
2644
2645 # Dependency sorting is only needed when *configuration* must be done in
2646 # a particular order.  In all cases a dependency should be specified in
2647 # the Makefile, whether or not it's implicitly specified here.
2648
2649 # Double entries in build_configdirs, configdirs, or target_configdirs may
2650 # cause circular dependencies and break everything horribly.
2651
2652 # these library is used by various programs built for the build
2653 # environment
2654 #
2655 build_libs="build-libiberty"
2656
2657 # these tools are built for the build environment
2658 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2659
2660 # these libraries are used by various programs built for the host environment
2661 #
2662 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2663
2664 # these tools are built for the host environment
2665 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2666 # know that we are building the simulator.
2667 # binutils, gas and ld appear in that order because it makes sense to run
2668 # "make check" in that particular order.
2669 # If --enable-gold is used, "gold" may replace "ld".
2670 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2671
2672 # libgcj represents the runtime libraries only used by gcj.
2673 libgcj="target-libffi \
2674         target-zlib \
2675         target-libjava"
2676
2677 # these libraries are built for the target environment, and are built after
2678 # the host libraries and the host tools (which may be a cross compiler)
2679 # Note that libiberty is not a target library.
2680 target_libraries="target-libgcc \
2681                 target-libgloss \
2682                 target-newlib \
2683                 target-libgomp \
2684                 target-libitm \
2685                 target-libstdc++-v3 \
2686                 target-libmudflap \
2687                 target-libssp \
2688                 target-libquadmath \
2689                 target-libgfortran \
2690                 target-boehm-gc \
2691                 ${libgcj} \
2692                 target-libobjc \
2693                 target-libada \
2694                 target-libgo"
2695
2696 # these tools are built using the target libraries, and are intended to
2697 # run only in the target environment
2698 #
2699 # note: any program that *uses* libraries that are in the "target_libraries"
2700 # list belongs in this list.
2701 #
2702 target_tools="target-rda"
2703
2704 ################################################################################
2705
2706 ## All tools belong in one of the four categories, and are assigned above
2707 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2708 ## is important because configure will choke if they ever get through.
2709 ## ${configdirs} is directories we build using the host tools.
2710 ## ${target_configdirs} is directories we build using the target tools.
2711 configdirs=`echo ${host_libs} ${host_tools}`
2712 target_configdirs=`echo ${target_libraries} ${target_tools}`
2713 build_configdirs=`echo ${build_libs} ${build_tools}`
2714
2715
2716
2717 ################################################################################
2718
2719 srcname="gnu development package"
2720
2721 # This gets set non-empty for some net releases of packages.
2722 appdirs=""
2723
2724 # Define is_cross_compiler to save on calls to 'test'.
2725 is_cross_compiler=
2726 if test x"${host}" = x"${target}" ; then
2727   is_cross_compiler=no
2728 else
2729   is_cross_compiler=yes
2730 fi
2731
2732 # Find the build and target subdir names.
2733
2734 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2735 # have matching libraries, they should use host libraries: Makefile.tpl
2736 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2737 # However, they still use the build modules, because the corresponding
2738 # host modules (e.g. bison) are only built for the host when bootstrap
2739 # finishes. So:
2740 # - build_subdir is where we find build modules, and never changes.
2741 # - build_libsubdir is where we find build libraries, and can be overridden.
2742
2743 # Prefix 'build-' so this never conflicts with target_subdir.
2744 build_subdir="build-${build_noncanonical}"
2745
2746 # Check whether --with-build-libsubdir was given.
2747 if test "${with_build_libsubdir+set}" = set; then :
2748   withval=$with_build_libsubdir; build_libsubdir="$withval"
2749 else
2750   build_libsubdir="$build_subdir"
2751 fi
2752
2753 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2754 if ( test $srcdir = . && test -d gcc ) \
2755    || test -d $srcdir/../host-${host_noncanonical}; then
2756   host_subdir="host-${host_noncanonical}"
2757 else
2758   host_subdir=.
2759 fi
2760 # No prefix.
2761 target_subdir=${target_noncanonical}
2762
2763 # Be sure to cover against remnants of an in-tree build.
2764 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2765   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2766 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2767 fi
2768
2769 # Skipdirs are removed silently.
2770 skipdirs=
2771 # Noconfigdirs are removed loudly.
2772 noconfigdirs=""
2773
2774 use_gnu_ld=
2775 # Make sure we don't let GNU ld be added if we didn't want it.
2776 if test x$with_gnu_ld = xno ; then
2777   use_gnu_ld=no
2778   noconfigdirs="$noconfigdirs ld gold"
2779 fi
2780
2781 use_gnu_as=
2782 # Make sure we don't let GNU as be added if we didn't want it.
2783 if test x$with_gnu_as = xno ; then
2784   use_gnu_as=no
2785   noconfigdirs="$noconfigdirs gas"
2786 fi
2787
2788 use_included_zlib=
2789 # Make sure we don't let ZLIB be added if we didn't want it.
2790 if test x$with_system_zlib = xyes ; then
2791   use_included_zlib=no
2792   noconfigdirs="$noconfigdirs zlib"
2793 fi
2794
2795 # some tools are so dependent upon X11 that if we're not building with X,
2796 # it's not even worth trying to configure, much less build, that tool.
2797
2798 case ${with_x} in
2799   yes | "") ;; # the default value for this tree is that X11 is available
2800   no)
2801     skipdirs="${skipdirs} tk itcl libgui"
2802     # We won't be able to build gdbtk without X.
2803     enable_gdbtk=no
2804     ;;
2805   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2806 esac
2807
2808 # Some are only suitable for cross toolchains.
2809 # Remove these if host=target.
2810 cross_only="target-libgloss target-newlib target-opcodes"
2811
2812 case $is_cross_compiler in
2813   no) skipdirs="${skipdirs} ${cross_only}" ;;
2814 esac
2815
2816 # If both --with-headers and --with-libs are specified, default to
2817 # --without-newlib.
2818 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2819    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2820   if test x"${with_newlib}" = x ; then
2821     with_newlib=no
2822   fi
2823 fi
2824
2825 # Recognize --with-newlib/--without-newlib.
2826 case ${with_newlib} in
2827   no) skipdirs="${skipdirs} target-newlib" ;;
2828   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2829 esac
2830
2831 # Handle --enable-gold, --enable-ld.
2832 # --disable-gold [--enable-ld]
2833 #     Build only ld.  Default option.
2834 # --enable-gold [--enable-ld]
2835 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2836 #     as "ld.bfd" and "ld".
2837 # --enable-gold=default [--enable-ld]
2838 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2839 #     install ld as "ld.bfd".
2840 # --enable-gold[=default] --disable-ld
2841 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2842 # --enable-gold --enable-ld=default
2843 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2844 #     and ld.bfd).
2845 #     In other words, ld is default
2846 # --enable-gold=default --enable-ld=default
2847 #     Error.
2848
2849 default_ld=
2850 # Check whether --enable-gold was given.
2851 if test "${enable_gold+set}" = set; then :
2852   enableval=$enable_gold; ENABLE_GOLD=$enableval
2853 else
2854   ENABLE_GOLD=no
2855 fi
2856
2857 case "${ENABLE_GOLD}" in
2858   yes|default)
2859     # Check for ELF target.
2860     is_elf=no
2861     case "${target}" in
2862       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2863       | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2864       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2865       | *-*-solaris2* | *-*-nto*)
2866         case "${target}" in
2867           *-*-linux*aout* | *-*-linux*oldld*)
2868             ;;
2869           *)
2870             is_elf=yes
2871             ;;
2872         esac
2873     esac
2874
2875     if test "$is_elf" = "yes"; then
2876       # Check for target supported by gold.
2877       case "${target}" in
2878         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2879           configdirs="$configdirs gold"
2880           if test x${ENABLE_GOLD} = xdefault; then
2881             default_ld=gold
2882           fi
2883           ENABLE_GOLD=yes
2884           ;;
2885       esac
2886     fi
2887     ;;
2888   no)
2889     ;;
2890   *)
2891     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2892     ;;
2893 esac
2894
2895 # Check whether --enable-ld was given.
2896 if test "${enable_ld+set}" = set; then :
2897   enableval=$enable_ld; ENABLE_LD=$enableval
2898 else
2899   ENABLE_LD=yes
2900 fi
2901
2902
2903 case "${ENABLE_LD}" in
2904   default)
2905     if test x${default_ld} != x; then
2906       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2907     fi
2908     ;;
2909   yes)
2910     ;;
2911   no)
2912     if test x${ENABLE_GOLD} != xyes; then
2913       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2914 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2915     fi
2916     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2917     ;;
2918   *)
2919     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2920     ;;
2921 esac
2922
2923 # Configure extra directories which are host specific
2924
2925 case "${host}" in
2926   *-cygwin*)
2927     configdirs="$configdirs libtermcap" ;;
2928 esac
2929
2930 # A target can indicate whether a language isn't supported for some reason.
2931 # Only spaces may be used in this macro; not newlines or tabs.
2932 unsupported_languages=
2933
2934 # Remove more programs from consideration, based on the host or
2935 # target this usually means that a port of the program doesn't
2936 # exist yet.
2937
2938 case "${host}" in
2939   i[3456789]86-*-msdosdjgpp*)
2940     noconfigdirs="$noconfigdirs tcl tk itcl"
2941     ;;
2942 esac
2943
2944
2945 # Check whether --enable-libquadmath was given.
2946 if test "${enable_libquadmath+set}" = set; then :
2947   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2948 else
2949   ENABLE_LIBQUADMATH=yes
2950 fi
2951
2952 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2953   noconfigdirs="$noconfigdirs target-libquadmath"
2954 fi
2955
2956
2957 # Check whether --enable-libquadmath-support was given.
2958 if test "${enable_libquadmath_support+set}" = set; then :
2959   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2960 else
2961   ENABLE_LIBQUADMATH_SUPPORT=yes
2962 fi
2963
2964 enable_libquadmath_support=
2965 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2966   enable_libquadmath_support=no
2967 fi
2968
2969
2970 # Check whether --enable-libada was given.
2971 if test "${enable_libada+set}" = set; then :
2972   enableval=$enable_libada; ENABLE_LIBADA=$enableval
2973 else
2974   ENABLE_LIBADA=yes
2975 fi
2976
2977 if test "${ENABLE_LIBADA}" != "yes" ; then
2978   noconfigdirs="$noconfigdirs gnattools"
2979 fi
2980
2981 # Check whether --enable-libssp was given.
2982 if test "${enable_libssp+set}" = set; then :
2983   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2984 else
2985   ENABLE_LIBSSP=yes
2986 fi
2987
2988
2989 # Save it here so that, even in case of --enable-libgcj, if the Java
2990 # front-end isn't enabled, we still get libgcj disabled.
2991 libgcj_saved=$libgcj
2992 case $enable_libgcj in
2993 yes)
2994   # If we reset it here, it won't get added to noconfigdirs in the
2995   # target-specific build rules, so it will be forcibly enabled
2996   # (unless the Java language itself isn't enabled).
2997   libgcj=
2998   ;;
2999 no)
3000   # Make sure we get it printed in the list of not supported target libs.
3001   # Don't disable libffi, though, other languages use it.
3002   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3003   # Clear libgcj_saved so that even if java is enabled libffi won't be
3004   # built.
3005   libgcj_saved=
3006   ;;
3007 esac
3008
3009 # Check whether --enable-static-libjava was given.
3010 if test "${enable_static_libjava+set}" = set; then :
3011   enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3012 else
3013   ENABLE_STATIC_LIBJAVA=no
3014 fi
3015
3016 enable_static_libjava=
3017 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3018   enable_static_libjava=yes
3019 fi
3020
3021 if test x$enable_static_libjava != xyes ; then
3022   EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3023 fi
3024
3025
3026 # Disable libmudflap on some systems.
3027 if test x$enable_libmudflap = x ; then
3028     case "${target}" in
3029     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3030         # Enable libmudflap by default in GNU and friends.
3031         ;;
3032     *-*-freebsd*)
3033         # Enable libmudflap by default in FreeBSD.
3034         ;;
3035     *)
3036         # Disable it by default everywhere else.
3037         noconfigdirs="$noconfigdirs target-libmudflap"
3038         ;;
3039     esac
3040 fi
3041
3042 # Disable libgomp on non POSIX hosted systems.
3043 if test x$enable_libgomp = x ; then
3044     # Enable libgomp by default on hosted POSIX systems.
3045     case "${target}" in
3046     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3047         ;;
3048     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3049         ;;
3050     *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3051         ;;
3052     *-*-darwin* | *-*-aix*)
3053         ;;
3054     *)
3055         noconfigdirs="$noconfigdirs target-libgomp"
3056         ;;
3057     esac
3058 fi
3059
3060 # Disable libitm on non POSIX hosted systems.
3061 if test x$enable_libitm = x ; then
3062     # Enable libitm by default on hosted POSIX systems.
3063     case "${target}" in
3064     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3065         ;;
3066     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3067         ;;
3068     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3069         ;;
3070     *-*-darwin* | *-*-aix*)
3071         ;;
3072     *)
3073         noconfigdirs="$noconfigdirs target-libitm"
3074         ;;
3075     esac
3076 fi
3077
3078 # Disable libssp for some systems.
3079 case "${target}" in
3080   avr-*-*)
3081     # No hosted I/O support.
3082     noconfigdirs="$noconfigdirs target-libssp"
3083     ;;
3084   powerpc-*-aix* | rs6000-*-aix*)
3085     noconfigdirs="$noconfigdirs target-libssp"
3086     ;;
3087 esac
3088
3089 # Disable libstdc++-v3 for some systems.
3090 case "${target}" in
3091   *-*-vxworks*)
3092     # VxWorks uses the Dinkumware C++ library.
3093     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3094     ;;
3095   arm*-wince-pe*)
3096     # the C++ libraries don't build on top of CE's C libraries
3097     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3098     ;;
3099   avr-*-*)
3100     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3101     ;;
3102 esac
3103
3104 # Disable Fortran for some systems.
3105 case "${target}" in
3106   mmix-*-*)
3107     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3108     unsupported_languages="$unsupported_languages fortran"
3109     ;;
3110 esac
3111
3112 # Disable Java if libffi is not supported.
3113 case "${target}" in
3114   alpha*-*-*)
3115     ;;
3116   arm*-*-*)
3117     ;;
3118   cris-*-*)
3119     ;;
3120   frv-*-*)
3121     ;;
3122   hppa*-*-linux*)
3123     ;;
3124   hppa*-*-hpux*)
3125     ;;
3126   i?86-*-*)
3127     ;;
3128   ia64*-*-*)
3129     ;;
3130   m32r*-*-*)
3131     ;;
3132   m68k-*-*)
3133     ;;
3134   mips-sgi-irix6.* | mips*-*-rtems*)
3135     ;;
3136   mips*-*-linux*)
3137     ;;
3138   powerpc*-*-linux*)
3139     ;;
3140   powerpc-*-darwin*)
3141     ;;
3142   powerpc-*-aix* | rs6000-*-aix*)
3143     ;;
3144   powerpc-*-freebsd*)
3145     ;;
3146   powerpc64-*-freebsd*)
3147     ;;
3148   powerpc*-*-rtems*)
3149     ;;
3150   s390-*-* | s390x-*-*)
3151     ;;
3152   sh-*-* | sh[34]*-*-*)
3153     ;;
3154   sh64-*-* | sh5*-*-*)
3155     ;;
3156   sparc*-*-*)
3157     ;;
3158   x86_64-*-*)
3159     ;;
3160   *-*-*)
3161     unsupported_languages="$unsupported_languages java"
3162     ;;
3163 esac
3164
3165 # Disable Java, libgcj or related libraries for some systems.
3166 case "${target}" in
3167   powerpc-*-darwin*)
3168     ;;
3169   i[3456789]86-*-darwin*)
3170     ;;
3171   x86_64-*-darwin[912]*)
3172     ;;
3173   *-*-darwin*)
3174     noconfigdirs="$noconfigdirs ${libgcj}"
3175     ;;
3176   *-*-netware*)
3177     noconfigdirs="$noconfigdirs ${libgcj}"
3178     ;;
3179   *-*-rtems*)
3180     noconfigdirs="$noconfigdirs ${libgcj}"
3181     ;;
3182   *-*-tpf*)
3183     noconfigdirs="$noconfigdirs ${libgcj}"
3184     ;;
3185   *-*-uclinux*)
3186     noconfigdirs="$noconfigdirs ${libgcj}"
3187     ;;
3188   *-*-vxworks*)
3189     noconfigdirs="$noconfigdirs ${libgcj}"
3190     ;;
3191   alpha*-*-*vms*)
3192     noconfigdirs="$noconfigdirs ${libgcj}"
3193     ;;
3194   arm-wince-pe)
3195     noconfigdirs="$noconfigdirs ${libgcj}"
3196     ;;
3197   arm*-*-symbianelf*)
3198     noconfigdirs="$noconfigdirs ${libgcj}"
3199     ;;
3200   bfin-*-*)
3201     noconfigdirs="$noconfigdirs target-boehm-gc"
3202     ;;
3203   cris-*-* | crisv32-*-*)
3204     unsupported_languages="$unsupported_languages java"
3205     case "${target}" in
3206       *-*-linux*)
3207         ;;
3208       *) # See PR46792 regarding target-libffi.
3209         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3210     esac
3211     ;;
3212   hppa*64*-*-linux*)
3213     # In this case, it's because the hppa64-linux target is for
3214     # the kernel only at this point and has no libc, and thus no
3215     # headers, crt*.o, etc., all of which are needed by these.
3216     unsupported_languages="$unsupported_languages java"
3217     ;;
3218   hppa*64*-*-hpux*)
3219     noconfigdirs="$noconfigdirs ${libgcj}"
3220     ;;
3221   hppa*-hp-hpux11*)
3222     ;;
3223   hppa*-*-hpux*)
3224     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3225     # build on HP-UX 10.20.
3226     noconfigdirs="$noconfigdirs ${libgcj}"
3227     ;;
3228   ia64*-*-*vms*)
3229     noconfigdirs="$noconfigdirs ${libgcj}"
3230     ;;
3231   i[3456789]86-w64-mingw*)
3232     noconfigdirs="$noconfigdirs ${libgcj}"
3233     ;;
3234   i[3456789]86-*-mingw*)
3235     noconfigdirs="$noconfigdirs ${libgcj}"
3236     ;;
3237   x86_64-*-mingw*)
3238     noconfigdirs="$noconfigdirs ${libgcj}"
3239     ;;
3240   mmix-*-*)
3241     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3242     ;;
3243   powerpc-*-aix*)
3244     # copied from rs6000-*-* entry
3245     noconfigdirs="$noconfigdirs ${libgcj}"
3246     ;;
3247   rs6000-*-aix*)
3248     noconfigdirs="$noconfigdirs ${libgcj}"
3249     ;;
3250   mips*-*-irix6*)
3251     # Linking libjava exceeds command-line length limits on at least
3252     # IRIX 6.2, but not on IRIX 6.5.
3253     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3254     # <oldham@codesourcery.com>
3255     noconfigdirs="$noconfigdirs ${libgcj}"
3256     ;;
3257   *-*-lynxos*)
3258     noconfigdirs="$noconfigdirs ${libgcj}"
3259     ;;
3260 esac
3261
3262 # Default libgloss CPU subdirectory.
3263 libgloss_dir="$target_cpu"
3264
3265 case "${target}" in
3266   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3267     libgloss_dir=wince
3268     ;;
3269   arm*-*-*)
3270     libgloss_dir=arm
3271     ;;
3272   cris-*-* | crisv32-*-*)
3273     libgloss_dir=cris
3274     ;;
3275   hppa*-*-*)
3276     libgloss_dir=pa
3277     ;;
3278   i[3456789]86-*-*)
3279     libgloss_dir=i386
3280     ;;
3281   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3282     libgloss_dir=m68hc11
3283     ;;
3284   m68*-*-* | fido-*-*)
3285     libgloss_dir=m68k
3286     ;;
3287   mips*-*-*)
3288     libgloss_dir=mips
3289     ;;
3290   powerpc*-*-*)
3291     libgloss_dir=rs6000
3292     ;;
3293   sparc*-*-*)
3294     libgloss_dir=sparc
3295     ;;
3296 esac
3297
3298 # Disable newlib and libgloss for various target OSes.
3299 case "${target}" in
3300   alpha*-dec-osf*)
3301     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3302     ;;
3303   i[3456789]86-*-linux*)
3304     # This section makes it possible to build newlib natively on linux.
3305     # If we are using a cross compiler then don't configure newlib.
3306     if test x${is_cross_compiler} != xno ; then
3307       noconfigdirs="$noconfigdirs target-newlib"
3308     fi
3309     noconfigdirs="$noconfigdirs target-libgloss"
3310     # If we are not using a cross compiler, do configure newlib.
3311     # Note however, that newlib will only be configured in this situation
3312     # if the --with-newlib option has been given, because otherwise
3313     # 'target-newlib' will appear in skipdirs.
3314     ;;
3315   i[3456789]86-*-rdos*)
3316     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3317     ;;
3318   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3319     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3320     ;;
3321   sparc-*-sunos4*)
3322     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3323     ;;
3324   *-*-aix*)
3325     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3326     ;;
3327   *-*-beos*)
3328     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3329     ;;
3330   *-*-chorusos)
3331     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3332     ;;
3333   *-*-dragonfly*)
3334     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3335     ;;
3336   *-*-freebsd*)
3337     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3338     ;;
3339   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3340     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3341     ;;
3342   *-*-lynxos*)
3343     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3344     ;;
3345   *-*-mingw*)
3346     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3347     ;;
3348   *-*-netbsd*)
3349     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3350     ;;
3351   *-*-netware*)
3352     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3353     ;;
3354   *-*-tpf*)
3355     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3356     ;;
3357   *-*-uclinux*)
3358     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3359     ;;
3360   *-*-vxworks*)
3361     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3362     ;;
3363 esac
3364
3365 case "${target}" in
3366   *-*-chorusos)
3367     ;;
3368   powerpc-*-darwin*)
3369     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3370     noconfigdirs="$noconfigdirs sim target-rda"
3371     ;;
3372   i[3456789]86-*-darwin*)
3373     noconfigdirs="$noconfigdirs ld gprof"
3374     noconfigdirs="$noconfigdirs sim target-rda"
3375     ;;
3376   x86_64-*-darwin[912]*)
3377     noconfigdirs="$noconfigdirs ld gas gprof"
3378     noconfigdirs="$noconfigdirs sim target-rda"
3379     ;;
3380   *-*-darwin*)
3381     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3382     noconfigdirs="$noconfigdirs sim target-rda"
3383     ;;
3384   *-*-dragonfly*)
3385     ;;
3386   *-*-freebsd*)
3387     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3388         && test -f /usr/local/include/gmp.h; then
3389       with_gmp=/usr/local
3390     fi
3391     ;;
3392   *-*-kaos*)
3393     # Remove unsupported stuff on all kaOS configurations.
3394     noconfigdirs="$noconfigdirs target-libgloss"
3395     ;;
3396   *-*-netbsd*)
3397     ;;
3398   *-*-netware*)
3399     ;;
3400   *-*-rtems*)
3401     noconfigdirs="$noconfigdirs target-libgloss"
3402     ;;
3403     # The tpf target doesn't support gdb yet.
3404   *-*-tpf*)
3405     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3406     ;;
3407   *-*-uclinux*)
3408     noconfigdirs="$noconfigdirs target-rda"
3409     ;;
3410   *-*-vxworks*)
3411     ;;
3412   alpha*-dec-osf*)
3413     # ld works, but does not support shared libraries.
3414     # gas doesn't generate exception information.
3415     noconfigdirs="$noconfigdirs gas ld"
3416     ;;
3417   alpha*-*-*vms*)
3418     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3419     ;;
3420   alpha*-*-*)
3421     # newlib is not 64 bit ready
3422     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3423     ;;
3424   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3425     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3426     ;;
3427   arc-*-*)
3428     noconfigdirs="$noconfigdirs target-libgloss"
3429     ;;
3430   arm-*-pe*)
3431     noconfigdirs="$noconfigdirs target-libgloss"
3432     ;;
3433   arm-*-riscix*)
3434     noconfigdirs="$noconfigdirs ld target-libgloss"
3435     ;;
3436   c4x-*-* | tic4x-*-*)
3437     noconfigdirs="$noconfigdirs target-libgloss"
3438     ;;
3439   tic54x-*-*)
3440     noconfigdirs="$noconfigdirs target-libgloss gdb"
3441     ;;
3442   cr16-*-*)
3443     noconfigdirs="$noconfigdirs gdb"
3444     ;;
3445   d10v-*-*)
3446     noconfigdirs="$noconfigdirs target-libgloss"
3447     ;;
3448   d30v-*-*)
3449     noconfigdirs="$noconfigdirs gdb"
3450     ;;
3451   fr30-*-elf*)
3452     noconfigdirs="$noconfigdirs gdb"
3453     ;;
3454   moxie-*-*)
3455     noconfigdirs="$noconfigdirs gprof"
3456     ;;
3457   h8300*-*-*)
3458     noconfigdirs="$noconfigdirs target-libgloss"
3459     ;;
3460   h8500-*-*)
3461     noconfigdirs="$noconfigdirs target-libgloss"
3462     ;;
3463   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3464     ;;
3465   hppa*64*-*-linux*)
3466     ;;
3467   hppa*-*-linux*)
3468     ;;
3469   hppa*-*-*elf* | \
3470   hppa*-*-lites* | \
3471   hppa*-*-openbsd* | \
3472   hppa*64*-*-*)
3473     ;;
3474   hppa*-hp-hpux11*)
3475     noconfigdirs="$noconfigdirs ld"
3476     ;;
3477   hppa*-*-pro*)
3478     ;;
3479   hppa*-*-*)
3480     noconfigdirs="$noconfigdirs ld"
3481     ;;
3482   i960-*-*)
3483     noconfigdirs="$noconfigdirs gdb"
3484     ;;
3485   ia64*-*-elf*)
3486     # No gdb support yet.
3487     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3488     ;;
3489   ia64*-**-hpux*)
3490     # No ld support yet.
3491     noconfigdirs="$noconfigdirs libgui itcl ld"
3492     ;;
3493   ia64*-*-*vms*)
3494     # No gdb or ld support yet.
3495     noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
3496     ;;
3497   i[3456789]86-w64-mingw*)
3498     ;;
3499   i[3456789]86-*-mingw*)
3500     target_configdirs="$target_configdirs target-winsup"
3501     ;;
3502   *-*-cygwin*)
3503     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3504     noconfigdirs="$noconfigdirs target-libgloss"
3505     # always build newlib if winsup directory is present.
3506     if test -d "$srcdir/winsup/cygwin"; then
3507       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3508     elif test -d "$srcdir/newlib"; then
3509       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3510     fi
3511     ;;
3512   i[3456789]86-*-pe)
3513     noconfigdirs="$noconfigdirs target-libgloss"
3514     ;;
3515   i[3456789]86-*-sco3.2v5*)
3516     # The linker does not yet know about weak symbols in COFF,
3517     # and is not configured to handle mixed ELF and COFF.
3518     noconfigdirs="$noconfigdirs ld target-libgloss"
3519     ;;
3520   i[3456789]86-*-sco*)
3521     noconfigdirs="$noconfigdirs gprof target-libgloss"
3522     ;;
3523   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3524     noconfigdirs="$noconfigdirs target-libgloss"
3525     ;;
3526   i[3456789]86-*-sysv4*)
3527     noconfigdirs="$noconfigdirs target-libgloss"
3528     ;;
3529   i[3456789]86-*-beos*)
3530     noconfigdirs="$noconfigdirs gdb"
3531     ;;
3532   i[3456789]86-*-rdos*)
3533     noconfigdirs="$noconfigdirs gdb"
3534     ;;
3535   mmix-*-*)
3536     noconfigdirs="$noconfigdirs gdb"
3537     ;;
3538   mt-*-*)
3539     noconfigdirs="$noconfigdirs sim"
3540     ;;
3541   powerpc-*-aix*)
3542     # copied from rs6000-*-* entry
3543     noconfigdirs="$noconfigdirs gprof"
3544     ;;
3545   powerpc*-*-winnt* | powerpc*-*-pe*)
3546     target_configdirs="$target_configdirs target-winsup"
3547     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3548     # always build newlib.
3549     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3550     ;;
3551     # This is temporary until we can link against shared libraries
3552   powerpcle-*-solaris*)
3553     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3554     ;;
3555   powerpc-*-beos*)
3556     noconfigdirs="$noconfigdirs gdb"
3557     ;;
3558   rs6000-*-lynxos*)
3559     noconfigdirs="$noconfigdirs gprof"
3560     ;;
3561   rs6000-*-aix*)
3562     noconfigdirs="$noconfigdirs gprof"
3563     ;;
3564   rs6000-*-*)
3565     noconfigdirs="$noconfigdirs gprof"
3566     ;;
3567   m68k-apollo-*)
3568     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3569     ;;
3570   microblaze*)
3571     noconfigdirs="$noconfigdirs gprof"
3572     ;;
3573   mips*-sde-elf*)
3574     if test x$with_newlib = xyes; then
3575       noconfigdirs="$noconfigdirs gprof"
3576     fi
3577     ;;
3578   mips*-*-irix5*)
3579     noconfigdirs="$noconfigdirs gprof target-libgloss"
3580     ;;
3581   mips*-*-irix6*)
3582     noconfigdirs="$noconfigdirs gprof target-libgloss"
3583     ;;
3584   mips*-*-bsd*)
3585     noconfigdirs="$noconfigdirs gprof target-libgloss"
3586     ;;
3587   mips*-*-linux*)
3588     ;;
3589   mips*-*-*)
3590     noconfigdirs="$noconfigdirs gprof"
3591     ;;
3592   sh-*-* | sh64-*-*)
3593     case "${target}" in
3594       sh*-*-elf)
3595          ;;
3596       *)
3597          noconfigdirs="$noconfigdirs target-libgloss" ;;
3598     esac
3599     ;;
3600   sparc-*-sunos4*)
3601     if test x${is_cross_compiler} = xno ; then
3602            use_gnu_ld=no
3603     fi
3604     ;;
3605   tic6x-*-*)
3606     noconfigdirs="$noconfigdirs sim"
3607     ;;
3608   tilepro-*-* | tilegx-*-*)
3609     noconfigdirs="$noconfigdirs sim"
3610     ;;
3611   v810-*-*)
3612     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3613     ;;
3614   vax-*-*)
3615     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3616     ;;
3617 esac
3618
3619 # If we aren't building newlib, then don't build libgloss, since libgloss
3620 # depends upon some newlib header files.
3621 case "${noconfigdirs}" in
3622   *target-libgloss*) ;;
3623   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3624 esac
3625
3626 # Work in distributions that contain no compiler tools, like Autoconf.
3627 host_makefile_frag=/dev/null
3628 if test -d ${srcdir}/config ; then
3629 case "${host}" in
3630   i[3456789]86-*-msdosdjgpp*)
3631     host_makefile_frag="config/mh-djgpp"
3632     ;;
3633   *-cygwin*)
3634
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3636 $as_echo_n "checking to see if cat works as expected... " >&6; }
3637 echo a >cygwin-cat-check
3638 if test `cat cygwin-cat-check` = a ; then
3639   rm cygwin-cat-check
3640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3641 $as_echo "yes" >&6; }
3642 else
3643   rm cygwin-cat-check
3644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3646   as_fn_error "The cat command does not ignore carriage return characters.
3647   Please either mount the build directory in binary mode or run the following
3648   commands before running any configure script:
3649 set -o igncr
3650 export SHELLOPTS
3651   " "$LINENO" 5
3652 fi
3653
3654     host_makefile_frag="config/mh-cygwin"
3655     ;;
3656   *-mingw*)
3657     host_makefile_frag="config/mh-mingw"
3658     ;;
3659   *-interix*)
3660     host_makefile_frag="config/mh-interix"
3661     ;;
3662   hppa*-hp-hpux10*)
3663     host_makefile_frag="config/mh-pa-hpux10"
3664     ;;
3665   hppa*-hp-hpux*)
3666     host_makefile_frag="config/mh-pa"
3667     ;;
3668   hppa*-*)
3669     host_makefile_frag="config/mh-pa"
3670     ;;
3671   *-*-darwin*)
3672     host_makefile_frag="config/mh-darwin"
3673     ;;
3674   powerpc-*-aix*)
3675     host_makefile_frag="config/mh-ppc-aix"
3676     ;;
3677   rs6000-*-aix*)
3678     host_makefile_frag="config/mh-ppc-aix"
3679     ;;
3680 esac
3681 fi
3682
3683 if test "${build}" != "${host}" ; then
3684   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3685   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3686   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3687   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3688   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3689   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3690   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3691   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3692   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3693   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3694   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3695   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3696   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3697 else
3698   AR_FOR_BUILD="\$(AR)"
3699   AS_FOR_BUILD="\$(AS)"
3700   CC_FOR_BUILD="\$(CC)"
3701   CXX_FOR_BUILD="\$(CXX)"
3702   GCJ_FOR_BUILD="\$(GCJ)"
3703   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3704   GOC_FOR_BUILD="\$(GOC)"
3705   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3706   LD_FOR_BUILD="\$(LD)"
3707   NM_FOR_BUILD="\$(NM)"
3708   RANLIB_FOR_BUILD="\$(RANLIB)"
3709   WINDRES_FOR_BUILD="\$(WINDRES)"
3710   WINDMC_FOR_BUILD="\$(WINDMC)"
3711 fi
3712
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 if test -n "$ac_tool_prefix"; then
3719   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_CC+set}" = set; then :
3724   $as_echo_n "(cached) " >&6
3725 else
3726   if test -n "$CC"; then
3727   ac_cv_prog_CC="$CC" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734     for ac_exec_ext in '' $ac_executable_extensions; do
3735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738     break 2
3739   fi
3740 done
3741   done
3742 IFS=$as_save_IFS
3743
3744 fi
3745 fi
3746 CC=$ac_cv_prog_CC
3747 if test -n "$CC"; then
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749 $as_echo "$CC" >&6; }
3750 else
3751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3753 fi
3754
3755
3756 fi
3757 if test -z "$ac_cv_prog_CC"; then
3758   ac_ct_CC=$CC
3759   # Extract the first word of "gcc", so it can be a program name with args.
3760 set dummy gcc; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   if test -n "$ac_ct_CC"; then
3767   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774     for ac_exec_ext in '' $ac_executable_extensions; do
3775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776     ac_cv_prog_ac_ct_CC="gcc"
3777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778     break 2
3779   fi
3780 done
3781   done
3782 IFS=$as_save_IFS
3783
3784 fi
3785 fi
3786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3787 if test -n "$ac_ct_CC"; then
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3789 $as_echo "$ac_ct_CC" >&6; }
3790 else
3791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3793 fi
3794
3795   if test "x$ac_ct_CC" = x; then
3796     CC=""
3797   else
3798     case $cross_compiling:$ac_tool_warned in
3799 yes:)
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802 ac_tool_warned=yes ;;
3803 esac
3804     CC=$ac_ct_CC
3805   fi
3806 else
3807   CC="$ac_cv_prog_CC"
3808 fi
3809
3810 if test -z "$CC"; then
3811           if test -n "$ac_tool_prefix"; then
3812     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}cc; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if test "${ac_cv_prog_CC+set}" = set; then :
3817   $as_echo_n "(cached) " >&6
3818 else
3819   if test -n "$CC"; then
3820   ac_cv_prog_CC="$CC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827     for ac_exec_ext in '' $ac_executable_extensions; do
3828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829     ac_cv_prog_CC="${ac_tool_prefix}cc"
3830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834   done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 CC=$ac_cv_prog_CC
3840 if test -n "$CC"; then
3841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3842 $as_echo "$CC" >&6; }
3843 else
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 fi
3847
3848
3849   fi
3850 fi
3851 if test -z "$CC"; then
3852   # Extract the first word of "cc", so it can be a program name with args.
3853 set dummy cc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if test "${ac_cv_prog_CC+set}" = set; then :
3857   $as_echo_n "(cached) " >&6
3858 else
3859   if test -n "$CC"; then
3860   ac_cv_prog_CC="$CC" # Let the user override the test.
3861 else
3862   ac_prog_rejected=no
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866   IFS=$as_save_IFS
3867   test -z "$as_dir" && as_dir=.
3868     for ac_exec_ext in '' $ac_executable_extensions; do
3869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3871        ac_prog_rejected=yes
3872        continue
3873      fi
3874     ac_cv_prog_CC="cc"
3875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876     break 2
3877   fi
3878 done
3879   done
3880 IFS=$as_save_IFS
3881
3882 if test $ac_prog_rejected = yes; then
3883   # We found a bogon in the path, so make sure we never use it.
3884   set dummy $ac_cv_prog_CC
3885   shift
3886   if test $# != 0; then
3887     # We chose a different compiler from the bogus one.
3888     # However, it has the same basename, so the bogon will be chosen
3889     # first if we set CC to just the basename; use the full file name.
3890     shift
3891     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3892   fi
3893 fi
3894 fi
3895 fi
3896 CC=$ac_cv_prog_CC
3897 if test -n "$CC"; then
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3900 else
3901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3903 fi
3904
3905
3906 fi
3907 if test -z "$CC"; then
3908   if test -n "$ac_tool_prefix"; then
3909   for ac_prog in cl.exe
3910   do
3911     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_prog_CC+set}" = set; then :
3916   $as_echo_n "(cached) " >&6
3917 else
3918   if test -n "$CC"; then
3919   ac_cv_prog_CC="$CC" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926     for ac_exec_ext in '' $ac_executable_extensions; do
3927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933   done
3934 IFS=$as_save_IFS
3935
3936 fi
3937 fi
3938 CC=$ac_cv_prog_CC
3939 if test -n "$CC"; then
3940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941 $as_echo "$CC" >&6; }
3942 else
3943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 fi
3946
3947
3948     test -n "$CC" && break
3949   done
3950 fi
3951 if test -z "$CC"; then
3952   ac_ct_CC=$CC
3953   for ac_prog in cl.exe
3954 do
3955   # Extract the first word of "$ac_prog", so it can be a program name with args.
3956 set dummy $ac_prog; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3960   $as_echo_n "(cached) " >&6
3961 else
3962   if test -n "$ac_ct_CC"; then
3963   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968   IFS=$as_save_IFS
3969   test -z "$as_dir" && as_dir=.
3970     for ac_exec_ext in '' $ac_executable_extensions; do
3971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972     ac_cv_prog_ac_ct_CC="$ac_prog"
3973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974     break 2
3975   fi
3976 done
3977   done
3978 IFS=$as_save_IFS
3979
3980 fi
3981 fi
3982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3983 if test -n "$ac_ct_CC"; then
3984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3985 $as_echo "$ac_ct_CC" >&6; }
3986 else
3987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3989 fi
3990
3991
3992   test -n "$ac_ct_CC" && break
3993 done
3994
3995   if test "x$ac_ct_CC" = x; then
3996     CC=""
3997   else
3998     case $cross_compiling:$ac_tool_warned in
3999 yes:)
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002 ac_tool_warned=yes ;;
4003 esac
4004     CC=$ac_ct_CC
4005   fi
4006 fi
4007
4008 fi
4009
4010
4011 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error "no acceptable C compiler found in \$PATH
4014 See \`config.log' for more details." "$LINENO" 5; }
4015
4016 # Provide some information about the compiler.
4017 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4018 set X $ac_compile
4019 ac_compiler=$2
4020 for ac_option in --version -v -V -qversion; do
4021   { { ac_try="$ac_compiler $ac_option >&5"
4022 case "(($ac_try" in
4023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024   *) ac_try_echo=$ac_try;;
4025 esac
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4029   ac_status=$?
4030   if test -s conftest.err; then
4031     sed '10a\
4032 ... rest of stderr output deleted ...
4033          10q' conftest.err >conftest.er1
4034     cat conftest.er1 >&5
4035     rm -f conftest.er1 conftest.err
4036   fi
4037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038   test $ac_status = 0; }
4039 done
4040
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h.  */
4043
4044 int
4045 main ()
4046 {
4047
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052 ac_clean_files_save=$ac_clean_files
4053 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4054 # Try to create an executable without -o first, disregard a.out.
4055 # It will help us diagnose broken compilers, and finding out an intuition
4056 # of exeext.
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4058 $as_echo_n "checking for C compiler default output file name... " >&6; }
4059 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4060
4061 # The possible output files:
4062 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4063
4064 ac_rmfiles=
4065 for ac_file in $ac_files
4066 do
4067   case $ac_file in
4068     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4069     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4070   esac
4071 done
4072 rm -f $ac_rmfiles
4073
4074 if { { ac_try="$ac_link_default"
4075 case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081   (eval "$ac_link_default") 2>&5
4082   ac_status=$?
4083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084   test $ac_status = 0; }; then :
4085   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4086 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4087 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4088 # so that the user can short-circuit this test for compilers unknown to
4089 # Autoconf.
4090 for ac_file in $ac_files ''
4091 do
4092   test -f "$ac_file" || continue
4093   case $ac_file in
4094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4095         ;;
4096     [ab].out )
4097         # We found the default executable, but exeext='' is most
4098         # certainly right.
4099         break;;
4100     *.* )
4101         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4102         then :; else
4103            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4104         fi
4105         # We set ac_cv_exeext here because the later test for it is not
4106         # safe: cross compilers may not add the suffix if given an `-o'
4107         # argument, so we may need to know it at that point already.
4108         # Even if this section looks crufty: it has the advantage of
4109         # actually working.
4110         break;;
4111     * )
4112         break;;
4113   esac
4114 done
4115 test "$ac_cv_exeext" = no && ac_cv_exeext=
4116
4117 else
4118   ac_file=''
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4121 $as_echo "$ac_file" >&6; }
4122 if test -z "$ac_file"; then :
4123   $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 { as_fn_set_status 77
4129 as_fn_error "C compiler cannot create executables
4130 See \`config.log' for more details." "$LINENO" 5; }; }
4131 fi
4132 ac_exeext=$ac_cv_exeext
4133
4134 # Check that the compiler produces executables we can run.  If not, either
4135 # the compiler is broken, or we cross compile.
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4137 $as_echo_n "checking whether the C compiler works... " >&6; }
4138 # If not cross compiling, check that we can run a simple program.
4139 if test "$cross_compiling" != yes; then
4140   if { ac_try='./$ac_file'
4141   { { case "(($ac_try" in
4142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143   *) ac_try_echo=$ac_try;;
4144 esac
4145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146 $as_echo "$ac_try_echo"; } >&5
4147   (eval "$ac_try") 2>&5
4148   ac_status=$?
4149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150   test $ac_status = 0; }; }; then
4151     cross_compiling=no
4152   else
4153     if test "$cross_compiling" = maybe; then
4154         cross_compiling=yes
4155     else
4156         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error "cannot run C compiled programs.
4159 If you meant to cross compile, use \`--host'.
4160 See \`config.log' for more details." "$LINENO" 5; }
4161     fi
4162   fi
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165 $as_echo "yes" >&6; }
4166
4167 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4168 ac_clean_files=$ac_clean_files_save
4169 # Check that the compiler produces executables we can run.  If not, either
4170 # the compiler is broken, or we cross compile.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4172 $as_echo_n "checking whether we are cross compiling... " >&6; }
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4174 $as_echo "$cross_compiling" >&6; }
4175
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4177 $as_echo_n "checking for suffix of executables... " >&6; }
4178 if { { ac_try="$ac_link"
4179 case "(($ac_try" in
4180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181   *) ac_try_echo=$ac_try;;
4182 esac
4183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184 $as_echo "$ac_try_echo"; } >&5
4185   (eval "$ac_link") 2>&5
4186   ac_status=$?
4187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188   test $ac_status = 0; }; then :
4189   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4190 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4191 # work properly (i.e., refer to `conftest.exe'), while it won't with
4192 # `rm'.
4193 for ac_file in conftest.exe conftest conftest.*; do
4194   test -f "$ac_file" || continue
4195   case $ac_file in
4196     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4197     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4198           break;;
4199     * ) break;;
4200   esac
4201 done
4202 else
4203   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error "cannot compute suffix of executables: cannot compile and link
4206 See \`config.log' for more details." "$LINENO" 5; }
4207 fi
4208 rm -f conftest$ac_cv_exeext
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4210 $as_echo "$ac_cv_exeext" >&6; }
4211
4212 rm -f conftest.$ac_ext
4213 EXEEXT=$ac_cv_exeext
4214 ac_exeext=$EXEEXT
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4216 $as_echo_n "checking for suffix of object files... " >&6; }
4217 if test "${ac_cv_objext+set}" = set; then :
4218   $as_echo_n "(cached) " >&6
4219 else
4220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h.  */
4222
4223 int
4224 main ()
4225 {
4226
4227   ;
4228   return 0;
4229 }
4230 _ACEOF
4231 rm -f conftest.o conftest.obj
4232 if { { ac_try="$ac_compile"
4233 case "(($ac_try" in
4234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235   *) ac_try_echo=$ac_try;;
4236 esac
4237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 $as_echo "$ac_try_echo"; } >&5
4239   (eval "$ac_compile") 2>&5
4240   ac_status=$?
4241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242   test $ac_status = 0; }; then :
4243   for ac_file in conftest.o conftest.obj conftest.*; do
4244   test -f "$ac_file" || continue;
4245   case $ac_file in
4246     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4247     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4248        break;;
4249   esac
4250 done
4251 else
4252   $as_echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4257 as_fn_error "cannot compute suffix of object files: cannot compile
4258 See \`config.log' for more details." "$LINENO" 5; }
4259 fi
4260 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4263 $as_echo "$ac_cv_objext" >&6; }
4264 OBJEXT=$ac_cv_objext
4265 ac_objext=$OBJEXT
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4267 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4268 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273
4274 int
4275 main ()
4276 {
4277 #ifndef __GNUC__
4278        choke me
4279 #endif
4280
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 if ac_fn_c_try_compile "$LINENO"; then :
4286   ac_compiler_gnu=yes
4287 else
4288   ac_compiler_gnu=no
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4292
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4295 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4296 if test $ac_compiler_gnu = yes; then
4297   GCC=yes
4298 else
4299   GCC=
4300 fi
4301 ac_test_CFLAGS=${CFLAGS+set}
4302 ac_save_CFLAGS=$CFLAGS
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4304 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4305 if test "${ac_cv_prog_cc_g+set}" = set; then :
4306   $as_echo_n "(cached) " >&6
4307 else
4308   ac_save_c_werror_flag=$ac_c_werror_flag
4309    ac_c_werror_flag=yes
4310    ac_cv_prog_cc_g=no
4311    CFLAGS="-g"
4312    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h.  */
4314
4315 int
4316 main ()
4317 {
4318
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323 if ac_fn_c_try_compile "$LINENO"; then :
4324   ac_cv_prog_cc_g=yes
4325 else
4326   CFLAGS=""
4327       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h.  */
4329
4330 int
4331 main ()
4332 {
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339
4340 else
4341   ac_c_werror_flag=$ac_save_c_werror_flag
4342          CFLAGS="-g"
4343          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h.  */
4345
4346 int
4347 main ()
4348 {
4349
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355   ac_cv_prog_cc_g=yes
4356 fi
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 fi
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362    ac_c_werror_flag=$ac_save_c_werror_flag
4363 fi
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4365 $as_echo "$ac_cv_prog_cc_g" >&6; }
4366 if test "$ac_test_CFLAGS" = set; then
4367   CFLAGS=$ac_save_CFLAGS
4368 elif test $ac_cv_prog_cc_g = yes; then
4369   if test "$GCC" = yes; then
4370     CFLAGS="-g -O2"
4371   else
4372     CFLAGS="-g"
4373   fi
4374 else
4375   if test "$GCC" = yes; then
4376     CFLAGS="-O2"
4377   else
4378     CFLAGS=
4379   fi
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4382 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4383 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4384   $as_echo_n "(cached) " >&6
4385 else
4386   ac_cv_prog_cc_c89=no
4387 ac_save_CC=$CC
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h.  */
4390 #include <stdarg.h>
4391 #include <stdio.h>
4392 #include <sys/types.h>
4393 #include <sys/stat.h>
4394 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4395 struct buf { int x; };
4396 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4397 static char *e (p, i)
4398      char **p;
4399      int i;
4400 {
4401   return p[i];
4402 }
4403 static char *f (char * (*g) (char **, int), char **p, ...)
4404 {
4405   char *s;
4406   va_list v;
4407   va_start (v,p);
4408   s = g (p, va_arg (v,int));
4409   va_end (v);
4410   return s;
4411 }
4412
4413 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4414    function prototypes and stuff, but not '\xHH' hex character constants.
4415    These don't provoke an error unfortunately, instead are silently treated
4416    as 'x'.  The following induces an error, until -std is added to get
4417    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4418    array size at least.  It's necessary to write '\x00'==0 to get something
4419    that's true only with -std.  */
4420 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4421
4422 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4423    inside strings and character constants.  */
4424 #define FOO(x) 'x'
4425 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4426
4427 int test (int i, double x);
4428 struct s1 {int (*f) (int a);};
4429 struct s2 {int (*f) (double a);};
4430 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4431 int argc;
4432 char **argv;
4433 int
4434 main ()
4435 {
4436 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4442         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4443 do
4444   CC="$ac_save_CC $ac_arg"
4445   if ac_fn_c_try_compile "$LINENO"; then :
4446   ac_cv_prog_cc_c89=$ac_arg
4447 fi
4448 rm -f core conftest.err conftest.$ac_objext
4449   test "x$ac_cv_prog_cc_c89" != "xno" && break
4450 done
4451 rm -f conftest.$ac_ext
4452 CC=$ac_save_CC
4453
4454 fi
4455 # AC_CACHE_VAL
4456 case "x$ac_cv_prog_cc_c89" in
4457   x)
4458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4459 $as_echo "none needed" >&6; } ;;
4460   xno)
4461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4462 $as_echo "unsupported" >&6; } ;;
4463   *)
4464     CC="$CC $ac_cv_prog_cc_c89"
4465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4466 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4467 esac
4468 if test "x$ac_cv_prog_cc_c89" != xno; then :
4469
4470 fi
4471
4472 ac_ext=c
4473 ac_cpp='$CPP $CPPFLAGS'
4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4477
4478 ac_ext=cpp
4479 ac_cpp='$CXXCPP $CPPFLAGS'
4480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4483 if test -z "$CXX"; then
4484   if test -n "$CCC"; then
4485     CXX=$CCC
4486   else
4487     if test -n "$ac_tool_prefix"; then
4488   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4489   do
4490     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4493 $as_echo_n "checking for $ac_word... " >&6; }
4494 if test "${ac_cv_prog_CXX+set}" = set; then :
4495   $as_echo_n "(cached) " >&6
4496 else
4497   if test -n "$CXX"; then
4498   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4499 else
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503   IFS=$as_save_IFS
4504   test -z "$as_dir" && as_dir=.
4505     for ac_exec_ext in '' $ac_executable_extensions; do
4506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509     break 2
4510   fi
4511 done
4512   done
4513 IFS=$as_save_IFS
4514
4515 fi
4516 fi
4517 CXX=$ac_cv_prog_CXX
4518 if test -n "$CXX"; then
4519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4520 $as_echo "$CXX" >&6; }
4521 else
4522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4524 fi
4525
4526
4527     test -n "$CXX" && break
4528   done
4529 fi
4530 if test -z "$CXX"; then
4531   ac_ct_CXX=$CXX
4532   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4533 do
4534   # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4539   $as_echo_n "(cached) " >&6
4540 else
4541   if test -n "$ac_ct_CXX"; then
4542   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549     for ac_exec_ext in '' $ac_executable_extensions; do
4550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551     ac_cv_prog_ac_ct_CXX="$ac_prog"
4552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556   done
4557 IFS=$as_save_IFS
4558
4559 fi
4560 fi
4561 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4562 if test -n "$ac_ct_CXX"; then
4563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4564 $as_echo "$ac_ct_CXX" >&6; }
4565 else
4566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4568 fi
4569
4570
4571   test -n "$ac_ct_CXX" && break
4572 done
4573
4574   if test "x$ac_ct_CXX" = x; then
4575     CXX="g++"
4576   else
4577     case $cross_compiling:$ac_tool_warned in
4578 yes:)
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4581 ac_tool_warned=yes ;;
4582 esac
4583     CXX=$ac_ct_CXX
4584   fi
4585 fi
4586
4587   fi
4588 fi
4589 # Provide some information about the compiler.
4590 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4591 set X $ac_compile
4592 ac_compiler=$2
4593 for ac_option in --version -v -V -qversion; do
4594   { { ac_try="$ac_compiler $ac_option >&5"
4595 case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4600 $as_echo "$ac_try_echo"; } >&5
4601   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4602   ac_status=$?
4603   if test -s conftest.err; then
4604     sed '10a\
4605 ... rest of stderr output deleted ...
4606          10q' conftest.err >conftest.er1
4607     cat conftest.er1 >&5
4608     rm -f conftest.er1 conftest.err
4609   fi
4610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611   test $ac_status = 0; }
4612 done
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4615 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4616 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4617   $as_echo_n "(cached) " >&6
4618 else
4619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h.  */
4621
4622 int
4623 main ()
4624 {
4625 #ifndef __GNUC__
4626        choke me
4627 #endif
4628
4629   ;
4630   return 0;
4631 }
4632 _ACEOF
4633 if ac_fn_cxx_try_compile "$LINENO"; then :
4634   ac_compiler_gnu=yes
4635 else
4636   ac_compiler_gnu=no
4637 fi
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4640
4641 fi
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4643 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4644 if test $ac_compiler_gnu = yes; then
4645   GXX=yes
4646 else
4647   GXX=
4648 fi
4649 ac_test_CXXFLAGS=${CXXFLAGS+set}
4650 ac_save_CXXFLAGS=$CXXFLAGS
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4652 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4653 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4657    ac_cxx_werror_flag=yes
4658    ac_cv_prog_cxx_g=no
4659    CXXFLAGS="-g"
4660    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h.  */
4662
4663 int
4664 main ()
4665 {
4666
4667   ;
4668   return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_cxx_try_compile "$LINENO"; then :
4672   ac_cv_prog_cxx_g=yes
4673 else
4674   CXXFLAGS=""
4675       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h.  */
4677
4678 int
4679 main ()
4680 {
4681
4682   ;
4683   return 0;
4684 }
4685 _ACEOF
4686 if ac_fn_cxx_try_compile "$LINENO"; then :
4687
4688 else
4689   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4690          CXXFLAGS="-g"
4691          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h.  */
4693
4694 int
4695 main ()
4696 {
4697
4698   ;
4699   return 0;
4700 }
4701 _ACEOF
4702 if ac_fn_cxx_try_compile "$LINENO"; then :
4703   ac_cv_prog_cxx_g=yes
4704 fi
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4713 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4714 if test "$ac_test_CXXFLAGS" = set; then
4715   CXXFLAGS=$ac_save_CXXFLAGS
4716 elif test $ac_cv_prog_cxx_g = yes; then
4717   if test "$GXX" = yes; then
4718     CXXFLAGS="-g -O2"
4719   else
4720     CXXFLAGS="-g"
4721   fi
4722 else
4723   if test "$GXX" = yes; then
4724     CXXFLAGS="-O2"
4725   else
4726     CXXFLAGS=
4727   fi
4728 fi
4729 ac_ext=c
4730 ac_cpp='$CPP $CPPFLAGS'
4731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734
4735
4736 # We must set the default linker to the linker used by gcc for the correct
4737 # operation of libtool.  If LD is not defined and we are using gcc, try to
4738 # set the LD default to the ld used by gcc.
4739 if test -z "$LD"; then
4740   if test "$GCC" = yes; then
4741     case $build in
4742     *-*-mingw*)
4743       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4744     *)
4745       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4746     esac
4747     case $gcc_prog_ld in
4748     # Accept absolute paths.
4749     [\\/]* | [A-Za-z]:[\\/]*)
4750       LD="$gcc_prog_ld" ;;
4751     esac
4752   fi
4753 fi
4754
4755
4756
4757
4758 if test -n "$ac_tool_prefix"; then
4759   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4760 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4764   $as_echo_n "(cached) " >&6
4765 else
4766   if test -n "$GNATBIND"; then
4767   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772   IFS=$as_save_IFS
4773   test -z "$as_dir" && as_dir=.
4774     for ac_exec_ext in '' $ac_executable_extensions; do
4775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778     break 2
4779   fi
4780 done
4781   done
4782 IFS=$as_save_IFS
4783
4784 fi
4785 fi
4786 GNATBIND=$ac_cv_prog_GNATBIND
4787 if test -n "$GNATBIND"; then
4788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4789 $as_echo "$GNATBIND" >&6; }
4790 else
4791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4793 fi
4794
4795
4796 fi
4797 if test -z "$ac_cv_prog_GNATBIND"; then
4798   ac_ct_GNATBIND=$GNATBIND
4799   # Extract the first word of "gnatbind", so it can be a program name with args.
4800 set dummy gnatbind; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4804   $as_echo_n "(cached) " >&6
4805 else
4806   if test -n "$ac_ct_GNATBIND"; then
4807   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814     for ac_exec_ext in '' $ac_executable_extensions; do
4815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821   done
4822 IFS=$as_save_IFS
4823
4824 fi
4825 fi
4826 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4827 if test -n "$ac_ct_GNATBIND"; then
4828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4829 $as_echo "$ac_ct_GNATBIND" >&6; }
4830 else
4831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4833 fi
4834
4835   if test "x$ac_ct_GNATBIND" = x; then
4836     GNATBIND="no"
4837   else
4838     case $cross_compiling:$ac_tool_warned in
4839 yes:)
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4842 ac_tool_warned=yes ;;
4843 esac
4844     GNATBIND=$ac_ct_GNATBIND
4845   fi
4846 else
4847   GNATBIND="$ac_cv_prog_GNATBIND"
4848 fi
4849
4850 if test -n "$ac_tool_prefix"; then
4851   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4852 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858   if test -n "$GNATMAKE"; then
4859   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866     for ac_exec_ext in '' $ac_executable_extensions; do
4867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873   done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 GNATMAKE=$ac_cv_prog_GNATMAKE
4879 if test -n "$GNATMAKE"; then
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4881 $as_echo "$GNATMAKE" >&6; }
4882 else
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888 fi
4889 if test -z "$ac_cv_prog_GNATMAKE"; then
4890   ac_ct_GNATMAKE=$GNATMAKE
4891   # Extract the first word of "gnatmake", so it can be a program name with args.
4892 set dummy gnatmake; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   if test -n "$ac_ct_GNATMAKE"; then
4899   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906     for ac_exec_ext in '' $ac_executable_extensions; do
4907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913   done
4914 IFS=$as_save_IFS
4915
4916 fi
4917 fi
4918 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4919 if test -n "$ac_ct_GNATMAKE"; then
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4921 $as_echo "$ac_ct_GNATMAKE" >&6; }
4922 else
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4925 fi
4926
4927   if test "x$ac_ct_GNATMAKE" = x; then
4928     GNATMAKE="no"
4929   else
4930     case $cross_compiling:$ac_tool_warned in
4931 yes:)
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4934 ac_tool_warned=yes ;;
4935 esac
4936     GNATMAKE=$ac_ct_GNATMAKE
4937   fi
4938 else
4939   GNATMAKE="$ac_cv_prog_GNATMAKE"
4940 fi
4941
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4943 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4944 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   cat >conftest.adb <<EOF
4948 procedure conftest is begin null; end conftest;
4949 EOF
4950 acx_cv_cc_gcc_supports_ada=no
4951 # There is a bug in old released versions of GCC which causes the
4952 # driver to exit successfully when the appropriate language module
4953 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4954 # Therefore we must check for the error message as well as an
4955 # unsuccessful exit.
4956 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4957 # given a .adb file, but produce no object file.  So we must check
4958 # if an object file was really produced to guard against this.
4959 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4960 if test x"$errors" = x && test -f conftest.$ac_objext; then
4961   acx_cv_cc_gcc_supports_ada=yes
4962 fi
4963 rm -f conftest.*
4964 fi
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4966 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4967
4968 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4969   have_gnat=yes
4970 else
4971   have_gnat=no
4972 fi
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4975 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4976 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979    echo abfoo >t1
4980   echo cdfoo >t2
4981   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4982   if cmp t1 t2 2 2 > /dev/null 2>&1; then
4983     if cmp t1 t2 1 1 > /dev/null 2>&1; then
4984       :
4985     else
4986       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4987     fi
4988   fi
4989   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4990     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4991       :
4992     else
4993       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4994     fi
4995   fi
4996   rm t1 t2
4997
4998 fi
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5000 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5001 do_compare="$gcc_cv_prog_cmp_skip"
5002
5003
5004
5005 # Check whether --enable-bootstrap was given.
5006 if test "${enable_bootstrap+set}" = set; then :
5007   enableval=$enable_bootstrap;
5008 else
5009   enable_bootstrap=default
5010 fi
5011
5012
5013 # Issue errors and warnings for invalid/strange bootstrap combinations.
5014 if test -r $srcdir/gcc/configure; then
5015   have_compiler=yes
5016 else
5017   have_compiler=no
5018 fi
5019
5020 case "$have_compiler:$host:$target:$enable_bootstrap" in
5021   *:*:*:no) ;;
5022
5023   # Default behavior.  Enable bootstrap if we have a compiler
5024   # and we are in a native configuration.
5025   yes:$build:$build:default)
5026     enable_bootstrap=yes ;;
5027
5028   *:*:*:default)
5029     enable_bootstrap=no ;;
5030
5031   # We have a compiler and we are in a native configuration, bootstrap is ok
5032   yes:$build:$build:yes)
5033     ;;
5034
5035   # Other configurations, but we have a compiler.  Assume the user knows
5036   # what he's doing.
5037   yes:*:*:yes)
5038     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5039 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5040     ;;
5041
5042   # No compiler: if they passed --enable-bootstrap explicitly, fail
5043   no:*:*:yes)
5044     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5045
5046   # Fail if wrong command line
5047   *)
5048     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5049     ;;
5050 esac
5051
5052 # See if we are building gcc with C++.
5053 # Check whether --enable-build-with-cxx was given.
5054 if test "${enable_build_with_cxx+set}" = set; then :
5055   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5056 else
5057   ENABLE_BUILD_WITH_CXX=no
5058 fi
5059
5060
5061 # Build stage1 with C and build stages 2 and 3 with C++.
5062 # Check whether --enable-build-poststage1-with-cxx was given.
5063 if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5064   enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5065 else
5066   ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5067 fi
5068
5069
5070 # Used for setting $lt_cv_objdir
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5072 $as_echo_n "checking for objdir... " >&6; }
5073 if test "${lt_cv_objdir+set}" = set; then :
5074   $as_echo_n "(cached) " >&6
5075 else
5076   rm -f .libs 2>/dev/null
5077 mkdir .libs 2>/dev/null
5078 if test -d .libs; then
5079   lt_cv_objdir=.libs
5080 else
5081   # MS-DOS does not allow filenames that begin with a dot.
5082   lt_cv_objdir=_libs
5083 fi
5084 rmdir .libs 2>/dev/null
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5087 $as_echo "$lt_cv_objdir" >&6; }
5088 objdir=$lt_cv_objdir
5089
5090
5091
5092
5093
5094 cat >>confdefs.h <<_ACEOF
5095 #define LT_OBJDIR "$lt_cv_objdir/"
5096 _ACEOF
5097
5098
5099
5100 # Check for GMP, MPFR and MPC
5101 gmplibs="-lmpc -lmpfr -lgmp"
5102 gmpinc=
5103 have_gmp=no
5104
5105 # Specify a location for mpc
5106 # check for this first so it ends up on the link line before mpfr.
5107
5108 # Check whether --with-mpc was given.
5109 if test "${with_mpc+set}" = set; then :
5110   withval=$with_mpc;
5111 fi
5112
5113
5114 # Check whether --with-mpc-include was given.
5115 if test "${with_mpc_include+set}" = set; then :
5116   withval=$with_mpc_include;
5117 fi
5118
5119
5120 # Check whether --with-mpc-lib was given.
5121 if test "${with_mpc_lib+set}" = set; then :
5122   withval=$with_mpc_lib;
5123 fi
5124
5125
5126 if test "x$with_mpc" != x; then
5127   gmplibs="-L$with_mpc/lib $gmplibs"
5128   gmpinc="-I$with_mpc/include $gmpinc"
5129 fi
5130 if test "x$with_mpc_include" != x; then
5131   gmpinc="-I$with_mpc_include $gmpinc"
5132 fi
5133 if test "x$with_mpc_lib" != x; then
5134   gmplibs="-L$with_mpc_lib $gmplibs"
5135 fi
5136 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5137   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5138   gmpinc='-I$$s/mpc/src '"$gmpinc"
5139   # Do not test the mpc version.  Assume that it is sufficient, since
5140   # it is in the source tree, and the library has not been built yet
5141   # but it would be included on the link line in the version check below
5142   # hence making the test fail.
5143   have_gmp=yes
5144 fi
5145
5146 # Specify a location for mpfr
5147 # check for this first so it ends up on the link line before gmp.
5148
5149 # Check whether --with-mpfr-dir was given.
5150 if test "${with_mpfr_dir+set}" = set; then :
5151   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5152 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5153 fi
5154
5155
5156
5157 # Check whether --with-mpfr was given.
5158 if test "${with_mpfr+set}" = set; then :
5159   withval=$with_mpfr;
5160 fi
5161
5162
5163 # Check whether --with-mpfr-include was given.
5164 if test "${with_mpfr_include+set}" = set; then :
5165   withval=$with_mpfr_include;
5166 fi
5167
5168
5169 # Check whether --with-mpfr-lib was given.
5170 if test "${with_mpfr_lib+set}" = set; then :
5171   withval=$with_mpfr_lib;
5172 fi
5173
5174
5175 if test "x$with_mpfr" != x; then
5176   gmplibs="-L$with_mpfr/lib $gmplibs"
5177   gmpinc="-I$with_mpfr/include $gmpinc"
5178 fi
5179 if test "x$with_mpfr_include" != x; then
5180   gmpinc="-I$with_mpfr_include $gmpinc"
5181 fi
5182 if test "x$with_mpfr_lib" != x; then
5183   gmplibs="-L$with_mpfr_lib $gmplibs"
5184 fi
5185 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5186   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5187   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5188   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5189   # Do not test the mpfr version.  Assume that it is sufficient, since
5190   # it is in the source tree, and the library has not been built yet
5191   # but it would be included on the link line in the version check below
5192   # hence making the test fail.
5193   have_gmp=yes
5194 fi
5195
5196 # Specify a location for gmp
5197
5198 # Check whether --with-gmp-dir was given.
5199 if test "${with_gmp_dir+set}" = set; then :
5200   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5201 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5202 fi
5203
5204
5205
5206 # Check whether --with-gmp was given.
5207 if test "${with_gmp+set}" = set; then :
5208   withval=$with_gmp;
5209 fi
5210
5211
5212 # Check whether --with-gmp-include was given.
5213 if test "${with_gmp_include+set}" = set; then :
5214   withval=$with_gmp_include;
5215 fi
5216
5217
5218 # Check whether --with-gmp-lib was given.
5219 if test "${with_gmp_lib+set}" = set; then :
5220   withval=$with_gmp_lib;
5221 fi
5222
5223
5224
5225 if test "x$with_gmp" != x; then
5226   gmplibs="-L$with_gmp/lib $gmplibs"
5227   gmpinc="-I$with_gmp/include $gmpinc"
5228 fi
5229 if test "x$with_gmp_include" != x; then
5230   gmpinc="-I$with_gmp_include $gmpinc"
5231 fi
5232 if test "x$with_gmp_lib" != x; then
5233   gmplibs="-L$with_gmp_lib $gmplibs"
5234 fi
5235 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5236   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5237   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5238   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5239   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5240   # Do not test the gmp version.  Assume that it is sufficient, since
5241   # it is in the source tree, and the library has not been built yet
5242   # but it would be included on the link line in the version check below
5243   # hence making the test fail.
5244   have_gmp=yes
5245 fi
5246
5247 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5248   have_gmp=yes
5249   saved_CFLAGS="$CFLAGS"
5250   CFLAGS="$CFLAGS $gmpinc"
5251   # Check for the recommended and required versions of GMP.
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5253 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5254
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h.  */
5257 #include "gmp.h"
5258 int
5259 main ()
5260 {
5261
5262   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5263   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5264   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5265   choke me
5266   #endif
5267
5268   ;
5269   return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h.  */
5275 #include <gmp.h>
5276 int
5277 main ()
5278 {
5279
5280   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5281   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5282   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5283   choke me
5284   #endif
5285
5286   ;
5287   return 0;
5288 }
5289 _ACEOF
5290 if ac_fn_c_try_compile "$LINENO"; then :
5291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5292 $as_echo "yes" >&6; }
5293 else
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5295 $as_echo "buggy but acceptable" >&6; }
5296 fi
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 else
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }; have_gmp=no
5301 fi
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303
5304   # If we have GMP, check the MPFR version.
5305   if test x"$have_gmp" = xyes; then
5306     # Check for the recommended and required versions of MPFR.
5307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5308 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h.  */
5311 #include <gmp.h>
5312     #include <mpfr.h>
5313 int
5314 main ()
5315 {
5316
5317     #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5318     choke me
5319     #endif
5320
5321   ;
5322   return 0;
5323 }
5324 _ACEOF
5325 if ac_fn_c_try_compile "$LINENO"; then :
5326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h.  */
5328 #include <gmp.h>
5329     #include <mpfr.h>
5330 int
5331 main ()
5332 {
5333
5334     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5335     choke me
5336     #endif
5337
5338   ;
5339   return 0;
5340 }
5341 _ACEOF
5342 if ac_fn_c_try_compile "$LINENO"; then :
5343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5344 $as_echo "yes" >&6; }
5345 else
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5347 $as_echo "buggy but acceptable" >&6; }
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 else
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }; have_gmp=no
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355   fi
5356
5357   # Check for the MPC header version.
5358   if test x"$have_gmp" = xyes ; then
5359     # Check for the recommended and required versions of MPC.
5360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5361 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5362     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h.  */
5364 #include <mpc.h>
5365 int
5366 main ()
5367 {
5368
5369     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5370     choke me
5371     #endif
5372
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_c_try_compile "$LINENO"; then :
5378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h.  */
5380 #include <mpc.h>
5381 int
5382 main ()
5383 {
5384
5385     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5386     choke me
5387     #endif
5388
5389   ;
5390   return 0;
5391 }
5392 _ACEOF
5393 if ac_fn_c_try_compile "$LINENO"; then :
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5395 $as_echo "yes" >&6; }
5396 else
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5398 $as_echo "buggy but acceptable" >&6; }
5399 fi
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 else
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }; have_gmp=no
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406   fi
5407
5408   # Now check the MPFR library.
5409   if test x"$have_gmp" = xyes; then
5410     saved_LIBS="$LIBS"
5411     LIBS="$LIBS $gmplibs"
5412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5413 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5414     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h.  */
5416 #include <mpc.h>
5417 int
5418 main ()
5419 {
5420
5421     mpfr_t n;
5422     mpfr_t x;
5423     mpc_t c;
5424     int t;
5425     mpfr_init (n);
5426     mpfr_init (x);
5427     mpfr_atan2 (n, n, x, GMP_RNDN);
5428     mpfr_erfc (n, x, GMP_RNDN);
5429     mpfr_subnormalize (x, t, GMP_RNDN);
5430     mpfr_clear(n);
5431     mpfr_clear(x);
5432     mpc_init2 (c, 53);
5433     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5434     mpc_cosh (c, c, MPC_RNDNN);
5435     mpc_pow (c, c, c, MPC_RNDNN);
5436     mpc_acosh (c, c, MPC_RNDNN);
5437     mpc_clear (c);
5438
5439   ;
5440   return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_c_try_link "$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: no" >&5
5448 $as_echo "no" >&6; }; have_gmp=no
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext \
5451     conftest$ac_exeext conftest.$ac_ext
5452     LIBS="$saved_LIBS"
5453   fi
5454
5455   CFLAGS="$saved_CFLAGS"
5456
5457 # The library versions listed in the error message below should match
5458 # the HARD-minimums enforced above.
5459   if test x$have_gmp != xyes; then
5460     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5461 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5462 their locations.  Source code for these libraries can be found at
5463 their respective hosting sites as well as at
5464 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5465 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5466 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5467 make sure that you have installed both the libraries and the header
5468 files.  They may be located in separate packages." "$LINENO" 5
5469   fi
5470 fi
5471
5472 # Flags needed for both GMP, MPFR and/or MPC.
5473
5474
5475
5476
5477
5478
5479 # Allow host libstdc++ to be specified for static linking with PPL.
5480
5481 # Check whether --with-host-libstdcxx was given.
5482 if test "${with_host_libstdcxx+set}" = set; then :
5483   withval=$with_host_libstdcxx;
5484 fi
5485
5486
5487 case $with_host_libstdcxx in
5488   no|yes)
5489     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5490     ;;
5491 esac
5492
5493 # Linker flags to use for stage1 or when not boostrapping.
5494
5495 # Check whether --with-stage1-ldflags was given.
5496 if test "${with_stage1_ldflags+set}" = set; then :
5497   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5498    stage1_ldflags=
5499  else
5500    stage1_ldflags=$withval
5501  fi
5502 else
5503   stage1_ldflags=
5504 fi
5505
5506
5507
5508 # Libraries to use for stage1 or when not bootstrapping.
5509
5510 # Check whether --with-stage1-libs was given.
5511 if test "${with_stage1_libs+set}" = set; then :
5512   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5513    stage1_libs=
5514  else
5515    stage1_libs=$withval
5516  fi
5517 else
5518   stage1_libs=$with_host_libstdcxx
5519 fi
5520
5521
5522
5523 # Libraries to use for stage2 and later builds.  This defaults to the
5524 # argument passed to --with-host-libstdcxx.
5525
5526 # Check whether --with-boot-libs was given.
5527 if test "${with_boot_libs+set}" = set; then :
5528   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5529    poststage1_libs=
5530  else
5531    poststage1_libs=$withval
5532  fi
5533 else
5534   poststage1_libs=$with_host_libstdcxx
5535 fi
5536
5537
5538
5539 # Linker flags to use for stage2 and later builds.
5540
5541 # Check whether --with-boot-ldflags was given.
5542 if test "${with_boot_ldflags+set}" = set; then :
5543   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5544    poststage1_ldflags=
5545  else
5546    poststage1_ldflags=$withval
5547  fi
5548 else
5549   poststage1_ldflags=
5550  # In stages 2 and 3, default to linking libstdc++ and libgcc
5551  # statically.  But if the user explicitly specified the libraries to
5552  # use, trust that they are doing what they want.
5553  if test "$poststage1_libs" = ""; then
5554    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5555  fi
5556 fi
5557
5558
5559
5560 # Check for PPL
5561 ppllibs=
5562 pplinc=
5563 pwllib=
5564
5565
5566 # Check whether --with-ppl was given.
5567 if test "${with_ppl+set}" = set; then :
5568   withval=$with_ppl;
5569 fi
5570
5571
5572 # Check whether --with-ppl-include was given.
5573 if test "${with_ppl_include+set}" = set; then :
5574   withval=$with_ppl_include;
5575 fi
5576
5577
5578 # Check whether --with-ppl-lib was given.
5579 if test "${with_ppl_lib+set}" = set; then :
5580   withval=$with_ppl_lib;
5581 fi
5582
5583
5584 # Check whether --enable-ppl-version-check was given.
5585 if test "${enable_ppl_version_check+set}" = set; then :
5586   enableval=$enable_ppl_version_check;
5587 fi
5588
5589
5590 case $with_ppl in
5591   yes | no | "")
5592     ;;
5593   *)
5594     ppllibs="-L$with_ppl/lib"
5595     pplinc="-I$with_ppl/include $pplinc"
5596     if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5597       with_ppl=yes
5598     else
5599       as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5600     fi
5601     ;;
5602 esac
5603
5604 if test x"$with_ppl_include" != x; then
5605   pplinc="-I$with_ppl_include $pplinc"
5606   with_ppl=yes
5607 fi
5608
5609 if test "x$with_ppl_lib" != x; then
5610   ppllibs="-L$with_ppl_lib"
5611   with_ppl=yes
5612 fi
5613
5614 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5615   if test x"$enable_watchdog" = xyes; then
5616     pwllib="-lpwl"
5617   fi
5618   ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5619   pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5620   enable_ppl_version_check=no
5621   with_ppl=yes
5622 fi
5623
5624 if test "x$with_ppl" != xno; then
5625   if test "x$pwllib" = x; then
5626     saved_LIBS="$LIBS"
5627     LIBS="$LIBS $ppllibs -lstdc++ -lm"
5628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5629 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5630 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   ac_check_lib_save_LIBS=$LIBS
5634 LIBS="-lpwl  $LIBS"
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h.  */
5637
5638 /* Override any GCC internal prototype to avoid an error.
5639    Use char because int might match the return type of a GCC
5640    builtin and then its argument prototype would still apply.  */
5641 #ifdef __cplusplus
5642 extern "C"
5643 #endif
5644 char PWL_handle_timeout ();
5645 int
5646 main ()
5647 {
5648 return PWL_handle_timeout ();
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 if ac_fn_c_try_link "$LINENO"; then :
5654   ac_cv_lib_pwl_PWL_handle_timeout=yes
5655 else
5656   ac_cv_lib_pwl_PWL_handle_timeout=no
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext \
5659     conftest$ac_exeext conftest.$ac_ext
5660 LIBS=$ac_check_lib_save_LIBS
5661 fi
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5663 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5664 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5665   pwllib="-lpwl"
5666 fi
5667
5668     LIBS="$saved_LIBS"
5669   fi
5670
5671   ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5672
5673   if test "$enable_ppl_version_check" != no; then
5674     saved_CFLAGS="$CFLAGS"
5675     CFLAGS="$CFLAGS $pplinc $gmpinc"
5676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5677 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5678     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h.  */
5680 #include "ppl_c.h"
5681 int
5682 main ()
5683 {
5684
5685     #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5686     choke me
5687     #endif
5688
5689   ;
5690   return 0;
5691 }
5692 _ACEOF
5693 if ac_fn_c_try_compile "$LINENO"; then :
5694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695 $as_echo "yes" >&6; }
5696 else
5697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701     CFLAGS="$saved_CFLAGS"
5702   fi
5703 fi
5704
5705 # Flags needed for PPL
5706
5707
5708
5709
5710 # Check for CLOOG
5711
5712
5713
5714 # Check whether --with-cloog was given.
5715 if test "${with_cloog+set}" = set; then :
5716   withval=$with_cloog;
5717 fi
5718
5719
5720 # Check whether --with-cloog-include was given.
5721 if test "${with_cloog_include+set}" = set; then :
5722   withval=$with_cloog_include;
5723 fi
5724
5725
5726 # Check whether --with-cloog-lib was given.
5727 if test "${with_cloog_lib+set}" = set; then :
5728   withval=$with_cloog_lib;
5729 fi
5730
5731
5732   # Check whether --enable-cloog-backend was given.
5733 if test "${enable_cloog_backend+set}" = set; then :
5734   enableval=$enable_cloog_backend;  if   test "x${enableval}" = "xisl"; then
5735         cloog_backend=isl
5736       elif test "x${enableval}" = "xppl"; then
5737         cloog_backend=ppl
5738       else
5739         cloog_backend=ppl-legacy
5740       fi
5741 else
5742   cloog_backend=ppl-legacy
5743 fi
5744
5745   # Check whether --enable-cloog-version-check was given.
5746 if test "${enable_cloog_version_check+set}" = set; then :
5747   enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5748 else
5749   ENABLE_CLOOG_CHECK=yes
5750 fi
5751
5752
5753   # Initialize clooglibs and clooginc.
5754   case $with_cloog in
5755     no)
5756       clooglibs=
5757       clooginc=
5758       ;;
5759     "" | yes)
5760       ;;
5761     *)
5762       clooglibs="-L$with_cloog/lib"
5763       clooginc="-I$with_cloog/include"
5764       ;;
5765   esac
5766   if test "x${with_cloog_include}" != x ; then
5767     clooginc="-I$with_cloog_include"
5768   fi
5769   if test "x${with_cloog_lib}" != x; then
5770     clooglibs="-L$with_cloog_lib"
5771   fi
5772
5773
5774
5775
5776
5777 if test "x$with_ppl" = "xno"; then
5778
5779
5780
5781   if test "x${with_cloog}" = xno; then
5782     graphite_requested=no
5783   elif test "x${with_cloog}" != x \
5784     || test "x${with_cloog_include}" != x \
5785     || test "x${with_cloog_lib}" != x ; then
5786     graphite_requested=yes
5787   else
5788     graphite_requested=no
5789   fi
5790
5791
5792   if test "${graphite_requested}" = yes; then
5793     as_fn_error "Unable to find a usable PPL.  See config.log for details." "$LINENO" 5
5794   fi
5795   with_cloog=no
5796 fi
5797 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5798   && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5799   clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5800   clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5801 fi
5802 if test "x$with_cloog" != "xno"; then
5803
5804
5805
5806   _cloog_saved_CFLAGS=$CFLAGS
5807   _cloog_saved_CPPFLAGS=$CPPFLAGS
5808   _cloog_saved_LDFLAGS=$LDFLAGS
5809   _cloog_saved_LIBS=$LIBS
5810
5811   _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5812
5813     CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5814   CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5815   LDFLAGS="${LDFLAGS} ${clooglibs}"
5816
5817   case $cloog_backend in
5818     "ppl-legacy")
5819     CFLAGS="${CFLAGS} ${pplinc}"
5820     LDFLAGS="${LDFLAGS} ${ppllibs}"
5821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5822 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5823 if test "${gcc_cv_cloog_type+set}" = set; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   LIBS="-lcloog ${_cloog_saved_LIBS}"
5827       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h.  */
5829 #include "cloog/cloog.h"
5830 int
5831 main ()
5832 {
5833 #ifndef CLOOG_PPL_BACKEND
5834     choke me
5835    #endif
5836   ;
5837   return 0;
5838 }
5839 _ACEOF
5840 if ac_fn_c_try_link "$LINENO"; then :
5841   gcc_cv_cloog_type="PPL Legacy"
5842 else
5843   gcc_cv_cloog_type=no
5844 fi
5845 rm -f core conftest.err conftest.$ac_objext \
5846     conftest$ac_exeext conftest.$ac_ext
5847 fi
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5849 $as_echo "$gcc_cv_cloog_type" >&6; }
5850     ;;
5851     "isl")
5852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5853 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5854 if test "${gcc_cv_cloog_type+set}" = set; then :
5855   $as_echo_n "(cached) " >&6
5856 else
5857   LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5858       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h.  */
5860 #include "cloog/cloog.h"
5861 int
5862 main ()
5863 {
5864 cloog_version ()
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 if ac_fn_c_try_link "$LINENO"; then :
5870   gcc_cv_cloog_type="ISL"
5871 else
5872   gcc_cv_cloog_type=no
5873 fi
5874 rm -f core conftest.err conftest.$ac_objext \
5875     conftest$ac_exeext conftest.$ac_ext
5876 fi
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5878 $as_echo "$gcc_cv_cloog_type" >&6; }
5879     ;;
5880     "ppl")
5881     CFLAGS="${CFLAGS} ${pplinc}"
5882     LDFLAGS="${LDFLAGS} ${ppllibs}"
5883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5884 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5885 if test "${gcc_cv_cloog_type+set}" = set; then :
5886   $as_echo_n "(cached) " >&6
5887 else
5888   LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5889       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h.  */
5891 #include "cloog/cloog.h"
5892    #include "cloog/ppl/cloog.h"
5893 int
5894 main ()
5895 {
5896 cloog_version ()
5897   ;
5898   return 0;
5899 }
5900 _ACEOF
5901 if ac_fn_c_try_link "$LINENO"; then :
5902   gcc_cv_cloog_type="PPL"
5903 else
5904   gcc_cv_cloog_type=no
5905 fi
5906 rm -f core conftest.err conftest.$ac_objext \
5907     conftest$ac_exeext conftest.$ac_ext
5908 fi
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5910 $as_echo "$gcc_cv_cloog_type" >&6; }
5911     ;;
5912     *)
5913       gcc_cv_cloog_type=""
5914   esac
5915
5916   case $gcc_cv_cloog_type in
5917     "PPL Legacy")
5918       clooginc="${clooginc}"
5919       clooglibs="${clooglibs} -lcloog"
5920       cloog_org=no
5921       ;;
5922     "ISL")
5923       clooginc="${clooginc} ${_cloogorginc}"
5924       clooglibs="${clooglibs} -lcloog-isl -lisl"
5925       cloog_org=yes
5926       ;;
5927     "PPL")
5928       clooginc="${clooginc} ${_cloogorginc}"
5929       clooglibs="${clooglibs} -lcloog-ppl"
5930       cloog_org=yes
5931       ;;
5932     *)
5933       clooglibs=
5934       clooginc=
5935       cloog_org=
5936       ;;
5937   esac
5938
5939   LIBS=$_cloog_saved_LIBS
5940   CFLAGS=$_cloog_saved_CFLAGS
5941   CPPFLAGS=$_cloog_saved_CPPFLAGS
5942   LDFLAGS=$_cloog_saved_LDFLAGS
5943
5944
5945
5946
5947
5948   if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5949     _cloog_saved_CFLAGS=$CFLAGS
5950     _cloog_saved_LDFLAGS=$LDFLAGS
5951
5952     CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5953     LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5954
5955     if test "${cloog_org}" = yes ; then
5956       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5957 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
5958 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5959   $as_echo_n "(cached) " >&6
5960 else
5961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h.  */
5963 #include "cloog/cloog.h"
5964 int
5965 main ()
5966 {
5967 #if CLOOG_VERSION_MAJOR != 0 \
5968     || CLOOG_VERSION_MINOR != 16 \
5969     || CLOOG_VERSION_REVISION < 1
5970     choke me
5971    #endif
5972   ;
5973   return 0;
5974 }
5975 _ACEOF
5976 if ac_fn_c_try_compile "$LINENO"; then :
5977   gcc_cv_cloog_ct_0_14_0=yes
5978 else
5979   gcc_cv_cloog_ct_0_14_0=no
5980 fi
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5984 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5985     elif test "${cloog_org}" = no ; then
5986       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5987 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5988 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5989   $as_echo_n "(cached) " >&6
5990 else
5991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h.  */
5993 #include "cloog/cloog.h"
5994 int
5995 main ()
5996 {
5997 #if CLOOG_VERSION_MAJOR != 0 \
5998     || CLOOG_VERSION_MINOR != 15 \
5999     || CLOOG_VERSION_REVISION < 5
6000     choke me
6001    #endif
6002   ;
6003   return 0;
6004 }
6005 _ACEOF
6006 if ac_fn_c_try_compile "$LINENO"; then :
6007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h.  */
6009 #include "cloog/cloog.h"
6010 int
6011 main ()
6012 {
6013 #if CLOOG_VERSION_MAJOR != 0 \
6014     || CLOOG_VERSION_MINOR != 15 \
6015     || CLOOG_VERSION_REVISION < 9
6016     choke me
6017    #endif
6018   ;
6019   return 0;
6020 }
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023   gcc_cv_cloog_ct_0_15_5=yes
6024 else
6025   gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6026 fi
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 else
6029   gcc_cv_cloog_ct_0_15_5=no
6030 fi
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 fi
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6034 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6035     fi
6036
6037     CFLAGS=$_cloog_saved_CFLAGS
6038     LDFLAGS=$_cloog_saved_LDFLAGS
6039   fi
6040
6041
6042
6043
6044
6045
6046
6047   if test "x${with_cloog}" = xno; then
6048     graphite_requested=no
6049   elif test "x${with_cloog}" != x \
6050     || test "x${with_cloog_include}" != x \
6051     || test "x${with_cloog_lib}" != x ; then
6052     graphite_requested=yes
6053   else
6054     graphite_requested=no
6055   fi
6056
6057
6058
6059   if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6060     || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6061     || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6062     clooglibs=
6063     clooginc=
6064   fi
6065
6066   if test "${graphite_requested}" = yes \
6067     && test "x${clooglibs}" = x \
6068     && test "x${clooginc}" = x ; then
6069
6070     as_fn_error "Unable to find a usable CLooG.  See config.log for details." "$LINENO" 5
6071   fi
6072
6073
6074 fi
6075
6076 # Check for LTO support.
6077 # Check whether --enable-lto was given.
6078 if test "${enable_lto+set}" = set; then :
6079   enableval=$enable_lto; enable_lto=$enableval
6080 else
6081   enable_lto=yes; default_enable_lto=yes
6082 fi
6083
6084
6085
6086
6087
6088 target_elf=no
6089 case $target in
6090   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6091   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6092   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6093     target_elf=no
6094     ;;
6095   *)
6096     target_elf=yes
6097     ;;
6098 esac
6099
6100 if test $target_elf = yes; then :
6101   # ELF platforms build the lto-plugin always.
6102   build_lto_plugin=yes
6103
6104 else
6105   if test x"$default_enable_lto" = x"yes" ; then
6106     case $target in
6107       *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6108       # On other non-ELF platforms, LTO has yet to be validated.
6109       *) enable_lto=no ;;
6110     esac
6111   else
6112   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6113   # It would also be nice to check the binutils support, but we don't
6114   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6115   # warn during gcc/ subconfigure; unless you're bootstrapping with
6116   # -flto it won't be needed until after installation anyway.
6117     case $target in
6118       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6119       *) if test x"$enable_lto" = x"yes"; then
6120         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6121         fi
6122       ;;
6123     esac
6124   fi
6125   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6126   # Build it unless LTO was explicitly disabled.
6127   case $target in
6128     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6129     *) ;;
6130   esac
6131
6132 fi
6133
6134
6135
6136 # By default, C is the only stage 1 language.
6137 stage1_languages=,c,
6138
6139 # Target libraries that we bootstrap.
6140 bootstrap_target_libs=,target-libgcc,
6141
6142 # Figure out what language subdirectories are present.
6143 # Look if the user specified --enable-languages="..."; if not, use
6144 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6145 # go away some day.
6146 # NB:  embedded tabs in this IF block -- do not untabify
6147 if test -d ${srcdir}/gcc; then
6148   if test x"${enable_languages+set}" != xset; then
6149     if test x"${LANGUAGES+set}" = xset; then
6150       enable_languages="${LANGUAGES}"
6151         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6152     else
6153       enable_languages=all
6154     fi
6155   else
6156     if test x"${enable_languages}" = x ||
6157        test x"${enable_languages}" = xyes;
6158        then
6159       echo configure.in: --enable-languages needs at least one language argument 1>&2
6160       exit 1
6161     fi
6162   fi
6163   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6164
6165   # 'f95' is the old name for the 'fortran' language. We issue a warning
6166   # and make the substitution.
6167   case ,${enable_languages}, in
6168     *,f95,*)
6169       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6170       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6171       ;;
6172   esac
6173
6174   # If bootstrapping, then using --enable-build-with-cxx or
6175   # --enable-build-poststage1-with-cxx requires enabling C++.
6176   case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6177     *,c++,*:*:*) ;;
6178     *:*,yes,*:yes)
6179       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6180         enable_languages="${enable_languages},c++"
6181       else
6182         as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6183       fi
6184       ;;
6185   esac
6186
6187   # First scan to see if an enabled language requires some other language.
6188   # We assume that a given config-lang.in will list all the language
6189   # front ends it requires, even if some are required indirectly.
6190   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6191     case ${lang_frag} in
6192       ..) ;;
6193       # The odd quoting in the next line works around
6194       # an apparent bug in bash 1.12 on linux.
6195       ${srcdir}/gcc/[*]/config-lang.in) ;;
6196       *)
6197         # From the config-lang.in, get $language, $lang_requires, and
6198         # $lang_requires_boot_languages.
6199         language=
6200         lang_requires=
6201         lang_requires_boot_languages=
6202         . ${lang_frag}
6203         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6204           case ,${enable_languages}, in
6205             *,$other,*) ;;
6206             *,all,*) ;;
6207             *,$language,*)
6208               echo " \`$other' language required by \`$language'; enabling" 1>&2
6209               enable_languages="${enable_languages},${other}"
6210               ;;
6211           esac
6212         done
6213         for other in ${lang_requires_boot_languages} ; do
6214           if test "$other" != "c"; then
6215             case ,${enable_stage1_languages}, in
6216               *,$other,*) ;;
6217               *,all,*) ;;
6218               *)
6219                 case ,${enable_languages}, in
6220                   *,$language,*)
6221                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6222                     enable_stage1_languages="$enable_stage1_languages,${other}"
6223                     ;;
6224                 esac
6225                 ;;
6226             esac
6227           fi
6228         done
6229         ;;
6230     esac
6231   done
6232
6233   new_enable_languages=,c,
6234
6235   # If LTO is enabled, add the LTO front end.
6236   extra_host_libiberty_configure_flags=
6237   if test "$enable_lto" = "yes" ; then
6238     case ,${enable_languages}, in
6239       *,lto,*) ;;
6240       *) enable_languages="${enable_languages},lto" ;;
6241     esac
6242     if test "${build_lto_plugin}" = "yes" ; then
6243       configdirs="$configdirs lto-plugin"
6244       extra_host_libiberty_configure_flags=--enable-shared
6245     fi
6246   fi
6247
6248
6249   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6250   potential_languages=,c,
6251
6252   enabled_target_libs=
6253   disabled_target_libs=
6254
6255   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6256     case ${lang_frag} in
6257       ..) ;;
6258       # The odd quoting in the next line works around
6259       # an apparent bug in bash 1.12 on linux.
6260       ${srcdir}/gcc/[*]/config-lang.in) ;;
6261       *)
6262         # From the config-lang.in, get $language, $target_libs,
6263         # $lang_dirs, $boot_language, and $build_by_default
6264         language=
6265         target_libs=
6266         lang_dirs=
6267         subdir_requires=
6268         boot_language=no
6269         build_by_default=yes
6270         . ${lang_frag}
6271         if test x${language} = x; then
6272           echo "${lang_frag} doesn't set \$language." 1>&2
6273           exit 1
6274         fi
6275
6276         if test "$language" = "c++"; then
6277           if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6278              || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6279             boot_language=yes
6280           fi
6281         fi
6282
6283         case ,${enable_languages}, in
6284           *,${language},*)
6285             # Language was explicitly selected; include it.
6286             add_this_lang=yes
6287             ;;
6288           *,all,*)
6289             # 'all' was selected, select it if it is a default language
6290             add_this_lang=${build_by_default}
6291             ;;
6292           *)
6293             add_this_lang=no
6294             ;;
6295         esac
6296
6297         # Disable languages that need other directories if these aren't available.
6298         for i in $subdir_requires; do
6299           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6300           case ,${enable_languages}, in
6301             *,${language},*)
6302               # Specifically requested language; tell them.
6303               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6304               ;;
6305             *)
6306               # Silently disable.
6307               add_this_lang=unsupported
6308               ;;
6309           esac
6310         done
6311
6312         # Disable Ada if no preexisting GNAT is available.
6313         case ,${enable_languages},:${language}:${have_gnat} in
6314           *,${language},*:ada:no)
6315             # Specifically requested language; tell them.
6316             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6317             ;;
6318           *:ada:no)
6319             # Silently disable.
6320             add_this_lang=unsupported
6321             ;;
6322         esac
6323
6324         # Disable a language that is unsupported by the target.
6325         case " $unsupported_languages " in
6326           *" $language "*)
6327             add_this_lang=unsupported
6328             ;;
6329         esac
6330
6331         case $add_this_lang in
6332           unsupported)
6333             # Remove language-dependent dirs.
6334             disabled_target_libs="$disabled_target_libs $target_libs"
6335             noconfigdirs="$noconfigdirs $lang_dirs"
6336             ;;
6337           no)
6338             # Remove language-dependent dirs; still show language as supported.
6339             disabled_target_libs="$disabled_target_libs $target_libs"
6340             noconfigdirs="$noconfigdirs $lang_dirs"
6341             potential_languages="${potential_languages}${language},"
6342             ;;
6343           yes)
6344             new_enable_languages="${new_enable_languages}${language},"
6345             potential_languages="${potential_languages}${language},"
6346             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6347             enabled_target_libs="$enabled_target_libs $target_libs"
6348             case "${boot_language}:,$enable_stage1_languages," in
6349               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6350                 # Add to (comma-separated) list of stage 1 languages.
6351                 case ",$stage1_languages," in
6352                   *,$language,* | ,yes, | ,all,) ;;
6353                   *) stage1_languages="${stage1_languages}${language}," ;;
6354                 esac
6355                 # We need to bootstrap any supporting libraries.
6356                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6357                 ;;
6358             esac
6359             ;;
6360         esac
6361         ;;
6362     esac
6363   done
6364
6365   # Add target libraries which are only needed for disabled languages
6366   # to noconfigdirs.
6367   if test -n "$disabled_target_libs"; then
6368     for dir in $disabled_target_libs; do
6369       case " $enabled_target_libs " in
6370       *" ${dir} "*) ;;
6371       *) noconfigdirs="$noconfigdirs $dir" ;;
6372       esac
6373     done
6374   fi
6375
6376   # Check whether --enable-stage1-languages was given.
6377 if test "${enable_stage1_languages+set}" = set; then :
6378   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6379     ,no,|,,)
6380       # Set it to something that will have no effect in the loop below
6381       enable_stage1_languages=c ;;
6382     ,yes,)
6383       enable_stage1_languages=`echo $new_enable_languages | \
6384         sed -e "s/^,//" -e "s/,$//" ` ;;
6385     *,all,*)
6386       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6387         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6388   esac
6389
6390   # Add "good" languages from enable_stage1_languages to stage1_languages,
6391   # while "bad" languages go in missing_languages.  Leave no duplicates.
6392   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6393     case $potential_languages in
6394       *,$i,*)
6395         case $stage1_languages in
6396           *,$i,*) ;;
6397           *) stage1_languages="$stage1_languages$i," ;;
6398         esac ;;
6399       *)
6400         case $missing_languages in
6401           *,$i,*) ;;
6402           *) missing_languages="$missing_languages$i," ;;
6403         esac ;;
6404      esac
6405   done
6406 fi
6407
6408
6409   # Remove leading/trailing commas that were added for simplicity
6410   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6411   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6412   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6413   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6414
6415   if test "x$missing_languages" != x; then
6416     as_fn_error "
6417 The following requested languages could not be built: ${missing_languages}
6418 Supported languages are: ${potential_languages}" "$LINENO" 5
6419   fi
6420   if test "x$new_enable_languages" != "x$enable_languages"; then
6421     echo The following languages will be built: ${new_enable_languages}
6422     enable_languages="$new_enable_languages"
6423   fi
6424
6425
6426   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6427 fi
6428
6429 # Handle --disable-<component> generically.
6430 for dir in $configdirs $build_configdirs $target_configdirs ; do
6431   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6432   varname=`echo $dirname | sed -e s/+/_/g`
6433   if eval test x\${enable_${varname}} "=" xno ; then
6434     noconfigdirs="$noconfigdirs $dir"
6435   fi
6436 done
6437
6438 # Check for Boehm's garbage collector
6439 # Check whether --enable-objc-gc was given.
6440 if test "${enable_objc_gc+set}" = set; then :
6441   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6442   *,objc,*:*:yes:*target-boehm-gc*)
6443     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6444     ;;
6445 esac
6446 fi
6447
6448
6449 # Make sure we only build Boehm's garbage collector if required.
6450 case ,${enable_languages},:${enable_objc_gc} in
6451   *,objc,*:yes)
6452     # Keep target-boehm-gc if requested for Objective-C.
6453     ;;
6454   *)
6455     # Otherwise remove target-boehm-gc depending on target-libjava.
6456     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6457       noconfigdirs="$noconfigdirs target-boehm-gc"
6458     fi
6459     ;;
6460 esac
6461
6462 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6463 # $build_configdirs and $target_configdirs.
6464 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6465
6466 notsupp=""
6467 for dir in . $skipdirs $noconfigdirs ; do
6468   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6469   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6470     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6471     if test -r $srcdir/$dirname/configure ; then
6472       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6473         true
6474       else
6475         notsupp="$notsupp $dir"
6476       fi
6477     fi
6478   fi
6479   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6480     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6481     if test -r $srcdir/$dirname/configure ; then
6482       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6483         true
6484       else
6485         notsupp="$notsupp $dir"
6486       fi
6487     fi
6488   fi
6489   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6490     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6491     if test -r $srcdir/$dirname/configure ; then
6492       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6493         true
6494       else
6495         notsupp="$notsupp $dir"
6496       fi
6497     fi
6498   fi
6499 done
6500
6501 # Quietly strip out all directories which aren't configurable in this tree.
6502 # This relies on all configurable subdirectories being autoconfiscated, which
6503 # is now the case.
6504 build_configdirs_all="$build_configdirs"
6505 build_configdirs=
6506 for i in ${build_configdirs_all} ; do
6507   j=`echo $i | sed -e s/build-//g`
6508   if test -f ${srcdir}/$j/configure ; then
6509     build_configdirs="${build_configdirs} $i"
6510   fi
6511 done
6512
6513 configdirs_all="$configdirs"
6514 configdirs=
6515 for i in ${configdirs_all} ; do
6516   if test -f ${srcdir}/$i/configure ; then
6517     configdirs="${configdirs} $i"
6518   fi
6519 done
6520
6521 target_configdirs_all="$target_configdirs"
6522 target_configdirs=
6523 for i in ${target_configdirs_all} ; do
6524   j=`echo $i | sed -e s/target-//g`
6525   if test -f ${srcdir}/$j/configure ; then
6526     target_configdirs="${target_configdirs} $i"
6527   fi
6528 done
6529
6530 # Produce a warning message for the subdirs we can't configure.
6531 # This isn't especially interesting in the Cygnus tree, but in the individual
6532 # FSF releases, it's important to let people know when their machine isn't
6533 # supported by the one or two programs in a package.
6534
6535 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6536   # If $appdirs is non-empty, at least one of those directories must still
6537   # be configured, or we error out.  (E.g., if the gas release supports a
6538   # specified target in some subdirs but not the gas subdir, we shouldn't
6539   # pretend that all is well.)
6540   if test -n "$appdirs" ; then
6541     for dir in $appdirs ; do
6542       if test -r $dir/Makefile.in ; then
6543         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6544           appdirs=""
6545           break
6546         fi
6547         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6548           appdirs=""
6549           break
6550         fi
6551       fi
6552     done
6553     if test -n "$appdirs" ; then
6554       echo "*** This configuration is not supported by this package." 1>&2
6555       exit 1
6556     fi
6557   fi
6558   # Okay, some application will build, or we don't care to check.  Still
6559   # notify of subdirs not getting built.
6560   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6561   echo "    ${notsupp}" 1>&2
6562   echo "    (Any other directories should still work fine.)" 1>&2
6563 fi
6564
6565 case "$host" in
6566   *msdosdjgpp*)
6567     enable_gdbtk=no ;;
6568 esac
6569
6570 # To find our prefix, in gcc_cv_tool_prefix.
6571
6572 # The user is always right.
6573 if test "${PATH_SEPARATOR+set}" != set; then
6574   echo "#! /bin/sh" >conf$$.sh
6575   echo  "exit 0"   >>conf$$.sh
6576   chmod +x conf$$.sh
6577   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6578     PATH_SEPARATOR=';'
6579   else
6580     PATH_SEPARATOR=:
6581   fi
6582   rm -f conf$$.sh
6583 fi
6584
6585
6586
6587 if test "x$exec_prefix" = xNONE; then
6588         if test "x$prefix" = xNONE; then
6589                 gcc_cv_tool_prefix=$ac_default_prefix
6590         else
6591                 gcc_cv_tool_prefix=$prefix
6592         fi
6593 else
6594         gcc_cv_tool_prefix=$exec_prefix
6595 fi
6596
6597 # If there is no compiler in the tree, use the PATH only.  In any
6598 # case, if there is no compiler in the tree nobody should use
6599 # AS_FOR_TARGET and LD_FOR_TARGET.
6600 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6601     gcc_version=`cat $srcdir/gcc/BASE-VER`
6602     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6603     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6604     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6605     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6606     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6607     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6608 else
6609     gcc_cv_tool_dirs=
6610 fi
6611
6612 if test x$build = x$target && test -n "$md_exec_prefix"; then
6613         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6614 fi
6615
6616
6617
6618 copy_dirs=
6619
6620
6621 # Check whether --with-build-sysroot was given.
6622 if test "${with_build_sysroot+set}" = set; then :
6623   withval=$with_build_sysroot; if test x"$withval" != x ; then
6624      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6625    fi
6626 else
6627   SYSROOT_CFLAGS_FOR_TARGET=
6628 fi
6629
6630
6631
6632
6633 # Check whether --with-debug-prefix-map was given.
6634 if test "${with_debug_prefix_map+set}" = set; then :
6635   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6636      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6637      for debug_map in $withval; do
6638        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6639      done
6640    fi
6641 else
6642   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6643 fi
6644
6645
6646
6647 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6648 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6649 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6650 # We want to ensure that TARGET libraries (which we know are built with
6651 # gcc) are built with "-O2 -g", so include those options when setting
6652 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6653 if test "x$CFLAGS_FOR_TARGET" = x; then
6654   CFLAGS_FOR_TARGET=$CFLAGS
6655   case " $CFLAGS " in
6656     *" -O2 "*) ;;
6657     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6658   esac
6659   case " $CFLAGS " in
6660     *" -g "* | *" -g3 "*) ;;
6661     *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6662   esac
6663 fi
6664
6665
6666 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6667   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6668   case " $CXXFLAGS " in
6669     *" -O2 "*) ;;
6670     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6671   esac
6672   case " $CXXFLAGS " in
6673     *" -g "* | *" -g3 "*) ;;
6674     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6675   esac
6676 fi
6677
6678
6679
6680
6681 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6682 # the named directory are copied to $(tooldir)/sys-include.
6683 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6684   if test x${is_cross_compiler} = xno ; then
6685     echo 1>&2 '***' --with-headers is only supported when cross compiling
6686     exit 1
6687   fi
6688   if test x"${with_headers}" != xyes ; then
6689     x=${gcc_cv_tool_prefix}
6690     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6691   fi
6692 fi
6693
6694 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6695 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6696 # are permitted.
6697 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6698   if test x${is_cross_compiler} = xno ; then
6699     echo 1>&2 '***' --with-libs is only supported when cross compiling
6700     exit 1
6701   fi
6702   if test x"${with_libs}" != xyes ; then
6703     # Copy the libraries in reverse order, so that files in the first named
6704     # library override files in subsequent libraries.
6705     x=${gcc_cv_tool_prefix}
6706     for l in ${with_libs}; do
6707       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6708     done
6709   fi
6710 fi
6711
6712 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6713 #
6714 # This is done by determining whether or not the appropriate directory
6715 # is available, and by checking whether or not specific configurations
6716 # have requested that this magic not happen.
6717 #
6718 # The command line options always override the explicit settings in
6719 # configure.in, and the settings in configure.in override this magic.
6720 #
6721 # If the default for a toolchain is to use GNU as and ld, and you don't
6722 # want to do that, then you should use the --without-gnu-as and
6723 # --without-gnu-ld options for the configure script.  Similarly, if
6724 # the default is to use the included zlib and you don't want to do that,
6725 # you should use the --with-system-zlib option for the configure script.
6726
6727 if test x${use_gnu_as} = x &&
6728    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6729   with_gnu_as=yes
6730   extra_host_args="$extra_host_args --with-gnu-as"
6731 fi
6732
6733 if test x${use_gnu_ld} = x &&
6734    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6735   with_gnu_ld=yes
6736   extra_host_args="$extra_host_args --with-gnu-ld"
6737 fi
6738
6739 if test x${use_included_zlib} = x &&
6740    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6741   :
6742 else
6743   with_system_zlib=yes
6744   extra_host_args="$extra_host_args --with-system-zlib"
6745 fi
6746
6747 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6748 # can detect this case.
6749
6750 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6751   with_newlib=yes
6752   extra_host_args="$extra_host_args --with-newlib"
6753 fi
6754
6755 # Handle ${copy_dirs}
6756 set fnord ${copy_dirs}
6757 shift
6758 while test $# != 0 ; do
6759   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6760     :
6761   else
6762     echo Copying $1 to $2
6763
6764     # Use the install script to create the directory and all required
6765     # parent directories.
6766     if test -d $2 ; then
6767       :
6768     else
6769       echo >config.temp
6770       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6771     fi
6772
6773     # Copy the directory, assuming we have tar.
6774     # FIXME: Should we use B in the second tar?  Not all systems support it.
6775     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6776
6777     # It is the responsibility of the user to correctly adjust all
6778     # symlinks.  If somebody can figure out how to handle them correctly
6779     # here, feel free to add the code.
6780
6781     echo $1 > $2/COPIED
6782   fi
6783   shift; shift
6784 done
6785
6786 # Determine a target-dependent exec_prefix that the installed
6787 # gcc will search in.  Keep this list sorted by triplet, with
6788 # the *-*-osname triplets last.
6789 md_exec_prefix=
6790 case "${target}" in
6791   i[34567]86-pc-msdosdjgpp*)
6792     md_exec_prefix=/dev/env/DJDIR/bin
6793     ;;
6794   *-*-hpux* | \
6795   *-*-nto-qnx* | \
6796   *-*-solaris2*)
6797     md_exec_prefix=/usr/ccs/bin
6798     ;;
6799 esac
6800
6801 extra_arflags_for_target=
6802 extra_nmflags_for_target=
6803 extra_ranlibflags_for_target=
6804 target_makefile_frag=/dev/null
6805 case "${target}" in
6806   spu-*-*)
6807     target_makefile_frag="config/mt-spu"
6808     ;;
6809   mips*-sde-elf*)
6810     target_makefile_frag="config/mt-sde"
6811     ;;
6812   mipsisa*-*-elfoabi*)
6813     target_makefile_frag="config/mt-mips-elfoabi"
6814     ;;
6815   mips*-*-*linux* | mips*-*-gnu*)
6816     target_makefile_frag="config/mt-mips-gnu"
6817     ;;
6818   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6819     target_makefile_frag="config/mt-gnu"
6820     ;;
6821   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6822     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6823     # commands to handle both 32-bit and 64-bit objects.  These flags are
6824     # harmless if we're using GNU nm or ar.
6825     extra_arflags_for_target=" -X32_64"
6826     extra_nmflags_for_target=" -B -X32_64"
6827     ;;
6828   *-*-darwin[3-9]*)
6829     # ranlib before Darwin10 requires the -c flag to look at common symbols.
6830     extra_ranlibflags_for_target=" -c"
6831     ;;
6832 esac
6833
6834 alphaieee_frag=/dev/null
6835 case $target in
6836   alpha*-*-*)
6837     # This just makes sure to use the -mieee option to build target libs.
6838     # This should probably be set individually by each library.
6839     alphaieee_frag="config/mt-alphaieee"
6840     ;;
6841 esac
6842
6843 # If --enable-target-optspace always use -Os instead of -O2 to build
6844 # the target libraries, similarly if it is not specified, use -Os
6845 # on selected platforms.
6846 ospace_frag=/dev/null
6847 case "${enable_target_optspace}:${target}" in
6848   yes:*)
6849     ospace_frag="config/mt-ospace"
6850     ;;
6851   :d30v-*)
6852     ospace_frag="config/mt-d30v"
6853     ;;
6854   :m32r-* | :d10v-* | :fr30-*)
6855     ospace_frag="config/mt-ospace"
6856     ;;
6857   no:* | :*)
6858     ;;
6859   *)
6860     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6861     ;;
6862 esac
6863
6864 # Default to using --with-stabs for certain targets.
6865 if test x${with_stabs} = x ; then
6866   case "${target}" in
6867   mips*-*-irix[56]*)
6868     ;;
6869   mips*-*-* | alpha*-*-osf*)
6870     with_stabs=yes;
6871     extra_host_args="${extra_host_args} --with-stabs"
6872     ;;
6873   esac
6874 fi
6875
6876 # Some systems (e.g., one of the i386-aix systems the gas testers are
6877 # using) don't handle "\$" correctly, so don't use it here.
6878 tooldir='${exec_prefix}'/${target_noncanonical}
6879 build_tooldir=${tooldir}
6880
6881 # Create a .gdbinit file which runs the one in srcdir
6882 # and tells GDB to look there for source files.
6883
6884 if test -r ${srcdir}/.gdbinit ; then
6885   case ${srcdir} in
6886     .) ;;
6887     *) cat > ./.gdbinit <<EOF
6888 # ${NO_EDIT}
6889 dir ${srcdir}
6890 dir .
6891 source ${srcdir}/.gdbinit
6892 EOF
6893     ;;
6894   esac
6895 fi
6896
6897 # Make sure that the compiler is able to generate an executable.  If it
6898 # can't, we are probably in trouble.  We don't care whether we can run the
6899 # executable--we might be using a cross compiler--we only care whether it
6900 # can be created.  At this point the main configure script has set CC.
6901 we_are_ok=no
6902 echo "int main () { return 0; }" > conftest.c
6903 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6904 if test $? = 0 ; then
6905   if test -s conftest || test -s conftest.exe ; then
6906     we_are_ok=yes
6907   fi
6908 fi
6909 case $we_are_ok in
6910   no)
6911     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6912     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6913     rm -f conftest*
6914     exit 1
6915     ;;
6916 esac
6917 rm -f conftest*
6918
6919 # Decide which environment variable is used to find dynamic libraries.
6920 case "${host}" in
6921   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6922   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6923   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6924   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6925 esac
6926
6927 # On systems where the dynamic library environment variable is PATH,
6928 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6929 # built executables to PATH.
6930 if test "$RPATH_ENVVAR" = PATH; then
6931   GCC_SHLIB_SUBDIR=/shlib
6932 else
6933   GCC_SHLIB_SUBDIR=
6934 fi
6935
6936 # Record target_configdirs and the configure arguments for target and
6937 # build configuration in Makefile.
6938 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6939 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6940
6941 # If we are building libgomp, bootstrap it.
6942 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6943   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6944 fi
6945
6946 # Determine whether gdb needs tk/tcl or not.
6947 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6948 # and in that case we want gdb to be built without tk.  Ugh!
6949 # In fact I believe gdb is the *only* package directly dependent on tk,
6950 # so we should be able to put the 'maybe's in unconditionally and
6951 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
6952 # 100% sure that that's safe though.
6953
6954 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6955 case "$enable_gdbtk" in
6956   no)
6957     GDB_TK="" ;;
6958   yes)
6959     GDB_TK="${gdb_tk}" ;;
6960   *)
6961     # Only add the dependency on gdbtk when GDBtk is part of the gdb
6962     # distro.  Eventually someone will fix this and move Insight, nee
6963     # gdbtk to a separate directory.
6964     if test -d ${srcdir}/gdb/gdbtk ; then
6965       GDB_TK="${gdb_tk}"
6966     else
6967       GDB_TK=""
6968     fi
6969     ;;
6970 esac
6971 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6972 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6973
6974 # Strip out unwanted targets.
6975
6976 # While at that, we remove Makefiles if we were started for recursive
6977 # configuration, so that the top-level Makefile reconfigures them,
6978 # like we used to do when configure itself was recursive.
6979
6980 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
6981 # but now we're fixing up the Makefile ourselves with the additional
6982 # commands passed to AC_CONFIG_FILES.  Use separate variables
6983 # extrasub-{build,host,target} not because there is any reason to split
6984 # the substitutions up that way, but only to remain below the limit of
6985 # 99 commands in a script, for HP-UX sed.
6986 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6987
6988 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6989   yes:yes:*\ gold\ *:*,c++,*) ;;
6990   yes:yes:*\ gold\ *:*)
6991     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6992     ;;
6993 esac
6994
6995 # Adjust the toplevel makefile according to whether bootstrap was selected.
6996 case $enable_bootstrap in
6997   yes)
6998     bootstrap_suffix=bootstrap
6999     BUILD_CONFIG=bootstrap-debug
7000     ;;
7001   no)
7002     bootstrap_suffix=no-bootstrap
7003     BUILD_CONFIG=
7004     ;;
7005 esac
7006
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7008 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7009
7010
7011 # Check whether --with-build-config was given.
7012 if test "${with_build_config+set}" = set; then :
7013   withval=$with_build_config; case $with_build_config in
7014    yes) with_build_config= ;;
7015    no) with_build_config= BUILD_CONFIG= ;;
7016    esac
7017 fi
7018
7019
7020 if test "x${with_build_config}" != x; then
7021   BUILD_CONFIG=$with_build_config
7022 else
7023   case $BUILD_CONFIG in
7024   bootstrap-debug)
7025     if echo "int f (void) { return 0; }" > conftest.c &&
7026        ${CC} -c conftest.c &&
7027        mv conftest.o conftest.o.g0 &&
7028        ${CC} -c -g conftest.c &&
7029        mv conftest.o conftest.o.g &&
7030        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7031       :
7032     else
7033       BUILD_CONFIG=
7034     fi
7035     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7036     ;;
7037   esac
7038 fi
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7040 $as_echo "$BUILD_CONFIG" >&6; }
7041
7042
7043 extrasub_build=
7044 for module in ${build_configdirs} ; do
7045   if test -z "${no_recursion}" \
7046      && test -f ${build_subdir}/${module}/Makefile; then
7047     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7048     rm -f ${build_subdir}/${module}/Makefile
7049   fi
7050   extrasub_build="$extrasub_build
7051 /^@if build-$module\$/d
7052 /^@endif build-$module\$/d
7053 /^@if build-$module-$bootstrap_suffix\$/d
7054 /^@endif build-$module-$bootstrap_suffix\$/d"
7055 done
7056 extrasub_host=
7057 for module in ${configdirs} ; do
7058   if test -z "${no_recursion}"; then
7059     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7060       if test -f ${file}; then
7061         echo 1>&2 "*** removing ${file} to force reconfigure"
7062         rm -f ${file}
7063       fi
7064     done
7065   fi
7066   extrasub_host="$extrasub_host
7067 /^@if $module\$/d
7068 /^@endif $module\$/d
7069 /^@if $module-$bootstrap_suffix\$/d
7070 /^@endif $module-$bootstrap_suffix\$/d"
7071 done
7072 extrasub_target=
7073 for module in ${target_configdirs} ; do
7074   if test -z "${no_recursion}" \
7075      && test -f ${target_subdir}/${module}/Makefile; then
7076     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7077     rm -f ${target_subdir}/${module}/Makefile
7078   fi
7079
7080   # We only bootstrap target libraries listed in bootstrap_target_libs.
7081   case $bootstrap_target_libs in
7082     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7083     *) target_bootstrap_suffix=no-bootstrap ;;
7084   esac
7085
7086   extrasub_target="$extrasub_target
7087 /^@if target-$module\$/d
7088 /^@endif target-$module\$/d
7089 /^@if target-$module-$target_bootstrap_suffix\$/d
7090 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7091 done
7092
7093 # Do the final fixup along with target modules.
7094 extrasub_target="$extrasub_target
7095 /^@if /,/^@endif /d"
7096
7097 # Create the serialization dependencies.  This uses a temporary file.
7098
7099 # Check whether --enable-serial-configure was given.
7100 if test "${enable_serial_configure+set}" = set; then :
7101   enableval=$enable_serial_configure;
7102 fi
7103
7104
7105 case ${enable_serial_configure} in
7106   yes)
7107     enable_serial_build_configure=yes
7108     enable_serial_host_configure=yes
7109     enable_serial_target_configure=yes
7110     ;;
7111 esac
7112
7113 # These force 'configure's to be done one at a time, to avoid problems
7114 # with contention over a shared config.cache.
7115 rm -f serdep.tmp
7116 echo '# serdep.tmp' > serdep.tmp
7117 olditem=
7118 test "x${enable_serial_build_configure}" = xyes &&
7119 for item in ${build_configdirs} ; do
7120   case ${olditem} in
7121     "") ;;
7122     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7123   esac
7124   olditem=${item}
7125 done
7126 olditem=
7127 test "x${enable_serial_host_configure}" = xyes &&
7128 for item in ${configdirs} ; do
7129   case ${olditem} in
7130     "") ;;
7131     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7132   esac
7133   olditem=${item}
7134 done
7135 olditem=
7136 test "x${enable_serial_target_configure}" = xyes &&
7137 for item in ${target_configdirs} ; do
7138   case ${olditem} in
7139     "") ;;
7140     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7141   esac
7142   olditem=${item}
7143 done
7144 serialization_dependencies=serdep.tmp
7145
7146
7147 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7148 # target, nonopt, and variable assignments.  These are the ones we
7149 # might not want to pass down to subconfigures.  The exception being
7150 # --cache-file=/dev/null, which is used to turn off the use of cache
7151 # files altogether, and which should be passed on to subconfigures.
7152 # Also strip program-prefix, program-suffix, and program-transform-name,
7153 # so that we can pass down a consistent program-transform-name.
7154 baseargs=
7155 tbaseargs=
7156 keep_next=no
7157 skip_next=no
7158 eval "set -- $ac_configure_args"
7159 for ac_arg
7160 do
7161   if test X"$skip_next" = X"yes"; then
7162     skip_next=no
7163     continue
7164   fi
7165   if test X"$keep_next" = X"yes"; then
7166     case $ac_arg in
7167       *\'*)
7168         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7169     esac
7170     baseargs="$baseargs '$ac_arg'"
7171     tbaseargs="$tbaseargs '$ac_arg'"
7172     keep_next=no
7173     continue
7174   fi
7175
7176   # Handle separated arguments.  Based on the logic generated by
7177   # autoconf 2.59.
7178   case $ac_arg in
7179     *=* | --config-cache | -C | -disable-* | --disable-* \
7180       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7181       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7182       | -with-* | --with-* | -without-* | --without-* | --x)
7183       separate_arg=no
7184       ;;
7185     -*)
7186       separate_arg=yes
7187       ;;
7188     *)
7189       separate_arg=no
7190       ;;
7191   esac
7192
7193   skip_targ=no
7194   case $ac_arg in
7195
7196   --with-* | --without-*)
7197     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7198
7199     case $libopt in
7200     *[-_]include)
7201       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7202       ;;
7203     *[-_]lib)
7204       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7205       ;;
7206     *)
7207       lib=$libopt
7208       ;;
7209     esac
7210
7211
7212     case $lib in
7213     mpc | mpfr | gmp | ppl | cloog)
7214       # If we're processing --with-$lib, --with-$lib-include or
7215       # --with-$lib-lib, for one of the libs above, and target is
7216       # different from host, don't pass the current argument to any
7217       # target library's configure.
7218       if test x$is_cross_compiler = xyes; then
7219         skip_targ=yes
7220       fi
7221       ;;
7222     esac
7223     ;;
7224   esac
7225
7226   case "$ac_arg" in
7227     --cache-file=/dev/null | \
7228     -cache-file=/dev/null )
7229       # Handled here to avoid the test to skip args below.
7230       baseargs="$baseargs '$ac_arg'"
7231       tbaseargs="$tbaseargs '$ac_arg'"
7232       # Assert: $separate_arg should always be no.
7233       keep_next=$separate_arg
7234       ;;
7235     --no*)
7236       continue
7237       ;;
7238     --c* | \
7239     --sr* | \
7240     --ho* | \
7241     --bu* | \
7242     --t* | \
7243     --program-* | \
7244     -cache_file* | \
7245     -srcdir* | \
7246     -host* | \
7247     -build* | \
7248     -target* | \
7249     -program-prefix* | \
7250     -program-suffix* | \
7251     -program-transform-name* )
7252       skip_next=$separate_arg
7253       continue
7254       ;;
7255     -*)
7256       # An option.  Add it.
7257       case $ac_arg in
7258         *\'*)
7259           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7260       esac
7261       baseargs="$baseargs '$ac_arg'"
7262       if test X"$skip_targ" = Xno; then
7263         tbaseargs="$tbaseargs '$ac_arg'"
7264       fi
7265       keep_next=$separate_arg
7266       ;;
7267     *)
7268       # Either a variable assignment, or a nonopt (triplet).  Don't
7269       # pass it down; let the Makefile handle this.
7270       continue
7271       ;;
7272   esac
7273 done
7274 # Remove the initial space we just introduced and, as these will be
7275 # expanded by make, quote '$'.
7276 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7277
7278 # Add in --program-transform-name, after --program-prefix and
7279 # --program-suffix have been applied to it.  Autoconf has already
7280 # doubled dollar signs and backslashes in program_transform_name; we want
7281 # the backslashes un-doubled, and then the entire thing wrapped in single
7282 # quotes, because this will be expanded first by make and then by the shell.
7283 # Also, because we want to override the logic in subdir configure scripts to
7284 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7285 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7286 ${program_transform_name}
7287 EOF_SED
7288 gcc_transform_name=`cat conftestsed.out`
7289 rm -f conftestsed.out
7290 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7291 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7292 if test "$silent" = yes; then
7293   baseargs="$baseargs --silent"
7294   tbaseargs="$tbaseargs --silent"
7295 fi
7296 baseargs="$baseargs --disable-option-checking"
7297 tbaseargs="$tbaseargs --disable-option-checking"
7298
7299 # Record and document user additions to sub configure arguments.
7300
7301
7302
7303
7304 # For the build-side libraries, we just need to pretend we're native,
7305 # and not use the same cache file.  Multilibs are neither needed nor
7306 # desired.
7307 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7308
7309 # For host modules, accept cache file option, or specification as blank.
7310 case "${cache_file}" in
7311 "") # empty
7312   cache_file_option="" ;;
7313 /* | [A-Za-z]:[\\/]* ) # absolute path
7314   cache_file_option="--cache-file=${cache_file}" ;;
7315 *) # relative path
7316   cache_file_option="--cache-file=../${cache_file}" ;;
7317 esac
7318
7319 # Host dirs don't like to share a cache file either, horribly enough.
7320 # This seems to be due to autoconf 2.5x stupidity.
7321 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7322
7323 target_configargs="$target_configargs ${tbaseargs}"
7324
7325 # Passing a --with-cross-host argument lets the target libraries know
7326 # whether they are being built with a cross-compiler or being built
7327 # native.  However, it would be better to use other mechanisms to make the
7328 # sorts of decisions they want to make on this basis.  Please consider
7329 # this option to be deprecated.  FIXME.
7330 if test x${is_cross_compiler} = xyes ; then
7331   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7332 fi
7333
7334 # Default to --enable-multilib.
7335 if test x${enable_multilib} = x ; then
7336   target_configargs="--enable-multilib ${target_configargs}"
7337 fi
7338
7339 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7340 # changed from the earlier setting of with_newlib.
7341 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7342   target_configargs="--with-newlib ${target_configargs}"
7343 fi
7344
7345 # Different target subdirs use different values of certain variables
7346 # (notably CXX).  Worse, multilibs use *lots* of different values.
7347 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7348 # it doesn't automatically accept command-line overrides of them.
7349 # This means it's not safe for target subdirs to share a cache file,
7350 # which is disgusting, but there you have it.  Hopefully this can be
7351 # fixed in future.  It's still worthwhile to use a cache file for each
7352 # directory.  I think.
7353
7354 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7355 # We need to pass --target, as newer autoconf's requires consistency
7356 # for target_alias and gcc doesn't manage it consistently.
7357 target_configargs="--cache-file=./config.cache ${target_configargs}"
7358
7359 FLAGS_FOR_TARGET=
7360 case " $target_configdirs " in
7361  *" newlib "*)
7362   case " $target_configargs " in
7363   *" --with-newlib "*)
7364    case "$target" in
7365     *-cygwin*)
7366       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'
7367       ;;
7368    esac
7369
7370    # If we're not building GCC, don't discard standard headers.
7371    if test -d ${srcdir}/gcc; then
7372      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7373
7374      if test "${build}" != "${host}"; then
7375        # On Canadian crosses, CC_FOR_TARGET will have already been set
7376        # by `configure', so we won't have an opportunity to add -Bgcc/
7377        # to it.  This is right: we don't want to search that directory
7378        # for binaries, but we want the header files in there, so add
7379        # them explicitly.
7380        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7381
7382        # Someone might think of using the pre-installed headers on
7383        # Canadian crosses, in case the installed compiler is not fully
7384        # compatible with the compiler being built.  In this case, it
7385        # would be better to flag an error than risking having
7386        # incompatible object files being constructed.  We can't
7387        # guarantee that an error will be flagged, but let's hope the
7388        # compiler will do it, when presented with incompatible header
7389        # files.
7390      fi
7391    fi
7392
7393    case "${target}-${is_cross_compiler}" in
7394    i[3456789]86-*-linux*-no)
7395       # Here host == target, so we don't need to build gcc,
7396       # so we don't want to discard standard headers.
7397       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7398       ;;
7399    *)
7400       # If we're building newlib, use its generic headers last, but search
7401       # for any libc-related directories first (so make it the last -B
7402       # switch).
7403       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7404
7405       # If we're building libgloss, find the startup file, simulator library
7406       # and linker script.
7407       case " $target_configdirs " in
7408         *" libgloss "*)
7409         # Look for startup file, simulator library and maybe linker script.
7410         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7411         # Look for libnosys.a in case the target needs it.
7412         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7413         # Most targets have the linker script in the source directory.
7414         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7415         ;;
7416       esac
7417       ;;
7418    esac
7419    ;;
7420   esac
7421   ;;
7422 esac
7423
7424 case "$target" in
7425   x86_64-*mingw* | *-w64-mingw*)
7426   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7427   # however, use a symlink named 'mingw' in ${prefix} .
7428     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7429     ;;
7430   *-mingw*)
7431   # MinGW can't be handled as Cygwin above since it does not use newlib.
7432     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'
7433     ;;
7434 esac
7435
7436 # Allow the user to override the flags for
7437 # our build compiler if desired.
7438 if test x"${build}" = x"${host}" ; then
7439   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7440   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7441   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7442 fi
7443
7444 # On Canadian crosses, we'll be searching the right directories for
7445 # the previously-installed cross compiler, so don't bother to add
7446 # flags for directories within the install tree of the compiler
7447 # being built; programs in there won't even run.
7448 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7449   # Search for pre-installed headers if nothing else fits.
7450   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7451 fi
7452
7453 if test "x${use_gnu_ld}" = x &&
7454    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7455   # Arrange for us to find uninstalled linker scripts.
7456   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7457 fi
7458
7459 # Search for other target-specific linker scripts and such.
7460 case "${target}" in
7461   mep*)
7462     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7463     ;;
7464 esac
7465
7466 # Makefile fragments.
7467 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7468 do
7469   eval fragval=\$$frag
7470   if test $fragval != /dev/null; then
7471     eval $frag=${srcdir}/$fragval
7472   fi
7473 done
7474
7475
7476
7477
7478
7479 # Miscellanea: directories, flags, etc.
7480
7481
7482
7483
7484
7485
7486
7487
7488 # Build module lists & subconfigure args.
7489
7490
7491
7492 # Host module lists & subconfigure args.
7493
7494
7495
7496
7497 # Target module lists & subconfigure args.
7498
7499
7500
7501 # Build tools.
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519 # Generate default definitions for YACC, M4, LEX and other programs that run
7520 # on the build machine.  These are used if the Makefile can't locate these
7521 # programs in objdir.
7522 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7523
7524 for ac_prog in 'bison -y' byacc yacc
7525 do
7526   # Extract the first word of "$ac_prog", so it can be a program name with args.
7527 set dummy $ac_prog; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if test "${ac_cv_prog_YACC+set}" = set; then :
7531   $as_echo_n "(cached) " >&6
7532 else
7533   if test -n "$YACC"; then
7534   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539   IFS=$as_save_IFS
7540   test -z "$as_dir" && as_dir=.
7541     for ac_exec_ext in '' $ac_executable_extensions; do
7542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7543     ac_cv_prog_YACC="$ac_prog"
7544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545     break 2
7546   fi
7547 done
7548   done
7549 IFS=$as_save_IFS
7550
7551 fi
7552 fi
7553 YACC=$ac_cv_prog_YACC
7554 if test -n "$YACC"; then
7555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7556 $as_echo "$YACC" >&6; }
7557 else
7558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7560 fi
7561
7562
7563   test -n "$YACC" && break
7564 done
7565 test -n "$YACC" || YACC="$MISSING bison -y"
7566
7567 case " $build_configdirs " in
7568   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7569 esac
7570
7571 for ac_prog in bison
7572 do
7573   # Extract the first word of "$ac_prog", so it can be a program name with args.
7574 set dummy $ac_prog; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if test "${ac_cv_prog_BISON+set}" = set; then :
7578   $as_echo_n "(cached) " >&6
7579 else
7580   if test -n "$BISON"; then
7581   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586   IFS=$as_save_IFS
7587   test -z "$as_dir" && as_dir=.
7588     for ac_exec_ext in '' $ac_executable_extensions; do
7589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590     ac_cv_prog_BISON="$ac_prog"
7591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592     break 2
7593   fi
7594 done
7595   done
7596 IFS=$as_save_IFS
7597
7598 fi
7599 fi
7600 BISON=$ac_cv_prog_BISON
7601 if test -n "$BISON"; then
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7603 $as_echo "$BISON" >&6; }
7604 else
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7607 fi
7608
7609
7610   test -n "$BISON" && break
7611 done
7612 test -n "$BISON" || BISON="$MISSING bison"
7613
7614 case " $build_configdirs " in
7615   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7616 esac
7617
7618 for ac_prog in gm4 gnum4 m4
7619 do
7620   # Extract the first word of "$ac_prog", so it can be a program name with args.
7621 set dummy $ac_prog; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if test "${ac_cv_prog_M4+set}" = set; then :
7625   $as_echo_n "(cached) " >&6
7626 else
7627   if test -n "$M4"; then
7628   ac_cv_prog_M4="$M4" # Let the user override the test.
7629 else
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633   IFS=$as_save_IFS
7634   test -z "$as_dir" && as_dir=.
7635     for ac_exec_ext in '' $ac_executable_extensions; do
7636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7637     ac_cv_prog_M4="$ac_prog"
7638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639     break 2
7640   fi
7641 done
7642   done
7643 IFS=$as_save_IFS
7644
7645 fi
7646 fi
7647 M4=$ac_cv_prog_M4
7648 if test -n "$M4"; then
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7650 $as_echo "$M4" >&6; }
7651 else
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7654 fi
7655
7656
7657   test -n "$M4" && break
7658 done
7659 test -n "$M4" || M4="$MISSING m4"
7660
7661 case " $build_configdirs " in
7662   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7663 esac
7664
7665 for ac_prog in flex lex
7666 do
7667   # Extract the first word of "$ac_prog", so it can be a program name with args.
7668 set dummy $ac_prog; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if test "${ac_cv_prog_LEX+set}" = set; then :
7672   $as_echo_n "(cached) " >&6
7673 else
7674   if test -n "$LEX"; then
7675   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680   IFS=$as_save_IFS
7681   test -z "$as_dir" && as_dir=.
7682     for ac_exec_ext in '' $ac_executable_extensions; do
7683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684     ac_cv_prog_LEX="$ac_prog"
7685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686     break 2
7687   fi
7688 done
7689   done
7690 IFS=$as_save_IFS
7691
7692 fi
7693 fi
7694 LEX=$ac_cv_prog_LEX
7695 if test -n "$LEX"; then
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7697 $as_echo "$LEX" >&6; }
7698 else
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 fi
7702
7703
7704   test -n "$LEX" && break
7705 done
7706 test -n "$LEX" || LEX="$MISSING flex"
7707
7708 case " $build_configdirs " in
7709   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7710   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7711 esac
7712
7713 for ac_prog in flex
7714 do
7715   # Extract the first word of "$ac_prog", so it can be a program name with args.
7716 set dummy $ac_prog; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if test "${ac_cv_prog_FLEX+set}" = set; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   if test -n "$FLEX"; then
7723   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730     for ac_exec_ext in '' $ac_executable_extensions; do
7731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732     ac_cv_prog_FLEX="$ac_prog"
7733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737   done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 FLEX=$ac_cv_prog_FLEX
7743 if test -n "$FLEX"; then
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7745 $as_echo "$FLEX" >&6; }
7746 else
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751
7752   test -n "$FLEX" && break
7753 done
7754 test -n "$FLEX" || FLEX="$MISSING flex"
7755
7756 case " $build_configdirs " in
7757   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7758 esac
7759
7760 for ac_prog in makeinfo
7761 do
7762   # Extract the first word of "$ac_prog", so it can be a program name with args.
7763 set dummy $ac_prog; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   if test -n "$MAKEINFO"; then
7770   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777     for ac_exec_ext in '' $ac_executable_extensions; do
7778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779     ac_cv_prog_MAKEINFO="$ac_prog"
7780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784   done
7785 IFS=$as_save_IFS
7786
7787 fi
7788 fi
7789 MAKEINFO=$ac_cv_prog_MAKEINFO
7790 if test -n "$MAKEINFO"; then
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7792 $as_echo "$MAKEINFO" >&6; }
7793 else
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798
7799   test -n "$MAKEINFO" && break
7800 done
7801 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7802
7803 case " $build_configdirs " in
7804   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7805   *)
7806
7807     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7808     # higher, else we use the "missing" dummy.
7809     if ${MAKEINFO} --version \
7810        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7811       :
7812     else
7813       MAKEINFO="$MISSING makeinfo"
7814     fi
7815     ;;
7816
7817 esac
7818
7819 # FIXME: expect and dejagnu may become build tools?
7820
7821 for ac_prog in expect
7822 do
7823   # Extract the first word of "$ac_prog", so it can be a program name with args.
7824 set dummy $ac_prog; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7828   $as_echo_n "(cached) " >&6
7829 else
7830   if test -n "$EXPECT"; then
7831   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836   IFS=$as_save_IFS
7837   test -z "$as_dir" && as_dir=.
7838     for ac_exec_ext in '' $ac_executable_extensions; do
7839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840     ac_cv_prog_EXPECT="$ac_prog"
7841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842     break 2
7843   fi
7844 done
7845   done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 EXPECT=$ac_cv_prog_EXPECT
7851 if test -n "$EXPECT"; then
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7853 $as_echo "$EXPECT" >&6; }
7854 else
7855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 fi
7858
7859
7860   test -n "$EXPECT" && break
7861 done
7862 test -n "$EXPECT" || EXPECT="expect"
7863
7864 case " $configdirs " in
7865   *" expect "*)
7866     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7867     ;;
7868 esac
7869
7870 for ac_prog in runtest
7871 do
7872   # Extract the first word of "$ac_prog", so it can be a program name with args.
7873 set dummy $ac_prog; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7877   $as_echo_n "(cached) " >&6
7878 else
7879   if test -n "$RUNTEST"; then
7880   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885   IFS=$as_save_IFS
7886   test -z "$as_dir" && as_dir=.
7887     for ac_exec_ext in '' $ac_executable_extensions; do
7888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7889     ac_cv_prog_RUNTEST="$ac_prog"
7890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891     break 2
7892   fi
7893 done
7894   done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 RUNTEST=$ac_cv_prog_RUNTEST
7900 if test -n "$RUNTEST"; then
7901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7902 $as_echo "$RUNTEST" >&6; }
7903 else
7904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907
7908
7909   test -n "$RUNTEST" && break
7910 done
7911 test -n "$RUNTEST" || RUNTEST="runtest"
7912
7913 case " $configdirs " in
7914   *" dejagnu "*)
7915     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7916     ;;
7917 esac
7918
7919
7920 # Host tools.
7921 ncn_tool_prefix=
7922 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7923 ncn_target_tool_prefix=
7924 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7925
7926
7927
7928 if test -n "$AR"; then
7929   ac_cv_prog_AR=$AR
7930 elif test -n "$ac_cv_prog_AR"; then
7931   AR=$ac_cv_prog_AR
7932 fi
7933
7934 if test -n "$ac_cv_prog_AR"; then
7935   for ncn_progname in ar; do
7936     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7937 set dummy ${ncn_progname}; ac_word=$2
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 $as_echo_n "checking for $ac_word... " >&6; }
7940 if test "${ac_cv_prog_AR+set}" = set; then :
7941   $as_echo_n "(cached) " >&6
7942 else
7943   if test -n "$AR"; then
7944   ac_cv_prog_AR="$AR" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949   IFS=$as_save_IFS
7950   test -z "$as_dir" && as_dir=.
7951     for ac_exec_ext in '' $ac_executable_extensions; do
7952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7953     ac_cv_prog_AR="${ncn_progname}"
7954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955     break 2
7956   fi
7957 done
7958   done
7959 IFS=$as_save_IFS
7960
7961 fi
7962 fi
7963 AR=$ac_cv_prog_AR
7964 if test -n "$AR"; then
7965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7966 $as_echo "$AR" >&6; }
7967 else
7968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7970 fi
7971
7972
7973   done
7974 fi
7975
7976 for ncn_progname in ar; do
7977   if test -n "$ncn_tool_prefix"; then
7978     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7979 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_AR+set}" = set; then :
7983   $as_echo_n "(cached) " >&6
7984 else
7985   if test -n "$AR"; then
7986   ac_cv_prog_AR="$AR" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991   IFS=$as_save_IFS
7992   test -z "$as_dir" && as_dir=.
7993     for ac_exec_ext in '' $ac_executable_extensions; do
7994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997     break 2
7998   fi
7999 done
8000   done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 AR=$ac_cv_prog_AR
8006 if test -n "$AR"; then
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8008 $as_echo "$AR" >&6; }
8009 else
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014
8015   fi
8016   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8017     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8018 set dummy ${ncn_progname}; ac_word=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if test "${ac_cv_prog_AR+set}" = set; then :
8022   $as_echo_n "(cached) " >&6
8023 else
8024   if test -n "$AR"; then
8025   ac_cv_prog_AR="$AR" # Let the user override the test.
8026 else
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8029 do
8030   IFS=$as_save_IFS
8031   test -z "$as_dir" && as_dir=.
8032     for ac_exec_ext in '' $ac_executable_extensions; do
8033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8034     ac_cv_prog_AR="${ncn_progname}"
8035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036     break 2
8037   fi
8038 done
8039   done
8040 IFS=$as_save_IFS
8041
8042 fi
8043 fi
8044 AR=$ac_cv_prog_AR
8045 if test -n "$AR"; then
8046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8047 $as_echo "$AR" >&6; }
8048 else
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8051 fi
8052
8053
8054   fi
8055   test -n "$ac_cv_prog_AR" && break
8056 done
8057
8058 if test -z "$ac_cv_prog_AR" ; then
8059   set dummy ar
8060   if test $build = $host ; then
8061     AR="$2"
8062   else
8063     AR="${ncn_tool_prefix}$2"
8064   fi
8065 fi
8066
8067
8068
8069 if test -n "$AS"; then
8070   ac_cv_prog_AS=$AS
8071 elif test -n "$ac_cv_prog_AS"; then
8072   AS=$ac_cv_prog_AS
8073 fi
8074
8075 if test -n "$ac_cv_prog_AS"; then
8076   for ncn_progname in as; do
8077     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8078 set dummy ${ncn_progname}; ac_word=$2
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 $as_echo_n "checking for $ac_word... " >&6; }
8081 if test "${ac_cv_prog_AS+set}" = set; then :
8082   $as_echo_n "(cached) " >&6
8083 else
8084   if test -n "$AS"; then
8085   ac_cv_prog_AS="$AS" # Let the user override the test.
8086 else
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8089 do
8090   IFS=$as_save_IFS
8091   test -z "$as_dir" && as_dir=.
8092     for ac_exec_ext in '' $ac_executable_extensions; do
8093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8094     ac_cv_prog_AS="${ncn_progname}"
8095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096     break 2
8097   fi
8098 done
8099   done
8100 IFS=$as_save_IFS
8101
8102 fi
8103 fi
8104 AS=$ac_cv_prog_AS
8105 if test -n "$AS"; then
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8107 $as_echo "$AS" >&6; }
8108 else
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8111 fi
8112
8113
8114   done
8115 fi
8116
8117 for ncn_progname in as; do
8118   if test -n "$ncn_tool_prefix"; then
8119     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8120 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if test "${ac_cv_prog_AS+set}" = set; then :
8124   $as_echo_n "(cached) " >&6
8125 else
8126   if test -n "$AS"; then
8127   ac_cv_prog_AS="$AS" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132   IFS=$as_save_IFS
8133   test -z "$as_dir" && as_dir=.
8134     for ac_exec_ext in '' $ac_executable_extensions; do
8135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138     break 2
8139   fi
8140 done
8141   done
8142 IFS=$as_save_IFS
8143
8144 fi
8145 fi
8146 AS=$ac_cv_prog_AS
8147 if test -n "$AS"; then
8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8149 $as_echo "$AS" >&6; }
8150 else
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154
8155
8156   fi
8157   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8158     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8159 set dummy ${ncn_progname}; ac_word=$2
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 $as_echo_n "checking for $ac_word... " >&6; }
8162 if test "${ac_cv_prog_AS+set}" = set; then :
8163   $as_echo_n "(cached) " >&6
8164 else
8165   if test -n "$AS"; then
8166   ac_cv_prog_AS="$AS" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8170 do
8171   IFS=$as_save_IFS
8172   test -z "$as_dir" && as_dir=.
8173     for ac_exec_ext in '' $ac_executable_extensions; do
8174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8175     ac_cv_prog_AS="${ncn_progname}"
8176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177     break 2
8178   fi
8179 done
8180   done
8181 IFS=$as_save_IFS
8182
8183 fi
8184 fi
8185 AS=$ac_cv_prog_AS
8186 if test -n "$AS"; then
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8188 $as_echo "$AS" >&6; }
8189 else
8190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8192 fi
8193
8194
8195   fi
8196   test -n "$ac_cv_prog_AS" && break
8197 done
8198
8199 if test -z "$ac_cv_prog_AS" ; then
8200   set dummy as
8201   if test $build = $host ; then
8202     AS="$2"
8203   else
8204     AS="${ncn_tool_prefix}$2"
8205   fi
8206 fi
8207
8208
8209
8210 if test -n "$DLLTOOL"; then
8211   ac_cv_prog_DLLTOOL=$DLLTOOL
8212 elif test -n "$ac_cv_prog_DLLTOOL"; then
8213   DLLTOOL=$ac_cv_prog_DLLTOOL
8214 fi
8215
8216 if test -n "$ac_cv_prog_DLLTOOL"; then
8217   for ncn_progname in dlltool; do
8218     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8219 set dummy ${ncn_progname}; ac_word=$2
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221 $as_echo_n "checking for $ac_word... " >&6; }
8222 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8223   $as_echo_n "(cached) " >&6
8224 else
8225   if test -n "$DLLTOOL"; then
8226   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8227 else
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231   IFS=$as_save_IFS
8232   test -z "$as_dir" && as_dir=.
8233     for ac_exec_ext in '' $ac_executable_extensions; do
8234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8235     ac_cv_prog_DLLTOOL="${ncn_progname}"
8236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237     break 2
8238   fi
8239 done
8240   done
8241 IFS=$as_save_IFS
8242
8243 fi
8244 fi
8245 DLLTOOL=$ac_cv_prog_DLLTOOL
8246 if test -n "$DLLTOOL"; then
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8248 $as_echo "$DLLTOOL" >&6; }
8249 else
8250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8252 fi
8253
8254
8255   done
8256 fi
8257
8258 for ncn_progname in dlltool; do
8259   if test -n "$ncn_tool_prefix"; then
8260     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8261 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8265   $as_echo_n "(cached) " >&6
8266 else
8267   if test -n "$DLLTOOL"; then
8268   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273   IFS=$as_save_IFS
8274   test -z "$as_dir" && as_dir=.
8275     for ac_exec_ext in '' $ac_executable_extensions; do
8276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279     break 2
8280   fi
8281 done
8282   done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 DLLTOOL=$ac_cv_prog_DLLTOOL
8288 if test -n "$DLLTOOL"; then
8289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8290 $as_echo "$DLLTOOL" >&6; }
8291 else
8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 fi
8295
8296
8297   fi
8298   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8299     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8300 set dummy ${ncn_progname}; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   if test -n "$DLLTOOL"; then
8307   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312   IFS=$as_save_IFS
8313   test -z "$as_dir" && as_dir=.
8314     for ac_exec_ext in '' $ac_executable_extensions; do
8315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8316     ac_cv_prog_DLLTOOL="${ncn_progname}"
8317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318     break 2
8319   fi
8320 done
8321   done
8322 IFS=$as_save_IFS
8323
8324 fi
8325 fi
8326 DLLTOOL=$ac_cv_prog_DLLTOOL
8327 if test -n "$DLLTOOL"; then
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8329 $as_echo "$DLLTOOL" >&6; }
8330 else
8331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333 fi
8334
8335
8336   fi
8337   test -n "$ac_cv_prog_DLLTOOL" && break
8338 done
8339
8340 if test -z "$ac_cv_prog_DLLTOOL" ; then
8341   set dummy dlltool
8342   if test $build = $host ; then
8343     DLLTOOL="$2"
8344   else
8345     DLLTOOL="${ncn_tool_prefix}$2"
8346   fi
8347 fi
8348
8349
8350
8351 if test -n "$LD"; then
8352   ac_cv_prog_LD=$LD
8353 elif test -n "$ac_cv_prog_LD"; then
8354   LD=$ac_cv_prog_LD
8355 fi
8356
8357 if test -n "$ac_cv_prog_LD"; then
8358   for ncn_progname in ld; do
8359     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8360 set dummy ${ncn_progname}; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if test "${ac_cv_prog_LD+set}" = set; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   if test -n "$LD"; then
8367   ac_cv_prog_LD="$LD" # Let the user override the test.
8368 else
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 for as_dir in $PATH
8371 do
8372   IFS=$as_save_IFS
8373   test -z "$as_dir" && as_dir=.
8374     for ac_exec_ext in '' $ac_executable_extensions; do
8375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376     ac_cv_prog_LD="${ncn_progname}"
8377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378     break 2
8379   fi
8380 done
8381   done
8382 IFS=$as_save_IFS
8383
8384 fi
8385 fi
8386 LD=$ac_cv_prog_LD
8387 if test -n "$LD"; then
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8389 $as_echo "$LD" >&6; }
8390 else
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394
8395
8396   done
8397 fi
8398
8399 for ncn_progname in ld; do
8400   if test -n "$ncn_tool_prefix"; then
8401     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8402 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if test "${ac_cv_prog_LD+set}" = set; then :
8406   $as_echo_n "(cached) " >&6
8407 else
8408   if test -n "$LD"; then
8409   ac_cv_prog_LD="$LD" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414   IFS=$as_save_IFS
8415   test -z "$as_dir" && as_dir=.
8416     for ac_exec_ext in '' $ac_executable_extensions; do
8417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420     break 2
8421   fi
8422 done
8423   done
8424 IFS=$as_save_IFS
8425
8426 fi
8427 fi
8428 LD=$ac_cv_prog_LD
8429 if test -n "$LD"; then
8430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8431 $as_echo "$LD" >&6; }
8432 else
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8435 fi
8436
8437
8438   fi
8439   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8440     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8441 set dummy ${ncn_progname}; ac_word=$2
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 $as_echo_n "checking for $ac_word... " >&6; }
8444 if test "${ac_cv_prog_LD+set}" = set; then :
8445   $as_echo_n "(cached) " >&6
8446 else
8447   if test -n "$LD"; then
8448   ac_cv_prog_LD="$LD" # Let the user override the test.
8449 else
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 for as_dir in $PATH
8452 do
8453   IFS=$as_save_IFS
8454   test -z "$as_dir" && as_dir=.
8455     for ac_exec_ext in '' $ac_executable_extensions; do
8456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8457     ac_cv_prog_LD="${ncn_progname}"
8458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459     break 2
8460   fi
8461 done
8462   done
8463 IFS=$as_save_IFS
8464
8465 fi
8466 fi
8467 LD=$ac_cv_prog_LD
8468 if test -n "$LD"; then
8469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8470 $as_echo "$LD" >&6; }
8471 else
8472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8474 fi
8475
8476
8477   fi
8478   test -n "$ac_cv_prog_LD" && break
8479 done
8480
8481 if test -z "$ac_cv_prog_LD" ; then
8482   set dummy ld
8483   if test $build = $host ; then
8484     LD="$2"
8485   else
8486     LD="${ncn_tool_prefix}$2"
8487   fi
8488 fi
8489
8490
8491
8492 if test -n "$LIPO"; then
8493   ac_cv_prog_LIPO=$LIPO
8494 elif test -n "$ac_cv_prog_LIPO"; then
8495   LIPO=$ac_cv_prog_LIPO
8496 fi
8497
8498 if test -n "$ac_cv_prog_LIPO"; then
8499   for ncn_progname in lipo; do
8500     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8501 set dummy ${ncn_progname}; ac_word=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if test "${ac_cv_prog_LIPO+set}" = set; then :
8505   $as_echo_n "(cached) " >&6
8506 else
8507   if test -n "$LIPO"; then
8508   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8509 else
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8512 do
8513   IFS=$as_save_IFS
8514   test -z "$as_dir" && as_dir=.
8515     for ac_exec_ext in '' $ac_executable_extensions; do
8516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8517     ac_cv_prog_LIPO="${ncn_progname}"
8518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519     break 2
8520   fi
8521 done
8522   done
8523 IFS=$as_save_IFS
8524
8525 fi
8526 fi
8527 LIPO=$ac_cv_prog_LIPO
8528 if test -n "$LIPO"; then
8529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8530 $as_echo "$LIPO" >&6; }
8531 else
8532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8534 fi
8535
8536
8537   done
8538 fi
8539
8540 for ncn_progname in lipo; do
8541   if test -n "$ncn_tool_prefix"; then
8542     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8543 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 $as_echo_n "checking for $ac_word... " >&6; }
8546 if test "${ac_cv_prog_LIPO+set}" = set; then :
8547   $as_echo_n "(cached) " >&6
8548 else
8549   if test -n "$LIPO"; then
8550   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8551 else
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8554 do
8555   IFS=$as_save_IFS
8556   test -z "$as_dir" && as_dir=.
8557     for ac_exec_ext in '' $ac_executable_extensions; do
8558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8559     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561     break 2
8562   fi
8563 done
8564   done
8565 IFS=$as_save_IFS
8566
8567 fi
8568 fi
8569 LIPO=$ac_cv_prog_LIPO
8570 if test -n "$LIPO"; then
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8572 $as_echo "$LIPO" >&6; }
8573 else
8574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8576 fi
8577
8578
8579   fi
8580   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8581     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8582 set dummy ${ncn_progname}; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if test "${ac_cv_prog_LIPO+set}" = set; then :
8586   $as_echo_n "(cached) " >&6
8587 else
8588   if test -n "$LIPO"; then
8589   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594   IFS=$as_save_IFS
8595   test -z "$as_dir" && as_dir=.
8596     for ac_exec_ext in '' $ac_executable_extensions; do
8597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8598     ac_cv_prog_LIPO="${ncn_progname}"
8599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600     break 2
8601   fi
8602 done
8603   done
8604 IFS=$as_save_IFS
8605
8606 fi
8607 fi
8608 LIPO=$ac_cv_prog_LIPO
8609 if test -n "$LIPO"; then
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8611 $as_echo "$LIPO" >&6; }
8612 else
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 fi
8616
8617
8618   fi
8619   test -n "$ac_cv_prog_LIPO" && break
8620 done
8621
8622 if test -z "$ac_cv_prog_LIPO" ; then
8623   set dummy lipo
8624   if test $build = $host ; then
8625     LIPO="$2"
8626   else
8627     LIPO="${ncn_tool_prefix}$2"
8628   fi
8629 fi
8630
8631
8632
8633 if test -n "$NM"; then
8634   ac_cv_prog_NM=$NM
8635 elif test -n "$ac_cv_prog_NM"; then
8636   NM=$ac_cv_prog_NM
8637 fi
8638
8639 if test -n "$ac_cv_prog_NM"; then
8640   for ncn_progname in nm; do
8641     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8642 set dummy ${ncn_progname}; ac_word=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if test "${ac_cv_prog_NM+set}" = set; then :
8646   $as_echo_n "(cached) " >&6
8647 else
8648   if test -n "$NM"; then
8649   ac_cv_prog_NM="$NM" # Let the user override the test.
8650 else
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 for as_dir in $PATH
8653 do
8654   IFS=$as_save_IFS
8655   test -z "$as_dir" && as_dir=.
8656     for ac_exec_ext in '' $ac_executable_extensions; do
8657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658     ac_cv_prog_NM="${ncn_progname}"
8659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660     break 2
8661   fi
8662 done
8663   done
8664 IFS=$as_save_IFS
8665
8666 fi
8667 fi
8668 NM=$ac_cv_prog_NM
8669 if test -n "$NM"; then
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8671 $as_echo "$NM" >&6; }
8672 else
8673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674 $as_echo "no" >&6; }
8675 fi
8676
8677
8678   done
8679 fi
8680
8681 for ncn_progname in nm; do
8682   if test -n "$ncn_tool_prefix"; then
8683     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8684 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686 $as_echo_n "checking for $ac_word... " >&6; }
8687 if test "${ac_cv_prog_NM+set}" = set; then :
8688   $as_echo_n "(cached) " >&6
8689 else
8690   if test -n "$NM"; then
8691   ac_cv_prog_NM="$NM" # Let the user override the test.
8692 else
8693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694 for as_dir in $PATH
8695 do
8696   IFS=$as_save_IFS
8697   test -z "$as_dir" && as_dir=.
8698     for ac_exec_ext in '' $ac_executable_extensions; do
8699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8700     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702     break 2
8703   fi
8704 done
8705   done
8706 IFS=$as_save_IFS
8707
8708 fi
8709 fi
8710 NM=$ac_cv_prog_NM
8711 if test -n "$NM"; then
8712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8713 $as_echo "$NM" >&6; }
8714 else
8715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716 $as_echo "no" >&6; }
8717 fi
8718
8719
8720   fi
8721   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8722     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8723 set dummy ${ncn_progname}; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if test "${ac_cv_prog_NM+set}" = set; then :
8727   $as_echo_n "(cached) " >&6
8728 else
8729   if test -n "$NM"; then
8730   ac_cv_prog_NM="$NM" # Let the user override the test.
8731 else
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8734 do
8735   IFS=$as_save_IFS
8736   test -z "$as_dir" && as_dir=.
8737     for ac_exec_ext in '' $ac_executable_extensions; do
8738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8739     ac_cv_prog_NM="${ncn_progname}"
8740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741     break 2
8742   fi
8743 done
8744   done
8745 IFS=$as_save_IFS
8746
8747 fi
8748 fi
8749 NM=$ac_cv_prog_NM
8750 if test -n "$NM"; then
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8752 $as_echo "$NM" >&6; }
8753 else
8754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8756 fi
8757
8758
8759   fi
8760   test -n "$ac_cv_prog_NM" && break
8761 done
8762
8763 if test -z "$ac_cv_prog_NM" ; then
8764   set dummy nm
8765   if test $build = $host ; then
8766     NM="$2"
8767   else
8768     NM="${ncn_tool_prefix}$2"
8769   fi
8770 fi
8771
8772
8773
8774 if test -n "$RANLIB"; then
8775   ac_cv_prog_RANLIB=$RANLIB
8776 elif test -n "$ac_cv_prog_RANLIB"; then
8777   RANLIB=$ac_cv_prog_RANLIB
8778 fi
8779
8780 if test -n "$ac_cv_prog_RANLIB"; then
8781   for ncn_progname in ranlib; do
8782     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8783 set dummy ${ncn_progname}; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   if test -n "$RANLIB"; then
8790   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8794 do
8795   IFS=$as_save_IFS
8796   test -z "$as_dir" && as_dir=.
8797     for ac_exec_ext in '' $ac_executable_extensions; do
8798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8799     ac_cv_prog_RANLIB="${ncn_progname}"
8800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801     break 2
8802   fi
8803 done
8804   done
8805 IFS=$as_save_IFS
8806
8807 fi
8808 fi
8809 RANLIB=$ac_cv_prog_RANLIB
8810 if test -n "$RANLIB"; then
8811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8812 $as_echo "$RANLIB" >&6; }
8813 else
8814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8816 fi
8817
8818
8819   done
8820 fi
8821
8822 for ncn_progname in ranlib; do
8823   if test -n "$ncn_tool_prefix"; then
8824     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8825 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8829   $as_echo_n "(cached) " >&6
8830 else
8831   if test -n "$RANLIB"; then
8832   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8833 else
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in $PATH
8836 do
8837   IFS=$as_save_IFS
8838   test -z "$as_dir" && as_dir=.
8839     for ac_exec_ext in '' $ac_executable_extensions; do
8840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8841     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843     break 2
8844   fi
8845 done
8846   done
8847 IFS=$as_save_IFS
8848
8849 fi
8850 fi
8851 RANLIB=$ac_cv_prog_RANLIB
8852 if test -n "$RANLIB"; then
8853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8854 $as_echo "$RANLIB" >&6; }
8855 else
8856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8858 fi
8859
8860
8861   fi
8862   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8863     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8864 set dummy ${ncn_progname}; ac_word=$2
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 $as_echo_n "checking for $ac_word... " >&6; }
8867 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8868   $as_echo_n "(cached) " >&6
8869 else
8870   if test -n "$RANLIB"; then
8871   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8872 else
8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 for as_dir in $PATH
8875 do
8876   IFS=$as_save_IFS
8877   test -z "$as_dir" && as_dir=.
8878     for ac_exec_ext in '' $ac_executable_extensions; do
8879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8880     ac_cv_prog_RANLIB="${ncn_progname}"
8881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8882     break 2
8883   fi
8884 done
8885   done
8886 IFS=$as_save_IFS
8887
8888 fi
8889 fi
8890 RANLIB=$ac_cv_prog_RANLIB
8891 if test -n "$RANLIB"; then
8892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8893 $as_echo "$RANLIB" >&6; }
8894 else
8895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8897 fi
8898
8899
8900   fi
8901   test -n "$ac_cv_prog_RANLIB" && break
8902 done
8903
8904 if test -z "$ac_cv_prog_RANLIB" ; then
8905   RANLIB="true"
8906 fi
8907
8908
8909
8910 if test -n "$STRIP"; then
8911   ac_cv_prog_STRIP=$STRIP
8912 elif test -n "$ac_cv_prog_STRIP"; then
8913   STRIP=$ac_cv_prog_STRIP
8914 fi
8915
8916 if test -n "$ac_cv_prog_STRIP"; then
8917   for ncn_progname in strip; do
8918     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8919 set dummy ${ncn_progname}; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if test "${ac_cv_prog_STRIP+set}" = set; then :
8923   $as_echo_n "(cached) " >&6
8924 else
8925   if test -n "$STRIP"; then
8926   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8927 else
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 for as_dir in $PATH
8930 do
8931   IFS=$as_save_IFS
8932   test -z "$as_dir" && as_dir=.
8933     for ac_exec_ext in '' $ac_executable_extensions; do
8934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8935     ac_cv_prog_STRIP="${ncn_progname}"
8936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937     break 2
8938   fi
8939 done
8940   done
8941 IFS=$as_save_IFS
8942
8943 fi
8944 fi
8945 STRIP=$ac_cv_prog_STRIP
8946 if test -n "$STRIP"; then
8947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8948 $as_echo "$STRIP" >&6; }
8949 else
8950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8952 fi
8953
8954
8955   done
8956 fi
8957
8958 for ncn_progname in strip; do
8959   if test -n "$ncn_tool_prefix"; then
8960     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8961 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if test "${ac_cv_prog_STRIP+set}" = set; then :
8965   $as_echo_n "(cached) " >&6
8966 else
8967   if test -n "$STRIP"; then
8968   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8969 else
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971 for as_dir in $PATH
8972 do
8973   IFS=$as_save_IFS
8974   test -z "$as_dir" && as_dir=.
8975     for ac_exec_ext in '' $ac_executable_extensions; do
8976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8977     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979     break 2
8980   fi
8981 done
8982   done
8983 IFS=$as_save_IFS
8984
8985 fi
8986 fi
8987 STRIP=$ac_cv_prog_STRIP
8988 if test -n "$STRIP"; then
8989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8990 $as_echo "$STRIP" >&6; }
8991 else
8992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8994 fi
8995
8996
8997   fi
8998   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8999     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9000 set dummy ${ncn_progname}; ac_word=$2
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002 $as_echo_n "checking for $ac_word... " >&6; }
9003 if test "${ac_cv_prog_STRIP+set}" = set; then :
9004   $as_echo_n "(cached) " >&6
9005 else
9006   if test -n "$STRIP"; then
9007   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9008 else
9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010 for as_dir in $PATH
9011 do
9012   IFS=$as_save_IFS
9013   test -z "$as_dir" && as_dir=.
9014     for ac_exec_ext in '' $ac_executable_extensions; do
9015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9016     ac_cv_prog_STRIP="${ncn_progname}"
9017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9018     break 2
9019   fi
9020 done
9021   done
9022 IFS=$as_save_IFS
9023
9024 fi
9025 fi
9026 STRIP=$ac_cv_prog_STRIP
9027 if test -n "$STRIP"; then
9028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9029 $as_echo "$STRIP" >&6; }
9030 else
9031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9033 fi
9034
9035
9036   fi
9037   test -n "$ac_cv_prog_STRIP" && break
9038 done
9039
9040 if test -z "$ac_cv_prog_STRIP" ; then
9041   STRIP="true"
9042 fi
9043
9044
9045
9046 if test -n "$WINDRES"; then
9047   ac_cv_prog_WINDRES=$WINDRES
9048 elif test -n "$ac_cv_prog_WINDRES"; then
9049   WINDRES=$ac_cv_prog_WINDRES
9050 fi
9051
9052 if test -n "$ac_cv_prog_WINDRES"; then
9053   for ncn_progname in windres; do
9054     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9055 set dummy ${ncn_progname}; ac_word=$2
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 $as_echo_n "checking for $ac_word... " >&6; }
9058 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9059   $as_echo_n "(cached) " >&6
9060 else
9061   if test -n "$WINDRES"; then
9062   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9063 else
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9066 do
9067   IFS=$as_save_IFS
9068   test -z "$as_dir" && as_dir=.
9069     for ac_exec_ext in '' $ac_executable_extensions; do
9070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9071     ac_cv_prog_WINDRES="${ncn_progname}"
9072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073     break 2
9074   fi
9075 done
9076   done
9077 IFS=$as_save_IFS
9078
9079 fi
9080 fi
9081 WINDRES=$ac_cv_prog_WINDRES
9082 if test -n "$WINDRES"; then
9083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9084 $as_echo "$WINDRES" >&6; }
9085 else
9086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9088 fi
9089
9090
9091   done
9092 fi
9093
9094 for ncn_progname in windres; do
9095   if test -n "$ncn_tool_prefix"; then
9096     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9097 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9101   $as_echo_n "(cached) " >&6
9102 else
9103   if test -n "$WINDRES"; then
9104   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9105 else
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9108 do
9109   IFS=$as_save_IFS
9110   test -z "$as_dir" && as_dir=.
9111     for ac_exec_ext in '' $ac_executable_extensions; do
9112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9113     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115     break 2
9116   fi
9117 done
9118   done
9119 IFS=$as_save_IFS
9120
9121 fi
9122 fi
9123 WINDRES=$ac_cv_prog_WINDRES
9124 if test -n "$WINDRES"; then
9125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9126 $as_echo "$WINDRES" >&6; }
9127 else
9128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9130 fi
9131
9132
9133   fi
9134   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9135     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9136 set dummy ${ncn_progname}; ac_word=$2
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9138 $as_echo_n "checking for $ac_word... " >&6; }
9139 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9140   $as_echo_n "(cached) " >&6
9141 else
9142   if test -n "$WINDRES"; then
9143   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9144 else
9145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146 for as_dir in $PATH
9147 do
9148   IFS=$as_save_IFS
9149   test -z "$as_dir" && as_dir=.
9150     for ac_exec_ext in '' $ac_executable_extensions; do
9151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9152     ac_cv_prog_WINDRES="${ncn_progname}"
9153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9154     break 2
9155   fi
9156 done
9157   done
9158 IFS=$as_save_IFS
9159
9160 fi
9161 fi
9162 WINDRES=$ac_cv_prog_WINDRES
9163 if test -n "$WINDRES"; then
9164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9165 $as_echo "$WINDRES" >&6; }
9166 else
9167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9169 fi
9170
9171
9172   fi
9173   test -n "$ac_cv_prog_WINDRES" && break
9174 done
9175
9176 if test -z "$ac_cv_prog_WINDRES" ; then
9177   set dummy windres
9178   if test $build = $host ; then
9179     WINDRES="$2"
9180   else
9181     WINDRES="${ncn_tool_prefix}$2"
9182   fi
9183 fi
9184
9185
9186
9187 if test -n "$WINDMC"; then
9188   ac_cv_prog_WINDMC=$WINDMC
9189 elif test -n "$ac_cv_prog_WINDMC"; then
9190   WINDMC=$ac_cv_prog_WINDMC
9191 fi
9192
9193 if test -n "$ac_cv_prog_WINDMC"; then
9194   for ncn_progname in windmc; do
9195     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9196 set dummy ${ncn_progname}; ac_word=$2
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 $as_echo_n "checking for $ac_word... " >&6; }
9199 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9200   $as_echo_n "(cached) " >&6
9201 else
9202   if test -n "$WINDMC"; then
9203   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9204 else
9205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206 for as_dir in $PATH
9207 do
9208   IFS=$as_save_IFS
9209   test -z "$as_dir" && as_dir=.
9210     for ac_exec_ext in '' $ac_executable_extensions; do
9211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9212     ac_cv_prog_WINDMC="${ncn_progname}"
9213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9214     break 2
9215   fi
9216 done
9217   done
9218 IFS=$as_save_IFS
9219
9220 fi
9221 fi
9222 WINDMC=$ac_cv_prog_WINDMC
9223 if test -n "$WINDMC"; then
9224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9225 $as_echo "$WINDMC" >&6; }
9226 else
9227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9229 fi
9230
9231
9232   done
9233 fi
9234
9235 for ncn_progname in windmc; do
9236   if test -n "$ncn_tool_prefix"; then
9237     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9238 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9240 $as_echo_n "checking for $ac_word... " >&6; }
9241 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9242   $as_echo_n "(cached) " >&6
9243 else
9244   if test -n "$WINDMC"; then
9245   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9246 else
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9249 do
9250   IFS=$as_save_IFS
9251   test -z "$as_dir" && as_dir=.
9252     for ac_exec_ext in '' $ac_executable_extensions; do
9253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256     break 2
9257   fi
9258 done
9259   done
9260 IFS=$as_save_IFS
9261
9262 fi
9263 fi
9264 WINDMC=$ac_cv_prog_WINDMC
9265 if test -n "$WINDMC"; then
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9267 $as_echo "$WINDMC" >&6; }
9268 else
9269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9271 fi
9272
9273
9274   fi
9275   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9276     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9277 set dummy ${ncn_progname}; ac_word=$2
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279 $as_echo_n "checking for $ac_word... " >&6; }
9280 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9281   $as_echo_n "(cached) " >&6
9282 else
9283   if test -n "$WINDMC"; then
9284   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9285 else
9286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 for as_dir in $PATH
9288 do
9289   IFS=$as_save_IFS
9290   test -z "$as_dir" && as_dir=.
9291     for ac_exec_ext in '' $ac_executable_extensions; do
9292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9293     ac_cv_prog_WINDMC="${ncn_progname}"
9294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295     break 2
9296   fi
9297 done
9298   done
9299 IFS=$as_save_IFS
9300
9301 fi
9302 fi
9303 WINDMC=$ac_cv_prog_WINDMC
9304 if test -n "$WINDMC"; then
9305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9306 $as_echo "$WINDMC" >&6; }
9307 else
9308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309 $as_echo "no" >&6; }
9310 fi
9311
9312
9313   fi
9314   test -n "$ac_cv_prog_WINDMC" && break
9315 done
9316
9317 if test -z "$ac_cv_prog_WINDMC" ; then
9318   set dummy windmc
9319   if test $build = $host ; then
9320     WINDMC="$2"
9321   else
9322     WINDMC="${ncn_tool_prefix}$2"
9323   fi
9324 fi
9325
9326
9327
9328 if test -n "$OBJCOPY"; then
9329   ac_cv_prog_OBJCOPY=$OBJCOPY
9330 elif test -n "$ac_cv_prog_OBJCOPY"; then
9331   OBJCOPY=$ac_cv_prog_OBJCOPY
9332 fi
9333
9334 if test -n "$ac_cv_prog_OBJCOPY"; then
9335   for ncn_progname in objcopy; do
9336     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9337 set dummy ${ncn_progname}; ac_word=$2
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339 $as_echo_n "checking for $ac_word... " >&6; }
9340 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9341   $as_echo_n "(cached) " >&6
9342 else
9343   if test -n "$OBJCOPY"; then
9344   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9345 else
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 for as_dir in $PATH
9348 do
9349   IFS=$as_save_IFS
9350   test -z "$as_dir" && as_dir=.
9351     for ac_exec_ext in '' $ac_executable_extensions; do
9352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9353     ac_cv_prog_OBJCOPY="${ncn_progname}"
9354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9355     break 2
9356   fi
9357 done
9358   done
9359 IFS=$as_save_IFS
9360
9361 fi
9362 fi
9363 OBJCOPY=$ac_cv_prog_OBJCOPY
9364 if test -n "$OBJCOPY"; then
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9366 $as_echo "$OBJCOPY" >&6; }
9367 else
9368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369 $as_echo "no" >&6; }
9370 fi
9371
9372
9373   done
9374 fi
9375
9376 for ncn_progname in objcopy; do
9377   if test -n "$ncn_tool_prefix"; then
9378     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9379 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 $as_echo_n "checking for $ac_word... " >&6; }
9382 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9383   $as_echo_n "(cached) " >&6
9384 else
9385   if test -n "$OBJCOPY"; then
9386   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9387 else
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 for as_dir in $PATH
9390 do
9391   IFS=$as_save_IFS
9392   test -z "$as_dir" && as_dir=.
9393     for ac_exec_ext in '' $ac_executable_extensions; do
9394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9395     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397     break 2
9398   fi
9399 done
9400   done
9401 IFS=$as_save_IFS
9402
9403 fi
9404 fi
9405 OBJCOPY=$ac_cv_prog_OBJCOPY
9406 if test -n "$OBJCOPY"; then
9407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9408 $as_echo "$OBJCOPY" >&6; }
9409 else
9410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411 $as_echo "no" >&6; }
9412 fi
9413
9414
9415   fi
9416   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9417     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9418 set dummy ${ncn_progname}; ac_word=$2
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9420 $as_echo_n "checking for $ac_word... " >&6; }
9421 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9422   $as_echo_n "(cached) " >&6
9423 else
9424   if test -n "$OBJCOPY"; then
9425   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9426 else
9427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428 for as_dir in $PATH
9429 do
9430   IFS=$as_save_IFS
9431   test -z "$as_dir" && as_dir=.
9432     for ac_exec_ext in '' $ac_executable_extensions; do
9433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9434     ac_cv_prog_OBJCOPY="${ncn_progname}"
9435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9436     break 2
9437   fi
9438 done
9439   done
9440 IFS=$as_save_IFS
9441
9442 fi
9443 fi
9444 OBJCOPY=$ac_cv_prog_OBJCOPY
9445 if test -n "$OBJCOPY"; then
9446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9447 $as_echo "$OBJCOPY" >&6; }
9448 else
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9451 fi
9452
9453
9454   fi
9455   test -n "$ac_cv_prog_OBJCOPY" && break
9456 done
9457
9458 if test -z "$ac_cv_prog_OBJCOPY" ; then
9459   set dummy objcopy
9460   if test $build = $host ; then
9461     OBJCOPY="$2"
9462   else
9463     OBJCOPY="${ncn_tool_prefix}$2"
9464   fi
9465 fi
9466
9467
9468
9469 if test -n "$OBJDUMP"; then
9470   ac_cv_prog_OBJDUMP=$OBJDUMP
9471 elif test -n "$ac_cv_prog_OBJDUMP"; then
9472   OBJDUMP=$ac_cv_prog_OBJDUMP
9473 fi
9474
9475 if test -n "$ac_cv_prog_OBJDUMP"; then
9476   for ncn_progname in objdump; do
9477     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9478 set dummy ${ncn_progname}; ac_word=$2
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480 $as_echo_n "checking for $ac_word... " >&6; }
9481 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9482   $as_echo_n "(cached) " >&6
9483 else
9484   if test -n "$OBJDUMP"; then
9485   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9486 else
9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 for as_dir in $PATH
9489 do
9490   IFS=$as_save_IFS
9491   test -z "$as_dir" && as_dir=.
9492     for ac_exec_ext in '' $ac_executable_extensions; do
9493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9494     ac_cv_prog_OBJDUMP="${ncn_progname}"
9495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9496     break 2
9497   fi
9498 done
9499   done
9500 IFS=$as_save_IFS
9501
9502 fi
9503 fi
9504 OBJDUMP=$ac_cv_prog_OBJDUMP
9505 if test -n "$OBJDUMP"; then
9506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9507 $as_echo "$OBJDUMP" >&6; }
9508 else
9509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9511 fi
9512
9513
9514   done
9515 fi
9516
9517 for ncn_progname in objdump; do
9518   if test -n "$ncn_tool_prefix"; then
9519     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9520 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9522 $as_echo_n "checking for $ac_word... " >&6; }
9523 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9524   $as_echo_n "(cached) " >&6
9525 else
9526   if test -n "$OBJDUMP"; then
9527   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9528 else
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $PATH
9531 do
9532   IFS=$as_save_IFS
9533   test -z "$as_dir" && as_dir=.
9534     for ac_exec_ext in '' $ac_executable_extensions; do
9535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9536     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538     break 2
9539   fi
9540 done
9541   done
9542 IFS=$as_save_IFS
9543
9544 fi
9545 fi
9546 OBJDUMP=$ac_cv_prog_OBJDUMP
9547 if test -n "$OBJDUMP"; then
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9549 $as_echo "$OBJDUMP" >&6; }
9550 else
9551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9553 fi
9554
9555
9556   fi
9557   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9558     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9559 set dummy ${ncn_progname}; ac_word=$2
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561 $as_echo_n "checking for $ac_word... " >&6; }
9562 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9563   $as_echo_n "(cached) " >&6
9564 else
9565   if test -n "$OBJDUMP"; then
9566   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9567 else
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9570 do
9571   IFS=$as_save_IFS
9572   test -z "$as_dir" && as_dir=.
9573     for ac_exec_ext in '' $ac_executable_extensions; do
9574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9575     ac_cv_prog_OBJDUMP="${ncn_progname}"
9576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577     break 2
9578   fi
9579 done
9580   done
9581 IFS=$as_save_IFS
9582
9583 fi
9584 fi
9585 OBJDUMP=$ac_cv_prog_OBJDUMP
9586 if test -n "$OBJDUMP"; then
9587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9588 $as_echo "$OBJDUMP" >&6; }
9589 else
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9592 fi
9593
9594
9595   fi
9596   test -n "$ac_cv_prog_OBJDUMP" && break
9597 done
9598
9599 if test -z "$ac_cv_prog_OBJDUMP" ; then
9600   set dummy objdump
9601   if test $build = $host ; then
9602     OBJDUMP="$2"
9603   else
9604     OBJDUMP="${ncn_tool_prefix}$2"
9605   fi
9606 fi
9607
9608
9609
9610
9611
9612
9613 # Target tools.
9614
9615 # Check whether --with-build-time-tools was given.
9616 if test "${with_build_time_tools+set}" = set; then :
9617   withval=$with_build_time_tools; case x"$withval" in
9618      x/*) ;;
9619      *)
9620        with_build_time_tools=
9621        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9622 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9623        ;;
9624    esac
9625 else
9626   with_build_time_tools=
9627 fi
9628
9629
9630
9631
9632 if test -n "$CC_FOR_TARGET"; then
9633   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9634 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9635   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9636 fi
9637
9638 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9639   for ncn_progname in cc gcc; do
9640     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9641 set dummy ${ncn_progname}; ac_word=$2
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9643 $as_echo_n "checking for $ac_word... " >&6; }
9644 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9645   $as_echo_n "(cached) " >&6
9646 else
9647   if test -n "$CC_FOR_TARGET"; then
9648   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9649 else
9650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 for as_dir in $PATH
9652 do
9653   IFS=$as_save_IFS
9654   test -z "$as_dir" && as_dir=.
9655     for ac_exec_ext in '' $ac_executable_extensions; do
9656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9657     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9659     break 2
9660   fi
9661 done
9662   done
9663 IFS=$as_save_IFS
9664
9665 fi
9666 fi
9667 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9668 if test -n "$CC_FOR_TARGET"; then
9669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9670 $as_echo "$CC_FOR_TARGET" >&6; }
9671 else
9672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9674 fi
9675
9676
9677   done
9678 fi
9679
9680 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9681   for ncn_progname in cc gcc; do
9682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9683 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9684     if test -x $with_build_time_tools/${ncn_progname}; then
9685       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9686       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9687 $as_echo "yes" >&6; }
9688       break
9689     else
9690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9692     fi
9693   done
9694 fi
9695
9696 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9697   for ncn_progname in cc gcc; do
9698     if test -n "$ncn_target_tool_prefix"; then
9699       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9700 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702 $as_echo_n "checking for $ac_word... " >&6; }
9703 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9704   $as_echo_n "(cached) " >&6
9705 else
9706   if test -n "$CC_FOR_TARGET"; then
9707   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9708 else
9709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in $PATH
9711 do
9712   IFS=$as_save_IFS
9713   test -z "$as_dir" && as_dir=.
9714     for ac_exec_ext in '' $ac_executable_extensions; do
9715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9716     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718     break 2
9719   fi
9720 done
9721   done
9722 IFS=$as_save_IFS
9723
9724 fi
9725 fi
9726 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9727 if test -n "$CC_FOR_TARGET"; then
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9729 $as_echo "$CC_FOR_TARGET" >&6; }
9730 else
9731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9733 fi
9734
9735
9736     fi
9737     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9738       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9739 set dummy ${ncn_progname}; ac_word=$2
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9741 $as_echo_n "checking for $ac_word... " >&6; }
9742 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9743   $as_echo_n "(cached) " >&6
9744 else
9745   if test -n "$CC_FOR_TARGET"; then
9746   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9747 else
9748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 for as_dir in $PATH
9750 do
9751   IFS=$as_save_IFS
9752   test -z "$as_dir" && as_dir=.
9753     for ac_exec_ext in '' $ac_executable_extensions; do
9754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9755     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9757     break 2
9758   fi
9759 done
9760   done
9761 IFS=$as_save_IFS
9762
9763 fi
9764 fi
9765 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9766 if test -n "$CC_FOR_TARGET"; then
9767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9768 $as_echo "$CC_FOR_TARGET" >&6; }
9769 else
9770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771 $as_echo "no" >&6; }
9772 fi
9773
9774
9775     fi
9776     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9777   done
9778 fi
9779
9780 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9781   set dummy cc gcc
9782   if test $build = $target ; then
9783     CC_FOR_TARGET="$2"
9784   else
9785     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9786   fi
9787 else
9788   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9789 fi
9790
9791
9792
9793 if test -n "$CXX_FOR_TARGET"; then
9794   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9795 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9796   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9797 fi
9798
9799 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9800   for ncn_progname in c++ g++ cxx gxx; do
9801     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9802 set dummy ${ncn_progname}; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   if test -n "$CXX_FOR_TARGET"; then
9809   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9810 else
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9813 do
9814   IFS=$as_save_IFS
9815   test -z "$as_dir" && as_dir=.
9816     for ac_exec_ext in '' $ac_executable_extensions; do
9817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820     break 2
9821   fi
9822 done
9823   done
9824 IFS=$as_save_IFS
9825
9826 fi
9827 fi
9828 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9829 if test -n "$CXX_FOR_TARGET"; then
9830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9831 $as_echo "$CXX_FOR_TARGET" >&6; }
9832 else
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834 $as_echo "no" >&6; }
9835 fi
9836
9837
9838   done
9839 fi
9840
9841 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9842   for ncn_progname in c++ g++ cxx gxx; do
9843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9844 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9845     if test -x $with_build_time_tools/${ncn_progname}; then
9846       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9847       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9848 $as_echo "yes" >&6; }
9849       break
9850     else
9851       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9852 $as_echo "no" >&6; }
9853     fi
9854   done
9855 fi
9856
9857 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9858   for ncn_progname in c++ g++ cxx gxx; do
9859     if test -n "$ncn_target_tool_prefix"; then
9860       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9861 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9865   $as_echo_n "(cached) " >&6
9866 else
9867   if test -n "$CXX_FOR_TARGET"; then
9868   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9869 else
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873   IFS=$as_save_IFS
9874   test -z "$as_dir" && as_dir=.
9875     for ac_exec_ext in '' $ac_executable_extensions; do
9876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9877     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879     break 2
9880   fi
9881 done
9882   done
9883 IFS=$as_save_IFS
9884
9885 fi
9886 fi
9887 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9888 if test -n "$CXX_FOR_TARGET"; then
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9890 $as_echo "$CXX_FOR_TARGET" >&6; }
9891 else
9892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9894 fi
9895
9896
9897     fi
9898     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9899       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9900 set dummy ${ncn_progname}; ac_word=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9904   $as_echo_n "(cached) " >&6
9905 else
9906   if test -n "$CXX_FOR_TARGET"; then
9907   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9908 else
9909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910 for as_dir in $PATH
9911 do
9912   IFS=$as_save_IFS
9913   test -z "$as_dir" && as_dir=.
9914     for ac_exec_ext in '' $ac_executable_extensions; do
9915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9916     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9918     break 2
9919   fi
9920 done
9921   done
9922 IFS=$as_save_IFS
9923
9924 fi
9925 fi
9926 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9927 if test -n "$CXX_FOR_TARGET"; then
9928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9929 $as_echo "$CXX_FOR_TARGET" >&6; }
9930 else
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9933 fi
9934
9935
9936     fi
9937     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9938   done
9939 fi
9940
9941 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9942   set dummy c++ g++ cxx gxx
9943   if test $build = $target ; then
9944     CXX_FOR_TARGET="$2"
9945   else
9946     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9947   fi
9948 else
9949   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9950 fi
9951
9952
9953
9954 if test -n "$GCC_FOR_TARGET"; then
9955   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9956 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9957   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9958 fi
9959
9960 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9961   for ncn_progname in gcc; do
9962     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9963 set dummy ${ncn_progname}; ac_word=$2
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9965 $as_echo_n "checking for $ac_word... " >&6; }
9966 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9967   $as_echo_n "(cached) " >&6
9968 else
9969   if test -n "$GCC_FOR_TARGET"; then
9970   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9971 else
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9974 do
9975   IFS=$as_save_IFS
9976   test -z "$as_dir" && as_dir=.
9977     for ac_exec_ext in '' $ac_executable_extensions; do
9978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9979     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981     break 2
9982   fi
9983 done
9984   done
9985 IFS=$as_save_IFS
9986
9987 fi
9988 fi
9989 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9990 if test -n "$GCC_FOR_TARGET"; then
9991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9992 $as_echo "$GCC_FOR_TARGET" >&6; }
9993 else
9994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995 $as_echo "no" >&6; }
9996 fi
9997
9998
9999   done
10000 fi
10001
10002 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10003   for ncn_progname in gcc; do
10004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10005 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10006     if test -x $with_build_time_tools/${ncn_progname}; then
10007       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10008       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10009 $as_echo "yes" >&6; }
10010       break
10011     else
10012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013 $as_echo "no" >&6; }
10014     fi
10015   done
10016 fi
10017
10018 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10019   for ncn_progname in gcc; do
10020     if test -n "$ncn_target_tool_prefix"; then
10021       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10022 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10024 $as_echo_n "checking for $ac_word... " >&6; }
10025 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10026   $as_echo_n "(cached) " >&6
10027 else
10028   if test -n "$GCC_FOR_TARGET"; then
10029   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10030 else
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10033 do
10034   IFS=$as_save_IFS
10035   test -z "$as_dir" && as_dir=.
10036     for ac_exec_ext in '' $ac_executable_extensions; do
10037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10038     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10040     break 2
10041   fi
10042 done
10043   done
10044 IFS=$as_save_IFS
10045
10046 fi
10047 fi
10048 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10049 if test -n "$GCC_FOR_TARGET"; then
10050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10051 $as_echo "$GCC_FOR_TARGET" >&6; }
10052 else
10053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 $as_echo "no" >&6; }
10055 fi
10056
10057
10058     fi
10059     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10060       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10061 set dummy ${ncn_progname}; ac_word=$2
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063 $as_echo_n "checking for $ac_word... " >&6; }
10064 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   if test -n "$GCC_FOR_TARGET"; then
10068   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10069 else
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10072 do
10073   IFS=$as_save_IFS
10074   test -z "$as_dir" && as_dir=.
10075     for ac_exec_ext in '' $ac_executable_extensions; do
10076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079     break 2
10080   fi
10081 done
10082   done
10083 IFS=$as_save_IFS
10084
10085 fi
10086 fi
10087 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10088 if test -n "$GCC_FOR_TARGET"; then
10089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10090 $as_echo "$GCC_FOR_TARGET" >&6; }
10091 else
10092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093 $as_echo "no" >&6; }
10094 fi
10095
10096
10097     fi
10098     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10099   done
10100 fi
10101
10102 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10103   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10104 else
10105   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10106 fi
10107
10108
10109
10110 if test -n "$GCJ_FOR_TARGET"; then
10111   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10112 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10113   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10114 fi
10115
10116 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10117   for ncn_progname in gcj; do
10118     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10119 set dummy ${ncn_progname}; ac_word=$2
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121 $as_echo_n "checking for $ac_word... " >&6; }
10122 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10123   $as_echo_n "(cached) " >&6
10124 else
10125   if test -n "$GCJ_FOR_TARGET"; then
10126   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10127 else
10128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129 for as_dir in $PATH
10130 do
10131   IFS=$as_save_IFS
10132   test -z "$as_dir" && as_dir=.
10133     for ac_exec_ext in '' $ac_executable_extensions; do
10134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10135     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10137     break 2
10138   fi
10139 done
10140   done
10141 IFS=$as_save_IFS
10142
10143 fi
10144 fi
10145 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10146 if test -n "$GCJ_FOR_TARGET"; then
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10148 $as_echo "$GCJ_FOR_TARGET" >&6; }
10149 else
10150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10152 fi
10153
10154
10155   done
10156 fi
10157
10158 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10159   for ncn_progname in gcj; do
10160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10161 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10162     if test -x $with_build_time_tools/${ncn_progname}; then
10163       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10164       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10165 $as_echo "yes" >&6; }
10166       break
10167     else
10168       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }
10170     fi
10171   done
10172 fi
10173
10174 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10175   for ncn_progname in gcj; do
10176     if test -n "$ncn_target_tool_prefix"; then
10177       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10178 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10182   $as_echo_n "(cached) " >&6
10183 else
10184   if test -n "$GCJ_FOR_TARGET"; then
10185   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10186 else
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10189 do
10190   IFS=$as_save_IFS
10191   test -z "$as_dir" && as_dir=.
10192     for ac_exec_ext in '' $ac_executable_extensions; do
10193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10194     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196     break 2
10197   fi
10198 done
10199   done
10200 IFS=$as_save_IFS
10201
10202 fi
10203 fi
10204 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10205 if test -n "$GCJ_FOR_TARGET"; then
10206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10207 $as_echo "$GCJ_FOR_TARGET" >&6; }
10208 else
10209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10211 fi
10212
10213
10214     fi
10215     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10216       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10217 set dummy ${ncn_progname}; ac_word=$2
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10219 $as_echo_n "checking for $ac_word... " >&6; }
10220 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10221   $as_echo_n "(cached) " >&6
10222 else
10223   if test -n "$GCJ_FOR_TARGET"; then
10224   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10225 else
10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10228 do
10229   IFS=$as_save_IFS
10230   test -z "$as_dir" && as_dir=.
10231     for ac_exec_ext in '' $ac_executable_extensions; do
10232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10233     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235     break 2
10236   fi
10237 done
10238   done
10239 IFS=$as_save_IFS
10240
10241 fi
10242 fi
10243 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10244 if test -n "$GCJ_FOR_TARGET"; then
10245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10246 $as_echo "$GCJ_FOR_TARGET" >&6; }
10247 else
10248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10250 fi
10251
10252
10253     fi
10254     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10255   done
10256 fi
10257
10258 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10259   set dummy gcj
10260   if test $build = $target ; then
10261     GCJ_FOR_TARGET="$2"
10262   else
10263     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10264   fi
10265 else
10266   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10267 fi
10268
10269
10270
10271 if test -n "$GFORTRAN_FOR_TARGET"; then
10272   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10273 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10274   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10275 fi
10276
10277 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10278   for ncn_progname in gfortran; do
10279     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10280 set dummy ${ncn_progname}; ac_word=$2
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282 $as_echo_n "checking for $ac_word... " >&6; }
10283 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10284   $as_echo_n "(cached) " >&6
10285 else
10286   if test -n "$GFORTRAN_FOR_TARGET"; then
10287   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10288 else
10289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10290 for as_dir in $PATH
10291 do
10292   IFS=$as_save_IFS
10293   test -z "$as_dir" && as_dir=.
10294     for ac_exec_ext in '' $ac_executable_extensions; do
10295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10296     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10298     break 2
10299   fi
10300 done
10301   done
10302 IFS=$as_save_IFS
10303
10304 fi
10305 fi
10306 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10307 if test -n "$GFORTRAN_FOR_TARGET"; then
10308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10309 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10310 else
10311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312 $as_echo "no" >&6; }
10313 fi
10314
10315
10316   done
10317 fi
10318
10319 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10320   for ncn_progname in gfortran; do
10321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10322 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10323     if test -x $with_build_time_tools/${ncn_progname}; then
10324       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10325       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10326 $as_echo "yes" >&6; }
10327       break
10328     else
10329       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330 $as_echo "no" >&6; }
10331     fi
10332   done
10333 fi
10334
10335 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10336   for ncn_progname in gfortran; do
10337     if test -n "$ncn_target_tool_prefix"; then
10338       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10339 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10341 $as_echo_n "checking for $ac_word... " >&6; }
10342 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10343   $as_echo_n "(cached) " >&6
10344 else
10345   if test -n "$GFORTRAN_FOR_TARGET"; then
10346   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10347 else
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10350 do
10351   IFS=$as_save_IFS
10352   test -z "$as_dir" && as_dir=.
10353     for ac_exec_ext in '' $ac_executable_extensions; do
10354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10355     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10357     break 2
10358   fi
10359 done
10360   done
10361 IFS=$as_save_IFS
10362
10363 fi
10364 fi
10365 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10366 if test -n "$GFORTRAN_FOR_TARGET"; then
10367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10368 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10369 else
10370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10371 $as_echo "no" >&6; }
10372 fi
10373
10374
10375     fi
10376     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10377       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10378 set dummy ${ncn_progname}; ac_word=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 $as_echo_n "checking for $ac_word... " >&6; }
10381 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10382   $as_echo_n "(cached) " >&6
10383 else
10384   if test -n "$GFORTRAN_FOR_TARGET"; then
10385   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10386 else
10387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388 for as_dir in $PATH
10389 do
10390   IFS=$as_save_IFS
10391   test -z "$as_dir" && as_dir=.
10392     for ac_exec_ext in '' $ac_executable_extensions; do
10393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10394     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10396     break 2
10397   fi
10398 done
10399   done
10400 IFS=$as_save_IFS
10401
10402 fi
10403 fi
10404 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10405 if test -n "$GFORTRAN_FOR_TARGET"; then
10406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10407 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10408 else
10409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }
10411 fi
10412
10413
10414     fi
10415     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10416   done
10417 fi
10418
10419 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10420   set dummy gfortran
10421   if test $build = $target ; then
10422     GFORTRAN_FOR_TARGET="$2"
10423   else
10424     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10425   fi
10426 else
10427   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10428 fi
10429
10430
10431
10432 if test -n "$GOC_FOR_TARGET"; then
10433   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10434 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10435   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10436 fi
10437
10438 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10439   for ncn_progname in gccgo; do
10440     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10441 set dummy ${ncn_progname}; ac_word=$2
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10443 $as_echo_n "checking for $ac_word... " >&6; }
10444 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10445   $as_echo_n "(cached) " >&6
10446 else
10447   if test -n "$GOC_FOR_TARGET"; then
10448   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10449 else
10450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10452 do
10453   IFS=$as_save_IFS
10454   test -z "$as_dir" && as_dir=.
10455     for ac_exec_ext in '' $ac_executable_extensions; do
10456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10457     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10459     break 2
10460   fi
10461 done
10462   done
10463 IFS=$as_save_IFS
10464
10465 fi
10466 fi
10467 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10468 if test -n "$GOC_FOR_TARGET"; then
10469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10470 $as_echo "$GOC_FOR_TARGET" >&6; }
10471 else
10472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10474 fi
10475
10476
10477   done
10478 fi
10479
10480 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10481   for ncn_progname in gccgo; do
10482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10483 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10484     if test -x $with_build_time_tools/${ncn_progname}; then
10485       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10487 $as_echo "yes" >&6; }
10488       break
10489     else
10490       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10492     fi
10493   done
10494 fi
10495
10496 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10497   for ncn_progname in gccgo; do
10498     if test -n "$ncn_target_tool_prefix"; then
10499       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10500 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502 $as_echo_n "checking for $ac_word... " >&6; }
10503 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10504   $as_echo_n "(cached) " >&6
10505 else
10506   if test -n "$GOC_FOR_TARGET"; then
10507   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10508 else
10509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10511 do
10512   IFS=$as_save_IFS
10513   test -z "$as_dir" && as_dir=.
10514     for ac_exec_ext in '' $ac_executable_extensions; do
10515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10516     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10518     break 2
10519   fi
10520 done
10521   done
10522 IFS=$as_save_IFS
10523
10524 fi
10525 fi
10526 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10527 if test -n "$GOC_FOR_TARGET"; then
10528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10529 $as_echo "$GOC_FOR_TARGET" >&6; }
10530 else
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10533 fi
10534
10535
10536     fi
10537     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10538       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10539 set dummy ${ncn_progname}; ac_word=$2
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541 $as_echo_n "checking for $ac_word... " >&6; }
10542 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10543   $as_echo_n "(cached) " >&6
10544 else
10545   if test -n "$GOC_FOR_TARGET"; then
10546   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10547 else
10548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549 for as_dir in $PATH
10550 do
10551   IFS=$as_save_IFS
10552   test -z "$as_dir" && as_dir=.
10553     for ac_exec_ext in '' $ac_executable_extensions; do
10554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10555     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557     break 2
10558   fi
10559 done
10560   done
10561 IFS=$as_save_IFS
10562
10563 fi
10564 fi
10565 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10566 if test -n "$GOC_FOR_TARGET"; then
10567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10568 $as_echo "$GOC_FOR_TARGET" >&6; }
10569 else
10570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571 $as_echo "no" >&6; }
10572 fi
10573
10574
10575     fi
10576     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10577   done
10578 fi
10579
10580 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10581   set dummy gccgo
10582   if test $build = $target ; then
10583     GOC_FOR_TARGET="$2"
10584   else
10585     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10586   fi
10587 else
10588   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10589 fi
10590
10591
10592
10593 cat > conftest.c << \EOF
10594 #ifdef __GNUC__
10595   gcc_yay;
10596 #endif
10597 EOF
10598 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10599   have_gcc_for_target=yes
10600 else
10601   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10602   have_gcc_for_target=no
10603 fi
10604 rm conftest.c
10605
10606
10607
10608
10609 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10610   if test -n "$with_build_time_tools"; then
10611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10612 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10613     if test -x $with_build_time_tools/ar; then
10614       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10615       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10616       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10617 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10618     else
10619       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10621     fi
10622   elif test $build != $host && test $have_gcc_for_target = yes; then
10623     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10624     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10625     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10626   fi
10627 fi
10628 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10629   # Extract the first word of "ar", so it can be a program name with args.
10630 set dummy ar; ac_word=$2
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632 $as_echo_n "checking for $ac_word... " >&6; }
10633 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10634   $as_echo_n "(cached) " >&6
10635 else
10636   case $AR_FOR_TARGET in
10637   [\\/]* | ?:[\\/]*)
10638   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10639   ;;
10640   *)
10641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642 for as_dir in $gcc_cv_tool_dirs
10643 do
10644   IFS=$as_save_IFS
10645   test -z "$as_dir" && as_dir=.
10646     for ac_exec_ext in '' $ac_executable_extensions; do
10647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10648     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10650     break 2
10651   fi
10652 done
10653   done
10654 IFS=$as_save_IFS
10655
10656   ;;
10657 esac
10658 fi
10659 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10660 if test -n "$AR_FOR_TARGET"; then
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10662 $as_echo "$AR_FOR_TARGET" >&6; }
10663 else
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10666 fi
10667
10668
10669 fi
10670 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10671
10672
10673 if test -n "$AR_FOR_TARGET"; then
10674   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10675 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10676   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10677 fi
10678
10679 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10680   for ncn_progname in ar; do
10681     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10682 set dummy ${ncn_progname}; ac_word=$2
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10684 $as_echo_n "checking for $ac_word... " >&6; }
10685 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10686   $as_echo_n "(cached) " >&6
10687 else
10688   if test -n "$AR_FOR_TARGET"; then
10689   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10690 else
10691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10692 for as_dir in $PATH
10693 do
10694   IFS=$as_save_IFS
10695   test -z "$as_dir" && as_dir=.
10696     for ac_exec_ext in '' $ac_executable_extensions; do
10697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10698     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10700     break 2
10701   fi
10702 done
10703   done
10704 IFS=$as_save_IFS
10705
10706 fi
10707 fi
10708 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10709 if test -n "$AR_FOR_TARGET"; then
10710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10711 $as_echo "$AR_FOR_TARGET" >&6; }
10712 else
10713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; }
10715 fi
10716
10717
10718   done
10719 fi
10720
10721 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10722   for ncn_progname in ar; do
10723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10724 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10725     if test -x $with_build_time_tools/${ncn_progname}; then
10726       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10728 $as_echo "yes" >&6; }
10729       break
10730     else
10731       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10733     fi
10734   done
10735 fi
10736
10737 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10738   for ncn_progname in ar; do
10739     if test -n "$ncn_target_tool_prefix"; then
10740       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10741 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743 $as_echo_n "checking for $ac_word... " >&6; }
10744 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10745   $as_echo_n "(cached) " >&6
10746 else
10747   if test -n "$AR_FOR_TARGET"; then
10748   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10749 else
10750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10751 for as_dir in $PATH
10752 do
10753   IFS=$as_save_IFS
10754   test -z "$as_dir" && as_dir=.
10755     for ac_exec_ext in '' $ac_executable_extensions; do
10756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10757     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10759     break 2
10760   fi
10761 done
10762   done
10763 IFS=$as_save_IFS
10764
10765 fi
10766 fi
10767 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10768 if test -n "$AR_FOR_TARGET"; then
10769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10770 $as_echo "$AR_FOR_TARGET" >&6; }
10771 else
10772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773 $as_echo "no" >&6; }
10774 fi
10775
10776
10777     fi
10778     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10779       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10780 set dummy ${ncn_progname}; ac_word=$2
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10782 $as_echo_n "checking for $ac_word... " >&6; }
10783 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10784   $as_echo_n "(cached) " >&6
10785 else
10786   if test -n "$AR_FOR_TARGET"; then
10787   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10788 else
10789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10790 for as_dir in $PATH
10791 do
10792   IFS=$as_save_IFS
10793   test -z "$as_dir" && as_dir=.
10794     for ac_exec_ext in '' $ac_executable_extensions; do
10795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10796     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10798     break 2
10799   fi
10800 done
10801   done
10802 IFS=$as_save_IFS
10803
10804 fi
10805 fi
10806 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10807 if test -n "$AR_FOR_TARGET"; then
10808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10809 $as_echo "$AR_FOR_TARGET" >&6; }
10810 else
10811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; }
10813 fi
10814
10815
10816     fi
10817     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10818   done
10819 fi
10820
10821 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10822   set dummy ar
10823   if test $build = $target ; then
10824     AR_FOR_TARGET="$2"
10825   else
10826     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10827   fi
10828 else
10829   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10830 fi
10831
10832 else
10833   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10834 fi
10835
10836
10837
10838
10839 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10840   if test -n "$with_build_time_tools"; then
10841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10842 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10843     if test -x $with_build_time_tools/as; then
10844       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10845       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10846       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10847 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10848     else
10849       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850 $as_echo "no" >&6; }
10851     fi
10852   elif test $build != $host && test $have_gcc_for_target = yes; then
10853     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10854     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10855     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10856   fi
10857 fi
10858 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10859   # Extract the first word of "as", so it can be a program name with args.
10860 set dummy as; ac_word=$2
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10862 $as_echo_n "checking for $ac_word... " >&6; }
10863 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10864   $as_echo_n "(cached) " >&6
10865 else
10866   case $AS_FOR_TARGET in
10867   [\\/]* | ?:[\\/]*)
10868   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10869   ;;
10870   *)
10871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872 for as_dir in $gcc_cv_tool_dirs
10873 do
10874   IFS=$as_save_IFS
10875   test -z "$as_dir" && as_dir=.
10876     for ac_exec_ext in '' $ac_executable_extensions; do
10877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10878     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880     break 2
10881   fi
10882 done
10883   done
10884 IFS=$as_save_IFS
10885
10886   ;;
10887 esac
10888 fi
10889 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10890 if test -n "$AS_FOR_TARGET"; then
10891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10892 $as_echo "$AS_FOR_TARGET" >&6; }
10893 else
10894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10896 fi
10897
10898
10899 fi
10900 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10901
10902
10903 if test -n "$AS_FOR_TARGET"; then
10904   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10905 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10906   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10907 fi
10908
10909 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10910   for ncn_progname in as; do
10911     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10912 set dummy ${ncn_progname}; ac_word=$2
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10914 $as_echo_n "checking for $ac_word... " >&6; }
10915 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10916   $as_echo_n "(cached) " >&6
10917 else
10918   if test -n "$AS_FOR_TARGET"; then
10919   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10920 else
10921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922 for as_dir in $PATH
10923 do
10924   IFS=$as_save_IFS
10925   test -z "$as_dir" && as_dir=.
10926     for ac_exec_ext in '' $ac_executable_extensions; do
10927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10928     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10930     break 2
10931   fi
10932 done
10933   done
10934 IFS=$as_save_IFS
10935
10936 fi
10937 fi
10938 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10939 if test -n "$AS_FOR_TARGET"; then
10940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10941 $as_echo "$AS_FOR_TARGET" >&6; }
10942 else
10943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944 $as_echo "no" >&6; }
10945 fi
10946
10947
10948   done
10949 fi
10950
10951 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10952   for ncn_progname in as; do
10953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10954 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10955     if test -x $with_build_time_tools/${ncn_progname}; then
10956       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10958 $as_echo "yes" >&6; }
10959       break
10960     else
10961       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962 $as_echo "no" >&6; }
10963     fi
10964   done
10965 fi
10966
10967 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10968   for ncn_progname in as; do
10969     if test -n "$ncn_target_tool_prefix"; then
10970       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10971 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973 $as_echo_n "checking for $ac_word... " >&6; }
10974 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10975   $as_echo_n "(cached) " >&6
10976 else
10977   if test -n "$AS_FOR_TARGET"; then
10978   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10979 else
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10982 do
10983   IFS=$as_save_IFS
10984   test -z "$as_dir" && as_dir=.
10985     for ac_exec_ext in '' $ac_executable_extensions; do
10986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989     break 2
10990   fi
10991 done
10992   done
10993 IFS=$as_save_IFS
10994
10995 fi
10996 fi
10997 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10998 if test -n "$AS_FOR_TARGET"; then
10999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11000 $as_echo "$AS_FOR_TARGET" >&6; }
11001 else
11002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003 $as_echo "no" >&6; }
11004 fi
11005
11006
11007     fi
11008     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11009       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11010 set dummy ${ncn_progname}; ac_word=$2
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11012 $as_echo_n "checking for $ac_word... " >&6; }
11013 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11014   $as_echo_n "(cached) " >&6
11015 else
11016   if test -n "$AS_FOR_TARGET"; then
11017   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11018 else
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020 for as_dir in $PATH
11021 do
11022   IFS=$as_save_IFS
11023   test -z "$as_dir" && as_dir=.
11024     for ac_exec_ext in '' $ac_executable_extensions; do
11025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11026     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11028     break 2
11029   fi
11030 done
11031   done
11032 IFS=$as_save_IFS
11033
11034 fi
11035 fi
11036 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11037 if test -n "$AS_FOR_TARGET"; then
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11039 $as_echo "$AS_FOR_TARGET" >&6; }
11040 else
11041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042 $as_echo "no" >&6; }
11043 fi
11044
11045
11046     fi
11047     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11048   done
11049 fi
11050
11051 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11052   set dummy as
11053   if test $build = $target ; then
11054     AS_FOR_TARGET="$2"
11055   else
11056     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11057   fi
11058 else
11059   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11060 fi
11061
11062 else
11063   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11064 fi
11065
11066
11067
11068
11069 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11070   if test -n "$with_build_time_tools"; then
11071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11072 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11073     if test -x $with_build_time_tools/dlltool; then
11074       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11075       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11076       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11077 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11078     else
11079       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11081     fi
11082   elif test $build != $host && test $have_gcc_for_target = yes; then
11083     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11084     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11085     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11086   fi
11087 fi
11088 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11089   # Extract the first word of "dlltool", so it can be a program name with args.
11090 set dummy dlltool; ac_word=$2
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11094   $as_echo_n "(cached) " >&6
11095 else
11096   case $DLLTOOL_FOR_TARGET in
11097   [\\/]* | ?:[\\/]*)
11098   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11099   ;;
11100   *)
11101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102 for as_dir in $gcc_cv_tool_dirs
11103 do
11104   IFS=$as_save_IFS
11105   test -z "$as_dir" && as_dir=.
11106     for ac_exec_ext in '' $ac_executable_extensions; do
11107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11108     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11110     break 2
11111   fi
11112 done
11113   done
11114 IFS=$as_save_IFS
11115
11116   ;;
11117 esac
11118 fi
11119 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11120 if test -n "$DLLTOOL_FOR_TARGET"; then
11121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11122 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11123 else
11124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11126 fi
11127
11128
11129 fi
11130 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11131
11132
11133 if test -n "$DLLTOOL_FOR_TARGET"; then
11134   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11135 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11136   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11137 fi
11138
11139 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11140   for ncn_progname in dlltool; do
11141     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11142 set dummy ${ncn_progname}; ac_word=$2
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144 $as_echo_n "checking for $ac_word... " >&6; }
11145 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11146   $as_echo_n "(cached) " >&6
11147 else
11148   if test -n "$DLLTOOL_FOR_TARGET"; then
11149   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11150 else
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in $PATH
11153 do
11154   IFS=$as_save_IFS
11155   test -z "$as_dir" && as_dir=.
11156     for ac_exec_ext in '' $ac_executable_extensions; do
11157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11158     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11160     break 2
11161   fi
11162 done
11163   done
11164 IFS=$as_save_IFS
11165
11166 fi
11167 fi
11168 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11169 if test -n "$DLLTOOL_FOR_TARGET"; then
11170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11171 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11172 else
11173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11175 fi
11176
11177
11178   done
11179 fi
11180
11181 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11182   for ncn_progname in dlltool; do
11183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11184 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11185     if test -x $with_build_time_tools/${ncn_progname}; then
11186       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11188 $as_echo "yes" >&6; }
11189       break
11190     else
11191       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192 $as_echo "no" >&6; }
11193     fi
11194   done
11195 fi
11196
11197 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11198   for ncn_progname in dlltool; do
11199     if test -n "$ncn_target_tool_prefix"; then
11200       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11201 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11203 $as_echo_n "checking for $ac_word... " >&6; }
11204 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11205   $as_echo_n "(cached) " >&6
11206 else
11207   if test -n "$DLLTOOL_FOR_TARGET"; then
11208   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11209 else
11210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $PATH
11212 do
11213   IFS=$as_save_IFS
11214   test -z "$as_dir" && as_dir=.
11215     for ac_exec_ext in '' $ac_executable_extensions; do
11216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11217     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11219     break 2
11220   fi
11221 done
11222   done
11223 IFS=$as_save_IFS
11224
11225 fi
11226 fi
11227 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11228 if test -n "$DLLTOOL_FOR_TARGET"; then
11229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11230 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11231 else
11232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233 $as_echo "no" >&6; }
11234 fi
11235
11236
11237     fi
11238     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11239       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11240 set dummy ${ncn_progname}; ac_word=$2
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11242 $as_echo_n "checking for $ac_word... " >&6; }
11243 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11244   $as_echo_n "(cached) " >&6
11245 else
11246   if test -n "$DLLTOOL_FOR_TARGET"; then
11247   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11248 else
11249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250 for as_dir in $PATH
11251 do
11252   IFS=$as_save_IFS
11253   test -z "$as_dir" && as_dir=.
11254     for ac_exec_ext in '' $ac_executable_extensions; do
11255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11256     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11258     break 2
11259   fi
11260 done
11261   done
11262 IFS=$as_save_IFS
11263
11264 fi
11265 fi
11266 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11267 if test -n "$DLLTOOL_FOR_TARGET"; then
11268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11269 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11270 else
11271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272 $as_echo "no" >&6; }
11273 fi
11274
11275
11276     fi
11277     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11278   done
11279 fi
11280
11281 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11282   set dummy dlltool
11283   if test $build = $target ; then
11284     DLLTOOL_FOR_TARGET="$2"
11285   else
11286     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11287   fi
11288 else
11289   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11290 fi
11291
11292 else
11293   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11294 fi
11295
11296
11297
11298
11299 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11300   if test -n "$with_build_time_tools"; then
11301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11302 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11303     if test -x $with_build_time_tools/ld; then
11304       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11305       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11307 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11308     else
11309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310 $as_echo "no" >&6; }
11311     fi
11312   elif test $build != $host && test $have_gcc_for_target = yes; then
11313     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11314     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11315     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11316   fi
11317 fi
11318 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11319   # Extract the first word of "ld", so it can be a program name with args.
11320 set dummy ld; ac_word=$2
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11322 $as_echo_n "checking for $ac_word... " >&6; }
11323 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11324   $as_echo_n "(cached) " >&6
11325 else
11326   case $LD_FOR_TARGET in
11327   [\\/]* | ?:[\\/]*)
11328   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11329   ;;
11330   *)
11331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332 for as_dir in $gcc_cv_tool_dirs
11333 do
11334   IFS=$as_save_IFS
11335   test -z "$as_dir" && as_dir=.
11336     for ac_exec_ext in '' $ac_executable_extensions; do
11337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11338     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11340     break 2
11341   fi
11342 done
11343   done
11344 IFS=$as_save_IFS
11345
11346   ;;
11347 esac
11348 fi
11349 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11350 if test -n "$LD_FOR_TARGET"; then
11351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11352 $as_echo "$LD_FOR_TARGET" >&6; }
11353 else
11354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11356 fi
11357
11358
11359 fi
11360 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11361
11362
11363 if test -n "$LD_FOR_TARGET"; then
11364   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11365 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11366   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11367 fi
11368
11369 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11370   for ncn_progname in ld; do
11371     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11372 set dummy ${ncn_progname}; ac_word=$2
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 $as_echo_n "checking for $ac_word... " >&6; }
11375 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   if test -n "$LD_FOR_TARGET"; then
11379   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11380 else
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 for as_dir in $PATH
11383 do
11384   IFS=$as_save_IFS
11385   test -z "$as_dir" && as_dir=.
11386     for ac_exec_ext in '' $ac_executable_extensions; do
11387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11388     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11390     break 2
11391   fi
11392 done
11393   done
11394 IFS=$as_save_IFS
11395
11396 fi
11397 fi
11398 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11399 if test -n "$LD_FOR_TARGET"; then
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11401 $as_echo "$LD_FOR_TARGET" >&6; }
11402 else
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405 fi
11406
11407
11408   done
11409 fi
11410
11411 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11412   for ncn_progname in ld; do
11413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11414 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11415     if test -x $with_build_time_tools/${ncn_progname}; then
11416       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11418 $as_echo "yes" >&6; }
11419       break
11420     else
11421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422 $as_echo "no" >&6; }
11423     fi
11424   done
11425 fi
11426
11427 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11428   for ncn_progname in ld; do
11429     if test -n "$ncn_target_tool_prefix"; then
11430       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11431 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433 $as_echo_n "checking for $ac_word... " >&6; }
11434 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11435   $as_echo_n "(cached) " >&6
11436 else
11437   if test -n "$LD_FOR_TARGET"; then
11438   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11439 else
11440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441 for as_dir in $PATH
11442 do
11443   IFS=$as_save_IFS
11444   test -z "$as_dir" && as_dir=.
11445     for ac_exec_ext in '' $ac_executable_extensions; do
11446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11447     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11449     break 2
11450   fi
11451 done
11452   done
11453 IFS=$as_save_IFS
11454
11455 fi
11456 fi
11457 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11458 if test -n "$LD_FOR_TARGET"; then
11459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11460 $as_echo "$LD_FOR_TARGET" >&6; }
11461 else
11462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463 $as_echo "no" >&6; }
11464 fi
11465
11466
11467     fi
11468     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11469       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11470 set dummy ${ncn_progname}; ac_word=$2
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472 $as_echo_n "checking for $ac_word... " >&6; }
11473 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11474   $as_echo_n "(cached) " >&6
11475 else
11476   if test -n "$LD_FOR_TARGET"; then
11477   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11478 else
11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480 for as_dir in $PATH
11481 do
11482   IFS=$as_save_IFS
11483   test -z "$as_dir" && as_dir=.
11484     for ac_exec_ext in '' $ac_executable_extensions; do
11485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11486     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11488     break 2
11489   fi
11490 done
11491   done
11492 IFS=$as_save_IFS
11493
11494 fi
11495 fi
11496 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11497 if test -n "$LD_FOR_TARGET"; then
11498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11499 $as_echo "$LD_FOR_TARGET" >&6; }
11500 else
11501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11503 fi
11504
11505
11506     fi
11507     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11508   done
11509 fi
11510
11511 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11512   set dummy ld
11513   if test $build = $target ; then
11514     LD_FOR_TARGET="$2"
11515   else
11516     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11517   fi
11518 else
11519   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11520 fi
11521
11522 else
11523   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11524 fi
11525
11526
11527
11528
11529 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11530   if test -n "$with_build_time_tools"; then
11531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11532 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11533     if test -x $with_build_time_tools/lipo; then
11534       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11535       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11536       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11537 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11538     else
11539       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540 $as_echo "no" >&6; }
11541     fi
11542   elif test $build != $host && test $have_gcc_for_target = yes; then
11543     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11544     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11545     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11546   fi
11547 fi
11548 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11549   # Extract the first word of "lipo", so it can be a program name with args.
11550 set dummy lipo; ac_word=$2
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11552 $as_echo_n "checking for $ac_word... " >&6; }
11553 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11554   $as_echo_n "(cached) " >&6
11555 else
11556   case $LIPO_FOR_TARGET in
11557   [\\/]* | ?:[\\/]*)
11558   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11559   ;;
11560   *)
11561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562 for as_dir in $gcc_cv_tool_dirs
11563 do
11564   IFS=$as_save_IFS
11565   test -z "$as_dir" && as_dir=.
11566     for ac_exec_ext in '' $ac_executable_extensions; do
11567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11568     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11570     break 2
11571   fi
11572 done
11573   done
11574 IFS=$as_save_IFS
11575
11576   ;;
11577 esac
11578 fi
11579 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11580 if test -n "$LIPO_FOR_TARGET"; then
11581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11582 $as_echo "$LIPO_FOR_TARGET" >&6; }
11583 else
11584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 $as_echo "no" >&6; }
11586 fi
11587
11588
11589 fi
11590 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11591
11592
11593 if test -n "$LIPO_FOR_TARGET"; then
11594   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11595 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11596   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11597 fi
11598
11599 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11600   for ncn_progname in lipo; do
11601     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11602 set dummy ${ncn_progname}; ac_word=$2
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11604 $as_echo_n "checking for $ac_word... " >&6; }
11605 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11606   $as_echo_n "(cached) " >&6
11607 else
11608   if test -n "$LIPO_FOR_TARGET"; then
11609   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11610 else
11611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11612 for as_dir in $PATH
11613 do
11614   IFS=$as_save_IFS
11615   test -z "$as_dir" && as_dir=.
11616     for ac_exec_ext in '' $ac_executable_extensions; do
11617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11618     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11620     break 2
11621   fi
11622 done
11623   done
11624 IFS=$as_save_IFS
11625
11626 fi
11627 fi
11628 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11629 if test -n "$LIPO_FOR_TARGET"; then
11630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11631 $as_echo "$LIPO_FOR_TARGET" >&6; }
11632 else
11633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11635 fi
11636
11637
11638   done
11639 fi
11640
11641 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11642   for ncn_progname in lipo; do
11643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11644 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11645     if test -x $with_build_time_tools/${ncn_progname}; then
11646       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11647       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648 $as_echo "yes" >&6; }
11649       break
11650     else
11651       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652 $as_echo "no" >&6; }
11653     fi
11654   done
11655 fi
11656
11657 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11658   for ncn_progname in lipo; do
11659     if test -n "$ncn_target_tool_prefix"; then
11660       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11661 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663 $as_echo_n "checking for $ac_word... " >&6; }
11664 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11665   $as_echo_n "(cached) " >&6
11666 else
11667   if test -n "$LIPO_FOR_TARGET"; then
11668   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11669 else
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $PATH
11672 do
11673   IFS=$as_save_IFS
11674   test -z "$as_dir" && as_dir=.
11675     for ac_exec_ext in '' $ac_executable_extensions; do
11676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11677     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11679     break 2
11680   fi
11681 done
11682   done
11683 IFS=$as_save_IFS
11684
11685 fi
11686 fi
11687 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11688 if test -n "$LIPO_FOR_TARGET"; then
11689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11690 $as_echo "$LIPO_FOR_TARGET" >&6; }
11691 else
11692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693 $as_echo "no" >&6; }
11694 fi
11695
11696
11697     fi
11698     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11699       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11700 set dummy ${ncn_progname}; ac_word=$2
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11702 $as_echo_n "checking for $ac_word... " >&6; }
11703 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11704   $as_echo_n "(cached) " >&6
11705 else
11706   if test -n "$LIPO_FOR_TARGET"; then
11707   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11708 else
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11711 do
11712   IFS=$as_save_IFS
11713   test -z "$as_dir" && as_dir=.
11714     for ac_exec_ext in '' $ac_executable_extensions; do
11715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11718     break 2
11719   fi
11720 done
11721   done
11722 IFS=$as_save_IFS
11723
11724 fi
11725 fi
11726 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11727 if test -n "$LIPO_FOR_TARGET"; then
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11729 $as_echo "$LIPO_FOR_TARGET" >&6; }
11730 else
11731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11733 fi
11734
11735
11736     fi
11737     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11738   done
11739 fi
11740
11741 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11742   set dummy lipo
11743   if test $build = $target ; then
11744     LIPO_FOR_TARGET="$2"
11745   else
11746     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11747   fi
11748 else
11749   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11750 fi
11751
11752 else
11753   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11754 fi
11755
11756
11757
11758
11759 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11760   if test -n "$with_build_time_tools"; then
11761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11762 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11763     if test -x $with_build_time_tools/nm; then
11764       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11765       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11767 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11768     else
11769       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 $as_echo "no" >&6; }
11771     fi
11772   elif test $build != $host && test $have_gcc_for_target = yes; then
11773     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11774     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11775     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11776   fi
11777 fi
11778 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11779   # Extract the first word of "nm", so it can be a program name with args.
11780 set dummy nm; ac_word=$2
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11782 $as_echo_n "checking for $ac_word... " >&6; }
11783 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11784   $as_echo_n "(cached) " >&6
11785 else
11786   case $NM_FOR_TARGET in
11787   [\\/]* | ?:[\\/]*)
11788   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11789   ;;
11790   *)
11791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792 for as_dir in $gcc_cv_tool_dirs
11793 do
11794   IFS=$as_save_IFS
11795   test -z "$as_dir" && as_dir=.
11796     for ac_exec_ext in '' $ac_executable_extensions; do
11797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11798     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11800     break 2
11801   fi
11802 done
11803   done
11804 IFS=$as_save_IFS
11805
11806   ;;
11807 esac
11808 fi
11809 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11810 if test -n "$NM_FOR_TARGET"; then
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11812 $as_echo "$NM_FOR_TARGET" >&6; }
11813 else
11814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816 fi
11817
11818
11819 fi
11820 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11821
11822
11823 if test -n "$NM_FOR_TARGET"; then
11824   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11825 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11826   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11827 fi
11828
11829 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11830   for ncn_progname in nm; do
11831     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11832 set dummy ${ncn_progname}; ac_word=$2
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834 $as_echo_n "checking for $ac_word... " >&6; }
11835 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11836   $as_echo_n "(cached) " >&6
11837 else
11838   if test -n "$NM_FOR_TARGET"; then
11839   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11840 else
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11843 do
11844   IFS=$as_save_IFS
11845   test -z "$as_dir" && as_dir=.
11846     for ac_exec_ext in '' $ac_executable_extensions; do
11847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11848     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11850     break 2
11851   fi
11852 done
11853   done
11854 IFS=$as_save_IFS
11855
11856 fi
11857 fi
11858 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11859 if test -n "$NM_FOR_TARGET"; then
11860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11861 $as_echo "$NM_FOR_TARGET" >&6; }
11862 else
11863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11865 fi
11866
11867
11868   done
11869 fi
11870
11871 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11872   for ncn_progname in nm; do
11873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11874 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11875     if test -x $with_build_time_tools/${ncn_progname}; then
11876       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11877       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11878 $as_echo "yes" >&6; }
11879       break
11880     else
11881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11883     fi
11884   done
11885 fi
11886
11887 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11888   for ncn_progname in nm; do
11889     if test -n "$ncn_target_tool_prefix"; then
11890       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11891 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11893 $as_echo_n "checking for $ac_word... " >&6; }
11894 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11895   $as_echo_n "(cached) " >&6
11896 else
11897   if test -n "$NM_FOR_TARGET"; then
11898   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11899 else
11900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901 for as_dir in $PATH
11902 do
11903   IFS=$as_save_IFS
11904   test -z "$as_dir" && as_dir=.
11905     for ac_exec_ext in '' $ac_executable_extensions; do
11906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11907     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909     break 2
11910   fi
11911 done
11912   done
11913 IFS=$as_save_IFS
11914
11915 fi
11916 fi
11917 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11918 if test -n "$NM_FOR_TARGET"; then
11919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11920 $as_echo "$NM_FOR_TARGET" >&6; }
11921 else
11922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 $as_echo "no" >&6; }
11924 fi
11925
11926
11927     fi
11928     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11929       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11930 set dummy ${ncn_progname}; ac_word=$2
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932 $as_echo_n "checking for $ac_word... " >&6; }
11933 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11934   $as_echo_n "(cached) " >&6
11935 else
11936   if test -n "$NM_FOR_TARGET"; then
11937   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11938 else
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11941 do
11942   IFS=$as_save_IFS
11943   test -z "$as_dir" && as_dir=.
11944     for ac_exec_ext in '' $ac_executable_extensions; do
11945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11946     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948     break 2
11949   fi
11950 done
11951   done
11952 IFS=$as_save_IFS
11953
11954 fi
11955 fi
11956 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11957 if test -n "$NM_FOR_TARGET"; then
11958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11959 $as_echo "$NM_FOR_TARGET" >&6; }
11960 else
11961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11963 fi
11964
11965
11966     fi
11967     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11968   done
11969 fi
11970
11971 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11972   set dummy nm
11973   if test $build = $target ; then
11974     NM_FOR_TARGET="$2"
11975   else
11976     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11977   fi
11978 else
11979   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11980 fi
11981
11982 else
11983   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11984 fi
11985
11986
11987
11988
11989 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11990   if test -n "$with_build_time_tools"; then
11991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11992 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11993     if test -x $with_build_time_tools/objdump; then
11994       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11995       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11996       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11997 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11998     else
11999       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12001     fi
12002   elif test $build != $host && test $have_gcc_for_target = yes; then
12003     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12004     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12005     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12006   fi
12007 fi
12008 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12009   # Extract the first word of "objdump", so it can be a program name with args.
12010 set dummy objdump; ac_word=$2
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012 $as_echo_n "checking for $ac_word... " >&6; }
12013 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12014   $as_echo_n "(cached) " >&6
12015 else
12016   case $OBJDUMP_FOR_TARGET in
12017   [\\/]* | ?:[\\/]*)
12018   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12019   ;;
12020   *)
12021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022 for as_dir in $gcc_cv_tool_dirs
12023 do
12024   IFS=$as_save_IFS
12025   test -z "$as_dir" && as_dir=.
12026     for ac_exec_ext in '' $ac_executable_extensions; do
12027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12028     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12030     break 2
12031   fi
12032 done
12033   done
12034 IFS=$as_save_IFS
12035
12036   ;;
12037 esac
12038 fi
12039 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12040 if test -n "$OBJDUMP_FOR_TARGET"; then
12041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12042 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12043 else
12044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 $as_echo "no" >&6; }
12046 fi
12047
12048
12049 fi
12050 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12051
12052
12053 if test -n "$OBJDUMP_FOR_TARGET"; then
12054   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12055 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12056   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12057 fi
12058
12059 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12060   for ncn_progname in objdump; do
12061     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12062 set dummy ${ncn_progname}; ac_word=$2
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12064 $as_echo_n "checking for $ac_word... " >&6; }
12065 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12066   $as_echo_n "(cached) " >&6
12067 else
12068   if test -n "$OBJDUMP_FOR_TARGET"; then
12069   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12070 else
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072 for as_dir in $PATH
12073 do
12074   IFS=$as_save_IFS
12075   test -z "$as_dir" && as_dir=.
12076     for ac_exec_ext in '' $ac_executable_extensions; do
12077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12078     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12080     break 2
12081   fi
12082 done
12083   done
12084 IFS=$as_save_IFS
12085
12086 fi
12087 fi
12088 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12089 if test -n "$OBJDUMP_FOR_TARGET"; then
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12091 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12092 else
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12095 fi
12096
12097
12098   done
12099 fi
12100
12101 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12102   for ncn_progname in objdump; do
12103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12104 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12105     if test -x $with_build_time_tools/${ncn_progname}; then
12106       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12108 $as_echo "yes" >&6; }
12109       break
12110     else
12111       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112 $as_echo "no" >&6; }
12113     fi
12114   done
12115 fi
12116
12117 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12118   for ncn_progname in objdump; do
12119     if test -n "$ncn_target_tool_prefix"; then
12120       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12121 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123 $as_echo_n "checking for $ac_word... " >&6; }
12124 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12125   $as_echo_n "(cached) " >&6
12126 else
12127   if test -n "$OBJDUMP_FOR_TARGET"; then
12128   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12129 else
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12132 do
12133   IFS=$as_save_IFS
12134   test -z "$as_dir" && as_dir=.
12135     for ac_exec_ext in '' $ac_executable_extensions; do
12136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12137     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139     break 2
12140   fi
12141 done
12142   done
12143 IFS=$as_save_IFS
12144
12145 fi
12146 fi
12147 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12148 if test -n "$OBJDUMP_FOR_TARGET"; then
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12150 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12151 else
12152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154 fi
12155
12156
12157     fi
12158     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12159       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12160 set dummy ${ncn_progname}; ac_word=$2
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162 $as_echo_n "checking for $ac_word... " >&6; }
12163 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12164   $as_echo_n "(cached) " >&6
12165 else
12166   if test -n "$OBJDUMP_FOR_TARGET"; then
12167   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12168 else
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $PATH
12171 do
12172   IFS=$as_save_IFS
12173   test -z "$as_dir" && as_dir=.
12174     for ac_exec_ext in '' $ac_executable_extensions; do
12175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12176     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178     break 2
12179   fi
12180 done
12181   done
12182 IFS=$as_save_IFS
12183
12184 fi
12185 fi
12186 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12187 if test -n "$OBJDUMP_FOR_TARGET"; then
12188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12189 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12190 else
12191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; }
12193 fi
12194
12195
12196     fi
12197     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12198   done
12199 fi
12200
12201 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12202   set dummy objdump
12203   if test $build = $target ; then
12204     OBJDUMP_FOR_TARGET="$2"
12205   else
12206     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12207   fi
12208 else
12209   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12210 fi
12211
12212 else
12213   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12214 fi
12215
12216
12217
12218
12219 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12220   if test -n "$with_build_time_tools"; then
12221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12222 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12223     if test -x $with_build_time_tools/ranlib; then
12224       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12225       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12226       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12227 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12228     else
12229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230 $as_echo "no" >&6; }
12231     fi
12232   elif test $build != $host && test $have_gcc_for_target = yes; then
12233     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12234     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12235     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12236   fi
12237 fi
12238 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12239   # Extract the first word of "ranlib", so it can be a program name with args.
12240 set dummy ranlib; ac_word=$2
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242 $as_echo_n "checking for $ac_word... " >&6; }
12243 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12244   $as_echo_n "(cached) " >&6
12245 else
12246   case $RANLIB_FOR_TARGET in
12247   [\\/]* | ?:[\\/]*)
12248   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12249   ;;
12250   *)
12251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $gcc_cv_tool_dirs
12253 do
12254   IFS=$as_save_IFS
12255   test -z "$as_dir" && as_dir=.
12256     for ac_exec_ext in '' $ac_executable_extensions; do
12257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12258     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260     break 2
12261   fi
12262 done
12263   done
12264 IFS=$as_save_IFS
12265
12266   ;;
12267 esac
12268 fi
12269 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12270 if test -n "$RANLIB_FOR_TARGET"; then
12271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12272 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12273 else
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12276 fi
12277
12278
12279 fi
12280 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12281
12282
12283 if test -n "$RANLIB_FOR_TARGET"; then
12284   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12285 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12286   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12287 fi
12288
12289 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12290   for ncn_progname in ranlib; do
12291     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12292 set dummy ${ncn_progname}; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294 $as_echo_n "checking for $ac_word... " >&6; }
12295 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12296   $as_echo_n "(cached) " >&6
12297 else
12298   if test -n "$RANLIB_FOR_TARGET"; then
12299   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12300 else
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12303 do
12304   IFS=$as_save_IFS
12305   test -z "$as_dir" && as_dir=.
12306     for ac_exec_ext in '' $ac_executable_extensions; do
12307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12308     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12310     break 2
12311   fi
12312 done
12313   done
12314 IFS=$as_save_IFS
12315
12316 fi
12317 fi
12318 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12319 if test -n "$RANLIB_FOR_TARGET"; then
12320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12321 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12322 else
12323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325 fi
12326
12327
12328   done
12329 fi
12330
12331 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12332   for ncn_progname in ranlib; do
12333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12334 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12335     if test -x $with_build_time_tools/${ncn_progname}; then
12336       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12338 $as_echo "yes" >&6; }
12339       break
12340     else
12341       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12343     fi
12344   done
12345 fi
12346
12347 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12348   for ncn_progname in ranlib; do
12349     if test -n "$ncn_target_tool_prefix"; then
12350       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12351 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353 $as_echo_n "checking for $ac_word... " >&6; }
12354 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12355   $as_echo_n "(cached) " >&6
12356 else
12357   if test -n "$RANLIB_FOR_TARGET"; then
12358   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12359 else
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361 for as_dir in $PATH
12362 do
12363   IFS=$as_save_IFS
12364   test -z "$as_dir" && as_dir=.
12365     for ac_exec_ext in '' $ac_executable_extensions; do
12366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12367     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12369     break 2
12370   fi
12371 done
12372   done
12373 IFS=$as_save_IFS
12374
12375 fi
12376 fi
12377 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12378 if test -n "$RANLIB_FOR_TARGET"; then
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12380 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12381 else
12382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12384 fi
12385
12386
12387     fi
12388     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12389       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12390 set dummy ${ncn_progname}; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12394   $as_echo_n "(cached) " >&6
12395 else
12396   if test -n "$RANLIB_FOR_TARGET"; then
12397   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12401 do
12402   IFS=$as_save_IFS
12403   test -z "$as_dir" && as_dir=.
12404     for ac_exec_ext in '' $ac_executable_extensions; do
12405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12406     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408     break 2
12409   fi
12410 done
12411   done
12412 IFS=$as_save_IFS
12413
12414 fi
12415 fi
12416 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12417 if test -n "$RANLIB_FOR_TARGET"; then
12418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12419 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12420 else
12421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12423 fi
12424
12425
12426     fi
12427     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12428   done
12429 fi
12430
12431 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12432   set dummy ranlib
12433   if test $build = $target ; then
12434     RANLIB_FOR_TARGET="$2"
12435   else
12436     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12437   fi
12438 else
12439   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12440 fi
12441
12442 else
12443   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12444 fi
12445
12446
12447
12448
12449 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12450   if test -n "$with_build_time_tools"; then
12451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12452 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12453     if test -x $with_build_time_tools/strip; then
12454       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12455       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12456       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12457 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12458     else
12459       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460 $as_echo "no" >&6; }
12461     fi
12462   elif test $build != $host && test $have_gcc_for_target = yes; then
12463     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12464     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12465     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12466   fi
12467 fi
12468 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12469   # Extract the first word of "strip", so it can be a program name with args.
12470 set dummy strip; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12474   $as_echo_n "(cached) " >&6
12475 else
12476   case $STRIP_FOR_TARGET in
12477   [\\/]* | ?:[\\/]*)
12478   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12479   ;;
12480   *)
12481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $gcc_cv_tool_dirs
12483 do
12484   IFS=$as_save_IFS
12485   test -z "$as_dir" && as_dir=.
12486     for ac_exec_ext in '' $ac_executable_extensions; do
12487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12488     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490     break 2
12491   fi
12492 done
12493   done
12494 IFS=$as_save_IFS
12495
12496   ;;
12497 esac
12498 fi
12499 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12500 if test -n "$STRIP_FOR_TARGET"; then
12501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12502 $as_echo "$STRIP_FOR_TARGET" >&6; }
12503 else
12504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12506 fi
12507
12508
12509 fi
12510 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12511
12512
12513 if test -n "$STRIP_FOR_TARGET"; then
12514   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12515 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12516   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12517 fi
12518
12519 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12520   for ncn_progname in strip; do
12521     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12522 set dummy ${ncn_progname}; ac_word=$2
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524 $as_echo_n "checking for $ac_word... " >&6; }
12525 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12526   $as_echo_n "(cached) " >&6
12527 else
12528   if test -n "$STRIP_FOR_TARGET"; then
12529   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12530 else
12531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532 for as_dir in $PATH
12533 do
12534   IFS=$as_save_IFS
12535   test -z "$as_dir" && as_dir=.
12536     for ac_exec_ext in '' $ac_executable_extensions; do
12537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12538     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12540     break 2
12541   fi
12542 done
12543   done
12544 IFS=$as_save_IFS
12545
12546 fi
12547 fi
12548 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12549 if test -n "$STRIP_FOR_TARGET"; then
12550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12551 $as_echo "$STRIP_FOR_TARGET" >&6; }
12552 else
12553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12555 fi
12556
12557
12558   done
12559 fi
12560
12561 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12562   for ncn_progname in strip; do
12563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12564 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12565     if test -x $with_build_time_tools/${ncn_progname}; then
12566       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12568 $as_echo "yes" >&6; }
12569       break
12570     else
12571       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572 $as_echo "no" >&6; }
12573     fi
12574   done
12575 fi
12576
12577 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12578   for ncn_progname in strip; do
12579     if test -n "$ncn_target_tool_prefix"; then
12580       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12581 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12583 $as_echo_n "checking for $ac_word... " >&6; }
12584 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12585   $as_echo_n "(cached) " >&6
12586 else
12587   if test -n "$STRIP_FOR_TARGET"; then
12588   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12589 else
12590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591 for as_dir in $PATH
12592 do
12593   IFS=$as_save_IFS
12594   test -z "$as_dir" && as_dir=.
12595     for ac_exec_ext in '' $ac_executable_extensions; do
12596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12597     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12599     break 2
12600   fi
12601 done
12602   done
12603 IFS=$as_save_IFS
12604
12605 fi
12606 fi
12607 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12608 if test -n "$STRIP_FOR_TARGET"; then
12609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12610 $as_echo "$STRIP_FOR_TARGET" >&6; }
12611 else
12612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12614 fi
12615
12616
12617     fi
12618     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12619       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12620 set dummy ${ncn_progname}; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12624   $as_echo_n "(cached) " >&6
12625 else
12626   if test -n "$STRIP_FOR_TARGET"; then
12627   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12628 else
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12631 do
12632   IFS=$as_save_IFS
12633   test -z "$as_dir" && as_dir=.
12634     for ac_exec_ext in '' $ac_executable_extensions; do
12635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12636     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638     break 2
12639   fi
12640 done
12641   done
12642 IFS=$as_save_IFS
12643
12644 fi
12645 fi
12646 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12647 if test -n "$STRIP_FOR_TARGET"; then
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12649 $as_echo "$STRIP_FOR_TARGET" >&6; }
12650 else
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653 fi
12654
12655
12656     fi
12657     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12658   done
12659 fi
12660
12661 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12662   set dummy strip
12663   if test $build = $target ; then
12664     STRIP_FOR_TARGET="$2"
12665   else
12666     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12667   fi
12668 else
12669   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12670 fi
12671
12672 else
12673   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12674 fi
12675
12676
12677
12678
12679 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12680   if test -n "$with_build_time_tools"; then
12681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12682 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12683     if test -x $with_build_time_tools/windres; then
12684       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12685       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12686       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12687 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12688     else
12689       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690 $as_echo "no" >&6; }
12691     fi
12692   elif test $build != $host && test $have_gcc_for_target = yes; then
12693     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12694     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12695     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12696   fi
12697 fi
12698 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12699   # Extract the first word of "windres", so it can be a program name with args.
12700 set dummy windres; ac_word=$2
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12702 $as_echo_n "checking for $ac_word... " >&6; }
12703 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12704   $as_echo_n "(cached) " >&6
12705 else
12706   case $WINDRES_FOR_TARGET in
12707   [\\/]* | ?:[\\/]*)
12708   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12709   ;;
12710   *)
12711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12712 for as_dir in $gcc_cv_tool_dirs
12713 do
12714   IFS=$as_save_IFS
12715   test -z "$as_dir" && as_dir=.
12716     for ac_exec_ext in '' $ac_executable_extensions; do
12717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12718     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12720     break 2
12721   fi
12722 done
12723   done
12724 IFS=$as_save_IFS
12725
12726   ;;
12727 esac
12728 fi
12729 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12730 if test -n "$WINDRES_FOR_TARGET"; then
12731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12732 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12733 else
12734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12736 fi
12737
12738
12739 fi
12740 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12741
12742
12743 if test -n "$WINDRES_FOR_TARGET"; then
12744   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12745 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12746   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12747 fi
12748
12749 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12750   for ncn_progname in windres; do
12751     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12752 set dummy ${ncn_progname}; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   if test -n "$WINDRES_FOR_TARGET"; then
12759   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12760 else
12761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762 for as_dir in $PATH
12763 do
12764   IFS=$as_save_IFS
12765   test -z "$as_dir" && as_dir=.
12766     for ac_exec_ext in '' $ac_executable_extensions; do
12767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12768     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12770     break 2
12771   fi
12772 done
12773   done
12774 IFS=$as_save_IFS
12775
12776 fi
12777 fi
12778 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12779 if test -n "$WINDRES_FOR_TARGET"; then
12780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12781 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12782 else
12783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12785 fi
12786
12787
12788   done
12789 fi
12790
12791 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12792   for ncn_progname in windres; do
12793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12794 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12795     if test -x $with_build_time_tools/${ncn_progname}; then
12796       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12797       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12798 $as_echo "yes" >&6; }
12799       break
12800     else
12801       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802 $as_echo "no" >&6; }
12803     fi
12804   done
12805 fi
12806
12807 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12808   for ncn_progname in windres; do
12809     if test -n "$ncn_target_tool_prefix"; then
12810       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12811 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813 $as_echo_n "checking for $ac_word... " >&6; }
12814 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12815   $as_echo_n "(cached) " >&6
12816 else
12817   if test -n "$WINDRES_FOR_TARGET"; then
12818   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12819 else
12820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821 for as_dir in $PATH
12822 do
12823   IFS=$as_save_IFS
12824   test -z "$as_dir" && as_dir=.
12825     for ac_exec_ext in '' $ac_executable_extensions; do
12826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12827     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829     break 2
12830   fi
12831 done
12832   done
12833 IFS=$as_save_IFS
12834
12835 fi
12836 fi
12837 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12838 if test -n "$WINDRES_FOR_TARGET"; then
12839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12840 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12841 else
12842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843 $as_echo "no" >&6; }
12844 fi
12845
12846
12847     fi
12848     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12849       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12850 set dummy ${ncn_progname}; ac_word=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852 $as_echo_n "checking for $ac_word... " >&6; }
12853 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12854   $as_echo_n "(cached) " >&6
12855 else
12856   if test -n "$WINDRES_FOR_TARGET"; then
12857   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12858 else
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12861 do
12862   IFS=$as_save_IFS
12863   test -z "$as_dir" && as_dir=.
12864     for ac_exec_ext in '' $ac_executable_extensions; do
12865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12866     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868     break 2
12869   fi
12870 done
12871   done
12872 IFS=$as_save_IFS
12873
12874 fi
12875 fi
12876 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12877 if test -n "$WINDRES_FOR_TARGET"; then
12878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12879 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12880 else
12881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12883 fi
12884
12885
12886     fi
12887     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12888   done
12889 fi
12890
12891 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12892   set dummy windres
12893   if test $build = $target ; then
12894     WINDRES_FOR_TARGET="$2"
12895   else
12896     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12897   fi
12898 else
12899   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12900 fi
12901
12902 else
12903   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12904 fi
12905
12906
12907
12908
12909 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12910   if test -n "$with_build_time_tools"; then
12911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12912 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12913     if test -x $with_build_time_tools/windmc; then
12914       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12915       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12916       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12917 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12918     else
12919       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12921     fi
12922   elif test $build != $host && test $have_gcc_for_target = yes; then
12923     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12924     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12925     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12926   fi
12927 fi
12928 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12929   # Extract the first word of "windmc", so it can be a program name with args.
12930 set dummy windmc; ac_word=$2
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12932 $as_echo_n "checking for $ac_word... " >&6; }
12933 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12934   $as_echo_n "(cached) " >&6
12935 else
12936   case $WINDMC_FOR_TARGET in
12937   [\\/]* | ?:[\\/]*)
12938   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12939   ;;
12940   *)
12941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12942 for as_dir in $gcc_cv_tool_dirs
12943 do
12944   IFS=$as_save_IFS
12945   test -z "$as_dir" && as_dir=.
12946     for ac_exec_ext in '' $ac_executable_extensions; do
12947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12948     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12950     break 2
12951   fi
12952 done
12953   done
12954 IFS=$as_save_IFS
12955
12956   ;;
12957 esac
12958 fi
12959 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12960 if test -n "$WINDMC_FOR_TARGET"; then
12961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12962 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12963 else
12964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12966 fi
12967
12968
12969 fi
12970 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12971
12972
12973 if test -n "$WINDMC_FOR_TARGET"; then
12974   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12975 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12976   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12977 fi
12978
12979 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12980   for ncn_progname in windmc; do
12981     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12982 set dummy ${ncn_progname}; ac_word=$2
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984 $as_echo_n "checking for $ac_word... " >&6; }
12985 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12986   $as_echo_n "(cached) " >&6
12987 else
12988   if test -n "$WINDMC_FOR_TARGET"; then
12989   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12990 else
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992 for as_dir in $PATH
12993 do
12994   IFS=$as_save_IFS
12995   test -z "$as_dir" && as_dir=.
12996     for ac_exec_ext in '' $ac_executable_extensions; do
12997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12998     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13000     break 2
13001   fi
13002 done
13003   done
13004 IFS=$as_save_IFS
13005
13006 fi
13007 fi
13008 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13009 if test -n "$WINDMC_FOR_TARGET"; then
13010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13011 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13012 else
13013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13015 fi
13016
13017
13018   done
13019 fi
13020
13021 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13022   for ncn_progname in windmc; do
13023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13024 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13025     if test -x $with_build_time_tools/${ncn_progname}; then
13026       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13027       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13028 $as_echo "yes" >&6; }
13029       break
13030     else
13031       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032 $as_echo "no" >&6; }
13033     fi
13034   done
13035 fi
13036
13037 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13038   for ncn_progname in windmc; do
13039     if test -n "$ncn_target_tool_prefix"; then
13040       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13041 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043 $as_echo_n "checking for $ac_word... " >&6; }
13044 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13045   $as_echo_n "(cached) " >&6
13046 else
13047   if test -n "$WINDMC_FOR_TARGET"; then
13048   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13049 else
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13052 do
13053   IFS=$as_save_IFS
13054   test -z "$as_dir" && as_dir=.
13055     for ac_exec_ext in '' $ac_executable_extensions; do
13056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13057     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13059     break 2
13060   fi
13061 done
13062   done
13063 IFS=$as_save_IFS
13064
13065 fi
13066 fi
13067 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13068 if test -n "$WINDMC_FOR_TARGET"; then
13069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13070 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13071 else
13072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073 $as_echo "no" >&6; }
13074 fi
13075
13076
13077     fi
13078     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13079       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13080 set dummy ${ncn_progname}; ac_word=$2
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082 $as_echo_n "checking for $ac_word... " >&6; }
13083 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13084   $as_echo_n "(cached) " >&6
13085 else
13086   if test -n "$WINDMC_FOR_TARGET"; then
13087   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13088 else
13089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090 for as_dir in $PATH
13091 do
13092   IFS=$as_save_IFS
13093   test -z "$as_dir" && as_dir=.
13094     for ac_exec_ext in '' $ac_executable_extensions; do
13095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13096     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098     break 2
13099   fi
13100 done
13101   done
13102 IFS=$as_save_IFS
13103
13104 fi
13105 fi
13106 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13107 if test -n "$WINDMC_FOR_TARGET"; then
13108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13109 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13110 else
13111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112 $as_echo "no" >&6; }
13113 fi
13114
13115
13116     fi
13117     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13118   done
13119 fi
13120
13121 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13122   set dummy windmc
13123   if test $build = $target ; then
13124     WINDMC_FOR_TARGET="$2"
13125   else
13126     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13127   fi
13128 else
13129   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13130 fi
13131
13132 else
13133   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13134 fi
13135
13136
13137 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13138
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13140 $as_echo_n "checking where to find the target ar... " >&6; }
13141 if test "x${build}" != "x${host}" ; then
13142   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13143     # We already found the complete path
13144     ac_dir=`dirname $AR_FOR_TARGET`
13145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13146 $as_echo "pre-installed in $ac_dir" >&6; }
13147   else
13148     # Canadian cross, just use what we found
13149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13150 $as_echo "pre-installed" >&6; }
13151   fi
13152 else
13153   ok=yes
13154   case " ${configdirs} " in
13155     *" binutils "*) ;;
13156     *) ok=no ;;
13157   esac
13158
13159   if test $ok = yes; then
13160     # An in-tree tool is available and we can use it
13161     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13163 $as_echo "just compiled" >&6; }
13164   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13165     # We already found the complete path
13166     ac_dir=`dirname $AR_FOR_TARGET`
13167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13168 $as_echo "pre-installed in $ac_dir" >&6; }
13169   elif test "x$target" = "x$host"; then
13170     # We can use an host tool
13171     AR_FOR_TARGET='$(AR)'
13172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13173 $as_echo "host tool" >&6; }
13174   else
13175     # We need a cross tool
13176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13177 $as_echo "pre-installed" >&6; }
13178   fi
13179 fi
13180
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13182 $as_echo_n "checking where to find the target as... " >&6; }
13183 if test "x${build}" != "x${host}" ; then
13184   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13185     # We already found the complete path
13186     ac_dir=`dirname $AS_FOR_TARGET`
13187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13188 $as_echo "pre-installed in $ac_dir" >&6; }
13189   else
13190     # Canadian cross, just use what we found
13191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13192 $as_echo "pre-installed" >&6; }
13193   fi
13194 else
13195   ok=yes
13196   case " ${configdirs} " in
13197     *" gas "*) ;;
13198     *) ok=no ;;
13199   esac
13200
13201   if test $ok = yes; then
13202     # An in-tree tool is available and we can use it
13203     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13205 $as_echo "just compiled" >&6; }
13206   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13207     # We already found the complete path
13208     ac_dir=`dirname $AS_FOR_TARGET`
13209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13210 $as_echo "pre-installed in $ac_dir" >&6; }
13211   elif test "x$target" = "x$host"; then
13212     # We can use an host tool
13213     AS_FOR_TARGET='$(AS)'
13214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13215 $as_echo "host tool" >&6; }
13216   else
13217     # We need a cross tool
13218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13219 $as_echo "pre-installed" >&6; }
13220   fi
13221 fi
13222
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13224 $as_echo_n "checking where to find the target cc... " >&6; }
13225 if test "x${build}" != "x${host}" ; then
13226   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13227     # We already found the complete path
13228     ac_dir=`dirname $CC_FOR_TARGET`
13229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13230 $as_echo "pre-installed in $ac_dir" >&6; }
13231   else
13232     # Canadian cross, just use what we found
13233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13234 $as_echo "pre-installed" >&6; }
13235   fi
13236 else
13237   ok=yes
13238   case " ${configdirs} " in
13239     *" gcc "*) ;;
13240     *) ok=no ;;
13241   esac
13242
13243   if test $ok = yes; then
13244     # An in-tree tool is available and we can use it
13245     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13247 $as_echo "just compiled" >&6; }
13248   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13249     # We already found the complete path
13250     ac_dir=`dirname $CC_FOR_TARGET`
13251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13252 $as_echo "pre-installed in $ac_dir" >&6; }
13253   elif test "x$target" = "x$host"; then
13254     # We can use an host tool
13255     CC_FOR_TARGET='$(CC)'
13256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13257 $as_echo "host tool" >&6; }
13258   else
13259     # We need a cross tool
13260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13261 $as_echo "pre-installed" >&6; }
13262   fi
13263 fi
13264
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13266 $as_echo_n "checking where to find the target c++... " >&6; }
13267 if test "x${build}" != "x${host}" ; then
13268   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13269     # We already found the complete path
13270     ac_dir=`dirname $CXX_FOR_TARGET`
13271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13272 $as_echo "pre-installed in $ac_dir" >&6; }
13273   else
13274     # Canadian cross, just use what we found
13275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13276 $as_echo "pre-installed" >&6; }
13277   fi
13278 else
13279   ok=yes
13280   case " ${configdirs} " in
13281     *" gcc "*) ;;
13282     *) ok=no ;;
13283   esac
13284   case ,${enable_languages}, in
13285     *,c++,*) ;;
13286     *) ok=no ;;
13287   esac
13288   if test $ok = yes; then
13289     # An in-tree tool is available and we can use it
13290     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'
13291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13292 $as_echo "just compiled" >&6; }
13293   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13294     # We already found the complete path
13295     ac_dir=`dirname $CXX_FOR_TARGET`
13296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13297 $as_echo "pre-installed in $ac_dir" >&6; }
13298   elif test "x$target" = "x$host"; then
13299     # We can use an host tool
13300     CXX_FOR_TARGET='$(CXX)'
13301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13302 $as_echo "host tool" >&6; }
13303   else
13304     # We need a cross tool
13305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13306 $as_echo "pre-installed" >&6; }
13307   fi
13308 fi
13309
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13311 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13312 if test "x${build}" != "x${host}" ; then
13313   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13314     # We already found the complete path
13315     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13317 $as_echo "pre-installed in $ac_dir" >&6; }
13318   else
13319     # Canadian cross, just use what we found
13320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13321 $as_echo "pre-installed" >&6; }
13322   fi
13323 else
13324   ok=yes
13325   case " ${configdirs} " in
13326     *" gcc "*) ;;
13327     *) ok=no ;;
13328   esac
13329   case ,${enable_languages}, in
13330     *,c++,*) ;;
13331     *) ok=no ;;
13332   esac
13333   if test $ok = yes; then
13334     # An in-tree tool is available and we can use it
13335     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'
13336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13337 $as_echo "just compiled" >&6; }
13338   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13339     # We already found the complete path
13340     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13342 $as_echo "pre-installed in $ac_dir" >&6; }
13343   elif test "x$target" = "x$host"; then
13344     # We can use an host tool
13345     RAW_CXX_FOR_TARGET='$(CXX)'
13346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13347 $as_echo "host tool" >&6; }
13348   else
13349     # We need a cross tool
13350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13351 $as_echo "pre-installed" >&6; }
13352   fi
13353 fi
13354
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13356 $as_echo_n "checking where to find the target dlltool... " >&6; }
13357 if test "x${build}" != "x${host}" ; then
13358   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13359     # We already found the complete path
13360     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13362 $as_echo "pre-installed in $ac_dir" >&6; }
13363   else
13364     # Canadian cross, just use what we found
13365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13366 $as_echo "pre-installed" >&6; }
13367   fi
13368 else
13369   ok=yes
13370   case " ${configdirs} " in
13371     *" binutils "*) ;;
13372     *) ok=no ;;
13373   esac
13374
13375   if test $ok = yes; then
13376     # An in-tree tool is available and we can use it
13377     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13379 $as_echo "just compiled" >&6; }
13380   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13381     # We already found the complete path
13382     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13384 $as_echo "pre-installed in $ac_dir" >&6; }
13385   elif test "x$target" = "x$host"; then
13386     # We can use an host tool
13387     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13389 $as_echo "host tool" >&6; }
13390   else
13391     # We need a cross tool
13392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13393 $as_echo "pre-installed" >&6; }
13394   fi
13395 fi
13396
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13398 $as_echo_n "checking where to find the target gcc... " >&6; }
13399 if test "x${build}" != "x${host}" ; then
13400   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13401     # We already found the complete path
13402     ac_dir=`dirname $GCC_FOR_TARGET`
13403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13404 $as_echo "pre-installed in $ac_dir" >&6; }
13405   else
13406     # Canadian cross, just use what we found
13407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13408 $as_echo "pre-installed" >&6; }
13409   fi
13410 else
13411   ok=yes
13412   case " ${configdirs} " in
13413     *" gcc "*) ;;
13414     *) ok=no ;;
13415   esac
13416
13417   if test $ok = yes; then
13418     # An in-tree tool is available and we can use it
13419     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13421 $as_echo "just compiled" >&6; }
13422   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13423     # We already found the complete path
13424     ac_dir=`dirname $GCC_FOR_TARGET`
13425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13426 $as_echo "pre-installed in $ac_dir" >&6; }
13427   elif test "x$target" = "x$host"; then
13428     # We can use an host tool
13429     GCC_FOR_TARGET='$()'
13430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13431 $as_echo "host tool" >&6; }
13432   else
13433     # We need a cross tool
13434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13435 $as_echo "pre-installed" >&6; }
13436   fi
13437 fi
13438
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13440 $as_echo_n "checking where to find the target gcj... " >&6; }
13441 if test "x${build}" != "x${host}" ; then
13442   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13443     # We already found the complete path
13444     ac_dir=`dirname $GCJ_FOR_TARGET`
13445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13446 $as_echo "pre-installed in $ac_dir" >&6; }
13447   else
13448     # Canadian cross, just use what we found
13449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13450 $as_echo "pre-installed" >&6; }
13451   fi
13452 else
13453   ok=yes
13454   case " ${configdirs} " in
13455     *" gcc "*) ;;
13456     *) ok=no ;;
13457   esac
13458   case ,${enable_languages}, in
13459     *,java,*) ;;
13460     *) ok=no ;;
13461   esac
13462   if test $ok = yes; then
13463     # An in-tree tool is available and we can use it
13464     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13466 $as_echo "just compiled" >&6; }
13467   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13468     # We already found the complete path
13469     ac_dir=`dirname $GCJ_FOR_TARGET`
13470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13471 $as_echo "pre-installed in $ac_dir" >&6; }
13472   elif test "x$target" = "x$host"; then
13473     # We can use an host tool
13474     GCJ_FOR_TARGET='$(GCJ)'
13475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13476 $as_echo "host tool" >&6; }
13477   else
13478     # We need a cross tool
13479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13480 $as_echo "pre-installed" >&6; }
13481   fi
13482 fi
13483
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13485 $as_echo_n "checking where to find the target gfortran... " >&6; }
13486 if test "x${build}" != "x${host}" ; then
13487   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13488     # We already found the complete path
13489     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13491 $as_echo "pre-installed in $ac_dir" >&6; }
13492   else
13493     # Canadian cross, just use what we found
13494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13495 $as_echo "pre-installed" >&6; }
13496   fi
13497 else
13498   ok=yes
13499   case " ${configdirs} " in
13500     *" gcc "*) ;;
13501     *) ok=no ;;
13502   esac
13503   case ,${enable_languages}, in
13504     *,fortran,*) ;;
13505     *) ok=no ;;
13506   esac
13507   if test $ok = yes; then
13508     # An in-tree tool is available and we can use it
13509     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13511 $as_echo "just compiled" >&6; }
13512   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13513     # We already found the complete path
13514     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13516 $as_echo "pre-installed in $ac_dir" >&6; }
13517   elif test "x$target" = "x$host"; then
13518     # We can use an host tool
13519     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13521 $as_echo "host tool" >&6; }
13522   else
13523     # We need a cross tool
13524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13525 $as_echo "pre-installed" >&6; }
13526   fi
13527 fi
13528
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13530 $as_echo_n "checking where to find the target gccgo... " >&6; }
13531 if test "x${build}" != "x${host}" ; then
13532   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13533     # We already found the complete path
13534     ac_dir=`dirname $GOC_FOR_TARGET`
13535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13536 $as_echo "pre-installed in $ac_dir" >&6; }
13537   else
13538     # Canadian cross, just use what we found
13539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13540 $as_echo "pre-installed" >&6; }
13541   fi
13542 else
13543   ok=yes
13544   case " ${configdirs} " in
13545     *" gcc "*) ;;
13546     *) ok=no ;;
13547   esac
13548   case ,${enable_languages}, in
13549     *,go,*) ;;
13550     *) ok=no ;;
13551   esac
13552   if test $ok = yes; then
13553     # An in-tree tool is available and we can use it
13554     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13556 $as_echo "just compiled" >&6; }
13557   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13558     # We already found the complete path
13559     ac_dir=`dirname $GOC_FOR_TARGET`
13560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13561 $as_echo "pre-installed in $ac_dir" >&6; }
13562   elif test "x$target" = "x$host"; then
13563     # We can use an host tool
13564     GOC_FOR_TARGET='$(GOC)'
13565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13566 $as_echo "host tool" >&6; }
13567   else
13568     # We need a cross tool
13569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13570 $as_echo "pre-installed" >&6; }
13571   fi
13572 fi
13573
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13575 $as_echo_n "checking where to find the target ld... " >&6; }
13576 if test "x${build}" != "x${host}" ; then
13577   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13578     # We already found the complete path
13579     ac_dir=`dirname $LD_FOR_TARGET`
13580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13581 $as_echo "pre-installed in $ac_dir" >&6; }
13582   else
13583     # Canadian cross, just use what we found
13584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13585 $as_echo "pre-installed" >&6; }
13586   fi
13587 else
13588   ok=yes
13589   case " ${configdirs} " in
13590     *" ld "*) ;;
13591     *) ok=no ;;
13592   esac
13593
13594   if test $ok = yes; then
13595     # An in-tree tool is available and we can use it
13596     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13598 $as_echo "just compiled" >&6; }
13599   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13600     # We already found the complete path
13601     ac_dir=`dirname $LD_FOR_TARGET`
13602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13603 $as_echo "pre-installed in $ac_dir" >&6; }
13604   elif test "x$target" = "x$host"; then
13605     # We can use an host tool
13606     LD_FOR_TARGET='$(LD)'
13607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13608 $as_echo "host tool" >&6; }
13609   else
13610     # We need a cross tool
13611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13612 $as_echo "pre-installed" >&6; }
13613   fi
13614 fi
13615
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13617 $as_echo_n "checking where to find the target lipo... " >&6; }
13618 if test "x${build}" != "x${host}" ; then
13619   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13620     # We already found the complete path
13621     ac_dir=`dirname $LIPO_FOR_TARGET`
13622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13623 $as_echo "pre-installed in $ac_dir" >&6; }
13624   else
13625     # Canadian cross, just use what we found
13626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13627 $as_echo "pre-installed" >&6; }
13628   fi
13629 else
13630   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13631     # We already found the complete path
13632     ac_dir=`dirname $LIPO_FOR_TARGET`
13633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13634 $as_echo "pre-installed in $ac_dir" >&6; }
13635   elif test "x$target" = "x$host"; then
13636     # We can use an host tool
13637     LIPO_FOR_TARGET='$(LIPO)'
13638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13639 $as_echo "host tool" >&6; }
13640   else
13641     # We need a cross tool
13642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13643 $as_echo "pre-installed" >&6; }
13644   fi
13645 fi
13646
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13648 $as_echo_n "checking where to find the target nm... " >&6; }
13649 if test "x${build}" != "x${host}" ; then
13650   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13651     # We already found the complete path
13652     ac_dir=`dirname $NM_FOR_TARGET`
13653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13654 $as_echo "pre-installed in $ac_dir" >&6; }
13655   else
13656     # Canadian cross, just use what we found
13657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13658 $as_echo "pre-installed" >&6; }
13659   fi
13660 else
13661   ok=yes
13662   case " ${configdirs} " in
13663     *" binutils "*) ;;
13664     *) ok=no ;;
13665   esac
13666
13667   if test $ok = yes; then
13668     # An in-tree tool is available and we can use it
13669     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13671 $as_echo "just compiled" >&6; }
13672   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13673     # We already found the complete path
13674     ac_dir=`dirname $NM_FOR_TARGET`
13675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13676 $as_echo "pre-installed in $ac_dir" >&6; }
13677   elif test "x$target" = "x$host"; then
13678     # We can use an host tool
13679     NM_FOR_TARGET='$(NM)'
13680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13681 $as_echo "host tool" >&6; }
13682   else
13683     # We need a cross tool
13684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13685 $as_echo "pre-installed" >&6; }
13686   fi
13687 fi
13688
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13690 $as_echo_n "checking where to find the target objdump... " >&6; }
13691 if test "x${build}" != "x${host}" ; then
13692   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13693     # We already found the complete path
13694     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13696 $as_echo "pre-installed in $ac_dir" >&6; }
13697   else
13698     # Canadian cross, just use what we found
13699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13700 $as_echo "pre-installed" >&6; }
13701   fi
13702 else
13703   ok=yes
13704   case " ${configdirs} " in
13705     *" binutils "*) ;;
13706     *) ok=no ;;
13707   esac
13708
13709   if test $ok = yes; then
13710     # An in-tree tool is available and we can use it
13711     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13713 $as_echo "just compiled" >&6; }
13714   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13715     # We already found the complete path
13716     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13718 $as_echo "pre-installed in $ac_dir" >&6; }
13719   elif test "x$target" = "x$host"; then
13720     # We can use an host tool
13721     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13723 $as_echo "host tool" >&6; }
13724   else
13725     # We need a cross tool
13726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13727 $as_echo "pre-installed" >&6; }
13728   fi
13729 fi
13730
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13732 $as_echo_n "checking where to find the target ranlib... " >&6; }
13733 if test "x${build}" != "x${host}" ; then
13734   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13735     # We already found the complete path
13736     ac_dir=`dirname $RANLIB_FOR_TARGET`
13737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13738 $as_echo "pre-installed in $ac_dir" >&6; }
13739   else
13740     # Canadian cross, just use what we found
13741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13742 $as_echo "pre-installed" >&6; }
13743   fi
13744 else
13745   ok=yes
13746   case " ${configdirs} " in
13747     *" binutils "*) ;;
13748     *) ok=no ;;
13749   esac
13750
13751   if test $ok = yes; then
13752     # An in-tree tool is available and we can use it
13753     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13755 $as_echo "just compiled" >&6; }
13756   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13757     # We already found the complete path
13758     ac_dir=`dirname $RANLIB_FOR_TARGET`
13759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13760 $as_echo "pre-installed in $ac_dir" >&6; }
13761   elif test "x$target" = "x$host"; then
13762     # We can use an host tool
13763     RANLIB_FOR_TARGET='$(RANLIB)'
13764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13765 $as_echo "host tool" >&6; }
13766   else
13767     # We need a cross tool
13768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13769 $as_echo "pre-installed" >&6; }
13770   fi
13771 fi
13772
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13774 $as_echo_n "checking where to find the target strip... " >&6; }
13775 if test "x${build}" != "x${host}" ; then
13776   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13777     # We already found the complete path
13778     ac_dir=`dirname $STRIP_FOR_TARGET`
13779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13780 $as_echo "pre-installed in $ac_dir" >&6; }
13781   else
13782     # Canadian cross, just use what we found
13783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13784 $as_echo "pre-installed" >&6; }
13785   fi
13786 else
13787   ok=yes
13788   case " ${configdirs} " in
13789     *" binutils "*) ;;
13790     *) ok=no ;;
13791   esac
13792
13793   if test $ok = yes; then
13794     # An in-tree tool is available and we can use it
13795     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13797 $as_echo "just compiled" >&6; }
13798   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13799     # We already found the complete path
13800     ac_dir=`dirname $STRIP_FOR_TARGET`
13801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13802 $as_echo "pre-installed in $ac_dir" >&6; }
13803   elif test "x$target" = "x$host"; then
13804     # We can use an host tool
13805     STRIP_FOR_TARGET='$(STRIP)'
13806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13807 $as_echo "host tool" >&6; }
13808   else
13809     # We need a cross tool
13810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13811 $as_echo "pre-installed" >&6; }
13812   fi
13813 fi
13814
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13816 $as_echo_n "checking where to find the target windres... " >&6; }
13817 if test "x${build}" != "x${host}" ; then
13818   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13819     # We already found the complete path
13820     ac_dir=`dirname $WINDRES_FOR_TARGET`
13821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13822 $as_echo "pre-installed in $ac_dir" >&6; }
13823   else
13824     # Canadian cross, just use what we found
13825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13826 $as_echo "pre-installed" >&6; }
13827   fi
13828 else
13829   ok=yes
13830   case " ${configdirs} " in
13831     *" binutils "*) ;;
13832     *) ok=no ;;
13833   esac
13834
13835   if test $ok = yes; then
13836     # An in-tree tool is available and we can use it
13837     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13839 $as_echo "just compiled" >&6; }
13840   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13841     # We already found the complete path
13842     ac_dir=`dirname $WINDRES_FOR_TARGET`
13843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13844 $as_echo "pre-installed in $ac_dir" >&6; }
13845   elif test "x$target" = "x$host"; then
13846     # We can use an host tool
13847     WINDRES_FOR_TARGET='$(WINDRES)'
13848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13849 $as_echo "host tool" >&6; }
13850   else
13851     # We need a cross tool
13852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13853 $as_echo "pre-installed" >&6; }
13854   fi
13855 fi
13856
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13858 $as_echo_n "checking where to find the target windmc... " >&6; }
13859 if test "x${build}" != "x${host}" ; then
13860   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13861     # We already found the complete path
13862     ac_dir=`dirname $WINDMC_FOR_TARGET`
13863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13864 $as_echo "pre-installed in $ac_dir" >&6; }
13865   else
13866     # Canadian cross, just use what we found
13867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13868 $as_echo "pre-installed" >&6; }
13869   fi
13870 else
13871   ok=yes
13872   case " ${configdirs} " in
13873     *" binutils "*) ;;
13874     *) ok=no ;;
13875   esac
13876
13877   if test $ok = yes; then
13878     # An in-tree tool is available and we can use it
13879     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13881 $as_echo "just compiled" >&6; }
13882   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13883     # We already found the complete path
13884     ac_dir=`dirname $WINDMC_FOR_TARGET`
13885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13886 $as_echo "pre-installed in $ac_dir" >&6; }
13887   elif test "x$target" = "x$host"; then
13888     # We can use an host tool
13889     WINDMC_FOR_TARGET='$(WINDMC)'
13890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13891 $as_echo "host tool" >&6; }
13892   else
13893     # We need a cross tool
13894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13895 $as_echo "pre-installed" >&6; }
13896   fi
13897 fi
13898
13899
13900
13901
13902
13903 # Certain tools may need extra flags.
13904 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13905 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13906 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13907
13908 # When building target libraries, except in a Canadian cross, we use
13909 # the same toolchain as the compiler we just built.
13910 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13911 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13912 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13913 if test $host = $build; then
13914   case " $configdirs " in
13915     *" gcc "*)
13916       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13917       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13918       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13919       ;;
13920   esac
13921 fi
13922
13923
13924
13925
13926
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13928 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13929 # Check whether --enable-maintainer-mode was given.
13930 if test "${enable_maintainer_mode+set}" = set; then :
13931   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13932 else
13933   USE_MAINTAINER_MODE=no
13934 fi
13935
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13937 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13938
13939
13940 if test "$USE_MAINTAINER_MODE" = yes; then
13941   MAINTAINER_MODE_TRUE=
13942   MAINTAINER_MODE_FALSE='#'
13943 else
13944   MAINTAINER_MODE_TRUE='#'
13945   MAINTAINER_MODE_FALSE=
13946 fi
13947 MAINT=$MAINTAINER_MODE_TRUE
13948
13949 # ---------------------
13950 # GCC bootstrap support
13951 # ---------------------
13952
13953 # Stage specific cflags for build.
13954 stage1_cflags="-g"
13955 case $build in
13956   vax-*-*)
13957     case ${GCC} in
13958       yes) stage1_cflags="-g -Wa,-J" ;;
13959       *) stage1_cflags="-g -J" ;;
13960     esac ;;
13961 esac
13962
13963 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13964 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13965   saved_CFLAGS="$CFLAGS"
13966
13967   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13968   CFLAGS="$CFLAGS -fkeep-inline-functions"
13969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13970 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h.  */
13973
13974 #if (__GNUC__ < 3) \
13975     || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13976                           || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13977 #error http://gcc.gnu.org/PR29382
13978 #endif
13979
13980 int
13981 main ()
13982 {
13983
13984   ;
13985   return 0;
13986 }
13987 _ACEOF
13988 if ac_fn_c_try_compile "$LINENO"; then :
13989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13990 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13991 else
13992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13993 $as_echo "no" >&6; }
13994 fi
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13996
13997   CFLAGS="$saved_CFLAGS"
13998 fi
13999
14000
14001
14002 # Enable --enable-checking in stage1 of the compiler.
14003 # Check whether --enable-stage1-checking was given.
14004 if test "${enable_stage1_checking+set}" = set; then :
14005   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14006 else
14007   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14008   stage1_checking=--enable-checking=yes,types
14009 else
14010   stage1_checking=--enable-checking=$enable_checking,types
14011 fi
14012 fi
14013
14014
14015
14016 # Enable -Werror in bootstrap stage2 and later.
14017 # Check whether --enable-werror was given.
14018 if test "${enable_werror+set}" = set; then :
14019   enableval=$enable_werror;
14020 else
14021   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14022   enable_werror=yes
14023 else
14024   enable_werror=no
14025 fi
14026 fi
14027
14028 case ${enable_werror} in
14029   yes) stage2_werror_flag="--enable-werror-always" ;;
14030   *) stage2_werror_flag="" ;;
14031 esac
14032
14033
14034 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14035 # --enable-build-with-cxx after stage1.
14036 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14037   POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14038 else
14039   POSTSTAGE1_CONFIGURE_FLAGS=
14040 fi
14041
14042
14043 # Specify what files to not compare during bootstrap.
14044
14045 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14046 case "$target" in
14047   hppa*64*-*-hpux*) ;;
14048   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14049 esac
14050 case " $configdirs " in
14051 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14052 esac
14053
14054
14055 ac_config_files="$ac_config_files Makefile"
14056
14057 cat >confcache <<\_ACEOF
14058 # This file is a shell script that caches the results of configure
14059 # tests run on this system so they can be shared between configure
14060 # scripts and configure runs, see configure's option --config-cache.
14061 # It is not useful on other systems.  If it contains results you don't
14062 # want to keep, you may remove or edit it.
14063 #
14064 # config.status only pays attention to the cache file if you give it
14065 # the --recheck option to rerun configure.
14066 #
14067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14069 # following values.
14070
14071 _ACEOF
14072
14073 # The following way of writing the cache mishandles newlines in values,
14074 # but we know of no workaround that is simple, portable, and efficient.
14075 # So, we kill variables containing newlines.
14076 # Ultrix sh set writes to stderr and can't be redirected directly,
14077 # and sets the high bit in the cache file unless we assign to the vars.
14078 (
14079   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14080     eval ac_val=\$$ac_var
14081     case $ac_val in #(
14082     *${as_nl}*)
14083       case $ac_var in #(
14084       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14086       esac
14087       case $ac_var in #(
14088       _ | IFS | as_nl) ;; #(
14089       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14090       *) { eval $ac_var=; unset $ac_var;} ;;
14091       esac ;;
14092     esac
14093   done
14094
14095   (set) 2>&1 |
14096     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14097     *${as_nl}ac_space=\ *)
14098       # `set' does not quote correctly, so add quotes: double-quote
14099       # substitution turns \\\\ into \\, and sed turns \\ into \.
14100       sed -n \
14101         "s/'/'\\\\''/g;
14102           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14103       ;; #(
14104     *)
14105       # `set' quotes correctly as required by POSIX, so do not add quotes.
14106       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14107       ;;
14108     esac |
14109     sort
14110 ) |
14111   sed '
14112      /^ac_cv_env_/b end
14113      t clear
14114      :clear
14115      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14116      t end
14117      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14118      :end' >>confcache
14119 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14120   if test -w "$cache_file"; then
14121     test "x$cache_file" != "x/dev/null" &&
14122       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14123 $as_echo "$as_me: updating cache $cache_file" >&6;}
14124     cat confcache >$cache_file
14125   else
14126     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14127 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14128   fi
14129 fi
14130 rm -f confcache
14131
14132 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14133 # Let make expand exec_prefix.
14134 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14135
14136 # Transform confdefs.h into DEFS.
14137 # Protect against shell expansion while executing Makefile rules.
14138 # Protect against Makefile macro expansion.
14139 #
14140 # If the first sed substitution is executed (which looks for macros that
14141 # take arguments), then branch to the quote section.  Otherwise,
14142 # look for a macro that doesn't take arguments.
14143 ac_script='
14144 :mline
14145 /\\$/{
14146  N
14147  s,\\\n,,
14148  b mline
14149 }
14150 t clear
14151 :clear
14152 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14153 t quote
14154 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14155 t quote
14156 b any
14157 :quote
14158 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14159 s/\[/\\&/g
14160 s/\]/\\&/g
14161 s/\$/$$/g
14162 H
14163 :any
14164 ${
14165         g
14166         s/^\n//
14167         s/\n/ /g
14168         p
14169 }
14170 '
14171 DEFS=`sed -n "$ac_script" confdefs.h`
14172
14173
14174 ac_libobjs=
14175 ac_ltlibobjs=
14176 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14177   # 1. Remove the extension, and $U if already installed.
14178   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14179   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14180   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14181   #    will be set to the directory where LIBOBJS objects are built.
14182   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14183   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14184 done
14185 LIBOBJS=$ac_libobjs
14186
14187 LTLIBOBJS=$ac_ltlibobjs
14188
14189
14190
14191 : ${CONFIG_STATUS=./config.status}
14192 ac_write_fail=0
14193 ac_clean_files_save=$ac_clean_files
14194 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14196 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14197 as_write_fail=0
14198 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14199 #! $SHELL
14200 # Generated by $as_me.
14201 # Run this file to recreate the current configuration.
14202 # Compiler output produced by configure, useful for debugging
14203 # configure, is in config.log if it exists.
14204
14205 debug=false
14206 ac_cs_recheck=false
14207 ac_cs_silent=false
14208
14209 SHELL=\${CONFIG_SHELL-$SHELL}
14210 export SHELL
14211 _ASEOF
14212 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14213 ## -------------------- ##
14214 ## M4sh Initialization. ##
14215 ## -------------------- ##
14216
14217 # Be more Bourne compatible
14218 DUALCASE=1; export DUALCASE # for MKS sh
14219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14220   emulate sh
14221   NULLCMD=:
14222   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14223   # is contrary to our usage.  Disable this feature.
14224   alias -g '${1+"$@"}'='"$@"'
14225   setopt NO_GLOB_SUBST
14226 else
14227   case `(set -o) 2>/dev/null` in #(
14228   *posix*) :
14229     set -o posix ;; #(
14230   *) :
14231      ;;
14232 esac
14233 fi
14234
14235
14236 as_nl='
14237 '
14238 export as_nl
14239 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14240 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14243 # Prefer a ksh shell builtin over an external printf program on Solaris,
14244 # but without wasting forks for bash or zsh.
14245 if test -z "$BASH_VERSION$ZSH_VERSION" \
14246     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14247   as_echo='print -r --'
14248   as_echo_n='print -rn --'
14249 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14250   as_echo='printf %s\n'
14251   as_echo_n='printf %s'
14252 else
14253   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14254     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14255     as_echo_n='/usr/ucb/echo -n'
14256   else
14257     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14258     as_echo_n_body='eval
14259       arg=$1;
14260       case $arg in #(
14261       *"$as_nl"*)
14262         expr "X$arg" : "X\\(.*\\)$as_nl";
14263         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14264       esac;
14265       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14266     '
14267     export as_echo_n_body
14268     as_echo_n='sh -c $as_echo_n_body as_echo'
14269   fi
14270   export as_echo_body
14271   as_echo='sh -c $as_echo_body as_echo'
14272 fi
14273
14274 # The user is always right.
14275 if test "${PATH_SEPARATOR+set}" != set; then
14276   PATH_SEPARATOR=:
14277   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14278     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14279       PATH_SEPARATOR=';'
14280   }
14281 fi
14282
14283
14284 # IFS
14285 # We need space, tab and new line, in precisely that order.  Quoting is
14286 # there to prevent editors from complaining about space-tab.
14287 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14288 # splitting by setting IFS to empty value.)
14289 IFS=" ""        $as_nl"
14290
14291 # Find who we are.  Look in the path if we contain no directory separator.
14292 case $0 in #((
14293   *[\\/]* ) as_myself=$0 ;;
14294   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295 for as_dir in $PATH
14296 do
14297   IFS=$as_save_IFS
14298   test -z "$as_dir" && as_dir=.
14299     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14300   done
14301 IFS=$as_save_IFS
14302
14303      ;;
14304 esac
14305 # We did not find ourselves, most probably we were run as `sh COMMAND'
14306 # in which case we are not to be found in the path.
14307 if test "x$as_myself" = x; then
14308   as_myself=$0
14309 fi
14310 if test ! -f "$as_myself"; then
14311   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14312   exit 1
14313 fi
14314
14315 # Unset variables that we do not need and which cause bugs (e.g. in
14316 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14317 # suppresses any "Segmentation fault" message there.  '((' could
14318 # trigger a bug in pdksh 5.2.14.
14319 for as_var in BASH_ENV ENV MAIL MAILPATH
14320 do eval test x\${$as_var+set} = xset \
14321   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14322 done
14323 PS1='$ '
14324 PS2='> '
14325 PS4='+ '
14326
14327 # NLS nuisances.
14328 LC_ALL=C
14329 export LC_ALL
14330 LANGUAGE=C
14331 export LANGUAGE
14332
14333 # CDPATH.
14334 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14335
14336
14337 # as_fn_error ERROR [LINENO LOG_FD]
14338 # ---------------------------------
14339 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14340 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14341 # script with status $?, using 1 if that was 0.
14342 as_fn_error ()
14343 {
14344   as_status=$?; test $as_status -eq 0 && as_status=1
14345   if test "$3"; then
14346     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14347     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14348   fi
14349   $as_echo "$as_me: error: $1" >&2
14350   as_fn_exit $as_status
14351 } # as_fn_error
14352
14353
14354 # as_fn_set_status STATUS
14355 # -----------------------
14356 # Set $? to STATUS, without forking.
14357 as_fn_set_status ()
14358 {
14359   return $1
14360 } # as_fn_set_status
14361
14362 # as_fn_exit STATUS
14363 # -----------------
14364 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14365 as_fn_exit ()
14366 {
14367   set +e
14368   as_fn_set_status $1
14369   exit $1
14370 } # as_fn_exit
14371
14372 # as_fn_unset VAR
14373 # ---------------
14374 # Portably unset VAR.
14375 as_fn_unset ()
14376 {
14377   { eval $1=; unset $1;}
14378 }
14379 as_unset=as_fn_unset
14380 # as_fn_append VAR VALUE
14381 # ----------------------
14382 # Append the text in VALUE to the end of the definition contained in VAR. Take
14383 # advantage of any shell optimizations that allow amortized linear growth over
14384 # repeated appends, instead of the typical quadratic growth present in naive
14385 # implementations.
14386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14387   eval 'as_fn_append ()
14388   {
14389     eval $1+=\$2
14390   }'
14391 else
14392   as_fn_append ()
14393   {
14394     eval $1=\$$1\$2
14395   }
14396 fi # as_fn_append
14397
14398 # as_fn_arith ARG...
14399 # ------------------
14400 # Perform arithmetic evaluation on the ARGs, and store the result in the
14401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14402 # must be portable across $(()) and expr.
14403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14404   eval 'as_fn_arith ()
14405   {
14406     as_val=$(( $* ))
14407   }'
14408 else
14409   as_fn_arith ()
14410   {
14411     as_val=`expr "$@" || test $? -eq 1`
14412   }
14413 fi # as_fn_arith
14414
14415
14416 if expr a : '\(a\)' >/dev/null 2>&1 &&
14417    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14418   as_expr=expr
14419 else
14420   as_expr=false
14421 fi
14422
14423 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14424   as_basename=basename
14425 else
14426   as_basename=false
14427 fi
14428
14429 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14430   as_dirname=dirname
14431 else
14432   as_dirname=false
14433 fi
14434
14435 as_me=`$as_basename -- "$0" ||
14436 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14437          X"$0" : 'X\(//\)$' \| \
14438          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14439 $as_echo X/"$0" |
14440     sed '/^.*\/\([^/][^/]*\)\/*$/{
14441             s//\1/
14442             q
14443           }
14444           /^X\/\(\/\/\)$/{
14445             s//\1/
14446             q
14447           }
14448           /^X\/\(\/\).*/{
14449             s//\1/
14450             q
14451           }
14452           s/.*/./; q'`
14453
14454 # Avoid depending upon Character Ranges.
14455 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14456 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14457 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14458 as_cr_digits='0123456789'
14459 as_cr_alnum=$as_cr_Letters$as_cr_digits
14460
14461 ECHO_C= ECHO_N= ECHO_T=
14462 case `echo -n x` in #(((((
14463 -n*)
14464   case `echo 'xy\c'` in
14465   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14466   xy)  ECHO_C='\c';;
14467   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14468        ECHO_T=' ';;
14469   esac;;
14470 *)
14471   ECHO_N='-n';;
14472 esac
14473
14474 rm -f conf$$ conf$$.exe conf$$.file
14475 if test -d conf$$.dir; then
14476   rm -f conf$$.dir/conf$$.file
14477 else
14478   rm -f conf$$.dir
14479   mkdir conf$$.dir 2>/dev/null
14480 fi
14481 if (echo >conf$$.file) 2>/dev/null; then
14482   if ln -s conf$$.file conf$$ 2>/dev/null; then
14483     as_ln_s='ln -s'
14484     # ... but there are two gotchas:
14485     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14486     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14487     # In both cases, we have to default to `cp -p'.
14488     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14489       as_ln_s='cp -p'
14490   elif ln conf$$.file conf$$ 2>/dev/null; then
14491     as_ln_s=ln
14492   else
14493     as_ln_s='cp -p'
14494   fi
14495 else
14496   as_ln_s='cp -p'
14497 fi
14498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14499 rmdir conf$$.dir 2>/dev/null
14500
14501
14502 # as_fn_mkdir_p
14503 # -------------
14504 # Create "$as_dir" as a directory, including parents if necessary.
14505 as_fn_mkdir_p ()
14506 {
14507
14508   case $as_dir in #(
14509   -*) as_dir=./$as_dir;;
14510   esac
14511   test -d "$as_dir" || eval $as_mkdir_p || {
14512     as_dirs=
14513     while :; do
14514       case $as_dir in #(
14515       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14516       *) as_qdir=$as_dir;;
14517       esac
14518       as_dirs="'$as_qdir' $as_dirs"
14519       as_dir=`$as_dirname -- "$as_dir" ||
14520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14521          X"$as_dir" : 'X\(//\)[^/]' \| \
14522          X"$as_dir" : 'X\(//\)$' \| \
14523          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14524 $as_echo X"$as_dir" |
14525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14526             s//\1/
14527             q
14528           }
14529           /^X\(\/\/\)[^/].*/{
14530             s//\1/
14531             q
14532           }
14533           /^X\(\/\/\)$/{
14534             s//\1/
14535             q
14536           }
14537           /^X\(\/\).*/{
14538             s//\1/
14539             q
14540           }
14541           s/.*/./; q'`
14542       test -d "$as_dir" && break
14543     done
14544     test -z "$as_dirs" || eval "mkdir $as_dirs"
14545   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14546
14547
14548 } # as_fn_mkdir_p
14549 if mkdir -p . 2>/dev/null; then
14550   as_mkdir_p='mkdir -p "$as_dir"'
14551 else
14552   test -d ./-p && rmdir ./-p
14553   as_mkdir_p=false
14554 fi
14555
14556 if test -x / >/dev/null 2>&1; then
14557   as_test_x='test -x'
14558 else
14559   if ls -dL / >/dev/null 2>&1; then
14560     as_ls_L_option=L
14561   else
14562     as_ls_L_option=
14563   fi
14564   as_test_x='
14565     eval sh -c '\''
14566       if test -d "$1"; then
14567         test -d "$1/.";
14568       else
14569         case $1 in #(
14570         -*)set "./$1";;
14571         esac;
14572         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14573         ???[sx]*):;;*)false;;esac;fi
14574     '\'' sh
14575   '
14576 fi
14577 as_executable_p=$as_test_x
14578
14579 # Sed expression to map a string onto a valid CPP name.
14580 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14581
14582 # Sed expression to map a string onto a valid variable name.
14583 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14584
14585
14586 exec 6>&1
14587 ## ----------------------------------- ##
14588 ## Main body of $CONFIG_STATUS script. ##
14589 ## ----------------------------------- ##
14590 _ASEOF
14591 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14592
14593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14594 # Save the log message, to keep $0 and so on meaningful, and to
14595 # report actual input values of CONFIG_FILES etc. instead of their
14596 # values after options handling.
14597 ac_log="
14598 This file was extended by $as_me, which was
14599 generated by GNU Autoconf 2.64.  Invocation command line was
14600
14601   CONFIG_FILES    = $CONFIG_FILES
14602   CONFIG_HEADERS  = $CONFIG_HEADERS
14603   CONFIG_LINKS    = $CONFIG_LINKS
14604   CONFIG_COMMANDS = $CONFIG_COMMANDS
14605   $ $0 $@
14606
14607 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14608 "
14609
14610 _ACEOF
14611
14612 case $ac_config_files in *"
14613 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14614 esac
14615
14616
14617
14618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14619 # Files that config.status was made for.
14620 config_files="$ac_config_files"
14621
14622 _ACEOF
14623
14624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14625 ac_cs_usage="\
14626 \`$as_me' instantiates files and other configuration actions
14627 from templates according to the current configuration.  Unless the files
14628 and actions are specified as TAGs, all are instantiated by default.
14629
14630 Usage: $0 [OPTION]... [TAG]...
14631
14632   -h, --help       print this help, then exit
14633   -V, --version    print version number and configuration settings, then exit
14634   -q, --quiet, --silent
14635                    do not print progress messages
14636   -d, --debug      don't remove temporary files
14637       --recheck    update $as_me by reconfiguring in the same conditions
14638       --file=FILE[:TEMPLATE]
14639                    instantiate the configuration file FILE
14640
14641 Configuration files:
14642 $config_files
14643
14644 Report bugs to the package provider."
14645
14646 _ACEOF
14647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14648 ac_cs_version="\\
14649 config.status
14650 configured by $0, generated by GNU Autoconf 2.64,
14651   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14652
14653 Copyright (C) 2009 Free Software Foundation, Inc.
14654 This config.status script is free software; the Free Software Foundation
14655 gives unlimited permission to copy, distribute and modify it."
14656
14657 ac_pwd='$ac_pwd'
14658 srcdir='$srcdir'
14659 INSTALL='$INSTALL'
14660 AWK='$AWK'
14661 test -n "\$AWK" || AWK=awk
14662 _ACEOF
14663
14664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14665 # The default lists apply if the user does not specify any file.
14666 ac_need_defaults=:
14667 while test $# != 0
14668 do
14669   case $1 in
14670   --*=*)
14671     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14672     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14673     ac_shift=:
14674     ;;
14675   *)
14676     ac_option=$1
14677     ac_optarg=$2
14678     ac_shift=shift
14679     ;;
14680   esac
14681
14682   case $ac_option in
14683   # Handling of the options.
14684   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14685     ac_cs_recheck=: ;;
14686   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14687     $as_echo "$ac_cs_version"; exit ;;
14688   --debug | --debu | --deb | --de | --d | -d )
14689     debug=: ;;
14690   --file | --fil | --fi | --f )
14691     $ac_shift
14692     case $ac_optarg in
14693     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14694     esac
14695     as_fn_append CONFIG_FILES " '$ac_optarg'"
14696     ac_need_defaults=false;;
14697   --he | --h |  --help | --hel | -h )
14698     $as_echo "$ac_cs_usage"; exit ;;
14699   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14700   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14701     ac_cs_silent=: ;;
14702
14703   # This is an error.
14704   -*) as_fn_error "unrecognized option: \`$1'
14705 Try \`$0 --help' for more information." ;;
14706
14707   *) as_fn_append ac_config_targets " $1"
14708      ac_need_defaults=false ;;
14709
14710   esac
14711   shift
14712 done
14713
14714 ac_configure_extra_args=
14715
14716 if $ac_cs_silent; then
14717   exec 6>/dev/null
14718   ac_configure_extra_args="$ac_configure_extra_args --silent"
14719 fi
14720
14721 _ACEOF
14722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14723 if \$ac_cs_recheck; then
14724   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14725   shift
14726   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14727   CONFIG_SHELL='$SHELL'
14728   export CONFIG_SHELL
14729   exec "\$@"
14730 fi
14731
14732 _ACEOF
14733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14734 exec 5>>config.log
14735 {
14736   echo
14737   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14738 ## Running $as_me. ##
14739 _ASBOX
14740   $as_echo "$ac_log"
14741 } >&5
14742
14743 _ACEOF
14744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14745 #
14746 # INIT-COMMANDS
14747 #
14748 extrasub_build="$extrasub_build"
14749    extrasub_host="$extrasub_host"
14750    extrasub_target="$extrasub_target"
14751
14752 _ACEOF
14753
14754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14755
14756 # Handling of arguments.
14757 for ac_config_target in $ac_config_targets
14758 do
14759   case $ac_config_target in
14760     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14761
14762   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14763   esac
14764 done
14765
14766
14767 # If the user did not use the arguments to specify the items to instantiate,
14768 # then the envvar interface is used.  Set only those that are not.
14769 # We use the long form for the default assignment because of an extremely
14770 # bizarre bug on SunOS 4.1.3.
14771 if $ac_need_defaults; then
14772   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14773 fi
14774
14775 # Have a temporary directory for convenience.  Make it in the build tree
14776 # simply because there is no reason against having it here, and in addition,
14777 # creating and moving files from /tmp can sometimes cause problems.
14778 # Hook for its removal unless debugging.
14779 # Note that there is a small window in which the directory will not be cleaned:
14780 # after its creation but before its name has been assigned to `$tmp'.
14781 $debug ||
14782 {
14783   tmp=
14784   trap 'exit_status=$?
14785   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14786 ' 0
14787   trap 'as_fn_exit 1' 1 2 13 15
14788 }
14789 # Create a (secure) tmp directory for tmp files.
14790
14791 {
14792   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14793   test -n "$tmp" && test -d "$tmp"
14794 }  ||
14795 {
14796   tmp=./conf$$-$RANDOM
14797   (umask 077 && mkdir "$tmp")
14798 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14799
14800 # Set up the scripts for CONFIG_FILES section.
14801 # No need to generate them if there are no CONFIG_FILES.
14802 # This happens for instance with `./config.status config.h'.
14803 if test -n "$CONFIG_FILES"; then
14804
14805 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14806   ac_cs_awk_getline=:
14807   ac_cs_awk_pipe_init=
14808   ac_cs_awk_read_file='
14809       while ((getline aline < (F[key])) > 0)
14810         print(aline)
14811       close(F[key])'
14812   ac_cs_awk_pipe_fini=
14813 else
14814   ac_cs_awk_getline=false
14815   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14816   ac_cs_awk_read_file='
14817       print "|#_!!_#|"
14818       print "cat " F[key] " &&"
14819       '$ac_cs_awk_pipe_init
14820   # The final `:' finishes the AND list.
14821   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14822 fi
14823 ac_cr=`echo X | tr X '\015'`
14824 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14825 # But we know of no other shell where ac_cr would be empty at this
14826 # point, so we can use a bashism as a fallback.
14827 if test "x$ac_cr" = x; then
14828   eval ac_cr=\$\'\\r\'
14829 fi
14830 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14831 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14832   ac_cs_awk_cr='\r'
14833 else
14834   ac_cs_awk_cr=$ac_cr
14835 fi
14836
14837 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14838 _ACEOF
14839
14840 # Create commands to substitute file output variables.
14841 {
14842   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14843   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14844   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14845   echo "_ACAWK" &&
14846   echo "_ACEOF"
14847 } >conf$$files.sh &&
14848 . ./conf$$files.sh ||
14849   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14850 rm -f conf$$files.sh
14851
14852 {
14853   echo "cat >conf$$subs.awk <<_ACEOF" &&
14854   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14855   echo "_ACEOF"
14856 } >conf$$subs.sh ||
14857   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14858 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14859 ac_delim='%!_!# '
14860 for ac_last_try in false false false false false :; do
14861   . ./conf$$subs.sh ||
14862     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14863
14864   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14865   if test $ac_delim_n = $ac_delim_num; then
14866     break
14867   elif $ac_last_try; then
14868     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14869   else
14870     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14871   fi
14872 done
14873 rm -f conf$$subs.sh
14874
14875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14876 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14877 _ACEOF
14878 sed -n '
14879 h
14880 s/^/S["/; s/!.*/"]=/
14881 p
14882 g
14883 s/^[^!]*!//
14884 :repl
14885 t repl
14886 s/'"$ac_delim"'$//
14887 t delim
14888 :nl
14889 h
14890 s/\(.\{148\}\).*/\1/
14891 t more1
14892 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14893 p
14894 n
14895 b repl
14896 :more1
14897 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14898 p
14899 g
14900 s/.\{148\}//
14901 t nl
14902 :delim
14903 h
14904 s/\(.\{148\}\).*/\1/
14905 t more2
14906 s/["\\]/\\&/g; s/^/"/; s/$/"/
14907 p
14908 b
14909 :more2
14910 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14911 p
14912 g
14913 s/.\{148\}//
14914 t delim
14915 ' <conf$$subs.awk | sed '
14916 /^[^""]/{
14917   N
14918   s/\n//
14919 }
14920 ' >>$CONFIG_STATUS || ac_write_fail=1
14921 rm -f conf$$subs.awk
14922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14923 _ACAWK
14924 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14925   for (key in S) S_is_set[key] = 1
14926   FS = "\a"
14927   \$ac_cs_awk_pipe_init
14928 }
14929 {
14930   line = $ 0
14931   nfields = split(line, field, "@")
14932   substed = 0
14933   len = length(field[1])
14934   for (i = 2; i < nfields; i++) {
14935     key = field[i]
14936     keylen = length(key)
14937     if (S_is_set[key]) {
14938       value = S[key]
14939       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14940       len += length(value) + length(field[++i])
14941       substed = 1
14942     } else
14943       len += 1 + keylen
14944   }
14945   if (nfields == 3 && !substed) {
14946     key = field[2]
14947     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14948       \$ac_cs_awk_read_file
14949       next
14950     }
14951   }
14952   print line
14953 }
14954 \$ac_cs_awk_pipe_fini
14955 _ACAWK
14956 _ACEOF
14957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14958 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14959   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14960 else
14961   cat
14962 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14963   || as_fn_error "could not setup config files machinery" "$LINENO" 5
14964 _ACEOF
14965
14966 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14967 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14968 # trailing colons and then remove the whole line if VPATH becomes empty
14969 # (actually we leave an empty line to preserve line numbers).
14970 if test "x$srcdir" = x.; then
14971   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14972 s/:*\$(srcdir):*/:/
14973 s/:*\${srcdir}:*/:/
14974 s/:*@srcdir@:*/:/
14975 s/^\([^=]*=[     ]*\):*/\1/
14976 s/:*$//
14977 s/^[^=]*=[       ]*$//
14978 }'
14979 fi
14980
14981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14982 fi # test -n "$CONFIG_FILES"
14983
14984
14985 eval set X "  :F $CONFIG_FILES      "
14986 shift
14987 for ac_tag
14988 do
14989   case $ac_tag in
14990   :[FHLC]) ac_mode=$ac_tag; continue;;
14991   esac
14992   case $ac_mode$ac_tag in
14993   :[FHL]*:*);;
14994   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14995   :[FH]-) ac_tag=-:-;;
14996   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14997   esac
14998   ac_save_IFS=$IFS
14999   IFS=:
15000   set x $ac_tag
15001   IFS=$ac_save_IFS
15002   shift
15003   ac_file=$1
15004   shift
15005
15006   case $ac_mode in
15007   :L) ac_source=$1;;
15008   :[FH])
15009     ac_file_inputs=
15010     for ac_f
15011     do
15012       case $ac_f in
15013       -) ac_f="$tmp/stdin";;
15014       *) # Look for the file first in the build tree, then in the source tree
15015          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15016          # because $ac_f cannot contain `:'.
15017          test -f "$ac_f" ||
15018            case $ac_f in
15019            [\\/$]*) false;;
15020            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15021            esac ||
15022            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15023       esac
15024       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15025       as_fn_append ac_file_inputs " '$ac_f'"
15026     done
15027
15028     # Let's still pretend it is `configure' which instantiates (i.e., don't
15029     # use $as_me), people would be surprised to read:
15030     #    /* config.h.  Generated by config.status.  */
15031     configure_input='Generated from '`
15032           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15033         `' by configure.'
15034     if test x"$ac_file" != x-; then
15035       configure_input="$ac_file.  $configure_input"
15036       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15037 $as_echo "$as_me: creating $ac_file" >&6;}
15038     fi
15039     # Neutralize special characters interpreted by sed in replacement strings.
15040     case $configure_input in #(
15041     *\&* | *\|* | *\\* )
15042        ac_sed_conf_input=`$as_echo "$configure_input" |
15043        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15044     *) ac_sed_conf_input=$configure_input;;
15045     esac
15046
15047     case $ac_tag in
15048     *:-:* | *:-) cat >"$tmp/stdin" \
15049       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15050     esac
15051     ;;
15052   esac
15053
15054   ac_dir=`$as_dirname -- "$ac_file" ||
15055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15056          X"$ac_file" : 'X\(//\)[^/]' \| \
15057          X"$ac_file" : 'X\(//\)$' \| \
15058          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15059 $as_echo X"$ac_file" |
15060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15061             s//\1/
15062             q
15063           }
15064           /^X\(\/\/\)[^/].*/{
15065             s//\1/
15066             q
15067           }
15068           /^X\(\/\/\)$/{
15069             s//\1/
15070             q
15071           }
15072           /^X\(\/\).*/{
15073             s//\1/
15074             q
15075           }
15076           s/.*/./; q'`
15077   as_dir="$ac_dir"; as_fn_mkdir_p
15078   ac_builddir=.
15079
15080 case "$ac_dir" in
15081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15082 *)
15083   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15084   # A ".." for each directory in $ac_dir_suffix.
15085   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15086   case $ac_top_builddir_sub in
15087   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15088   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15089   esac ;;
15090 esac
15091 ac_abs_top_builddir=$ac_pwd
15092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15093 # for backward compatibility:
15094 ac_top_builddir=$ac_top_build_prefix
15095
15096 case $srcdir in
15097   .)  # We are building in place.
15098     ac_srcdir=.
15099     ac_top_srcdir=$ac_top_builddir_sub
15100     ac_abs_top_srcdir=$ac_pwd ;;
15101   [\\/]* | ?:[\\/]* )  # Absolute name.
15102     ac_srcdir=$srcdir$ac_dir_suffix;
15103     ac_top_srcdir=$srcdir
15104     ac_abs_top_srcdir=$srcdir ;;
15105   *) # Relative name.
15106     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15107     ac_top_srcdir=$ac_top_build_prefix$srcdir
15108     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15109 esac
15110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15111
15112
15113   case $ac_mode in
15114   :F)
15115   #
15116   # CONFIG_FILE
15117   #
15118
15119   case $INSTALL in
15120   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15121   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15122   esac
15123 _ACEOF
15124
15125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15126 # If the template does not know about datarootdir, expand it.
15127 # FIXME: This hack should be removed a few years after 2.60.
15128 ac_datarootdir_hack=; ac_datarootdir_seen=
15129 ac_sed_dataroot='
15130 /datarootdir/ {
15131   p
15132   q
15133 }
15134 /@datadir@/p
15135 /@docdir@/p
15136 /@infodir@/p
15137 /@localedir@/p
15138 /@mandir@/p'
15139 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15140 *datarootdir*) ac_datarootdir_seen=yes;;
15141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15142   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15143 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15144 _ACEOF
15145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15146   ac_datarootdir_hack='
15147   s&@datadir@&$datadir&g
15148   s&@docdir@&$docdir&g
15149   s&@infodir@&$infodir&g
15150   s&@localedir@&$localedir&g
15151   s&@mandir@&$mandir&g
15152   s&\\\${datarootdir}&$datarootdir&g' ;;
15153 esac
15154 _ACEOF
15155
15156 # Neutralize VPATH when `$srcdir' = `.'.
15157 # Shell code in configure.ac might set extrasub.
15158 # FIXME: do we really want to maintain this feature?
15159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15160 ac_sed_extra="$ac_vpsub
15161 $extrasub
15162 _ACEOF
15163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15164 :t
15165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15166 s|@configure_input@|$ac_sed_conf_input|;t t
15167 s&@top_builddir@&$ac_top_builddir_sub&;t t
15168 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15169 s&@srcdir@&$ac_srcdir&;t t
15170 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15171 s&@top_srcdir@&$ac_top_srcdir&;t t
15172 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15173 s&@builddir@&$ac_builddir&;t t
15174 s&@abs_builddir@&$ac_abs_builddir&;t t
15175 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15176 s&@INSTALL@&$ac_INSTALL&;t t
15177 $ac_datarootdir_hack
15178 "
15179 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15180 if $ac_cs_awk_getline; then
15181   $AWK -f "$tmp/subs.awk"
15182 else
15183   $AWK -f "$tmp/subs.awk" | $SHELL
15184 fi >$tmp/out \
15185   || as_fn_error "could not create $ac_file" "$LINENO" 5
15186
15187 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15188   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15189   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15190   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15191 which seems to be undefined.  Please make sure it is defined." >&5
15192 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15193 which seems to be undefined.  Please make sure it is defined." >&2;}
15194
15195   rm -f "$tmp/stdin"
15196   case $ac_file in
15197   -) cat "$tmp/out" && rm -f "$tmp/out";;
15198   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15199   esac \
15200   || as_fn_error "could not create $ac_file" "$LINENO" 5
15201  ;;
15202
15203
15204
15205   esac
15206
15207
15208   case $ac_file$ac_mode in
15209     "Makefile":F) sed "$extrasub_build" Makefile |
15210    sed "$extrasub_host" |
15211    sed "$extrasub_target" > mf$$
15212    mv -f mf$$ Makefile ;;
15213
15214   esac
15215 done # for ac_tag
15216
15217
15218 as_fn_exit 0
15219 _ACEOF
15220 ac_clean_files=$ac_clean_files_save
15221
15222 test $ac_write_fail = 0 ||
15223   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15224
15225
15226 # configure is writing to config.log, and then calls config.status.
15227 # config.status does its own redirection, appending to config.log.
15228 # Unfortunately, on DOS this fails, as config.log is still kept open
15229 # by configure, so config.status won't be able to write to it; its
15230 # output is simply discarded.  So we exec the FD to /dev/null,
15231 # effectively closing config.log, so it can be properly (re)opened and
15232 # appended to by config.status.  When coming back to configure, we
15233 # need to make the FD available again.
15234 if test "$no_create" != yes; then
15235   ac_cs_success=:
15236   ac_config_status_args=
15237   test "$silent" = yes &&
15238     ac_config_status_args="$ac_config_status_args --quiet"
15239   exec 5>/dev/null
15240   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15241   exec 5>>config.log
15242   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15243   # would make configure fail if this is the last instruction.
15244   $ac_cs_success || as_fn_exit $?
15245 fi
15246 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15247   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15248 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15249 fi
15250