OSDN Git Service

a44f4184e6f8cc6ad4386a6960c235562bd431f0
[pf3gnuchains/gcc-fork.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 RANLIB_FOR_TARGET
574 OBJDUMP_FOR_TARGET
575 NM_FOR_TARGET
576 LIPO_FOR_TARGET
577 LD_FOR_TARGET
578 DLLTOOL_FOR_TARGET
579 AS_FOR_TARGET
580 AR_FOR_TARGET
581 GOC_FOR_TARGET
582 GFORTRAN_FOR_TARGET
583 GCJ_FOR_TARGET
584 GCC_FOR_TARGET
585 CXX_FOR_TARGET
586 CC_FOR_TARGET
587 OBJDUMP
588 OBJCOPY
589 WINDMC
590 WINDRES
591 STRIP
592 RANLIB
593 NM
594 LIPO
595 LD
596 DLLTOOL
597 AS
598 AR
599 RUNTEST
600 EXPECT
601 MAKEINFO
602 FLEX
603 LEX
604 M4
605 BISON
606 YACC
607 config_shell
608 WINDRES_FOR_BUILD
609 WINDMC_FOR_BUILD
610 RANLIB_FOR_BUILD
611 NM_FOR_BUILD
612 LD_FOR_BUILD
613 LDFLAGS_FOR_BUILD
614 GOC_FOR_BUILD
615 GFORTRAN_FOR_BUILD
616 GCJ_FOR_BUILD
617 DLLTOOL_FOR_BUILD
618 CXX_FOR_BUILD
619 CXXFLAGS_FOR_BUILD
620 CFLAGS_FOR_BUILD
621 CC_FOR_BUILD
622 AS_FOR_BUILD
623 AR_FOR_BUILD
624 target_configdirs
625 configdirs
626 build_configdirs
627 INSTALL_GDB_TK
628 GDB_TK
629 CONFIGURE_GDB_TK
630 build_tooldir
631 tooldir
632 GCC_SHLIB_SUBDIR
633 RPATH_ENVVAR
634 target_configargs
635 host_configargs
636 build_configargs
637 BUILD_CONFIG
638 CXXFLAGS_FOR_TARGET
639 CFLAGS_FOR_TARGET
640 DEBUG_PREFIX_CFLAGS_FOR_TARGET
641 SYSROOT_CFLAGS_FOR_TARGET
642 stage1_languages
643 extra_host_libiberty_configure_flags
644 clooginc
645 clooglibs
646 pplinc
647 ppllibs
648 poststage1_ldflags
649 poststage1_libs
650 stage1_libs
651 stage1_ldflags
652 extra_mpc_mpfr_configure_flags
653 extra_mpc_gmp_configure_flags
654 extra_mpfr_configure_flags
655 gmpinc
656 gmplibs
657 do_compare
658 GNATMAKE
659 GNATBIND
660 ac_ct_CXX
661 CXXFLAGS
662 CXX
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
669 CC
670 target_subdir
671 host_subdir
672 build_subdir
673 build_libsubdir
674 AWK
675 SED
676 LN_S
677 LN
678 INSTALL_DATA
679 INSTALL_SCRIPT
680 INSTALL_PROGRAM
681 target_os
682 target_vendor
683 target_cpu
684 target
685 host_os
686 host_vendor
687 host_cpu
688 host
689 target_noncanonical
690 host_noncanonical
691 build_noncanonical
692 build_os
693 build_vendor
694 build_cpu
695 build
696 TOPLEVEL_CONFIGURE_ARGUMENTS
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files='serialization_dependencies
736 host_makefile_frag
737 target_makefile_frag
738 alphaieee_frag
739 ospace_frag'
740 ac_user_opts='
741 enable_option_checking
742 with_build_libsubdir
743 enable_gold
744 enable_libada
745 enable_libssp
746 enable_build_with_cxx
747 with_mpc
748 with_mpc_include
749 with_mpc_lib
750 with_mpfr_dir
751 with_mpfr
752 with_mpfr_include
753 with_mpfr_lib
754 with_gmp_dir
755 with_gmp
756 with_gmp_include
757 with_gmp_lib
758 with_host_libstdcxx
759 with_stage1_ldflags
760 with_stage1_libs
761 with_boot_libs
762 with_boot_ldflags
763 with_ppl
764 with_ppl_include
765 with_ppl_lib
766 enable_ppl_version_check
767 with_cloog
768 with_cloog_include
769 with_cloog_lib
770 enable_cloog_backend
771 enable_cloog_version_check
772 enable_lto
773 enable_stage1_languages
774 enable_objc_gc
775 with_build_sysroot
776 with_debug_prefix_map
777 enable_bootstrap
778 with_build_config
779 enable_serial_configure
780 with_build_time_tools
781 enable_maintainer_mode
782 enable_stage1_checking
783 enable_werror
784 '
785       ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 CXX
794 CXXFLAGS
795 CCC
796 build_configargs
797 host_configargs
798 target_configargs
799 AR
800 AS
801 DLLTOOL
802 LD
803 LIPO
804 NM
805 RANLIB
806 STRIP
807 WINDRES
808 WINDMC
809 OBJCOPY
810 OBJDUMP
811 CC_FOR_TARGET
812 CXX_FOR_TARGET
813 GCC_FOR_TARGET
814 GCJ_FOR_TARGET
815 GFORTRAN_FOR_TARGET
816 GOC_FOR_TARGET
817 AR_FOR_TARGET
818 AS_FOR_TARGET
819 DLLTOOL_FOR_TARGET
820 LD_FOR_TARGET
821 LIPO_FOR_TARGET
822 NM_FOR_TARGET
823 OBJDUMP_FOR_TARGET
824 RANLIB_FOR_TARGET
825 STRIP_FOR_TARGET
826 WINDRES_FOR_TARGET
827 WINDMC_FOR_TARGET'
828
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
877
878 ac_prev=
879 ac_dashdash=
880 for ac_option
881 do
882   # If the previous option needs an argument, assign it.
883   if test -n "$ac_prev"; then
884     eval $ac_prev=\$ac_option
885     ac_prev=
886     continue
887   fi
888
889   case $ac_option in
890   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891   *)    ac_optarg=yes ;;
892   esac
893
894   # Accept the important Cygnus configure options, so we can diagnose typos.
895
896   case $ac_dashdash$ac_option in
897   --)
898     ac_dashdash=yes ;;
899
900   -bindir | --bindir | --bindi | --bind | --bin | --bi)
901     ac_prev=bindir ;;
902   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903     bindir=$ac_optarg ;;
904
905   -build | --build | --buil | --bui | --bu)
906     ac_prev=build_alias ;;
907   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908     build_alias=$ac_optarg ;;
909
910   -cache-file | --cache-file | --cache-fil | --cache-fi \
911   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912     ac_prev=cache_file ;;
913   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915     cache_file=$ac_optarg ;;
916
917   --config-cache | -C)
918     cache_file=config.cache ;;
919
920   -datadir | --datadir | --datadi | --datad)
921     ac_prev=datadir ;;
922   -datadir=* | --datadir=* | --datadi=* | --datad=*)
923     datadir=$ac_optarg ;;
924
925   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926   | --dataroo | --dataro | --datar)
927     ac_prev=datarootdir ;;
928   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930     datarootdir=$ac_optarg ;;
931
932   -disable-* | --disable-*)
933     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936       as_fn_error "invalid feature name: $ac_useropt"
937     ac_useropt_orig=$ac_useropt
938     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939     case $ac_user_opts in
940       *"
941 "enable_$ac_useropt"
942 "*) ;;
943       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944          ac_unrecognized_sep=', ';;
945     esac
946     eval enable_$ac_useropt=no ;;
947
948   -docdir | --docdir | --docdi | --doc | --do)
949     ac_prev=docdir ;;
950   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951     docdir=$ac_optarg ;;
952
953   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954     ac_prev=dvidir ;;
955   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956     dvidir=$ac_optarg ;;
957
958   -enable-* | --enable-*)
959     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960     # Reject names that are not valid shell variable names.
961     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962       as_fn_error "invalid feature name: $ac_useropt"
963     ac_useropt_orig=$ac_useropt
964     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965     case $ac_user_opts in
966       *"
967 "enable_$ac_useropt"
968 "*) ;;
969       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970          ac_unrecognized_sep=', ';;
971     esac
972     eval enable_$ac_useropt=\$ac_optarg ;;
973
974   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976   | --exec | --exe | --ex)
977     ac_prev=exec_prefix ;;
978   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980   | --exec=* | --exe=* | --ex=*)
981     exec_prefix=$ac_optarg ;;
982
983   -gas | --gas | --ga | --g)
984     # Obsolete; use --with-gas.
985     with_gas=yes ;;
986
987   -help | --help | --hel | --he | -h)
988     ac_init_help=long ;;
989   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990     ac_init_help=recursive ;;
991   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992     ac_init_help=short ;;
993
994   -host | --host | --hos | --ho)
995     ac_prev=host_alias ;;
996   -host=* | --host=* | --hos=* | --ho=*)
997     host_alias=$ac_optarg ;;
998
999   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000     ac_prev=htmldir ;;
1001   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002   | --ht=*)
1003     htmldir=$ac_optarg ;;
1004
1005   -includedir | --includedir | --includedi | --included | --include \
1006   | --includ | --inclu | --incl | --inc)
1007     ac_prev=includedir ;;
1008   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009   | --includ=* | --inclu=* | --incl=* | --inc=*)
1010     includedir=$ac_optarg ;;
1011
1012   -infodir | --infodir | --infodi | --infod | --info | --inf)
1013     ac_prev=infodir ;;
1014   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015     infodir=$ac_optarg ;;
1016
1017   -libdir | --libdir | --libdi | --libd)
1018     ac_prev=libdir ;;
1019   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020     libdir=$ac_optarg ;;
1021
1022   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023   | --libexe | --libex | --libe)
1024     ac_prev=libexecdir ;;
1025   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026   | --libexe=* | --libex=* | --libe=*)
1027     libexecdir=$ac_optarg ;;
1028
1029   -localedir | --localedir | --localedi | --localed | --locale)
1030     ac_prev=localedir ;;
1031   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032     localedir=$ac_optarg ;;
1033
1034   -localstatedir | --localstatedir | --localstatedi | --localstated \
1035   | --localstate | --localstat | --localsta | --localst | --locals)
1036     ac_prev=localstatedir ;;
1037   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039     localstatedir=$ac_optarg ;;
1040
1041   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042     ac_prev=mandir ;;
1043   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044     mandir=$ac_optarg ;;
1045
1046   -nfp | --nfp | --nf)
1047     # Obsolete; use --without-fp.
1048     with_fp=no ;;
1049
1050   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051   | --no-cr | --no-c | -n)
1052     no_create=yes ;;
1053
1054   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056     no_recursion=yes ;;
1057
1058   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060   | --oldin | --oldi | --old | --ol | --o)
1061     ac_prev=oldincludedir ;;
1062   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065     oldincludedir=$ac_optarg ;;
1066
1067   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068     ac_prev=prefix ;;
1069   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070     prefix=$ac_optarg ;;
1071
1072   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073   | --program-pre | --program-pr | --program-p)
1074     ac_prev=program_prefix ;;
1075   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077     program_prefix=$ac_optarg ;;
1078
1079   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080   | --program-suf | --program-su | --program-s)
1081     ac_prev=program_suffix ;;
1082   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084     program_suffix=$ac_optarg ;;
1085
1086   -program-transform-name | --program-transform-name \
1087   | --program-transform-nam | --program-transform-na \
1088   | --program-transform-n | --program-transform- \
1089   | --program-transform | --program-transfor \
1090   | --program-transfo | --program-transf \
1091   | --program-trans | --program-tran \
1092   | --progr-tra | --program-tr | --program-t)
1093     ac_prev=program_transform_name ;;
1094   -program-transform-name=* | --program-transform-name=* \
1095   | --program-transform-nam=* | --program-transform-na=* \
1096   | --program-transform-n=* | --program-transform-=* \
1097   | --program-transform=* | --program-transfor=* \
1098   | --program-transfo=* | --program-transf=* \
1099   | --program-trans=* | --program-tran=* \
1100   | --progr-tra=* | --program-tr=* | --program-t=*)
1101     program_transform_name=$ac_optarg ;;
1102
1103   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104     ac_prev=pdfdir ;;
1105   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106     pdfdir=$ac_optarg ;;
1107
1108   -psdir | --psdir | --psdi | --psd | --ps)
1109     ac_prev=psdir ;;
1110   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111     psdir=$ac_optarg ;;
1112
1113   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114   | -silent | --silent | --silen | --sile | --sil)
1115     silent=yes ;;
1116
1117   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118     ac_prev=sbindir ;;
1119   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120   | --sbi=* | --sb=*)
1121     sbindir=$ac_optarg ;;
1122
1123   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125   | --sharedst | --shareds | --shared | --share | --shar \
1126   | --sha | --sh)
1127     ac_prev=sharedstatedir ;;
1128   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131   | --sha=* | --sh=*)
1132     sharedstatedir=$ac_optarg ;;
1133
1134   -site | --site | --sit)
1135     ac_prev=site ;;
1136   -site=* | --site=* | --sit=*)
1137     site=$ac_optarg ;;
1138
1139   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140     ac_prev=srcdir ;;
1141   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142     srcdir=$ac_optarg ;;
1143
1144   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145   | --syscon | --sysco | --sysc | --sys | --sy)
1146     ac_prev=sysconfdir ;;
1147   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149     sysconfdir=$ac_optarg ;;
1150
1151   -target | --target | --targe | --targ | --tar | --ta | --t)
1152     ac_prev=target_alias ;;
1153   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154     target_alias=$ac_optarg ;;
1155
1156   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157     verbose=yes ;;
1158
1159   -version | --version | --versio | --versi | --vers | -V)
1160     ac_init_version=: ;;
1161
1162   -with-* | --with-*)
1163     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166       as_fn_error "invalid package name: $ac_useropt"
1167     ac_useropt_orig=$ac_useropt
1168     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169     case $ac_user_opts in
1170       *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174          ac_unrecognized_sep=', ';;
1175     esac
1176     eval with_$ac_useropt=\$ac_optarg ;;
1177
1178   -without-* | --without-*)
1179     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182       as_fn_error "invalid package name: $ac_useropt"
1183     ac_useropt_orig=$ac_useropt
1184     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185     case $ac_user_opts in
1186       *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190          ac_unrecognized_sep=', ';;
1191     esac
1192     eval with_$ac_useropt=no ;;
1193
1194   --x)
1195     # Obsolete; use --with-x.
1196     with_x=yes ;;
1197
1198   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199   | --x-incl | --x-inc | --x-in | --x-i)
1200     ac_prev=x_includes ;;
1201   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203     x_includes=$ac_optarg ;;
1204
1205   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207     ac_prev=x_libraries ;;
1208   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210     x_libraries=$ac_optarg ;;
1211
1212   -*) as_fn_error "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information."
1214     ;;
1215
1216   *=*)
1217     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218     # Reject names that are not valid shell variable names.
1219     case $ac_envvar in #(
1220       '' | [0-9]* | *[!_$as_cr_alnum]* )
1221       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1222     esac
1223     eval $ac_envvar=\$ac_optarg
1224     export $ac_envvar ;;
1225
1226   *)
1227     # FIXME: should be removed in autoconf 3.0.
1228     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1232     ;;
1233
1234   esac
1235 done
1236
1237 if test -n "$ac_prev"; then
1238   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239   as_fn_error "missing argument to $ac_option"
1240 fi
1241
1242 if test -n "$ac_unrecognized_opts"; then
1243   case $enable_option_checking in
1244     no) ;;
1245     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1246     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247   esac
1248 fi
1249
1250 # Check all directory arguments for consistency.
1251 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252                 datadir sysconfdir sharedstatedir localstatedir includedir \
1253                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254                 libdir localedir mandir
1255 do
1256   eval ac_val=\$$ac_var
1257   # Remove trailing slashes.
1258   case $ac_val in
1259     */ )
1260       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261       eval $ac_var=\$ac_val;;
1262   esac
1263   # Be sure to have absolute directory names.
1264   case $ac_val in
1265     [\\/$]* | ?:[\\/]* )  continue;;
1266     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267   esac
1268   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1269 done
1270
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1277
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280   if test "x$build_alias" = x; then
1281     cross_compiling=maybe
1282     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1283     If a cross compiler is detected then cross compile mode will be used." >&2
1284   elif test "x$build_alias" != "x$host_alias"; then
1285     cross_compiling=yes
1286   fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298   as_fn_error "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300   as_fn_error "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305   ac_srcdir_defaulted=yes
1306   # Try the directory containing this script, then the parent directory.
1307   ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309          X"$as_myself" : 'X\(//\)[^/]' \| \
1310          X"$as_myself" : 'X\(//\)$' \| \
1311          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314             s//\1/
1315             q
1316           }
1317           /^X\(\/\/\)[^/].*/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\/\)$/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\).*/{
1326             s//\1/
1327             q
1328           }
1329           s/.*/./; q'`
1330   srcdir=$ac_confdir
1331   if test ! -r "$srcdir/$ac_unique_file"; then
1332     srcdir=..
1333   fi
1334 else
1335   ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1344         pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347   srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 case $srcdir in
1356   *" "*)
1357     as_fn_error "path to source, $srcdir, contains spaces"
1358     ;;
1359 esac
1360 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1361
1362 for ac_var in $ac_precious_vars; do
1363   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364   eval ac_env_${ac_var}_value=\$${ac_var}
1365   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373   # Omit some internal or obsolete options to make the list less imposing.
1374   # This message is too long to be a string in the A/UX 3.1 sh.
1375   cat <<_ACEOF
1376 \`configure' configures this package to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE.  See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386   -h, --help              display this help and exit
1387       --help=short        display options specific to this package
1388       --help=recursive    display the short help of all the included packages
1389   -V, --version           display version information and exit
1390   -q, --quiet, --silent   do not print \`checking...' messages
1391       --cache-file=FILE   cache test results in FILE [disabled]
1392   -C, --config-cache      alias for \`--cache-file=config.cache'
1393   -n, --no-create         do not create output files
1394       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397   --prefix=PREFIX         install architecture-independent files in PREFIX
1398                           [$ac_default_prefix]
1399   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1400                           [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410   --bindir=DIR            user executables [EPREFIX/bin]
1411   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1412   --libexecdir=DIR        program executables [EPREFIX/libexec]
1413   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1414   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1415   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1416   --libdir=DIR            object code libraries [EPREFIX/lib]
1417   --includedir=DIR        C header files [PREFIX/include]
1418   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1419   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1420   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1421   --infodir=DIR           info documentation [DATAROOTDIR/info]
1422   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1423   --mandir=DIR            man documentation [DATAROOTDIR/man]
1424   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1425   --htmldir=DIR           html documentation [DOCDIR]
1426   --dvidir=DIR            dvi documentation [DOCDIR]
1427   --pdfdir=DIR            pdf documentation [DOCDIR]
1428   --psdir=DIR             ps documentation [DOCDIR]
1429 _ACEOF
1430
1431   cat <<\_ACEOF
1432
1433 Program names:
1434   --program-prefix=PREFIX            prepend PREFIX to installed program names
1435   --program-suffix=SUFFIX            append SUFFIX to installed program names
1436   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1437
1438 System types:
1439   --build=BUILD     configure for building on BUILD [guessed]
1440   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1441   --target=TARGET   configure for building compilers for TARGET [HOST]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446
1447   cat <<\_ACEOF
1448
1449 Optional Features:
1450   --disable-option-checking  ignore unrecognized --enable/--with options
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --enable-gold[=ARG]     build gold [ARG={both}[/{gold,ld}]]
1454   --enable-libada         build libada directory
1455   --enable-libssp         build libssp directory
1456   --enable-build-with-cxx build with C++ compiler instead of C compiler
1457   --disable-ppl-version-check    disable check for PPL version
1458   --enable-cloog-backend[=BACKEND]
1459                           set the CLooG BACKEND used to either isl, ppl or
1460                           ppl-legacy (default)
1461   --disable-cloog-version-check
1462                           disable check for CLooG version
1463   --enable-lto            enable link time optimization support
1464   --enable-stage1-languages[=all]   choose additional languages to build during
1465                           stage1.  Mostly useful for compiler development.
1466   --enable-objc-gc        enable use of Boehm's garbage collector with the
1467                           GNU Objective-C runtime
1468   --enable-bootstrap      enable bootstrapping [yes if native build]
1469   --enable-serial-[{host,target,build}-]configure
1470                           force sequential configuration of
1471                           sub-packages for the host, target or build
1472                           machine, or all sub-packages
1473   --enable-maintainer-mode enable make rules and dependencies not useful
1474                           (and sometimes confusing) to the casual installer
1475   --enable-stage1-checking[=all]   choose additional checking for stage1
1476                           of the compiler
1477   --enable-werror         enable -Werror in bootstrap stage2 and later
1478
1479 Optional Packages:
1480   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1481   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1482   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1483   --with-mpc=PATH        specify prefix directory for installed MPC package.
1484                           Equivalent to --with-mpc-include=PATH/include
1485                           plus --with-mpc-lib=PATH/lib
1486   --with-mpc-include=PATH
1487                           specify directory for installed MPC include files
1488   --with-mpc-lib=PATH    specify directory for the installed MPC library
1489   --with-mpfr-dir=PATH    this option has been REMOVED
1490   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1491                           Equivalent to --with-mpfr-include=PATH/include
1492                           plus --with-mpfr-lib=PATH/lib
1493   --with-mpfr-include=PATH
1494                           specify directory for installed MPFR include files
1495   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1496   --with-gmp-dir=PATH     this option has been REMOVED
1497   --with-gmp=PATH         specify prefix directory for the installed GMP package.
1498                           Equivalent to --with-gmp-include=PATH/include
1499                           plus --with-gmp-lib=PATH/lib
1500   --with-gmp-include=PATH specify directory for installed GMP include files
1501   --with-gmp-lib=PATH     specify directory for the installed GMP library
1502   --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1503                           when linking with PPL
1504   --with-stage1-ldflags=FLAGS Linker flags for stage1
1505   -with-stage1-libs=LIBS      Libraries for stage1
1506   --with-boot-libs=LIBS     Libraries for stage2 and later
1507   --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1508   --with-ppl=PATH         Specify prefix directory for the installed PPL package
1509                           Equivalent to --with-ppl-include=PATH/include
1510                           plus --with-ppl-lib=PATH/lib
1511   --with-ppl-include=PATH Specify directory for installed PPL include files
1512   --with-ppl-lib=PATH     Specify the directory for the installed PPL library
1513   --with-cloog=PATH       Specify prefix directory for the installed CLooG-PPL
1514                           package. Equivalent to
1515                           --with-cloog-include=PATH/include plus
1516                           --with-cloog-lib=PATH/lib
1517   --with-cloog-include=PATH
1518                           Specify directory for installed CLooG include files
1519   --with-cloog-lib=PATH   Specify the directory for the installed CLooG
1520                           library
1521   --with-build-sysroot=SYSROOT
1522                           use sysroot as the system root during the build
1523   --with-debug-prefix-map='A=B C=D ...'
1524                              map A to B, C to D ... in debug information
1525 --with-build-config='NAME NAME2...'
1526                           Use config/NAME.mk build configuration
1527   --with-build-time-tools=PATH
1528                           use given path to find target tools during the build
1529
1530 Some influential environment variables:
1531   CC          C compiler command
1532   CFLAGS      C compiler flags
1533   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1534               nonstandard directory <lib dir>
1535   LIBS        libraries to pass to the linker, e.g. -l<library>
1536   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1537               you have headers in a nonstandard directory <include dir>
1538   CXX         C++ compiler command
1539   CXXFLAGS    C++ compiler flags
1540   build_configargs
1541               additional configure arguments for build directories
1542   host_configargs
1543               additional configure arguments for host directories
1544   target_configargs
1545               additional configure arguments for target directories
1546   AR          AR for the host
1547   AS          AS for the host
1548   DLLTOOL     DLLTOOL for the host
1549   LD          LD for the host
1550   LIPO        LIPO for the host
1551   NM          NM for the host
1552   RANLIB      RANLIB for the host
1553   STRIP       STRIP for the host
1554   WINDRES     WINDRES for the host
1555   WINDMC      WINDMC for the host
1556   OBJCOPY     OBJCOPY for the host
1557   OBJDUMP     OBJDUMP for the host
1558   CC_FOR_TARGET
1559               CC for the target
1560   CXX_FOR_TARGET
1561               CXX for the target
1562   GCC_FOR_TARGET
1563               GCC for the target
1564   GCJ_FOR_TARGET
1565               GCJ for the target
1566   GFORTRAN_FOR_TARGET
1567               GFORTRAN for the target
1568   GOC_FOR_TARGET
1569               GOC for the target
1570   AR_FOR_TARGET
1571               AR for the target
1572   AS_FOR_TARGET
1573               AS for the target
1574   DLLTOOL_FOR_TARGET
1575               DLLTOOL for the target
1576   LD_FOR_TARGET
1577               LD for the target
1578   LIPO_FOR_TARGET
1579               LIPO for the target
1580   NM_FOR_TARGET
1581               NM for the target
1582   OBJDUMP_FOR_TARGET
1583               OBJDUMP for the target
1584   RANLIB_FOR_TARGET
1585               RANLIB for the target
1586   STRIP_FOR_TARGET
1587               STRIP for the target
1588   WINDRES_FOR_TARGET
1589               WINDRES for the target
1590   WINDMC_FOR_TARGET
1591               WINDMC for the target
1592
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1595
1596 Report bugs to the package provider.
1597 _ACEOF
1598 ac_status=$?
1599 fi
1600
1601 if test "$ac_init_help" = "recursive"; then
1602   # If there are subdirs, report their specific --help.
1603   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604     test -d "$ac_dir" ||
1605       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606       continue
1607     ac_builddir=.
1608
1609 case "$ac_dir" in
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *)
1612   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613   # A ".." for each directory in $ac_dir_suffix.
1614   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615   case $ac_top_builddir_sub in
1616   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618   esac ;;
1619 esac
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1624
1625 case $srcdir in
1626   .)  # We are building in place.
1627     ac_srcdir=.
1628     ac_top_srcdir=$ac_top_builddir_sub
1629     ac_abs_top_srcdir=$ac_pwd ;;
1630   [\\/]* | ?:[\\/]* )  # Absolute name.
1631     ac_srcdir=$srcdir$ac_dir_suffix;
1632     ac_top_srcdir=$srcdir
1633     ac_abs_top_srcdir=$srcdir ;;
1634   *) # Relative name.
1635     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636     ac_top_srcdir=$ac_top_build_prefix$srcdir
1637     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 esac
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641     cd "$ac_dir" || { ac_status=$?; continue; }
1642     # Check for guested configure.
1643     if test -f "$ac_srcdir/configure.gnu"; then
1644       echo &&
1645       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646     elif test -f "$ac_srcdir/configure"; then
1647       echo &&
1648       $SHELL "$ac_srcdir/configure" --help=recursive
1649     else
1650       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651     fi || ac_status=$?
1652     cd "$ac_pwd" || { ac_status=$?; break; }
1653   done
1654 fi
1655
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658   cat <<\_ACEOF
1659 configure
1660 generated by GNU Autoconf 2.64
1661
1662 Copyright (C) 2009 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665 _ACEOF
1666   exit
1667 fi
1668
1669 ## ------------------------ ##
1670 ## Autoconf initialization. ##
1671 ## ------------------------ ##
1672
1673 # ac_fn_c_try_compile LINENO
1674 # --------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_compile ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   rm -f conftest.$ac_objext
1680   if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683   *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687   (eval "$ac_compile") 2>conftest.err
1688   ac_status=$?
1689   if test -s conftest.err; then
1690     grep -v '^ *+' conftest.err >conftest.er1
1691     cat conftest.er1 >&5
1692     mv -f conftest.er1 conftest.err
1693   fi
1694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695   test $ac_status = 0; } && {
1696          test -z "$ac_c_werror_flag" ||
1697          test ! -s conftest.err
1698        } && test -s conftest.$ac_objext; then :
1699   ac_retval=0
1700 else
1701   $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704         ac_retval=1
1705 fi
1706   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707   return $ac_retval
1708
1709 } # ac_fn_c_try_compile
1710
1711 # ac_fn_cxx_try_compile LINENO
1712 # ----------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_cxx_try_compile ()
1715 {
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   rm -f conftest.$ac_objext
1718   if { { ac_try="$ac_compile"
1719 case "(($ac_try" in
1720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721   *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725   (eval "$ac_compile") 2>conftest.err
1726   ac_status=$?
1727   if test -s conftest.err; then
1728     grep -v '^ *+' conftest.err >conftest.er1
1729     cat conftest.er1 >&5
1730     mv -f conftest.er1 conftest.err
1731   fi
1732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733   test $ac_status = 0; } && {
1734          test -z "$ac_cxx_werror_flag" ||
1735          test ! -s conftest.err
1736        } && test -s conftest.$ac_objext; then :
1737   ac_retval=0
1738 else
1739   $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742         ac_retval=1
1743 fi
1744   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745   return $ac_retval
1746
1747 } # ac_fn_cxx_try_compile
1748
1749 # ac_fn_c_try_link LINENO
1750 # -----------------------
1751 # Try to link conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_link ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   rm -f conftest.$ac_objext conftest$ac_exeext
1756   if { { ac_try="$ac_link"
1757 case "(($ac_try" in
1758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759   *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763   (eval "$ac_link") 2>conftest.err
1764   ac_status=$?
1765   if test -s conftest.err; then
1766     grep -v '^ *+' conftest.err >conftest.er1
1767     cat conftest.er1 >&5
1768     mv -f conftest.er1 conftest.err
1769   fi
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; } && {
1772          test -z "$ac_c_werror_flag" ||
1773          test ! -s conftest.err
1774        } && test -s conftest$ac_exeext && {
1775          test "$cross_compiling" = yes ||
1776          $as_test_x conftest$ac_exeext
1777        }; then :
1778   ac_retval=0
1779 else
1780   $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783         ac_retval=1
1784 fi
1785   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787   # interfere with the next link command; also delete a directory that is
1788   # left behind by Apple's compiler.  We do this before executing the actions.
1789   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791   return $ac_retval
1792
1793 } # ac_fn_c_try_link
1794 cat >config.log <<_ACEOF
1795 This file contains any messages produced by compilers while
1796 running configure, to aid debugging if configure makes a mistake.
1797
1798 It was created by $as_me, which was
1799 generated by GNU Autoconf 2.64.  Invocation command line was
1800
1801   $ $0 $@
1802
1803 _ACEOF
1804 exec 5>>config.log
1805 {
1806 cat <<_ASUNAME
1807 ## --------- ##
1808 ## Platform. ##
1809 ## --------- ##
1810
1811 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1812 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1813 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1814 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1815 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1816
1817 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1818 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1819
1820 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1821 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1822 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1823 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1824 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1825 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1826 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1827
1828 _ASUNAME
1829
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833   IFS=$as_save_IFS
1834   test -z "$as_dir" && as_dir=.
1835     $as_echo "PATH: $as_dir"
1836   done
1837 IFS=$as_save_IFS
1838
1839 } >&5
1840
1841 cat >&5 <<_ACEOF
1842
1843
1844 ## ----------- ##
1845 ## Core tests. ##
1846 ## ----------- ##
1847
1848 _ACEOF
1849
1850
1851 # Keep a trace of the command line.
1852 # Strip out --no-create and --no-recursion so they do not pile up.
1853 # Strip out --silent because we don't want to record it for future runs.
1854 # Also quote any args containing shell meta-characters.
1855 # Make two passes to allow for proper duplicate-argument suppression.
1856 ac_configure_args=
1857 ac_configure_args0=
1858 ac_configure_args1=
1859 ac_must_keep_next=false
1860 for ac_pass in 1 2
1861 do
1862   for ac_arg
1863   do
1864     case $ac_arg in
1865     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1866     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1867     | -silent | --silent | --silen | --sile | --sil)
1868       continue ;;
1869     *\'*)
1870       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1871     esac
1872     case $ac_pass in
1873     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1874     2)
1875       as_fn_append ac_configure_args1 " '$ac_arg'"
1876       if test $ac_must_keep_next = true; then
1877         ac_must_keep_next=false # Got value, back to normal.
1878       else
1879         case $ac_arg in
1880           *=* | --config-cache | -C | -disable-* | --disable-* \
1881           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1882           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1883           | -with-* | --with-* | -without-* | --without-* | --x)
1884             case "$ac_configure_args0 " in
1885               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1886             esac
1887             ;;
1888           -* ) ac_must_keep_next=true ;;
1889         esac
1890       fi
1891       as_fn_append ac_configure_args " '$ac_arg'"
1892       ;;
1893     esac
1894   done
1895 done
1896 { ac_configure_args0=; unset ac_configure_args0;}
1897 { ac_configure_args1=; unset ac_configure_args1;}
1898
1899 # When interrupted or exit'd, cleanup temporary files, and complete
1900 # config.log.  We remove comments because anyway the quotes in there
1901 # would cause problems or look ugly.
1902 # WARNING: Use '\'' to represent an apostrophe within the trap.
1903 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1904 trap 'exit_status=$?
1905   # Save into config.log some information that might help in debugging.
1906   {
1907     echo
1908
1909     cat <<\_ASBOX
1910 ## ---------------- ##
1911 ## Cache variables. ##
1912 ## ---------------- ##
1913 _ASBOX
1914     echo
1915     # The following way of writing the cache mishandles newlines in values,
1916 (
1917   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1918     eval ac_val=\$$ac_var
1919     case $ac_val in #(
1920     *${as_nl}*)
1921       case $ac_var in #(
1922       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1924       esac
1925       case $ac_var in #(
1926       _ | IFS | as_nl) ;; #(
1927       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1928       *) { eval $ac_var=; unset $ac_var;} ;;
1929       esac ;;
1930     esac
1931   done
1932   (set) 2>&1 |
1933     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1934     *${as_nl}ac_space=\ *)
1935       sed -n \
1936         "s/'\''/'\''\\\\'\'''\''/g;
1937           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1938       ;; #(
1939     *)
1940       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1941       ;;
1942     esac |
1943     sort
1944 )
1945     echo
1946
1947     cat <<\_ASBOX
1948 ## ----------------- ##
1949 ## Output variables. ##
1950 ## ----------------- ##
1951 _ASBOX
1952     echo
1953     for ac_var in $ac_subst_vars
1954     do
1955       eval ac_val=\$$ac_var
1956       case $ac_val in
1957       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958       esac
1959       $as_echo "$ac_var='\''$ac_val'\''"
1960     done | sort
1961     echo
1962
1963     if test -n "$ac_subst_files"; then
1964       cat <<\_ASBOX
1965 ## ------------------- ##
1966 ## File substitutions. ##
1967 ## ------------------- ##
1968 _ASBOX
1969       echo
1970       for ac_var in $ac_subst_files
1971       do
1972         eval ac_val=\$$ac_var
1973         case $ac_val in
1974         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975         esac
1976         $as_echo "$ac_var='\''$ac_val'\''"
1977       done | sort
1978       echo
1979     fi
1980
1981     if test -s confdefs.h; then
1982       cat <<\_ASBOX
1983 ## ----------- ##
1984 ## confdefs.h. ##
1985 ## ----------- ##
1986 _ASBOX
1987       echo
1988       cat confdefs.h
1989       echo
1990     fi
1991     test "$ac_signal" != 0 &&
1992       $as_echo "$as_me: caught signal $ac_signal"
1993     $as_echo "$as_me: exit $exit_status"
1994   } >&5
1995   rm -f core *.core core.conftest.* &&
1996     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1997     exit $exit_status
1998 ' 0
1999 for ac_signal in 1 2 13 15; do
2000   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2001 done
2002 ac_signal=0
2003
2004 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2005 rm -f -r conftest* confdefs.h
2006
2007 $as_echo "/* confdefs.h */" > confdefs.h
2008
2009 # Predefined preprocessor variables.
2010
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_NAME "$PACKAGE_NAME"
2013 _ACEOF
2014
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2017 _ACEOF
2018
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2021 _ACEOF
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_STRING "$PACKAGE_STRING"
2025 _ACEOF
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2029 _ACEOF
2030
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_URL "$PACKAGE_URL"
2033 _ACEOF
2034
2035
2036 # Let the site file select an alternate cache file if it wants to.
2037 # Prefer an explicitly selected file to automatically selected ones.
2038 ac_site_file1=NONE
2039 ac_site_file2=NONE
2040 if test -n "$CONFIG_SITE"; then
2041   ac_site_file1=$CONFIG_SITE
2042 elif test "x$prefix" != xNONE; then
2043   ac_site_file1=$prefix/share/config.site
2044   ac_site_file2=$prefix/etc/config.site
2045 else
2046   ac_site_file1=$ac_default_prefix/share/config.site
2047   ac_site_file2=$ac_default_prefix/etc/config.site
2048 fi
2049 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2050 do
2051   test "x$ac_site_file" = xNONE && continue
2052   if test -r "$ac_site_file"; then
2053     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2054 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2055     sed 's/^/| /' "$ac_site_file" >&5
2056     . "$ac_site_file"
2057   fi
2058 done
2059
2060 if test -r "$cache_file"; then
2061   # Some versions of bash will fail to source /dev/null (special
2062   # files actually), so we avoid doing that.
2063   if test -f "$cache_file"; then
2064     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2065 $as_echo "$as_me: loading cache $cache_file" >&6;}
2066     case $cache_file in
2067       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2068       *)                      . "./$cache_file";;
2069     esac
2070   fi
2071 else
2072   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2073 $as_echo "$as_me: creating cache $cache_file" >&6;}
2074   >$cache_file
2075 fi
2076
2077 # Check that the precious variables saved in the cache have kept the same
2078 # value.
2079 ac_cache_corrupted=false
2080 for ac_var in $ac_precious_vars; do
2081   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2082   eval ac_new_set=\$ac_env_${ac_var}_set
2083   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2084   eval ac_new_val=\$ac_env_${ac_var}_value
2085   case $ac_old_set,$ac_new_set in
2086     set,)
2087       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2088 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2089       ac_cache_corrupted=: ;;
2090     ,set)
2091       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2092 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2093       ac_cache_corrupted=: ;;
2094     ,);;
2095     *)
2096       if test "x$ac_old_val" != "x$ac_new_val"; then
2097         # differences in whitespace do not lead to failure.
2098         ac_old_val_w=`echo x $ac_old_val`
2099         ac_new_val_w=`echo x $ac_new_val`
2100         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2101           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2102 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2103           ac_cache_corrupted=:
2104         else
2105           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2106 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2107           eval $ac_var=\$ac_old_val
2108         fi
2109         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2110 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2111         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2112 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2113       fi;;
2114   esac
2115   # Pass precious variables to config.status.
2116   if test "$ac_new_set" = set; then
2117     case $ac_new_val in
2118     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2119     *) ac_arg=$ac_var=$ac_new_val ;;
2120     esac
2121     case " $ac_configure_args " in
2122       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2123       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2124     esac
2125   fi
2126 done
2127 if $ac_cache_corrupted; then
2128   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2131 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2132   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2133 fi
2134 ## -------------------- ##
2135 ## Main body of script. ##
2136 ## -------------------- ##
2137
2138 ac_ext=c
2139 ac_cpp='$CPP $CPPFLAGS'
2140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152 progname=$0
2153 # if PWD already has a value, it is probably wrong.
2154 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2155
2156 # Export original configure arguments for use by sub-configures.
2157 # Quote arguments with shell meta charatcers.
2158 TOPLEVEL_CONFIGURE_ARGUMENTS=
2159 set -- "$progname" "$@"
2160 for ac_arg
2161 do
2162   case "$ac_arg" in
2163   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2164     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2165     # if the argument is of the form -foo=baz, quote the baz part only
2166     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2167   *) ;;
2168   esac
2169   # Add the quoted argument to the list.
2170   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2171 done
2172 if test "$silent" = yes; then
2173   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2174 fi
2175 # Remove the initial space we just introduced and, as these will be
2176 # expanded by make, quote '$'.
2177 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2178
2179
2180 # Find the build, host, and target systems.
2181 ac_aux_dir=
2182 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2183   for ac_t in install-sh install.sh shtool; do
2184     if test -f "$ac_dir/$ac_t"; then
2185       ac_aux_dir=$ac_dir
2186       ac_install_sh="$ac_aux_dir/$ac_t -c"
2187       break 2
2188     fi
2189   done
2190 done
2191 if test -z "$ac_aux_dir"; then
2192   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2193 fi
2194
2195 # These three variables are undocumented and unsupported,
2196 # and are intended to be withdrawn in a future Autoconf release.
2197 # They can cause serious problems if a builder's source tree is in a directory
2198 # whose full name contains unusual characters.
2199 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2200 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2201 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2202
2203
2204 # Make sure we can run config.sub.
2205 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2206   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2207
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2209 $as_echo_n "checking build system type... " >&6; }
2210 if test "${ac_cv_build+set}" = set; then :
2211   $as_echo_n "(cached) " >&6
2212 else
2213   ac_build_alias=$build_alias
2214 test "x$ac_build_alias" = x &&
2215   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2216 test "x$ac_build_alias" = x &&
2217   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2218 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2219   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2220
2221 fi
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2223 $as_echo "$ac_cv_build" >&6; }
2224 case $ac_cv_build in
2225 *-*-*) ;;
2226 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2227 esac
2228 build=$ac_cv_build
2229 ac_save_IFS=$IFS; IFS='-'
2230 set x $ac_cv_build
2231 shift
2232 build_cpu=$1
2233 build_vendor=$2
2234 shift; shift
2235 # Remember, the first character of IFS is used to create $*,
2236 # except with old shells:
2237 build_os=$*
2238 IFS=$ac_save_IFS
2239 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2240
2241
2242  case ${build_alias} in
2243   "") build_noncanonical=${build} ;;
2244   *) build_noncanonical=${build_alias} ;;
2245 esac
2246
2247
2248
2249  case ${host_alias} in
2250   "") host_noncanonical=${build_noncanonical} ;;
2251   *) host_noncanonical=${host_alias} ;;
2252 esac
2253
2254
2255
2256  case ${target_alias} in
2257   "") target_noncanonical=${host_noncanonical} ;;
2258   *) target_noncanonical=${target_alias} ;;
2259 esac
2260
2261
2262
2263
2264 test "$host_noncanonical" = "$target_noncanonical" &&
2265   test "$program_prefix$program_suffix$program_transform_name" = \
2266     NONENONEs,x,x, &&
2267   program_transform_name=s,y,y,
2268
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2270 $as_echo_n "checking host system type... " >&6; }
2271 if test "${ac_cv_host+set}" = set; then :
2272   $as_echo_n "(cached) " >&6
2273 else
2274   if test "x$host_alias" = x; then
2275   ac_cv_host=$ac_cv_build
2276 else
2277   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2278     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2279 fi
2280
2281 fi
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2283 $as_echo "$ac_cv_host" >&6; }
2284 case $ac_cv_host in
2285 *-*-*) ;;
2286 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2287 esac
2288 host=$ac_cv_host
2289 ac_save_IFS=$IFS; IFS='-'
2290 set x $ac_cv_host
2291 shift
2292 host_cpu=$1
2293 host_vendor=$2
2294 shift; shift
2295 # Remember, the first character of IFS is used to create $*,
2296 # except with old shells:
2297 host_os=$*
2298 IFS=$ac_save_IFS
2299 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2300
2301
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2303 $as_echo_n "checking target system type... " >&6; }
2304 if test "${ac_cv_target+set}" = set; then :
2305   $as_echo_n "(cached) " >&6
2306 else
2307   if test "x$target_alias" = x; then
2308   ac_cv_target=$ac_cv_host
2309 else
2310   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2311     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2312 fi
2313
2314 fi
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2316 $as_echo "$ac_cv_target" >&6; }
2317 case $ac_cv_target in
2318 *-*-*) ;;
2319 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2320 esac
2321 target=$ac_cv_target
2322 ac_save_IFS=$IFS; IFS='-'
2323 set x $ac_cv_target
2324 shift
2325 target_cpu=$1
2326 target_vendor=$2
2327 shift; shift
2328 # Remember, the first character of IFS is used to create $*,
2329 # except with old shells:
2330 target_os=$*
2331 IFS=$ac_save_IFS
2332 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2333
2334
2335 # The aliases save the names the user supplied, while $host etc.
2336 # will get canonicalized.
2337 test -n "$target_alias" &&
2338   test "$program_prefix$program_suffix$program_transform_name" = \
2339     NONENONEs,x,x, &&
2340   program_prefix=${target_alias}-
2341
2342 test "$program_prefix" != NONE &&
2343   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2344 # Use a double $ so make ignores it.
2345 test "$program_suffix" != NONE &&
2346   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2347 # Double any \ or $.
2348 # By default was `s,x,x', remove it if useless.
2349 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2350 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2351
2352
2353
2354 # Get 'install' or 'install-sh' and its variants.
2355 # Find a good install program.  We prefer a C program (faster),
2356 # so one script is as good as another.  But avoid the broken or
2357 # incompatible versions:
2358 # SysV /etc/install, /usr/sbin/install
2359 # SunOS /usr/etc/install
2360 # IRIX /sbin/install
2361 # AIX /bin/install
2362 # AmigaOS /C/install, which installs bootblocks on floppy discs
2363 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2364 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2365 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2366 # OS/2's system install, which has a completely different semantic
2367 # ./install, which can be erroneously created by make from ./install.sh.
2368 # Reject install programs that cannot install multiple files.
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2370 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2371 if test -z "$INSTALL"; then
2372 if test "${ac_cv_path_install+set}" = set; then :
2373   $as_echo_n "(cached) " >&6
2374 else
2375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380     # Account for people who put trailing slashes in PATH elements.
2381 case $as_dir/ in #((
2382   ./ | .// | /[cC]/* | \
2383   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2384   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2385   /usr/ucb/* ) ;;
2386   *)
2387     # OSF1 and SCO ODT 3.0 have their own names for install.
2388     # Don't use installbsd from OSF since it installs stuff as root
2389     # by default.
2390     for ac_prog in ginstall scoinst install; do
2391       for ac_exec_ext in '' $ac_executable_extensions; do
2392         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2393           if test $ac_prog = install &&
2394             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2395             # AIX install.  It has an incompatible calling convention.
2396             :
2397           elif test $ac_prog = install &&
2398             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2399             # program-specific install script used by HP pwplus--don't use.
2400             :
2401           else
2402             rm -rf conftest.one conftest.two conftest.dir
2403             echo one > conftest.one
2404             echo two > conftest.two
2405             mkdir conftest.dir
2406             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2407               test -s conftest.one && test -s conftest.two &&
2408               test -s conftest.dir/conftest.one &&
2409               test -s conftest.dir/conftest.two
2410             then
2411               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2412               break 3
2413             fi
2414           fi
2415         fi
2416       done
2417     done
2418     ;;
2419 esac
2420
2421   done
2422 IFS=$as_save_IFS
2423
2424 rm -rf conftest.one conftest.two conftest.dir
2425
2426 fi
2427   if test "${ac_cv_path_install+set}" = set; then
2428     INSTALL=$ac_cv_path_install
2429   else
2430     # As a last resort, use the slow shell script.  Don't cache a
2431     # value for INSTALL within a source directory, because that will
2432     # break other packages using the cache if that directory is
2433     # removed, or if the value is a relative name.
2434     INSTALL=$ac_install_sh
2435   fi
2436 fi
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2438 $as_echo "$INSTALL" >&6; }
2439
2440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2441 # It thinks the first close brace ends the variable substitution.
2442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2443
2444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2445
2446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2447
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2449 $as_echo_n "checking whether ln works... " >&6; }
2450 if test "${acx_cv_prog_LN+set}" = set; then :
2451   $as_echo_n "(cached) " >&6
2452 else
2453   rm -f conftestdata_t
2454 echo >conftestdata_f
2455 if ln conftestdata_f conftestdata_t 2>/dev/null
2456 then
2457   acx_cv_prog_LN=ln
2458 else
2459   acx_cv_prog_LN=no
2460 fi
2461 rm -f conftestdata_f conftestdata_t
2462
2463 fi
2464 if test $acx_cv_prog_LN = no; then
2465   LN="cp"
2466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2467 $as_echo "no, using $LN" >&6; }
2468 else
2469   LN="$acx_cv_prog_LN"
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2471 $as_echo "yes" >&6; }
2472 fi
2473
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2475 $as_echo_n "checking whether ln -s works... " >&6; }
2476 LN_S=$as_ln_s
2477 if test "$LN_S" = "ln -s"; then
2478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2479 $as_echo "yes" >&6; }
2480 else
2481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2482 $as_echo "no, using $LN_S" >&6; }
2483 fi
2484
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2486 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2487 if test "${ac_cv_path_SED+set}" = set; then :
2488   $as_echo_n "(cached) " >&6
2489 else
2490             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2491      for ac_i in 1 2 3 4 5 6 7; do
2492        ac_script="$ac_script$as_nl$ac_script"
2493      done
2494      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2495      { ac_script=; unset ac_script;}
2496      if test -z "$SED"; then
2497   ac_path_SED_found=false
2498   # Loop through the user's path and test for each of PROGNAME-LIST
2499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502   IFS=$as_save_IFS
2503   test -z "$as_dir" && as_dir=.
2504     for ac_prog in sed gsed; do
2505     for ac_exec_ext in '' $ac_executable_extensions; do
2506       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2507       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2508 # Check for GNU ac_path_SED and select it if it is found.
2509   # Check for GNU $ac_path_SED
2510 case `"$ac_path_SED" --version 2>&1` in
2511 *GNU*)
2512   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2513 *)
2514   ac_count=0
2515   $as_echo_n 0123456789 >"conftest.in"
2516   while :
2517   do
2518     cat "conftest.in" "conftest.in" >"conftest.tmp"
2519     mv "conftest.tmp" "conftest.in"
2520     cp "conftest.in" "conftest.nl"
2521     $as_echo '' >> "conftest.nl"
2522     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2523     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2524     as_fn_arith $ac_count + 1 && ac_count=$as_val
2525     if test $ac_count -gt ${ac_path_SED_max-0}; then
2526       # Best one so far, save it but keep looking for a better one
2527       ac_cv_path_SED="$ac_path_SED"
2528       ac_path_SED_max=$ac_count
2529     fi
2530     # 10*(2^10) chars as input seems more than enough
2531     test $ac_count -gt 10 && break
2532   done
2533   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2534 esac
2535
2536       $ac_path_SED_found && break 3
2537     done
2538   done
2539   done
2540 IFS=$as_save_IFS
2541   if test -z "$ac_cv_path_SED"; then
2542     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2543   fi
2544 else
2545   ac_cv_path_SED=$SED
2546 fi
2547
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2550 $as_echo "$ac_cv_path_SED" >&6; }
2551  SED="$ac_cv_path_SED"
2552   rm -f conftest.sed
2553
2554 for ac_prog in gawk mawk nawk awk
2555 do
2556   # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if test "${ac_cv_prog_AWK+set}" = set; then :
2561   $as_echo_n "(cached) " >&6
2562 else
2563   if test -n "$AWK"; then
2564   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569   IFS=$as_save_IFS
2570   test -z "$as_dir" && as_dir=.
2571     for ac_exec_ext in '' $ac_executable_extensions; do
2572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573     ac_cv_prog_AWK="$ac_prog"
2574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575     break 2
2576   fi
2577 done
2578   done
2579 IFS=$as_save_IFS
2580
2581 fi
2582 fi
2583 AWK=$ac_cv_prog_AWK
2584 if test -n "$AWK"; then
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2586 $as_echo "$AWK" >&6; }
2587 else
2588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2590 fi
2591
2592
2593   test -n "$AWK" && break
2594 done
2595
2596
2597 ### we might need to use some other shell than /bin/sh for running subshells
2598 ### If we are on Windows, search for the shell.  This will permit people
2599 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2600 ### without also having to set CONFIG_SHELL.  This code will work when
2601 ### using bash, which sets OSTYPE.
2602 case "${OSTYPE}" in
2603 *win32*)
2604   if test x${CONFIG_SHELL} = x ; then
2605     if test ! -f /bin/sh ; then
2606       if test x${SHELL} != x && test -f ${SHELL} ; then
2607         CONFIG_SHELL=${SHELL}
2608         export CONFIG_SHELL
2609       else
2610         for prog in sh sh.exe bash bash.exe; do
2611           IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
2612           for dir in $PATH; do
2613             test -z "$dir" && dir=.
2614             if test -f $dir/$prog; then
2615               CONFIG_SHELL=$dir/$prog
2616               export CONFIG_SHELL
2617               break
2618             fi
2619           done
2620           IFS="$save_ifs"
2621           test -n "${CONFIG_SHELL}" && break
2622         done
2623       fi
2624     fi
2625   fi
2626   ;;
2627 esac
2628
2629 config_shell=${CONFIG_SHELL-/bin/sh}
2630
2631 moveifchange=${srcdir}/move-if-change
2632
2633 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2634
2635 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2636 # a relative path.
2637 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2638   INSTALL="${srcpwd}/install-sh -c"
2639 fi
2640
2641 # Set srcdir to "." if that's what it is.
2642 # This is important for multilib support.
2643 pwd=`${PWDCMD-pwd}`
2644 if test "${pwd}" = "${srcpwd}" ; then
2645   srcdir=.
2646 fi
2647
2648 topsrcdir=$srcpwd
2649
2650 extra_host_args=
2651
2652 ### To add a new directory to the tree, first choose whether it is a target
2653 ### or a host dependent tool.  Then put it into the appropriate list
2654 ### (library or tools, host or target), doing a dependency sort.
2655
2656 # Subdirs will be configured in the order listed in build_configdirs,
2657 # configdirs, or target_configdirs; see the serialization section below.
2658
2659 # Dependency sorting is only needed when *configuration* must be done in
2660 # a particular order.  In all cases a dependency should be specified in
2661 # the Makefile, whether or not it's implicitly specified here.
2662
2663 # Double entries in build_configdirs, configdirs, or target_configdirs may
2664 # cause circular dependencies and break everything horribly.
2665
2666 # these library is used by various programs built for the build
2667 # environment
2668 #
2669 build_libs="build-libiberty"
2670
2671 # these tools are built for the build environment
2672 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2673
2674 # these libraries are used by various programs built for the host environment
2675 #
2676 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2677
2678 # these tools are built for the host environment
2679 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2680 # know that we are building the simulator.
2681 # binutils, gas and ld appear in that order because it makes sense to run
2682 # "make check" in that particular order.
2683 # If --enable-gold is used, "gold" may replace "ld".
2684 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2685
2686 # libgcj represents the runtime libraries only used by gcj.
2687 libgcj="target-libffi \
2688         target-zlib \
2689         target-qthreads \
2690         target-libjava"
2691
2692 # these libraries are built for the target environment, and are built after
2693 # the host libraries and the host tools (which may be a cross compiler)
2694 #
2695 target_libraries="target-libgcc \
2696                 target-libiberty \
2697                 target-libgloss \
2698                 target-newlib \
2699                 target-libgomp \
2700                 target-libstdc++-v3 \
2701                 target-libmudflap \
2702                 target-libssp \
2703                 target-libquadmath \
2704                 target-libgfortran \
2705                 target-boehm-gc \
2706                 ${libgcj} \
2707                 target-libobjc \
2708                 target-libada \
2709                 target-libgo"
2710
2711 # these tools are built using the target libraries, and are intended to
2712 # run only in the target environment
2713 #
2714 # note: any program that *uses* libraries that are in the "target_libraries"
2715 # list belongs in this list.  those programs are also very likely
2716 # candidates for the "native_only" list which follows
2717 #
2718 target_tools="target-examples target-groff target-gperf target-rda"
2719
2720 ################################################################################
2721
2722 ## All tools belong in one of the four categories, and are assigned above
2723 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2724 ## is important because configure will choke if they ever get through.
2725 ## ${configdirs} is directories we build using the host tools.
2726 ## ${target_configdirs} is directories we build using the target tools.
2727 configdirs=`echo ${host_libs} ${host_tools}`
2728 target_configdirs=`echo ${target_libraries} ${target_tools}`
2729 build_configdirs=`echo ${build_libs} ${build_tools}`
2730
2731
2732
2733 ################################################################################
2734
2735 srcname="gnu development package"
2736
2737 # This gets set non-empty for some net releases of packages.
2738 appdirs=""
2739
2740 # Define is_cross_compiler to save on calls to 'test'.
2741 is_cross_compiler=
2742 if test x"${host}" = x"${target}" ; then
2743   is_cross_compiler=no
2744 else
2745   is_cross_compiler=yes
2746 fi
2747
2748 # Find the build and target subdir names.
2749
2750 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2751 # have matching libraries, they should use host libraries: Makefile.tpl
2752 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2753 # However, they still use the build modules, because the corresponding
2754 # host modules (e.g. bison) are only built for the host when bootstrap
2755 # finishes. So:
2756 # - build_subdir is where we find build modules, and never changes.
2757 # - build_libsubdir is where we find build libraries, and can be overridden.
2758
2759 # Prefix 'build-' so this never conflicts with target_subdir.
2760 build_subdir="build-${build_noncanonical}"
2761
2762 # Check whether --with-build-libsubdir was given.
2763 if test "${with_build_libsubdir+set}" = set; then :
2764   withval=$with_build_libsubdir; build_libsubdir="$withval"
2765 else
2766   build_libsubdir="$build_subdir"
2767 fi
2768
2769 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2770 if ( test $srcdir = . && test -d gcc ) \
2771    || test -d $srcdir/../host-${host_noncanonical}; then
2772   host_subdir="host-${host_noncanonical}"
2773 else
2774   host_subdir=.
2775 fi
2776 # No prefix.
2777 target_subdir=${target_noncanonical}
2778
2779 # Be sure to cover against remnants of an in-tree build.
2780 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2781   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2782 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2783 fi
2784
2785 # Skipdirs are removed silently.
2786 skipdirs=
2787 # Noconfigdirs are removed loudly.
2788 noconfigdirs=""
2789
2790 use_gnu_ld=
2791 # Make sure we don't let GNU ld be added if we didn't want it.
2792 if test x$with_gnu_ld = xno ; then
2793   use_gnu_ld=no
2794   noconfigdirs="$noconfigdirs ld gold"
2795 fi
2796
2797 use_gnu_as=
2798 # Make sure we don't let GNU as be added if we didn't want it.
2799 if test x$with_gnu_as = xno ; then
2800   use_gnu_as=no
2801   noconfigdirs="$noconfigdirs gas"
2802 fi
2803
2804 use_included_zlib=
2805 # Make sure we don't let ZLIB be added if we didn't want it.
2806 if test x$with_system_zlib = xyes ; then
2807   use_included_zlib=no
2808   noconfigdirs="$noconfigdirs zlib"
2809 fi
2810
2811 # some tools are so dependent upon X11 that if we're not building with X,
2812 # it's not even worth trying to configure, much less build, that tool.
2813
2814 case ${with_x} in
2815   yes | "") ;; # the default value for this tree is that X11 is available
2816   no)
2817     skipdirs="${skipdirs} tk itcl libgui"
2818     # We won't be able to build gdbtk without X.
2819     enable_gdbtk=no
2820     ;;
2821   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2822 esac
2823
2824 # Some tools are only suitable for building in a "native" situation.
2825 # Remove these if host!=target.
2826 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2827
2828 # Similarly, some are only suitable for cross toolchains.
2829 # Remove these if host=target.
2830 cross_only="target-libgloss target-newlib target-opcodes"
2831
2832 case $is_cross_compiler in
2833   no) skipdirs="${skipdirs} ${cross_only}" ;;
2834   yes) skipdirs="${skipdirs} ${native_only}" ;;
2835 esac
2836
2837 # If both --with-headers and --with-libs are specified, default to
2838 # --without-newlib.
2839 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2840    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2841   if test x"${with_newlib}" = x ; then
2842     with_newlib=no
2843   fi
2844 fi
2845
2846 # Recognize --with-newlib/--without-newlib.
2847 case ${with_newlib} in
2848   no) skipdirs="${skipdirs} target-newlib" ;;
2849   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2850 esac
2851
2852 # Handle --enable-gold.
2853 #   --enable-gold               Build only gold
2854 #   --disable-gold [default]    Build only ld
2855 #   --enable-gold=both          Build both gold and ld, ld is default
2856 #   --enable-gold=both/ld       Same
2857 #   --enable-gold=both/gold     Build both gold and ld, gold is default, ld is renamed ld.bfd
2858
2859 # Check whether --enable-gold was given.
2860 if test "${enable_gold+set}" = set; then :
2861   enableval=$enable_gold; ENABLE_GOLD=$enableval
2862 else
2863   ENABLE_GOLD=no
2864 fi
2865
2866   case "${ENABLE_GOLD}" in
2867   yes|both|both/gold|both/ld)
2868     # Check for ELF target.
2869     is_elf=no
2870     case "${target}" in
2871       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2872       | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2873       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2874         case "${target}" in
2875           *-*-linux*aout* | *-*-linux*oldld*)
2876             ;;
2877           *)
2878             is_elf=yes
2879             ;;
2880         esac
2881     esac
2882
2883     if test "$is_elf" = "yes"; then
2884       # Check for target supported by gold.
2885       case "${target}" in
2886         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2887           case "${ENABLE_GOLD}" in
2888           both*)
2889             configdirs="$configdirs gold"
2890             ;;
2891           *)
2892             configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
2893             ;;
2894           esac
2895           ENABLE_GOLD=yes
2896           ;;
2897       esac
2898     fi
2899     ;;
2900   no)
2901     ;;
2902   *)
2903     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2904     ;;
2905   esac
2906
2907 # Configure extra directories which are host specific
2908
2909 case "${host}" in
2910   *-cygwin*)
2911     configdirs="$configdirs libtermcap" ;;
2912 esac
2913
2914 # A target can indicate whether a language isn't supported for some reason.
2915 # Only spaces may be used in this macro; not newlines or tabs.
2916 unsupported_languages=
2917
2918 # Remove more programs from consideration, based on the host or
2919 # target this usually means that a port of the program doesn't
2920 # exist yet.
2921
2922 case "${host}" in
2923   hppa*64*-*-*)
2924     noconfigdirs="$noconfigdirs byacc"
2925     ;;
2926   i[3456789]86-*-vsta)
2927     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2928     ;;
2929   i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2930     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2931     ;;
2932   x86_64-*-mingw*)
2933     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2934     ;;
2935   i[3456789]86-*-mingw32*)
2936     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2937     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2938     ;;
2939   i[3456789]86-*-beos*)
2940     noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2941     ;;
2942   *-*-cygwin*)
2943     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2944     ;;
2945   *-*-netbsd*)
2946     noconfigdirs="$noconfigdirs rcs"
2947     ;;
2948   ppc*-*-pe)
2949     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2950     ;;
2951   powerpc-*-beos*)
2952     noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2953     ;;
2954 esac
2955
2956
2957 # Check whether --enable-libada was given.
2958 if test "${enable_libada+set}" = set; then :
2959   enableval=$enable_libada; ENABLE_LIBADA=$enableval
2960 else
2961   ENABLE_LIBADA=yes
2962 fi
2963
2964 if test "${ENABLE_LIBADA}" != "yes" ; then
2965   noconfigdirs="$noconfigdirs gnattools"
2966 fi
2967
2968 # Check whether --enable-libssp was given.
2969 if test "${enable_libssp+set}" = set; then :
2970   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2971 else
2972   ENABLE_LIBSSP=yes
2973 fi
2974
2975
2976 # Save it here so that, even in case of --enable-libgcj, if the Java
2977 # front-end isn't enabled, we still get libgcj disabled.
2978 libgcj_saved=$libgcj
2979 case $enable_libgcj in
2980 yes)
2981   # If we reset it here, it won't get added to noconfigdirs in the
2982   # target-specific build rules, so it will be forcibly enabled
2983   # (unless the Java language itself isn't enabled).
2984   libgcj=
2985   ;;
2986 no)
2987   # Make sure we get it printed in the list of not supported target libs.
2988   # Don't disable libffi, though, other languages use it.
2989   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
2990   ;;
2991 esac
2992
2993
2994 # Disable libmudflap on some systems.
2995 if test x$enable_libmudflap = x ; then
2996     case "${target}" in
2997     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2998         # Enable libmudflap by default in GNU and friends.
2999         ;;
3000     *-*-freebsd*)
3001         # Enable libmudflap by default in FreeBSD.
3002         ;;
3003     *)
3004         # Disable it by default everywhere else.
3005         noconfigdirs="$noconfigdirs target-libmudflap"
3006         ;;
3007     esac
3008 fi
3009
3010 # Disable libgomp on non POSIX hosted systems.
3011 if test x$enable_libgomp = x ; then
3012     # Enable libgomp by default on hosted POSIX systems.
3013     case "${target}" in
3014     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3015         ;;
3016     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3017         ;;
3018     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3019         ;;
3020     *-*-darwin* | *-*-aix*)
3021         ;;
3022     *)
3023         noconfigdirs="$noconfigdirs target-libgomp"
3024         ;;
3025     esac
3026 fi
3027
3028 # Default libgloss CPU subdirectory.
3029 libgloss_dir="$target_cpu"
3030
3031 case "${target}" in
3032   *-*-chorusos)
3033     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3034     ;;
3035   powerpc-*-darwin*)
3036     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3037     noconfigdirs="$noconfigdirs sim target-rda"
3038     ;;
3039   i[3456789]86-*-darwin*)
3040     noconfigdirs="$noconfigdirs ld gprof"
3041     noconfigdirs="$noconfigdirs sim target-rda"
3042     ;;
3043   x86_64-*-darwin[912]*)
3044     noconfigdirs="$noconfigdirs ld gas gprof"
3045     noconfigdirs="$noconfigdirs sim target-rda"
3046     ;;
3047   *-*-darwin*)
3048     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3049     noconfigdirs="$noconfigdirs sim target-rda"
3050     noconfigdirs="$noconfigdirs ${libgcj}"
3051     ;;
3052   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3053     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3054     ;;
3055   *-*-freebsd*)
3056     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3057     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3058         && test -f /usr/local/include/gmp.h; then
3059       with_gmp=/usr/local
3060     fi
3061
3062     # Skip some stuff that's unsupported on some FreeBSD configurations.
3063     case "${target}" in
3064       i*86-*-*) ;;
3065       alpha*-*-*) ;;
3066       x86_64-*-*) ;;
3067       *)
3068         noconfigdirs="$noconfigdirs ${libgcj}"
3069         ;;
3070     esac
3071     ;;
3072   *-*-kaos*)
3073     # Remove unsupported stuff on all kaOS configurations.
3074     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3075     skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3076     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3077     noconfigdirs="$noconfigdirs target-libgloss"
3078     ;;
3079   *-*-netbsd*)
3080     # Skip some stuff on all NetBSD configurations.
3081     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3082
3083     # Skip some stuff that's unsupported on some NetBSD configurations.
3084     case "${target}" in
3085       i*86-*-netbsdelf*) ;;
3086       arm*-*-netbsdelf*) ;;
3087       *)
3088         noconfigdirs="$noconfigdirs ${libgcj}"
3089         ;;
3090     esac
3091     ;;
3092   *-*-netware*)
3093     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3094     ;;
3095   *-*-rtems*)
3096     skipdirs="${skipdirs} target-libiberty"
3097     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3098     ;;
3099     # The tpf target doesn't support gdb yet.
3100   *-*-tpf*)
3101     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3102     ;;
3103   *-*-uclinux*)
3104     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3105     ;;
3106   *-*-vxworks*)
3107     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3108     ;;
3109   alpha*-dec-osf*)
3110     # ld works, but does not support shared libraries.
3111     # newlib is not 64 bit ready.  I'm not sure about fileutils.
3112     # gas doesn't generate exception information.
3113     noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3114     ;;
3115   alpha*-*-*vms*)
3116     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3117     ;;
3118   alpha*-*-linux*)
3119     # newlib is not 64 bit ready
3120     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3121     ;;
3122   alpha*-*-*)
3123     # newlib is not 64 bit ready
3124     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3125     ;;
3126   am33_2.0-*-linux*)
3127     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3128     ;;
3129   sh-*-linux*)
3130     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3131     ;;
3132   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3133     noconfigdirs="$noconfigdirs ${libgcj}"
3134     noconfigdirs="$noconfigdirs target-examples"
3135     noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3136     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3137     noconfigdirs="$noconfigdirs expect dejagnu"
3138     # the C++ libraries don't build on top of CE's C libraries
3139     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3140     noconfigdirs="$noconfigdirs target-newlib"
3141     case "${host}" in
3142       *-*-cygwin*) ;; # keep gdb and readline
3143       *) noconfigdirs="$noconfigdirs gdb readline"
3144          ;;
3145     esac
3146     libgloss_dir=wince
3147     ;;
3148   arc-*-*)
3149     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3150     ;;
3151   arm-semi-aof )
3152     ;;
3153   arm-*-coff | strongarm-*-coff | xscale-*-coff)
3154     noconfigdirs="$noconfigdirs ${libgcj}"
3155     libgloss_dir=arm
3156     ;;
3157   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3158     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3159     libgloss_dir=arm
3160     ;;
3161   arm*-*-linux-gnueabi)
3162     noconfigdirs="$noconfigdirs target-qthreads"
3163     case ${with_newlib} in
3164       no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3165     esac
3166     libgloss_dir=arm
3167     ;;
3168   arm*-*-symbianelf*)
3169     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3170     libgloss_dir=arm
3171     ;;
3172   arm-*-pe*)
3173     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3174     ;;
3175   thumb-*-coff)
3176     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3177     ;;
3178   thumb-*-elf)
3179     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3180     ;;
3181   thumb-*-pe)
3182     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3183     ;;
3184   arm-*-riscix*)
3185     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3186     ;;
3187   avr-*-*)
3188     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3189     ;;
3190   bfin-*-*)
3191     unsupported_languages="$unsupported_languages java"
3192     noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3193     if test x${is_cross_compiler} != xno ; then
3194       target_configdirs="${target_configdirs} target-bsp target-cygmon"
3195     fi
3196     ;;
3197   c4x-*-* | tic4x-*-*)
3198     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3199     ;;
3200   c54x*-*-* | tic54x-*-*)
3201     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3202     ;;
3203   cr16-*-*)
3204     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3205     ;;
3206   cris-*-* | crisv32-*-*)
3207     unsupported_languages="$unsupported_languages java"
3208     case "${target}" in
3209       *-*-aout)
3210         unsupported_languages="$unsupported_languages fortran"
3211         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3212       *-*-elf)
3213         noconfigdirs="$noconfigdirs target-boehm-gc";;
3214       *-*-linux*)
3215         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3216       *)
3217         unsupported_languages="$unsupported_languages fortran"
3218         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3219     esac
3220     libgloss_dir=cris
3221     ;;
3222   crx-*-*)
3223     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3224     ;;
3225   d10v-*-*)
3226     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3227     ;;
3228   d30v-*-*)
3229     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3230     ;;
3231   ep9312-*-elf | ep9312-*-coff)
3232     libgloss_dir=arm
3233     ;;
3234   fr30-*-elf*)
3235     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3236     ;;
3237   frv-*-*)
3238     noconfigdirs="$noconfigdirs ${libgcj}"
3239     ;;
3240   moxie-*-*)
3241     noconfigdirs="$noconfigdirs ${libgcj}"
3242     noconfigdirs="$noconfigdirs gprof"
3243     ;;
3244   h8300*-*-*)
3245     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3246     ;;
3247   h8500-*-*)
3248     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3249     ;;
3250   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3251     ;;
3252   hppa*64*-*-linux* | parisc*64*-*-linux*)
3253     # In this case, it's because the hppa64-linux target is for
3254     # the kernel only at this point and has no libc, and thus no
3255     # headers, crt*.o, etc., all of which are needed by these.
3256     noconfigdirs="$noconfigdirs target-zlib"
3257     ;;
3258   parisc*-*-linux* | hppa*-*-linux*)
3259     ;;
3260   hppa*-*-*elf* | \
3261   hppa*-*-lites* | \
3262   hppa*-*-openbsd* | \
3263   hppa*64*-*-*)
3264     noconfigdirs="$noconfigdirs ${libgcj}"
3265     ;;
3266   hppa*-hp-hpux11*)
3267     noconfigdirs="$noconfigdirs ld shellutils"
3268     ;;
3269   hppa*-*-pro*)
3270     libgloss_dir=pa
3271     ;;
3272   hppa*-*-*)
3273     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3274     # build on HP-UX 10.20.
3275     noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3276     ;;
3277   i960-*-*)
3278     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3279     ;;
3280   ia64*-*-elf*)
3281     # No gdb support yet.
3282     noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3283     ;;
3284   ia64*-**-hpux*)
3285     # No gdb or ld support yet.
3286     noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3287     ;;
3288   ia64*-*-*vms*)
3289     # No gdb or ld support yet.
3290     noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3291     ;;
3292   i370-*-opened*)
3293     ;;
3294   i[3456789]86-*-coff | i[3456789]86-*-elf)
3295     noconfigdirs="$noconfigdirs ${libgcj}"
3296     libgloss_dir=i386
3297     ;;
3298   i[3456789]86-*-linux*)
3299     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3300     # not build java stuff by default.
3301     case "${target}" in
3302       *-*-*libc1*)
3303         noconfigdirs="$noconfigdirs ${libgcj}";;
3304     esac
3305
3306     # This section makes it possible to build newlib natively on linux.
3307     # If we are using a cross compiler then don't configure newlib.
3308     if test x${is_cross_compiler} != xno ; then
3309       noconfigdirs="$noconfigdirs target-newlib"
3310     fi
3311     noconfigdirs="$noconfigdirs target-libgloss"
3312     # If we are not using a cross compiler, do configure newlib.
3313     # Note however, that newlib will only be configured in this situation
3314     # if the --with-newlib option has been given, because otherwise
3315     # 'target-newlib' will appear in skipdirs.
3316     ;;
3317   i[3456789]86-w64-mingw*)
3318     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3319     ;;
3320   i[3456789]86-*-mingw*)
3321     target_configdirs="$target_configdirs target-winsup"
3322     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3323     ;;
3324   x86_64-*-mingw*)
3325     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3326     ;;
3327   *-*-cygwin*)
3328     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3329     noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3330     # always build newlib if winsup directory is present.
3331     if test -d "$srcdir/winsup/cygwin"; then
3332       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3333     elif test -d "$srcdir/newlib"; then
3334       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3335     fi
3336     ;;
3337   i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3338   i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3339     ;;
3340   i[3456789]86-*-pe)
3341     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3342     ;;
3343   i[3456789]86-*-sco3.2v5*)
3344     # The linker does not yet know about weak symbols in COFF,
3345     # and is not configured to handle mixed ELF and COFF.
3346     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3347     ;;
3348   i[3456789]86-*-sco*)
3349     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3350     ;;
3351   i[3456789]86-*-solaris2*)
3352     noconfigdirs="$noconfigdirs target-libgloss"
3353     ;;
3354   i[3456789]86-*-sysv4*)
3355     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3356     ;;
3357   i[3456789]86-*-beos*)
3358     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3359     ;;
3360   i[3456789]86-*-rdos*)
3361     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3362     ;;
3363   m32r-*-*)
3364     noconfigdirs="$noconfigdirs ${libgcj}"
3365     ;;
3366   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3367     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3368     libgloss_dir=m68hc11
3369     ;;
3370   m68k-*-elf*)
3371     noconfigdirs="$noconfigdirs ${libgcj}"
3372     ;;
3373   m68k-*-coff*)
3374     noconfigdirs="$noconfigdirs ${libgcj}"
3375     ;;
3376   m68*-*-* | fido-*-*)
3377     libgloss_dir=m68k
3378     ;;
3379   mcore-*-pe*)
3380   # The EPOC C++ environment does not support exceptions or rtti,
3381   # and so building libstdc++-v3 tends not to always work.
3382     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383     ;;
3384   mmix-*-*)
3385     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3386     unsupported_languages="$unsupported_languages fortran java"
3387     ;;
3388   mn10200-*-*)
3389     noconfigdirs="$noconfigdirs ${libgcj}"
3390     ;;
3391   mn10300-*-*)
3392     noconfigdirs="$noconfigdirs ${libgcj}"
3393     ;;
3394   mt-*-*)
3395     noconfigdirs="$noconfigdirs sim"
3396     ;;
3397   powerpc-*-aix*)
3398     # copied from rs6000-*-* entry
3399     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3400     ;;
3401   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3402     target_configdirs="$target_configdirs target-winsup"
3403     noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3404     # always build newlib.
3405     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3406     ;;
3407     # This is temporary until we can link against shared libraries
3408   powerpcle-*-solaris*)
3409     noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3410     libgloss_dir=rs6000
3411     ;;
3412   powerpc-*-beos*)
3413     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3414     ;;
3415   powerpc-*-eabi)
3416     noconfigdirs="$noconfigdirs ${libgcj}"
3417     libgloss_dir=rs6000
3418     ;;
3419   powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3420     libgloss_dir=rs6000
3421     ;;
3422   rs6000-*-lynxos*)
3423     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3424     ;;
3425   rs6000-*-aix*)
3426     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3427     ;;
3428   rs6000-*-*)
3429     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3430     ;;
3431   m68k-apollo-*)
3432     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3433     ;;
3434   microblaze*)
3435     noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3436     ;;
3437   mips*-sde-elf*)
3438     skipdirs="$skipdirs target-libiberty"
3439     noconfigdirs="$noconfigdirs ${libgcj}"
3440     if test x$with_newlib = xyes; then
3441       noconfigdirs="$noconfigdirs gprof"
3442     fi
3443     libgloss_dir=mips
3444     ;;
3445   mips*-*-irix5*)
3446     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3447     ;;
3448   mips*-*-irix6*)
3449     # Linking libjava exceeds command-line length limits on at least
3450     # IRIX 6.2, but not on IRIX 6.5.
3451     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3452     # <oldham@codesourcery.com>
3453     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3454     ;;
3455   mips*-*-bsd*)
3456     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3457     ;;
3458   mips*-*-linux*)
3459     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3460     ;;
3461   mips*-*-*)
3462     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3463     libgloss_dir=mips
3464     ;;
3465   romp-*-*)
3466     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3467     ;;
3468   sh-*-* | sh64-*-*)
3469     case "${host}" in
3470       i[3456789]86-*-vsta) ;; # don't add gprof back in
3471       i[3456789]86-*-go32*) ;; # don't add gprof back in
3472       i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3473       *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3474     esac
3475     case "${target}" in
3476       sh*-*-elf)
3477          noconfigdirs="$noconfigdirs ${libgcj}" ;;
3478       *)
3479          noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3480     esac
3481     ;;
3482   sparclet-*-aout* | sparc86x-*-*)
3483     libgloss_dir=sparc
3484     ;;
3485   sparc-*-elf*)
3486     noconfigdirs="$noconfigdirs ${libgcj}"
3487     ;;
3488   sparc64-*-elf*)
3489     noconfigdirs="$noconfigdirs ${libgcj}"
3490     libgloss_dir=sparc
3491     ;;
3492   sparclite-*-*)
3493     noconfigdirs="$noconfigdirs ${libgcj}"
3494     libgloss_dir=sparc
3495     ;;
3496   sparc-*-sunos4*)
3497     noconfigdirs="$noconfigdirs ${libgcj}"
3498     if test x${is_cross_compiler} != xno ; then
3499            noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3500     else
3501            use_gnu_ld=no
3502     fi
3503     ;;
3504   sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3505     noconfigdirs="$noconfigdirs ${libgcj}"
3506     ;;
3507   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3508     ;;
3509   tic6x-*-*)
3510     noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3511     ;;
3512   v810-*-*)
3513     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3514     ;;
3515   v850*-*-*)
3516     noconfigdirs="$noconfigdirs ${libgcj}"
3517     ;;
3518   vax-*-vms)
3519     noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3520     ;;
3521   vax-*-*)
3522     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3523     ;;
3524   xtensa*-*-*)
3525     noconfigdirs="$noconfigdirs ${libgcj}"
3526     ;;
3527   ip2k-*-*)
3528     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3529     ;;
3530   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3531     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532     ;;
3533   *-*-lynxos*)
3534     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3535     ;;
3536   *-*-*)
3537     noconfigdirs="$noconfigdirs ${libgcj}"
3538     ;;
3539 esac
3540
3541 # If we aren't building newlib, then don't build libgloss, since libgloss
3542 # depends upon some newlib header files.
3543 case "${noconfigdirs}" in
3544   *target-libgloss*) ;;
3545   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3546 esac
3547
3548 # Work in distributions that contain no compiler tools, like Autoconf.
3549 tentative_cc=""
3550 host_makefile_frag=/dev/null
3551 if test -d ${srcdir}/config ; then
3552 case "${host}" in
3553   m68k-hp-hpux*)
3554     # Avoid "too much defining" errors from HPUX compiler.
3555     tentative_cc="cc -Wp,-H256000"
3556     # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3557     # If it's HP/UX ar, this should be harmless.
3558     RANLIB="ar ts"
3559     ;;
3560   m68k-apollo-sysv*)
3561     tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3562     ;;
3563   m68k-apollo-bsd*)
3564     #None of the Apollo compilers can compile gas or binutils.  The preprocessor
3565     # chokes on bfd, the compiler won't let you assign integers to enums, and
3566     # other problems.  Defining CC to gcc is a questionable way to say "don't use
3567     # the apollo compiler" (the preferred version of GCC could be called cc,
3568     # or whatever), but I'm not sure leaving CC as cc is any better...
3569     #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3570     # Used to have BISON=yacc.
3571     tentative_cc=gcc
3572     ;;
3573   m88k-dg-dgux*)
3574     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3575     ;;
3576   m88k-harris-cxux*)
3577     # Under CX/UX, we want to tell the compiler to use ANSI mode.
3578     tentative_cc="cc -Xa"
3579     host_makefile_frag="config/mh-cxux"
3580     ;;
3581   m88k-motorola-sysv*)
3582     ;;
3583   mips*-dec-ultrix*)
3584     tentative_cc="cc -Wf,-XNg1000"
3585     host_makefile_frag="config/mh-decstation"
3586     ;;
3587   mips*-nec-sysv4*)
3588     # The C compiler on NEC MIPS SVR4 needs bigger tables.
3589     tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3590     host_makefile_frag="config/mh-necv4"
3591     ;;
3592   mips*-sgi-irix4*)
3593     # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
3594     # environment.  Also bump switch table size so that cp-parse will
3595     # compile.  Bump string length limit so linker builds.
3596     tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3597     ;;
3598   mips*-*-sysv4*)
3599     host_makefile_frag="config/mh-sysv4"
3600     ;;
3601   mips*-*-sysv*)
3602     # This is for a MIPS running RISC/os 4.52C.
3603
3604     # This is needed for GDB, but needs to be in the top-level make because
3605     # if a library is compiled with the bsd headers and gets linked with the
3606     # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3607     # a different size).
3608     # ptrace(2) apparently has problems in the BSD environment.  No workaround is
3609     # known except to select the sysv environment.  Could we use /proc instead?
3610     # These "sysv environments" and "bsd environments" often end up being a pain.
3611     #
3612     # This is not part of CFLAGS because perhaps not all C compilers have this
3613     # option.
3614     tentative_cc="cc -systype sysv"
3615     ;;
3616   i370-ibm-opened*)
3617     tentative_cc="c89"
3618     ;;
3619   i[3456789]86-*-sysv5*)
3620     host_makefile_frag="config/mh-sysv5"
3621     ;;
3622   i[3456789]86-*-dgux*)
3623     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3624     host_makefile_frag="config/mh-dgux386"
3625     ;;
3626   i[3456789]86-ncr-sysv4.3*)
3627     # The MetaWare compiler will generate a copyright message unless you
3628     # turn it off by adding the -Hnocopyr flag.
3629     tentative_cc="cc -Hnocopyr"
3630     ;;
3631   i[3456789]86-ncr-sysv4*)
3632     # for an NCR 3000 (i486/SVR4) system.
3633     # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3634     # This compiler not only emits obnoxious copyright messages every time
3635     # you run it, but it chokes and dies on a whole bunch of GNU source
3636     # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3637     tentative_cc="/usr/ccs/ATT/cc"
3638     host_makefile_frag="config/mh-ncr3000"
3639     ;;
3640   i[3456789]86-*-sco3.2v5*)
3641     ;;
3642   i[3456789]86-*-sco*)
3643     # The native C compiler botches some simple uses of const.  Unfortunately,
3644     # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3645     tentative_cc="cc -Dconst="
3646     host_makefile_frag="config/mh-sco"
3647     ;;
3648   i[3456789]86-*-udk*)
3649     host_makefile_frag="config/mh-sysv5"
3650     ;;
3651   i[3456789]86-*-solaris2*)
3652     host_makefile_frag="config/mh-sysv4"
3653     ;;
3654   i[3456789]86-*-msdosdjgpp*)
3655     host_makefile_frag="config/mh-djgpp"
3656     ;;
3657   *-cygwin*)
3658
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3660 $as_echo_n "checking to see if cat works as expected... " >&6; }
3661 echo a >cygwin-cat-check
3662 if test `cat cygwin-cat-check` = a ; then
3663   rm cygwin-cat-check
3664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3665 $as_echo "yes" >&6; }
3666 else
3667   rm cygwin-cat-check
3668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3670   as_fn_error "The cat command does not ignore carriage return characters.
3671   Please either mount the build directory in binary mode or run the following
3672   commands before running any configure script:
3673 set -o igncr
3674 export SHELLOPTS
3675   " "$LINENO" 5
3676 fi
3677
3678     host_makefile_frag="config/mh-cygwin"
3679     ;;
3680   *-mingw*)
3681     host_makefile_frag="config/mh-mingw"
3682     ;;
3683   *-interix*)
3684     host_makefile_frag="config/mh-interix"
3685     ;;
3686   vax-*-ultrix2*)
3687     # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3688     tentative_cc=gcc
3689     ;;
3690   *-*-solaris2*)
3691     host_makefile_frag="config/mh-solaris"
3692     ;;
3693   m68k-sun-sunos*)
3694     # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3695     # without overflowing the jump tables (-J says to use a 32 bit table)
3696     tentative_cc="cc -J"
3697     ;;
3698   hppa*-hp-hpux10*)
3699     tentative_cc="cc -Wp,-H256000"
3700     host_makefile_frag="config/mh-pa-hpux10"
3701     ;;
3702   hppa*-hp-hpux* | hppa*-*-hiux*)
3703     tentative_cc="cc -Wp,-H256000"
3704     host_makefile_frag="config/mh-pa"
3705     ;;
3706   hppa*-*)
3707     host_makefile_frag="config/mh-pa"
3708     ;;
3709   *-hp-hpux* | *-*-hiux*)
3710     tentative_cc="cc -Wp,-H256000"
3711     ;;
3712   rs6000-*-lynxos*)
3713     # /bin/cc is less than useful for our purposes.  Always use GCC
3714     tentative_cc="/usr/cygnus/progressive/bin/gcc"
3715     host_makefile_frag="config/mh-lynxrs6k"
3716     ;;
3717   *-*-darwin*)
3718     host_makefile_frag="config/mh-darwin"
3719     ;;
3720   powerpc-*-aix*)
3721     host_makefile_frag="config/mh-ppc-aix"
3722     ;;
3723   rs6000-*-aix*)
3724     host_makefile_frag="config/mh-ppc-aix"
3725     ;;
3726   *-*-lynxos*)
3727     # /bin/cc is less than useful for our purposes.  Always use GCC
3728     tentative_cc="/bin/gcc"
3729     ;;
3730   *-*-sysv4*)
3731     host_makefile_frag="config/mh-sysv4"
3732     ;;
3733   # This is placed last to prevent interfering with the cases above.
3734   i[3456789]86-*-*)
3735     # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3736     host_makefile_frag="config/mh-x86omitfp"
3737     ;;
3738 esac
3739 fi
3740
3741 # If we aren't going to be using gcc, see if we can extract a definition
3742 # of CC from the fragment.
3743 # Actually, use the 'pre-extracted' version above.
3744 if test -z "${CC}" && test "${build}" = "${host}" ; then
3745   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
3746   found=
3747   for dir in $PATH; do
3748     test -z "$dir" && dir=.
3749     if test -f $dir/gcc; then
3750       found=yes
3751       break
3752     fi
3753   done
3754   IFS="$save_ifs"
3755   if test -z "${found}" && test -n "${tentative_cc}" ; then
3756     CC=$tentative_cc
3757   fi
3758 fi
3759
3760 if test "${build}" != "${host}" ; then
3761   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3762   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3763   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3764   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3765   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3766   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3767   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3768   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3769   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3770   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3771   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3772   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3773   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3774 else
3775   AR_FOR_BUILD="\$(AR)"
3776   AS_FOR_BUILD="\$(AS)"
3777   CC_FOR_BUILD="\$(CC)"
3778   CXX_FOR_BUILD="\$(CXX)"
3779   GCJ_FOR_BUILD="\$(GCJ)"
3780   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3781   GOC_FOR_BUILD="\$(GOC)"
3782   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3783   LD_FOR_BUILD="\$(LD)"
3784   NM_FOR_BUILD="\$(NM)"
3785   RANLIB_FOR_BUILD="\$(RANLIB)"
3786   WINDRES_FOR_BUILD="\$(WINDRES)"
3787   WINDMC_FOR_BUILD="\$(WINDMC)"
3788 fi
3789
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795 if test -n "$ac_tool_prefix"; then
3796   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3797 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if test "${ac_cv_prog_CC+set}" = set; then :
3801   $as_echo_n "(cached) " >&6
3802 else
3803   if test -n "$CC"; then
3804   ac_cv_prog_CC="$CC" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809   IFS=$as_save_IFS
3810   test -z "$as_dir" && as_dir=.
3811     for ac_exec_ext in '' $ac_executable_extensions; do
3812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3813     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815     break 2
3816   fi
3817 done
3818   done
3819 IFS=$as_save_IFS
3820
3821 fi
3822 fi
3823 CC=$ac_cv_prog_CC
3824 if test -n "$CC"; then
3825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826 $as_echo "$CC" >&6; }
3827 else
3828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3830 fi
3831
3832
3833 fi
3834 if test -z "$ac_cv_prog_CC"; then
3835   ac_ct_CC=$CC
3836   # Extract the first word of "gcc", so it can be a program name with args.
3837 set dummy gcc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3841   $as_echo_n "(cached) " >&6
3842 else
3843   if test -n "$ac_ct_CC"; then
3844   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849   IFS=$as_save_IFS
3850   test -z "$as_dir" && as_dir=.
3851     for ac_exec_ext in '' $ac_executable_extensions; do
3852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853     ac_cv_prog_ac_ct_CC="gcc"
3854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858   done
3859 IFS=$as_save_IFS
3860
3861 fi
3862 fi
3863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3864 if test -n "$ac_ct_CC"; then
3865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3866 $as_echo "$ac_ct_CC" >&6; }
3867 else
3868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 fi
3871
3872   if test "x$ac_ct_CC" = x; then
3873     CC=""
3874   else
3875     case $cross_compiling:$ac_tool_warned in
3876 yes:)
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3879 ac_tool_warned=yes ;;
3880 esac
3881     CC=$ac_ct_CC
3882   fi
3883 else
3884   CC="$ac_cv_prog_CC"
3885 fi
3886
3887 if test -z "$CC"; then
3888           if test -n "$ac_tool_prefix"; then
3889     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3890 set dummy ${ac_tool_prefix}cc; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if test "${ac_cv_prog_CC+set}" = set; then :
3894   $as_echo_n "(cached) " >&6
3895 else
3896   if test -n "$CC"; then
3897   ac_cv_prog_CC="$CC" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902   IFS=$as_save_IFS
3903   test -z "$as_dir" && as_dir=.
3904     for ac_exec_ext in '' $ac_executable_extensions; do
3905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906     ac_cv_prog_CC="${ac_tool_prefix}cc"
3907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908     break 2
3909   fi
3910 done
3911   done
3912 IFS=$as_save_IFS
3913
3914 fi
3915 fi
3916 CC=$ac_cv_prog_CC
3917 if test -n "$CC"; then
3918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3920 else
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3923 fi
3924
3925
3926   fi
3927 fi
3928 if test -z "$CC"; then
3929   # Extract the first word of "cc", so it can be a program name with args.
3930 set dummy cc; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if test "${ac_cv_prog_CC+set}" = set; then :
3934   $as_echo_n "(cached) " >&6
3935 else
3936   if test -n "$CC"; then
3937   ac_cv_prog_CC="$CC" # Let the user override the test.
3938 else
3939   ac_prog_rejected=no
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3942 do
3943   IFS=$as_save_IFS
3944   test -z "$as_dir" && as_dir=.
3945     for ac_exec_ext in '' $ac_executable_extensions; do
3946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3947     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3948        ac_prog_rejected=yes
3949        continue
3950      fi
3951     ac_cv_prog_CC="cc"
3952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953     break 2
3954   fi
3955 done
3956   done
3957 IFS=$as_save_IFS
3958
3959 if test $ac_prog_rejected = yes; then
3960   # We found a bogon in the path, so make sure we never use it.
3961   set dummy $ac_cv_prog_CC
3962   shift
3963   if test $# != 0; then
3964     # We chose a different compiler from the bogus one.
3965     # However, it has the same basename, so the bogon will be chosen
3966     # first if we set CC to just the basename; use the full file name.
3967     shift
3968     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3969   fi
3970 fi
3971 fi
3972 fi
3973 CC=$ac_cv_prog_CC
3974 if test -n "$CC"; then
3975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3977 else
3978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982
3983 fi
3984 if test -z "$CC"; then
3985   if test -n "$ac_tool_prefix"; then
3986   for ac_prog in cl.exe
3987   do
3988     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if test "${ac_cv_prog_CC+set}" = set; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   if test -n "$CC"; then
3996   ac_cv_prog_CC="$CC" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001   IFS=$as_save_IFS
4002   test -z "$as_dir" && as_dir=.
4003     for ac_exec_ext in '' $ac_executable_extensions; do
4004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007     break 2
4008   fi
4009 done
4010   done
4011 IFS=$as_save_IFS
4012
4013 fi
4014 fi
4015 CC=$ac_cv_prog_CC
4016 if test -n "$CC"; then
4017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018 $as_echo "$CC" >&6; }
4019 else
4020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4022 fi
4023
4024
4025     test -n "$CC" && break
4026   done
4027 fi
4028 if test -z "$CC"; then
4029   ac_ct_CC=$CC
4030   for ac_prog in cl.exe
4031 do
4032   # Extract the first word of "$ac_prog", so it can be a program name with args.
4033 set dummy $ac_prog; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4037   $as_echo_n "(cached) " >&6
4038 else
4039   if test -n "$ac_ct_CC"; then
4040   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047     for ac_exec_ext in '' $ac_executable_extensions; do
4048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049     ac_cv_prog_ac_ct_CC="$ac_prog"
4050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051     break 2
4052   fi
4053 done
4054   done
4055 IFS=$as_save_IFS
4056
4057 fi
4058 fi
4059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060 if test -n "$ac_ct_CC"; then
4061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4062 $as_echo "$ac_ct_CC" >&6; }
4063 else
4064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4066 fi
4067
4068
4069   test -n "$ac_ct_CC" && break
4070 done
4071
4072   if test "x$ac_ct_CC" = x; then
4073     CC=""
4074   else
4075     case $cross_compiling:$ac_tool_warned in
4076 yes:)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned=yes ;;
4080 esac
4081     CC=$ac_ct_CC
4082   fi
4083 fi
4084
4085 fi
4086
4087
4088 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090 as_fn_error "no acceptable C compiler found in \$PATH
4091 See \`config.log' for more details." "$LINENO" 5; }
4092
4093 # Provide some information about the compiler.
4094 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4095 set X $ac_compile
4096 ac_compiler=$2
4097 for ac_option in --version -v -V -qversion; do
4098   { { ac_try="$ac_compiler $ac_option >&5"
4099 case "(($ac_try" in
4100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101   *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4106   ac_status=$?
4107   if test -s conftest.err; then
4108     sed '10a\
4109 ... rest of stderr output deleted ...
4110          10q' conftest.err >conftest.er1
4111     cat conftest.er1 >&5
4112     rm -f conftest.er1 conftest.err
4113   fi
4114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115   test $ac_status = 0; }
4116 done
4117
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h.  */
4120
4121 int
4122 main ()
4123 {
4124
4125   ;
4126   return 0;
4127 }
4128 _ACEOF
4129 ac_clean_files_save=$ac_clean_files
4130 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4131 # Try to create an executable without -o first, disregard a.out.
4132 # It will help us diagnose broken compilers, and finding out an intuition
4133 # of exeext.
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4135 $as_echo_n "checking for C compiler default output file name... " >&6; }
4136 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4137
4138 # The possible output files:
4139 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4140
4141 ac_rmfiles=
4142 for ac_file in $ac_files
4143 do
4144   case $ac_file in
4145     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4146     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4147   esac
4148 done
4149 rm -f $ac_rmfiles
4150
4151 if { { ac_try="$ac_link_default"
4152 case "(($ac_try" in
4153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154   *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157 $as_echo "$ac_try_echo"; } >&5
4158   (eval "$ac_link_default") 2>&5
4159   ac_status=$?
4160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161   test $ac_status = 0; }; then :
4162   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4163 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4164 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4165 # so that the user can short-circuit this test for compilers unknown to
4166 # Autoconf.
4167 for ac_file in $ac_files ''
4168 do
4169   test -f "$ac_file" || continue
4170   case $ac_file in
4171     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4172         ;;
4173     [ab].out )
4174         # We found the default executable, but exeext='' is most
4175         # certainly right.
4176         break;;
4177     *.* )
4178         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4179         then :; else
4180            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4181         fi
4182         # We set ac_cv_exeext here because the later test for it is not
4183         # safe: cross compilers may not add the suffix if given an `-o'
4184         # argument, so we may need to know it at that point already.
4185         # Even if this section looks crufty: it has the advantage of
4186         # actually working.
4187         break;;
4188     * )
4189         break;;
4190   esac
4191 done
4192 test "$ac_cv_exeext" = no && ac_cv_exeext=
4193
4194 else
4195   ac_file=''
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4198 $as_echo "$ac_file" >&6; }
4199 if test -z "$ac_file"; then :
4200   $as_echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
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_set_status 77
4206 as_fn_error "C compiler cannot create executables
4207 See \`config.log' for more details." "$LINENO" 5; }; }
4208 fi
4209 ac_exeext=$ac_cv_exeext
4210
4211 # Check that the compiler produces executables we can run.  If not, either
4212 # the compiler is broken, or we cross compile.
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4214 $as_echo_n "checking whether the C compiler works... " >&6; }
4215 # If not cross compiling, check that we can run a simple program.
4216 if test "$cross_compiling" != yes; then
4217   if { ac_try='./$ac_file'
4218   { { case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 $as_echo "$ac_try_echo"; } >&5
4224   (eval "$ac_try") 2>&5
4225   ac_status=$?
4226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227   test $ac_status = 0; }; }; then
4228     cross_compiling=no
4229   else
4230     if test "$cross_compiling" = maybe; then
4231         cross_compiling=yes
4232     else
4233         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4235 as_fn_error "cannot run C compiled programs.
4236 If you meant to cross compile, use \`--host'.
4237 See \`config.log' for more details." "$LINENO" 5; }
4238     fi
4239   fi
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4242 $as_echo "yes" >&6; }
4243
4244 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4245 ac_clean_files=$ac_clean_files_save
4246 # Check that the compiler produces executables we can run.  If not, either
4247 # the compiler is broken, or we cross compile.
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4249 $as_echo_n "checking whether we are cross compiling... " >&6; }
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4251 $as_echo "$cross_compiling" >&6; }
4252
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4254 $as_echo_n "checking for suffix of executables... " >&6; }
4255 if { { ac_try="$ac_link"
4256 case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262   (eval "$ac_link") 2>&5
4263   ac_status=$?
4264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265   test $ac_status = 0; }; then :
4266   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4267 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4268 # work properly (i.e., refer to `conftest.exe'), while it won't with
4269 # `rm'.
4270 for ac_file in conftest.exe conftest conftest.*; do
4271   test -f "$ac_file" || continue
4272   case $ac_file in
4273     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4274     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4275           break;;
4276     * ) break;;
4277   esac
4278 done
4279 else
4280   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282 as_fn_error "cannot compute suffix of executables: cannot compile and link
4283 See \`config.log' for more details." "$LINENO" 5; }
4284 fi
4285 rm -f conftest$ac_cv_exeext
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4287 $as_echo "$ac_cv_exeext" >&6; }
4288
4289 rm -f conftest.$ac_ext
4290 EXEEXT=$ac_cv_exeext
4291 ac_exeext=$EXEEXT
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4293 $as_echo_n "checking for suffix of object files... " >&6; }
4294 if test "${ac_cv_objext+set}" = set; then :
4295   $as_echo_n "(cached) " >&6
4296 else
4297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h.  */
4299
4300 int
4301 main ()
4302 {
4303
4304   ;
4305   return 0;
4306 }
4307 _ACEOF
4308 rm -f conftest.o conftest.obj
4309 if { { ac_try="$ac_compile"
4310 case "(($ac_try" in
4311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312   *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316   (eval "$ac_compile") 2>&5
4317   ac_status=$?
4318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319   test $ac_status = 0; }; then :
4320   for ac_file in conftest.o conftest.obj conftest.*; do
4321   test -f "$ac_file" || continue;
4322   case $ac_file in
4323     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4324     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4325        break;;
4326   esac
4327 done
4328 else
4329   $as_echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4334 as_fn_error "cannot compute suffix of object files: cannot compile
4335 See \`config.log' for more details." "$LINENO" 5; }
4336 fi
4337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4340 $as_echo "$ac_cv_objext" >&6; }
4341 OBJEXT=$ac_cv_objext
4342 ac_objext=$OBJEXT
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4344 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4345 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4346   $as_echo_n "(cached) " >&6
4347 else
4348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h.  */
4350
4351 int
4352 main ()
4353 {
4354 #ifndef __GNUC__
4355        choke me
4356 #endif
4357
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363   ac_compiler_gnu=yes
4364 else
4365   ac_compiler_gnu=no
4366 fi
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4369
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4372 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4373 if test $ac_compiler_gnu = yes; then
4374   GCC=yes
4375 else
4376   GCC=
4377 fi
4378 ac_test_CFLAGS=${CFLAGS+set}
4379 ac_save_CFLAGS=$CFLAGS
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4381 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4382 if test "${ac_cv_prog_cc_g+set}" = set; then :
4383   $as_echo_n "(cached) " >&6
4384 else
4385   ac_save_c_werror_flag=$ac_c_werror_flag
4386    ac_c_werror_flag=yes
4387    ac_cv_prog_cc_g=no
4388    CFLAGS="-g"
4389    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h.  */
4391
4392 int
4393 main ()
4394 {
4395
4396   ;
4397   return 0;
4398 }
4399 _ACEOF
4400 if ac_fn_c_try_compile "$LINENO"; then :
4401   ac_cv_prog_cc_g=yes
4402 else
4403   CFLAGS=""
4404       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h.  */
4406
4407 int
4408 main ()
4409 {
4410
4411   ;
4412   return 0;
4413 }
4414 _ACEOF
4415 if ac_fn_c_try_compile "$LINENO"; then :
4416
4417 else
4418   ac_c_werror_flag=$ac_save_c_werror_flag
4419          CFLAGS="-g"
4420          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h.  */
4422
4423 int
4424 main ()
4425 {
4426
4427   ;
4428   return 0;
4429 }
4430 _ACEOF
4431 if ac_fn_c_try_compile "$LINENO"; then :
4432   ac_cv_prog_cc_g=yes
4433 fi
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 fi
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439    ac_c_werror_flag=$ac_save_c_werror_flag
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4442 $as_echo "$ac_cv_prog_cc_g" >&6; }
4443 if test "$ac_test_CFLAGS" = set; then
4444   CFLAGS=$ac_save_CFLAGS
4445 elif test $ac_cv_prog_cc_g = yes; then
4446   if test "$GCC" = yes; then
4447     CFLAGS="-g -O2"
4448   else
4449     CFLAGS="-g"
4450   fi
4451 else
4452   if test "$GCC" = yes; then
4453     CFLAGS="-O2"
4454   else
4455     CFLAGS=
4456   fi
4457 fi
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4459 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4460 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4461   $as_echo_n "(cached) " >&6
4462 else
4463   ac_cv_prog_cc_c89=no
4464 ac_save_CC=$CC
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h.  */
4467 #include <stdarg.h>
4468 #include <stdio.h>
4469 #include <sys/types.h>
4470 #include <sys/stat.h>
4471 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4472 struct buf { int x; };
4473 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4474 static char *e (p, i)
4475      char **p;
4476      int i;
4477 {
4478   return p[i];
4479 }
4480 static char *f (char * (*g) (char **, int), char **p, ...)
4481 {
4482   char *s;
4483   va_list v;
4484   va_start (v,p);
4485   s = g (p, va_arg (v,int));
4486   va_end (v);
4487   return s;
4488 }
4489
4490 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4491    function prototypes and stuff, but not '\xHH' hex character constants.
4492    These don't provoke an error unfortunately, instead are silently treated
4493    as 'x'.  The following induces an error, until -std is added to get
4494    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4495    array size at least.  It's necessary to write '\x00'==0 to get something
4496    that's true only with -std.  */
4497 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4498
4499 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4500    inside strings and character constants.  */
4501 #define FOO(x) 'x'
4502 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4503
4504 int test (int i, double x);
4505 struct s1 {int (*f) (int a);};
4506 struct s2 {int (*f) (double a);};
4507 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4508 int argc;
4509 char **argv;
4510 int
4511 main ()
4512 {
4513 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4514   ;
4515   return 0;
4516 }
4517 _ACEOF
4518 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4519         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4520 do
4521   CC="$ac_save_CC $ac_arg"
4522   if ac_fn_c_try_compile "$LINENO"; then :
4523   ac_cv_prog_cc_c89=$ac_arg
4524 fi
4525 rm -f core conftest.err conftest.$ac_objext
4526   test "x$ac_cv_prog_cc_c89" != "xno" && break
4527 done
4528 rm -f conftest.$ac_ext
4529 CC=$ac_save_CC
4530
4531 fi
4532 # AC_CACHE_VAL
4533 case "x$ac_cv_prog_cc_c89" in
4534   x)
4535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4536 $as_echo "none needed" >&6; } ;;
4537   xno)
4538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4539 $as_echo "unsupported" >&6; } ;;
4540   *)
4541     CC="$CC $ac_cv_prog_cc_c89"
4542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4543 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4544 esac
4545 if test "x$ac_cv_prog_cc_c89" != xno; then :
4546
4547 fi
4548
4549 ac_ext=c
4550 ac_cpp='$CPP $CPPFLAGS'
4551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554
4555 ac_ext=cpp
4556 ac_cpp='$CXXCPP $CPPFLAGS'
4557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4560 if test -z "$CXX"; then
4561   if test -n "$CCC"; then
4562     CXX=$CCC
4563   else
4564     if test -n "$ac_tool_prefix"; then
4565   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4566   do
4567     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_CXX+set}" = set; then :
4572   $as_echo_n "(cached) " >&6
4573 else
4574   if test -n "$CXX"; then
4575   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582     for ac_exec_ext in '' $ac_executable_extensions; do
4583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589   done
4590 IFS=$as_save_IFS
4591
4592 fi
4593 fi
4594 CXX=$ac_cv_prog_CXX
4595 if test -n "$CXX"; then
4596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4597 $as_echo "$CXX" >&6; }
4598 else
4599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4601 fi
4602
4603
4604     test -n "$CXX" && break
4605   done
4606 fi
4607 if test -z "$CXX"; then
4608   ac_ct_CXX=$CXX
4609   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4610 do
4611   # Extract the first word of "$ac_prog", so it can be a program name with args.
4612 set dummy $ac_prog; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4616   $as_echo_n "(cached) " >&6
4617 else
4618   if test -n "$ac_ct_CXX"; then
4619   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_exec_ext in '' $ac_executable_extensions; do
4627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628     ac_cv_prog_ac_ct_CXX="$ac_prog"
4629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630     break 2
4631   fi
4632 done
4633   done
4634 IFS=$as_save_IFS
4635
4636 fi
4637 fi
4638 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4639 if test -n "$ac_ct_CXX"; then
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4641 $as_echo "$ac_ct_CXX" >&6; }
4642 else
4643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4645 fi
4646
4647
4648   test -n "$ac_ct_CXX" && break
4649 done
4650
4651   if test "x$ac_ct_CXX" = x; then
4652     CXX="g++"
4653   else
4654     case $cross_compiling:$ac_tool_warned in
4655 yes:)
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4658 ac_tool_warned=yes ;;
4659 esac
4660     CXX=$ac_ct_CXX
4661   fi
4662 fi
4663
4664   fi
4665 fi
4666 # Provide some information about the compiler.
4667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4668 set X $ac_compile
4669 ac_compiler=$2
4670 for ac_option in --version -v -V -qversion; do
4671   { { ac_try="$ac_compiler $ac_option >&5"
4672 case "(($ac_try" in
4673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674   *) ac_try_echo=$ac_try;;
4675 esac
4676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4677 $as_echo "$ac_try_echo"; } >&5
4678   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4679   ac_status=$?
4680   if test -s conftest.err; then
4681     sed '10a\
4682 ... rest of stderr output deleted ...
4683          10q' conftest.err >conftest.er1
4684     cat conftest.er1 >&5
4685     rm -f conftest.er1 conftest.err
4686   fi
4687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4688   test $ac_status = 0; }
4689 done
4690
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4692 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4693 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h.  */
4698
4699 int
4700 main ()
4701 {
4702 #ifndef __GNUC__
4703        choke me
4704 #endif
4705
4706   ;
4707   return 0;
4708 }
4709 _ACEOF
4710 if ac_fn_cxx_try_compile "$LINENO"; then :
4711   ac_compiler_gnu=yes
4712 else
4713   ac_compiler_gnu=no
4714 fi
4715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4717
4718 fi
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4720 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4721 if test $ac_compiler_gnu = yes; then
4722   GXX=yes
4723 else
4724   GXX=
4725 fi
4726 ac_test_CXXFLAGS=${CXXFLAGS+set}
4727 ac_save_CXXFLAGS=$CXXFLAGS
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4729 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4730 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4734    ac_cxx_werror_flag=yes
4735    ac_cv_prog_cxx_g=no
4736    CXXFLAGS="-g"
4737    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h.  */
4739
4740 int
4741 main ()
4742 {
4743
4744   ;
4745   return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_cxx_try_compile "$LINENO"; then :
4749   ac_cv_prog_cxx_g=yes
4750 else
4751   CXXFLAGS=""
4752       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h.  */
4754
4755 int
4756 main ()
4757 {
4758
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 if ac_fn_cxx_try_compile "$LINENO"; then :
4764
4765 else
4766   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4767          CXXFLAGS="-g"
4768          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h.  */
4770
4771 int
4772 main ()
4773 {
4774
4775   ;
4776   return 0;
4777 }
4778 _ACEOF
4779 if ac_fn_cxx_try_compile "$LINENO"; then :
4780   ac_cv_prog_cxx_g=yes
4781 fi
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 fi
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 fi
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4788 fi
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4790 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4791 if test "$ac_test_CXXFLAGS" = set; then
4792   CXXFLAGS=$ac_save_CXXFLAGS
4793 elif test $ac_cv_prog_cxx_g = yes; then
4794   if test "$GXX" = yes; then
4795     CXXFLAGS="-g -O2"
4796   else
4797     CXXFLAGS="-g"
4798   fi
4799 else
4800   if test "$GXX" = yes; then
4801     CXXFLAGS="-O2"
4802   else
4803     CXXFLAGS=
4804   fi
4805 fi
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812
4813 # We must set the default linker to the linker used by gcc for the correct
4814 # operation of libtool.  If LD is not defined and we are using gcc, try to
4815 # set the LD default to the ld used by gcc.
4816 if test -z "$LD"; then
4817   if test "$GCC" = yes; then
4818     case $build in
4819     *-*-mingw*)
4820       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4821     *)
4822       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4823     esac
4824     case $gcc_prog_ld in
4825     # Accept absolute paths.
4826     [\\/]* | [A-Za-z]:[\\/]*)
4827       LD="$gcc_prog_ld" ;;
4828     esac
4829   fi
4830 fi
4831
4832
4833
4834
4835 if test -n "$ac_tool_prefix"; then
4836   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4837 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839 $as_echo_n "checking for $ac_word... " >&6; }
4840 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4841   $as_echo_n "(cached) " >&6
4842 else
4843   if test -n "$GNATBIND"; then
4844   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4848 do
4849   IFS=$as_save_IFS
4850   test -z "$as_dir" && as_dir=.
4851     for ac_exec_ext in '' $ac_executable_extensions; do
4852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855     break 2
4856   fi
4857 done
4858   done
4859 IFS=$as_save_IFS
4860
4861 fi
4862 fi
4863 GNATBIND=$ac_cv_prog_GNATBIND
4864 if test -n "$GNATBIND"; then
4865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4866 $as_echo "$GNATBIND" >&6; }
4867 else
4868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4870 fi
4871
4872
4873 fi
4874 if test -z "$ac_cv_prog_GNATBIND"; then
4875   ac_ct_GNATBIND=$GNATBIND
4876   # Extract the first word of "gnatbind", so it can be a program name with args.
4877 set dummy gnatbind; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4881   $as_echo_n "(cached) " >&6
4882 else
4883   if test -n "$ac_ct_GNATBIND"; then
4884   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891     for ac_exec_ext in '' $ac_executable_extensions; do
4892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895     break 2
4896   fi
4897 done
4898   done
4899 IFS=$as_save_IFS
4900
4901 fi
4902 fi
4903 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4904 if test -n "$ac_ct_GNATBIND"; then
4905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4906 $as_echo "$ac_ct_GNATBIND" >&6; }
4907 else
4908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4910 fi
4911
4912   if test "x$ac_ct_GNATBIND" = x; then
4913     GNATBIND="no"
4914   else
4915     case $cross_compiling:$ac_tool_warned in
4916 yes:)
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919 ac_tool_warned=yes ;;
4920 esac
4921     GNATBIND=$ac_ct_GNATBIND
4922   fi
4923 else
4924   GNATBIND="$ac_cv_prog_GNATBIND"
4925 fi
4926
4927 if test -n "$ac_tool_prefix"; then
4928   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4929 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4933   $as_echo_n "(cached) " >&6
4934 else
4935   if test -n "$GNATMAKE"; then
4936   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941   IFS=$as_save_IFS
4942   test -z "$as_dir" && as_dir=.
4943     for ac_exec_ext in '' $ac_executable_extensions; do
4944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947     break 2
4948   fi
4949 done
4950   done
4951 IFS=$as_save_IFS
4952
4953 fi
4954 fi
4955 GNATMAKE=$ac_cv_prog_GNATMAKE
4956 if test -n "$GNATMAKE"; then
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4958 $as_echo "$GNATMAKE" >&6; }
4959 else
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963
4964
4965 fi
4966 if test -z "$ac_cv_prog_GNATMAKE"; then
4967   ac_ct_GNATMAKE=$GNATMAKE
4968   # Extract the first word of "gnatmake", so it can be a program name with args.
4969 set dummy gnatmake; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4973   $as_echo_n "(cached) " >&6
4974 else
4975   if test -n "$ac_ct_GNATMAKE"; then
4976   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983     for ac_exec_ext in '' $ac_executable_extensions; do
4984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987     break 2
4988   fi
4989 done
4990   done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
4995 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4996 if test -n "$ac_ct_GNATMAKE"; then
4997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4998 $as_echo "$ac_ct_GNATMAKE" >&6; }
4999 else
5000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5002 fi
5003
5004   if test "x$ac_ct_GNATMAKE" = x; then
5005     GNATMAKE="no"
5006   else
5007     case $cross_compiling:$ac_tool_warned in
5008 yes:)
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011 ac_tool_warned=yes ;;
5012 esac
5013     GNATMAKE=$ac_ct_GNATMAKE
5014   fi
5015 else
5016   GNATMAKE="$ac_cv_prog_GNATMAKE"
5017 fi
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5020 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5021 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5022   $as_echo_n "(cached) " >&6
5023 else
5024   cat >conftest.adb <<EOF
5025 procedure conftest is begin null; end conftest;
5026 EOF
5027 acx_cv_cc_gcc_supports_ada=no
5028 # There is a bug in old released versions of GCC which causes the
5029 # driver to exit successfully when the appropriate language module
5030 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5031 # Therefore we must check for the error message as well as an
5032 # unsuccessful exit.
5033 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5034 # given a .adb file, but produce no object file.  So we must check
5035 # if an object file was really produced to guard against this.
5036 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5037 if test x"$errors" = x && test -f conftest.$ac_objext; then
5038   acx_cv_cc_gcc_supports_ada=yes
5039 fi
5040 rm -f conftest.*
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5043 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5044
5045 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5046   have_gnat=yes
5047 else
5048   have_gnat=no
5049 fi
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5052 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5053 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056    echo abfoo >t1
5057   echo cdfoo >t2
5058   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5059   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5060     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5061       :
5062     else
5063       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5064     fi
5065   fi
5066   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5067     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5068       :
5069     else
5070       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5071     fi
5072   fi
5073   rm t1 t2
5074
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5077 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5078 do_compare="$gcc_cv_prog_cmp_skip"
5079
5080
5081
5082 # See if we are building gcc with C++.
5083 # Check whether --enable-build-with-cxx was given.
5084 if test "${enable_build_with_cxx+set}" = set; then :
5085   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5086 else
5087   ENABLE_BUILD_WITH_CXX=no
5088 fi
5089
5090
5091 # Used for setting $lt_cv_objdir
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5093 $as_echo_n "checking for objdir... " >&6; }
5094 if test "${lt_cv_objdir+set}" = set; then :
5095   $as_echo_n "(cached) " >&6
5096 else
5097   rm -f .libs 2>/dev/null
5098 mkdir .libs 2>/dev/null
5099 if test -d .libs; then
5100   lt_cv_objdir=.libs
5101 else
5102   # MS-DOS does not allow filenames that begin with a dot.
5103   lt_cv_objdir=_libs
5104 fi
5105 rmdir .libs 2>/dev/null
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5108 $as_echo "$lt_cv_objdir" >&6; }
5109 objdir=$lt_cv_objdir
5110
5111
5112
5113
5114
5115 cat >>confdefs.h <<_ACEOF
5116 #define LT_OBJDIR "$lt_cv_objdir/"
5117 _ACEOF
5118
5119
5120
5121 # Check for GMP, MPFR and MPC
5122 gmplibs="-lmpc -lmpfr -lgmp"
5123 gmpinc=
5124 have_gmp=no
5125
5126 # Specify a location for mpc
5127 # check for this first so it ends up on the link line before mpfr.
5128
5129 # Check whether --with-mpc was given.
5130 if test "${with_mpc+set}" = set; then :
5131   withval=$with_mpc;
5132 fi
5133
5134
5135 # Check whether --with-mpc-include was given.
5136 if test "${with_mpc_include+set}" = set; then :
5137   withval=$with_mpc_include;
5138 fi
5139
5140
5141 # Check whether --with-mpc-lib was given.
5142 if test "${with_mpc_lib+set}" = set; then :
5143   withval=$with_mpc_lib;
5144 fi
5145
5146
5147 if test "x$with_mpc" != x; then
5148   gmplibs="-L$with_mpc/lib $gmplibs"
5149   gmpinc="-I$with_mpc/include $gmpinc"
5150 fi
5151 if test "x$with_mpc_include" != x; then
5152   gmpinc="-I$with_mpc_include $gmpinc"
5153 fi
5154 if test "x$with_mpc_lib" != x; then
5155   gmplibs="-L$with_mpc_lib $gmplibs"
5156 fi
5157 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5158   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5159   gmpinc='-I$$s/mpc/src '"$gmpinc"
5160   # Do not test the mpc version.  Assume that it is sufficient, since
5161   # it is in the source tree, and the library has not been built yet
5162   # but it would be included on the link line in the version check below
5163   # hence making the test fail.
5164   have_gmp=yes
5165 fi
5166
5167 # Specify a location for mpfr
5168 # check for this first so it ends up on the link line before gmp.
5169
5170 # Check whether --with-mpfr-dir was given.
5171 if test "${with_mpfr_dir+set}" = set; then :
5172   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5173 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5174 fi
5175
5176
5177
5178 # Check whether --with-mpfr was given.
5179 if test "${with_mpfr+set}" = set; then :
5180   withval=$with_mpfr;
5181 fi
5182
5183
5184 # Check whether --with-mpfr-include was given.
5185 if test "${with_mpfr_include+set}" = set; then :
5186   withval=$with_mpfr_include;
5187 fi
5188
5189
5190 # Check whether --with-mpfr-lib was given.
5191 if test "${with_mpfr_lib+set}" = set; then :
5192   withval=$with_mpfr_lib;
5193 fi
5194
5195
5196 if test "x$with_mpfr" != x; then
5197   gmplibs="-L$with_mpfr/lib $gmplibs"
5198   gmpinc="-I$with_mpfr/include $gmpinc"
5199 fi
5200 if test "x$with_mpfr_include" != x; then
5201   gmpinc="-I$with_mpfr_include $gmpinc"
5202 fi
5203 if test "x$with_mpfr_lib" != x; then
5204   gmplibs="-L$with_mpfr_lib $gmplibs"
5205 fi
5206 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5207   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5208   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5209   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5210   # Do not test the mpfr version.  Assume that it is sufficient, since
5211   # it is in the source tree, and the library has not been built yet
5212   # but it would be included on the link line in the version check below
5213   # hence making the test fail.
5214   have_gmp=yes
5215 fi
5216
5217 # Specify a location for gmp
5218
5219 # Check whether --with-gmp-dir was given.
5220 if test "${with_gmp_dir+set}" = set; then :
5221   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5222 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5223 fi
5224
5225
5226
5227 # Check whether --with-gmp was given.
5228 if test "${with_gmp+set}" = set; then :
5229   withval=$with_gmp;
5230 fi
5231
5232
5233 # Check whether --with-gmp-include was given.
5234 if test "${with_gmp_include+set}" = set; then :
5235   withval=$with_gmp_include;
5236 fi
5237
5238
5239 # Check whether --with-gmp-lib was given.
5240 if test "${with_gmp_lib+set}" = set; then :
5241   withval=$with_gmp_lib;
5242 fi
5243
5244
5245
5246 if test "x$with_gmp" != x; then
5247   gmplibs="-L$with_gmp/lib $gmplibs"
5248   gmpinc="-I$with_gmp/include $gmpinc"
5249 fi
5250 if test "x$with_gmp_include" != x; then
5251   gmpinc="-I$with_gmp_include $gmpinc"
5252 fi
5253 if test "x$with_gmp_lib" != x; then
5254   gmplibs="-L$with_gmp_lib $gmplibs"
5255 fi
5256 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5257   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5258   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5259   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5260   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5261   # Do not test the gmp version.  Assume that it is sufficient, since
5262   # it is in the source tree, and the library has not been built yet
5263   # but it would be included on the link line in the version check below
5264   # hence making the test fail.
5265   have_gmp=yes
5266 fi
5267
5268 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5269   have_gmp=yes
5270   saved_CFLAGS="$CFLAGS"
5271   CFLAGS="$CFLAGS $gmpinc"
5272   # Check for the recommended and required versions of GMP.
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5274 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5275
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h.  */
5278 #include "gmp.h"
5279 int
5280 main ()
5281 {
5282
5283   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5284   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5285   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5286   choke me
5287   #endif
5288
5289   ;
5290   return 0;
5291 }
5292 _ACEOF
5293 if ac_fn_c_try_compile "$LINENO"; then :
5294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h.  */
5296 #include <gmp.h>
5297 int
5298 main ()
5299 {
5300
5301   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5302   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5303   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5304   choke me
5305   #endif
5306
5307   ;
5308   return 0;
5309 }
5310 _ACEOF
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5313 $as_echo "yes" >&6; }
5314 else
5315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5316 $as_echo "buggy but acceptable" >&6; }
5317 fi
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 else
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }; have_gmp=no
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324
5325   # If we have GMP, check the MPFR version.
5326   if test x"$have_gmp" = xyes; then
5327     # Check for the recommended and required versions of MPFR.
5328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5329 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5330     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h.  */
5332 #include <gmp.h>
5333     #include <mpfr.h>
5334 int
5335 main ()
5336 {
5337
5338     #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5339     choke me
5340     #endif
5341
5342   ;
5343   return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_c_try_compile "$LINENO"; then :
5347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h.  */
5349 #include <gmp.h>
5350     #include <mpfr.h>
5351 int
5352 main ()
5353 {
5354
5355     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5356     choke me
5357     #endif
5358
5359   ;
5360   return 0;
5361 }
5362 _ACEOF
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5365 $as_echo "yes" >&6; }
5366 else
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5368 $as_echo "buggy but acceptable" >&6; }
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 else
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }; have_gmp=no
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376   fi
5377
5378   # Check for the MPC header version.
5379   if test x"$have_gmp" = xyes ; then
5380     # Check for the recommended and required versions of MPC.
5381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5382 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h.  */
5385 #include <mpc.h>
5386 int
5387 main ()
5388 {
5389
5390     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5391     choke me
5392     #endif
5393
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h.  */
5401 #include <mpc.h>
5402 int
5403 main ()
5404 {
5405
5406     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5407     choke me
5408     #endif
5409
5410   ;
5411   return 0;
5412 }
5413 _ACEOF
5414 if ac_fn_c_try_compile "$LINENO"; then :
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5416 $as_echo "yes" >&6; }
5417 else
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5419 $as_echo "buggy but acceptable" >&6; }
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 else
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }; have_gmp=no
5425 fi
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427   fi
5428
5429   # Now check the MPFR library.
5430   if test x"$have_gmp" = xyes; then
5431     saved_LIBS="$LIBS"
5432     LIBS="$LIBS $gmplibs"
5433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5434 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5435     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h.  */
5437 #include <mpc.h>
5438 int
5439 main ()
5440 {
5441
5442     mpfr_t n;
5443     mpfr_t x;
5444     mpc_t c;
5445     int t;
5446     mpfr_init (n);
5447     mpfr_init (x);
5448     mpfr_atan2 (n, n, x, GMP_RNDN);
5449     mpfr_erfc (n, x, GMP_RNDN);
5450     mpfr_subnormalize (x, t, GMP_RNDN);
5451     mpfr_clear(n);
5452     mpfr_clear(x);
5453     mpc_init2 (c, 53);
5454     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5455     mpc_cosh (c, c, MPC_RNDNN);
5456     mpc_pow (c, c, c, MPC_RNDNN);
5457     mpc_acosh (c, c, MPC_RNDNN);
5458     mpc_clear (c);
5459
5460   ;
5461   return 0;
5462 }
5463 _ACEOF
5464 if ac_fn_c_try_link "$LINENO"; then :
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5466 $as_echo "yes" >&6; }
5467 else
5468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }; have_gmp=no
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext \
5472     conftest$ac_exeext conftest.$ac_ext
5473     LIBS="$saved_LIBS"
5474   fi
5475
5476   CFLAGS="$saved_CFLAGS"
5477
5478 # The library versions listed in the error message below should match
5479 # the HARD-minimums enforced above.
5480   if test x$have_gmp != xyes; then
5481     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5482 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5483 their locations.  Source code for these libraries can be found at
5484 their respective hosting sites as well as at
5485 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5486 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5487 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5488 make sure that you have installed both the libraries and the header
5489 files.  They may be located in separate packages." "$LINENO" 5
5490   fi
5491 fi
5492
5493 # Flags needed for both GMP, MPFR and/or MPC.
5494
5495
5496
5497
5498
5499
5500 # Allow host libstdc++ to be specified for static linking with PPL.
5501
5502 # Check whether --with-host-libstdcxx was given.
5503 if test "${with_host_libstdcxx+set}" = set; then :
5504   withval=$with_host_libstdcxx;
5505 fi
5506
5507
5508 case $with_host_libstdcxx in
5509   no|yes)
5510     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5511     ;;
5512 esac
5513
5514 # Linker flags to use for stage1 or when not boostrapping.
5515
5516 # Check whether --with-stage1-ldflags was given.
5517 if test "${with_stage1_ldflags+set}" = set; then :
5518   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5519    stage1_ldflags=
5520  else
5521    stage1_ldflags=$withval
5522  fi
5523 else
5524   stage1_ldflags=
5525 fi
5526
5527
5528
5529 # Libraries to use for stage1 or when not bootstrapping.
5530
5531 # Check whether --with-stage1-libs was given.
5532 if test "${with_stage1_libs+set}" = set; then :
5533   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5534    stage1_libs=
5535  else
5536    stage1_libs=$withval
5537  fi
5538 else
5539   stage1_libs=$with_host_libstdcxx
5540 fi
5541
5542
5543
5544 # Libraries to use for stage2 and later builds.  This defaults to the
5545 # argument passed to --with-host-libstdcxx.
5546
5547 # Check whether --with-boot-libs was given.
5548 if test "${with_boot_libs+set}" = set; then :
5549   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5550    poststage1_libs=
5551  else
5552    poststage1_libs=$withval
5553  fi
5554 else
5555   poststage1_libs=$with_host_libstdcxx
5556 fi
5557
5558
5559
5560 # Linker flags to use for stage2 and later builds.
5561
5562 # Check whether --with-boot-ldflags was given.
5563 if test "${with_boot_ldflags+set}" = set; then :
5564   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5565    poststage1_ldflags=
5566  else
5567    poststage1_ldflags=$withval
5568  fi
5569 else
5570   poststage1_ldflags=
5571  # With --enable-build-with-cxx, default to linking libstdc++ and
5572  # libgcc statically.  But if the user explicitly specified the
5573  # libraries to use, trust that they are doing what they want.
5574  if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5575    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5576  fi
5577 fi
5578
5579
5580
5581 # Check for PPL
5582 ppllibs=" -lppl_c -lppl -lgmpxx"
5583 pplinc=
5584
5585
5586 # Check whether --with-ppl was given.
5587 if test "${with_ppl+set}" = set; then :
5588   withval=$with_ppl;
5589 fi
5590
5591
5592 # Check whether --with-ppl-include was given.
5593 if test "${with_ppl_include+set}" = set; then :
5594   withval=$with_ppl_include;
5595 fi
5596
5597
5598 # Check whether --with-ppl-lib was given.
5599 if test "${with_ppl_lib+set}" = set; then :
5600   withval=$with_ppl_lib;
5601 fi
5602
5603
5604 case $with_ppl in
5605   no)
5606     ppllibs=
5607     ;;
5608   "" | yes)
5609     ;;
5610   *)
5611     ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5612     pplinc="-I$with_ppl/include $pplinc"
5613     ;;
5614 esac
5615 if test "x$with_ppl_include" != x; then
5616   pplinc="-I$with_ppl_include $pplinc"
5617 fi
5618 if test "x$with_ppl_lib" != x; then
5619   ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5620 fi
5621 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5622   ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5623   pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5624   enable_ppl_version_check=no
5625 fi
5626
5627 # Check whether --enable-ppl-version-check was given.
5628 if test "${enable_ppl_version_check+set}" = set; then :
5629   enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5630 else
5631   ENABLE_PPL_CHECK=yes
5632 fi
5633
5634
5635 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5636   saved_CFLAGS="$CFLAGS"
5637   CFLAGS="$CFLAGS $pplinc $gmpinc"
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5639 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h.  */
5642 #include "ppl_c.h"
5643 int
5644 main ()
5645 {
5646
5647   #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5648   choke me
5649   #endif
5650
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5657 $as_echo "yes" >&6; }
5658 else
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663   CFLAGS="$saved_CFLAGS"
5664 fi
5665
5666 # Flags needed for PPL
5667
5668
5669
5670
5671 # Check for CLOOG
5672
5673
5674
5675 # Check whether --with-cloog was given.
5676 if test "${with_cloog+set}" = set; then :
5677   withval=$with_cloog;
5678 fi
5679
5680
5681 # Check whether --with-cloog-include was given.
5682 if test "${with_cloog_include+set}" = set; then :
5683   withval=$with_cloog_include;
5684 fi
5685
5686
5687 # Check whether --with-cloog-lib was given.
5688 if test "${with_cloog_lib+set}" = set; then :
5689   withval=$with_cloog_lib;
5690 fi
5691
5692
5693   # Check whether --enable-cloog-backend was given.
5694 if test "${enable_cloog_backend+set}" = set; then :
5695   enableval=$enable_cloog_backend;  if   test "x${enableval}" = "xisl"; then
5696         cloog_backend=isl
5697       elif test "x${enableval}" = "xppl"; then
5698         cloog_backend=ppl
5699       else
5700         cloog_backend=ppl-legacy
5701       fi
5702 else
5703   cloog_backend=ppl-legacy
5704 fi
5705
5706   # Check whether --enable-cloog-version-check was given.
5707 if test "${enable_cloog_version_check+set}" = set; then :
5708   enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5709 else
5710   ENABLE_CLOOG_CHECK=yes
5711 fi
5712
5713
5714   # Initialize clooglibs and clooginc.
5715   case $with_cloog in
5716     no)
5717       clooglibs=
5718       clooginc=
5719       ;;
5720     "" | yes)
5721       ;;
5722     *)
5723       clooglibs="-L$with_cloog/lib"
5724       clooginc="-I$with_cloog/include"
5725       ;;
5726   esac
5727   if test "x${with_cloog_include}" != x ; then
5728     clooginc="-I$with_cloog_include"
5729   fi
5730   if test "x${with_cloog_lib}" != x; then
5731     clooglibs="-L$with_cloog_lib"
5732   fi
5733
5734
5735
5736
5737
5738 if test "x$with_ppl" = "xno"; then
5739   with_cloog=no
5740 fi
5741 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5742   && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5743   clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5744   clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5745 fi
5746 if test "x$with_cloog" != "xno"; then
5747
5748
5749
5750   _cloog_saved_CFLAGS=$CFLAGS
5751   _cloog_saved_CPPFLAGS=$CPPFLAGS
5752   _cloog_saved_LDFLAGS=$LDFLAGS
5753   _cloog_saved_LIBS=$LIBS
5754
5755   _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5756
5757     CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5758   CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5759   LDFLAGS="${LDFLAGS} ${clooglibs}"
5760
5761   case $cloog_backend in
5762     "ppl-legacy")
5763     CFLAGS="${CFLAGS} ${pplinc}"
5764     LDFLAGS="${LDFLAGS} ${ppllibs}"
5765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5766 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5767 if test "${gcc_cv_cloog_type+set}" = set; then :
5768   $as_echo_n "(cached) " >&6
5769 else
5770   LIBS="-lcloog ${_cloog_saved_LIBS}"
5771       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h.  */
5773 #include "cloog/cloog.h"
5774 int
5775 main ()
5776 {
5777 #ifndef CLOOG_PPL_BACKEND
5778     choke me
5779    #endif
5780   ;
5781   return 0;
5782 }
5783 _ACEOF
5784 if ac_fn_c_try_link "$LINENO"; then :
5785   gcc_cv_cloog_type="PPL Legacy"
5786 else
5787   gcc_cv_cloog_type=no
5788 fi
5789 rm -f core conftest.err conftest.$ac_objext \
5790     conftest$ac_exeext conftest.$ac_ext
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5793 $as_echo "$gcc_cv_cloog_type" >&6; }
5794     ;;
5795     "isl")
5796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5797 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5798 if test "${gcc_cv_cloog_type+set}" = set; then :
5799   $as_echo_n "(cached) " >&6
5800 else
5801   LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5802       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h.  */
5804 #include "cloog/cloog.h"
5805 int
5806 main ()
5807 {
5808 cloog_version ()
5809   ;
5810   return 0;
5811 }
5812 _ACEOF
5813 if ac_fn_c_try_link "$LINENO"; then :
5814   gcc_cv_cloog_type="ISL"
5815 else
5816   gcc_cv_cloog_type=no
5817 fi
5818 rm -f core conftest.err conftest.$ac_objext \
5819     conftest$ac_exeext conftest.$ac_ext
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5822 $as_echo "$gcc_cv_cloog_type" >&6; }
5823     ;;
5824     "ppl")
5825     CFLAGS="${CFLAGS} ${pplinc}"
5826     LDFLAGS="${LDFLAGS} ${ppllibs}"
5827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5828 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5829 if test "${gcc_cv_cloog_type+set}" = set; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5833       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h.  */
5835 #include "cloog/cloog.h"
5836    #include "cloog/ppl/cloog.h"
5837 int
5838 main ()
5839 {
5840 cloog_version ()
5841   ;
5842   return 0;
5843 }
5844 _ACEOF
5845 if ac_fn_c_try_link "$LINENO"; then :
5846   gcc_cv_cloog_type="PPL"
5847 else
5848   gcc_cv_cloog_type=no
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext \
5851     conftest$ac_exeext conftest.$ac_ext
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5854 $as_echo "$gcc_cv_cloog_type" >&6; }
5855     ;;
5856     *)
5857       gcc_cv_cloog_type=""
5858   esac
5859
5860   case $gcc_cv_cloog_type in
5861     "PPL Legacy")
5862       clooginc="${clooginc}"
5863       clooglibs="${clooglibs} -lcloog"
5864       cloog_org=no
5865       ;;
5866     "ISL")
5867       clooginc="${clooginc} ${_cloogorginc}"
5868       clooglibs="${clooglibs} -lcloog-isl"
5869       cloog_org=yes
5870       ;;
5871     "PPL")
5872       clooginc="${clooginc} ${_cloogorginc}"
5873       clooglibs="${clooglibs} -lcloog-ppl"
5874       cloog_org=yes
5875       ;;
5876     *)
5877       clooglibs=
5878       clooginc=
5879       cloog_org=
5880       ;;
5881   esac
5882
5883   LIBS=$_cloog_saved_LIBS
5884   CFLAGS=$_cloog_saved_CFLAGS
5885   CPPFLAGS=$_cloog_saved_CPPFLAGS
5886   LDFLAGS=$_cloog_saved_LDFLAGS
5887
5888
5889
5890
5891
5892   if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5893     _cloog_saved_CFLAGS=$CFLAGS
5894     _cloog_saved_LDFLAGS=$LDFLAGS
5895
5896     CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5897     LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5898
5899     if test "${cloog_org}" = yes ; then
5900       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5901 $as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5902 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h.  */
5907 #include "cloog/cloog.h"
5908 int
5909 main ()
5910 {
5911 #if CLOOG_VERSION_MAJOR != 0 \
5912     || CLOOG_VERSION_MINOR != 14 \
5913     || CLOOG_VERSION_REVISION < 0
5914     choke me
5915    #endif
5916   ;
5917   return 0;
5918 }
5919 _ACEOF
5920 if ac_fn_c_try_compile "$LINENO"; then :
5921   gcc_cv_cloog_ct_0_14_0=yes
5922 else
5923   gcc_cv_cloog_ct_0_14_0=no
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5928 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5929     elif test "${cloog_org}" = no ; then
5930       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5931 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5932 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5933   $as_echo_n "(cached) " >&6
5934 else
5935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h.  */
5937 #include "cloog/cloog.h"
5938 int
5939 main ()
5940 {
5941 #if CLOOG_VERSION_MAJOR != 0 \
5942     || CLOOG_VERSION_MINOR != 15 \
5943     || CLOOG_VERSION_REVISION < 5
5944     choke me
5945    #endif
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 if ac_fn_c_try_compile "$LINENO"; then :
5951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h.  */
5953 #include "cloog/cloog.h"
5954 int
5955 main ()
5956 {
5957 #if CLOOG_VERSION_MAJOR != 0 \
5958     || CLOOG_VERSION_MINOR != 15 \
5959     || CLOOG_VERSION_REVISION < 9
5960     choke me
5961    #endif
5962   ;
5963   return 0;
5964 }
5965 _ACEOF
5966 if ac_fn_c_try_compile "$LINENO"; then :
5967   gcc_cv_cloog_ct_0_15_5=yes
5968 else
5969   gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5970 fi
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 else
5973   gcc_cv_cloog_ct_0_15_5=no
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5978 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5979     fi
5980
5981     CFLAGS=$_cloog_saved_CFLAGS
5982     LDFLAGS=$_cloog_saved_LDFLAGS
5983   fi
5984
5985
5986
5987
5988
5989
5990
5991   if test "x${with_cloog}" != x \
5992     || test "x${with_cloog_include}" != x \
5993     || test "x${with_cloog_lib}" != x ; then
5994     graphite_requested=yes
5995   else
5996     graphite_requested=no
5997   fi
5998
5999
6000
6001   if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6002     || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6003     || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6004     clooglibs=
6005     clooginc=
6006   fi
6007
6008   if test "${graphite_requested}" = yes \
6009     && test "x${clooglibs}" = x \
6010     && test "x${clooginc}" = x ; then
6011
6012     as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6013   fi
6014
6015
6016 fi
6017
6018 # Check for LTO support.
6019 # Check whether --enable-lto was given.
6020 if test "${enable_lto+set}" = set; then :
6021   enableval=$enable_lto; enable_lto=$enableval
6022 else
6023   enable_lto=yes; default_enable_lto=yes
6024 fi
6025
6026
6027
6028
6029
6030 target_elf=no
6031 case $target in
6032   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6033   *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6034   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6035     target_elf=no
6036     ;;
6037   *)
6038     target_elf=yes
6039     ;;
6040 esac
6041
6042 if test $target_elf = yes; then :
6043   # ELF platforms build the lto-plugin always.
6044   build_lto_plugin=yes
6045
6046 else
6047   if test x"$default_enable_lto" = x"yes" ; then
6048     case $target in
6049       *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6050       # On other non-ELF platforms, LTO has yet to be validated.
6051       *) enable_lto=no ;;
6052     esac
6053   else
6054   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6055   # It would also be nice to check the binutils support, but we don't
6056   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6057   # warn during gcc/ subconfigure; unless you're bootstrapping with
6058   # -flto it won't be needed until after installation anyway.
6059     case $target in
6060       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6061       *) if test x"$enable_lto" = x"yes"; then
6062         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6063         fi
6064       ;;
6065     esac
6066   fi
6067   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6068   # Build it unless LTO was explicitly disabled.
6069   case $target in
6070     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6071     *) ;;
6072   esac
6073
6074 fi
6075
6076
6077
6078 # By default, C is the only stage 1 language.
6079 stage1_languages=,c,
6080
6081 # Target libraries that we bootstrap.
6082 bootstrap_target_libs=,target-libgcc,
6083
6084 # Figure out what language subdirectories are present.
6085 # Look if the user specified --enable-languages="..."; if not, use
6086 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6087 # go away some day.
6088 # NB:  embedded tabs in this IF block -- do not untabify
6089 if test -d ${srcdir}/gcc; then
6090   if test x"${enable_languages+set}" != xset; then
6091     if test x"${LANGUAGES+set}" = xset; then
6092       enable_languages="${LANGUAGES}"
6093         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6094     else
6095       enable_languages=all
6096     fi
6097   else
6098     if test x"${enable_languages}" = x ||
6099        test x"${enable_languages}" = xyes;
6100        then
6101       echo configure.in: --enable-languages needs at least one language argument 1>&2
6102       exit 1
6103     fi
6104   fi
6105   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6106
6107   # 'f95' is the old name for the 'fortran' language. We issue a warning
6108   # and make the substitution.
6109   case ,${enable_languages}, in
6110     *,f95,*)
6111       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6112       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6113       ;;
6114   esac
6115
6116   # First scan to see if an enabled language requires some other language.
6117   # We assume that a given config-lang.in will list all the language
6118   # front ends it requires, even if some are required indirectly.
6119   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6120     case ${lang_frag} in
6121       ..) ;;
6122       # The odd quoting in the next line works around
6123       # an apparent bug in bash 1.12 on linux.
6124       ${srcdir}/gcc/[*]/config-lang.in) ;;
6125       *)
6126         # From the config-lang.in, get $language, $lang_requires, and
6127         # $lang_requires_boot_languages.
6128         language=
6129         lang_requires=
6130         lang_requires_boot_languages=
6131         . ${lang_frag}
6132         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6133           case ,${enable_languages}, in
6134             *,$other,*) ;;
6135             *,all,*) ;;
6136             *,$language,*)
6137               echo " \`$other' language required by \`$language'; enabling" 1>&2
6138               enable_languages="${enable_languages},${other}"
6139               ;;
6140           esac
6141         done
6142         for other in ${lang_requires_boot_languages} ; do
6143           if test "$other" != "c"; then
6144             case ,${enable_stage1_languages}, in
6145               *,$other,*) ;;
6146               *,all,*) ;;
6147               *)
6148                 case ,${enable_languages}, in
6149                   *,$language,*)
6150                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6151                     enable_stage1_languages="$enable_stage1_languages,${other}"
6152                     ;;
6153                 esac
6154                 ;;
6155             esac
6156           fi
6157         done
6158         ;;
6159     esac
6160   done
6161
6162   new_enable_languages=,c,
6163
6164   # If LTO is enabled, add the LTO front end.
6165   extra_host_libiberty_configure_flags=
6166   if test "$enable_lto" = "yes" ; then
6167     case ,${enable_languages}, in
6168       *,lto,*) ;;
6169       *) enable_languages="${enable_languages},lto" ;;
6170     esac
6171     if test "${build_lto_plugin}" = "yes" ; then
6172       configdirs="$configdirs lto-plugin"
6173       extra_host_libiberty_configure_flags=--enable-shared
6174     fi
6175   fi
6176
6177
6178   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6179   potential_languages=,c,
6180
6181   enabled_target_libs=
6182   disabled_target_libs=
6183
6184   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6185     case ${lang_frag} in
6186       ..) ;;
6187       # The odd quoting in the next line works around
6188       # an apparent bug in bash 1.12 on linux.
6189       ${srcdir}/gcc/[*]/config-lang.in) ;;
6190       *)
6191         # From the config-lang.in, get $language, $target_libs,
6192         # $lang_dirs, $boot_language, and $build_by_default
6193         language=
6194         target_libs=
6195         lang_dirs=
6196         subdir_requires=
6197         boot_language=no
6198         build_by_default=yes
6199         . ${lang_frag}
6200         if test x${language} = x; then
6201           echo "${lang_frag} doesn't set \$language." 1>&2
6202           exit 1
6203         fi
6204
6205         if test "$language" = "c++" \
6206            && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6207           boot_language=yes
6208         fi
6209
6210         case ,${enable_languages}, in
6211           *,${language},*)
6212             # Language was explicitly selected; include it.
6213             add_this_lang=yes
6214             ;;
6215           *,all,*)
6216             # 'all' was selected, select it if it is a default language
6217             add_this_lang=${build_by_default}
6218             ;;
6219           *)
6220             add_this_lang=no
6221             ;;
6222         esac
6223
6224         # Disable languages that need other directories if these aren't available.
6225         for i in $subdir_requires; do
6226           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6227           case ,${enable_languages}, in
6228             *,${language},*)
6229               # Specifically requested language; tell them.
6230               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6231               ;;
6232             *)
6233               # Silently disable.
6234               add_this_lang=unsupported
6235               ;;
6236           esac
6237         done
6238
6239         # Disable Ada if no preexisting GNAT is available.
6240         case ,${enable_languages},:${language}:${have_gnat} in
6241           *,${language},*:ada:no)
6242             # Specifically requested language; tell them.
6243             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6244             ;;
6245           *:ada:no)
6246             # Silently disable.
6247             add_this_lang=unsupported
6248             ;;
6249         esac
6250
6251         # Disable a language that is unsupported by the target.
6252         case " $unsupported_languages " in
6253           *" $language "*)
6254             add_this_lang=unsupported
6255             ;;
6256         esac
6257
6258         case $add_this_lang in
6259           unsupported)
6260             # Remove language-dependent dirs.
6261             disabled_target_libs="$disabled_target_libs $target_libs"
6262             noconfigdirs="$noconfigdirs $lang_dirs"
6263             ;;
6264           no)
6265             # Remove language-dependent dirs; still show language as supported.
6266             disabled_target_libs="$disabled_target_libs $target_libs"
6267             noconfigdirs="$noconfigdirs $lang_dirs"
6268             potential_languages="${potential_languages}${language},"
6269             ;;
6270           yes)
6271             new_enable_languages="${new_enable_languages}${language},"
6272             potential_languages="${potential_languages}${language},"
6273             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6274             enabled_target_libs="$enabled_target_libs $target_libs"
6275             case "${boot_language}:,$enable_stage1_languages," in
6276               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6277                 # Add to (comma-separated) list of stage 1 languages.
6278                 case ",$stage1_languages," in
6279                   *,$language,* | ,yes, | ,all,) ;;
6280                   *) stage1_languages="${stage1_languages}${language}," ;;
6281                 esac
6282                 # We need to bootstrap any supporting libraries.
6283                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6284                 ;;
6285             esac
6286             ;;
6287         esac
6288         ;;
6289     esac
6290   done
6291
6292   # Add target libraries which are only needed for disabled languages
6293   # to noconfigdirs.
6294   if test -n "$disabled_target_libs"; then
6295     for dir in $disabled_target_libs; do
6296       case " $enabled_target_libs " in
6297       *" ${dir} "*) ;;
6298       *) noconfigdirs="$noconfigdirs $dir" ;;
6299       esac
6300     done
6301   fi
6302
6303   # Check whether --enable-stage1-languages was given.
6304 if test "${enable_stage1_languages+set}" = set; then :
6305   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6306     ,no,|,,)
6307       # Set it to something that will have no effect in the loop below
6308       enable_stage1_languages=c ;;
6309     ,yes,)
6310       enable_stage1_languages=`echo $new_enable_languages | \
6311         sed -e "s/^,//" -e "s/,$//" ` ;;
6312     *,all,*)
6313       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6314         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6315   esac
6316
6317   # Add "good" languages from enable_stage1_languages to stage1_languages,
6318   # while "bad" languages go in missing_languages.  Leave no duplicates.
6319   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6320     case $potential_languages in
6321       *,$i,*)
6322         case $stage1_languages in
6323           *,$i,*) ;;
6324           *) stage1_languages="$stage1_languages$i," ;;
6325         esac ;;
6326       *)
6327         case $missing_languages in
6328           *,$i,*) ;;
6329           *) missing_languages="$missing_languages$i," ;;
6330         esac ;;
6331      esac
6332   done
6333 fi
6334
6335
6336   # Remove leading/trailing commas that were added for simplicity
6337   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6338   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6339   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6340   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6341
6342   if test "x$missing_languages" != x; then
6343     as_fn_error "
6344 The following requested languages could not be built: ${missing_languages}
6345 Supported languages are: ${potential_languages}" "$LINENO" 5
6346   fi
6347   if test "x$new_enable_languages" != "x$enable_languages"; then
6348     echo The following languages will be built: ${new_enable_languages}
6349     enable_languages="$new_enable_languages"
6350   fi
6351
6352
6353   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6354 fi
6355
6356 # Handle --disable-<component> generically.
6357 for dir in $configdirs $build_configdirs $target_configdirs ; do
6358   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6359   varname=`echo $dirname | sed -e s/+/_/g`
6360   if eval test x\${enable_${varname}} "=" xno ; then
6361     noconfigdirs="$noconfigdirs $dir"
6362   fi
6363 done
6364
6365 # Check for Boehm's garbage collector
6366 # Check whether --enable-objc-gc was given.
6367 if test "${enable_objc_gc+set}" = set; then :
6368   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6369   *,objc,*:*:yes:*target-boehm-gc*)
6370     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6371     ;;
6372 esac
6373 fi
6374
6375
6376 # Make sure we only build Boehm's garbage collector if required.
6377 case ,${enable_languages},:${enable_objc_gc} in
6378   *,objc,*:yes)
6379     # Keep target-boehm-gc if requested for Objective-C.
6380     ;;
6381   *)
6382     # Otherwise remove target-boehm-gc depending on target-libjava.
6383     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6384       noconfigdirs="$noconfigdirs target-boehm-gc"
6385     fi
6386     ;;
6387 esac
6388
6389 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6390 # $build_configdirs and $target_configdirs.
6391 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6392
6393 notsupp=""
6394 for dir in . $skipdirs $noconfigdirs ; do
6395   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6396   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6397     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6398     if test -r $srcdir/$dirname/configure ; then
6399       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6400         true
6401       else
6402         notsupp="$notsupp $dir"
6403       fi
6404     fi
6405   fi
6406   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6407     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6408     if test -r $srcdir/$dirname/configure ; then
6409       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6410         true
6411       else
6412         notsupp="$notsupp $dir"
6413       fi
6414     fi
6415   fi
6416   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6417     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6418     if test -r $srcdir/$dirname/configure ; then
6419       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6420         true
6421       else
6422         notsupp="$notsupp $dir"
6423       fi
6424     fi
6425   fi
6426 done
6427
6428 # Sometimes the tools are distributed with libiberty but with no other
6429 # libraries.  In that case, we don't want to build target-libiberty.
6430 # Don't let libgcc imply libiberty either.
6431 if test -n "${target_configdirs}" ; then
6432   libgcc=
6433   others=
6434   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6435     if test "$i" = "libgcc"; then
6436       libgcc=target-libgcc
6437     elif test "$i" != "libiberty" ; then
6438       if test -r $srcdir/$i/configure ; then
6439         others=yes;
6440         break;
6441       fi
6442     fi
6443   done
6444   if test -z "${others}" ; then
6445     target_configdirs=$libgcc
6446   fi
6447 fi
6448
6449 # Quietly strip out all directories which aren't configurable in this tree.
6450 # This relies on all configurable subdirectories being autoconfiscated, which
6451 # is now the case.
6452 build_configdirs_all="$build_configdirs"
6453 build_configdirs=
6454 for i in ${build_configdirs_all} ; do
6455   j=`echo $i | sed -e s/build-//g`
6456   if test -f ${srcdir}/$j/configure ; then
6457     build_configdirs="${build_configdirs} $i"
6458   fi
6459 done
6460
6461 configdirs_all="$configdirs"
6462 configdirs=
6463 for i in ${configdirs_all} ; do
6464   if test -f ${srcdir}/$i/configure ; then
6465     configdirs="${configdirs} $i"
6466   fi
6467 done
6468
6469 target_configdirs_all="$target_configdirs"
6470 target_configdirs=
6471 for i in ${target_configdirs_all} ; do
6472   j=`echo $i | sed -e s/target-//g`
6473   if test -f ${srcdir}/$j/configure ; then
6474     target_configdirs="${target_configdirs} $i"
6475   fi
6476 done
6477
6478 # Produce a warning message for the subdirs we can't configure.
6479 # This isn't especially interesting in the Cygnus tree, but in the individual
6480 # FSF releases, it's important to let people know when their machine isn't
6481 # supported by the one or two programs in a package.
6482
6483 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6484   # If $appdirs is non-empty, at least one of those directories must still
6485   # be configured, or we error out.  (E.g., if the gas release supports a
6486   # specified target in some subdirs but not the gas subdir, we shouldn't
6487   # pretend that all is well.)
6488   if test -n "$appdirs" ; then
6489     for dir in $appdirs ; do
6490       if test -r $dir/Makefile.in ; then
6491         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6492           appdirs=""
6493           break
6494         fi
6495         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6496           appdirs=""
6497           break
6498         fi
6499       fi
6500     done
6501     if test -n "$appdirs" ; then
6502       echo "*** This configuration is not supported by this package." 1>&2
6503       exit 1
6504     fi
6505   fi
6506   # Okay, some application will build, or we don't care to check.  Still
6507   # notify of subdirs not getting built.
6508   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6509   echo "    ${notsupp}" 1>&2
6510   echo "    (Any other directories should still work fine.)" 1>&2
6511 fi
6512
6513 case "$host" in
6514   *msdosdjgpp*)
6515     enable_gdbtk=no ;;
6516 esac
6517
6518 # To find our prefix, in gcc_cv_tool_prefix.
6519
6520 # The user is always right.
6521 if test "${PATH_SEPARATOR+set}" != set; then
6522   echo "#! /bin/sh" >conf$$.sh
6523   echo  "exit 0"   >>conf$$.sh
6524   chmod +x conf$$.sh
6525   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6526     PATH_SEPARATOR=';'
6527   else
6528     PATH_SEPARATOR=:
6529   fi
6530   rm -f conf$$.sh
6531 fi
6532
6533
6534
6535 if test "x$exec_prefix" = xNONE; then
6536         if test "x$prefix" = xNONE; then
6537                 gcc_cv_tool_prefix=$ac_default_prefix
6538         else
6539                 gcc_cv_tool_prefix=$prefix
6540         fi
6541 else
6542         gcc_cv_tool_prefix=$exec_prefix
6543 fi
6544
6545 # If there is no compiler in the tree, use the PATH only.  In any
6546 # case, if there is no compiler in the tree nobody should use
6547 # AS_FOR_TARGET and LD_FOR_TARGET.
6548 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6549     gcc_version=`cat $srcdir/gcc/BASE-VER`
6550     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6551     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6552     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6553     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6554     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6555     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6556 else
6557     gcc_cv_tool_dirs=
6558 fi
6559
6560 if test x$build = x$target && test -n "$md_exec_prefix"; then
6561         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6562 fi
6563
6564
6565
6566 copy_dirs=
6567
6568
6569 # Check whether --with-build-sysroot was given.
6570 if test "${with_build_sysroot+set}" = set; then :
6571   withval=$with_build_sysroot; if test x"$withval" != x ; then
6572      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6573    fi
6574 else
6575   SYSROOT_CFLAGS_FOR_TARGET=
6576 fi
6577
6578
6579
6580
6581 # Check whether --with-debug-prefix-map was given.
6582 if test "${with_debug_prefix_map+set}" = set; then :
6583   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6584      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6585      for debug_map in $withval; do
6586        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6587      done
6588    fi
6589 else
6590   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6591 fi
6592
6593
6594
6595 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6596 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6597 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6598 # We want to ensure that TARGET libraries (which we know are built with
6599 # gcc) are built with "-O2 -g", so include those options when setting
6600 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6601 if test "x$CFLAGS_FOR_TARGET" = x; then
6602   CFLAGS_FOR_TARGET=$CFLAGS
6603   case " $CFLAGS " in
6604     *" -O2 "*) ;;
6605     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6606   esac
6607   case " $CFLAGS " in
6608     *" -g "* | *" -g3 "*) ;;
6609     *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6610   esac
6611 fi
6612
6613
6614 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6615   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6616   case " $CXXFLAGS " in
6617     *" -O2 "*) ;;
6618     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6619   esac
6620   case " $CXXFLAGS " in
6621     *" -g "* | *" -g3 "*) ;;
6622     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6623   esac
6624 fi
6625
6626
6627 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6628 # the named directory are copied to $(tooldir)/sys-include.
6629 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6630   if test x${is_cross_compiler} = xno ; then
6631     echo 1>&2 '***' --with-headers is only supported when cross compiling
6632     exit 1
6633   fi
6634   if test x"${with_headers}" != xyes ; then
6635     x=${gcc_cv_tool_prefix}
6636     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6637   fi
6638 fi
6639
6640 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6641 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6642 # are permitted.
6643 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6644   if test x${is_cross_compiler} = xno ; then
6645     echo 1>&2 '***' --with-libs is only supported when cross compiling
6646     exit 1
6647   fi
6648   if test x"${with_libs}" != xyes ; then
6649     # Copy the libraries in reverse order, so that files in the first named
6650     # library override files in subsequent libraries.
6651     x=${gcc_cv_tool_prefix}
6652     for l in ${with_libs}; do
6653       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6654     done
6655   fi
6656 fi
6657
6658 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6659 #
6660 # This is done by determining whether or not the appropriate directory
6661 # is available, and by checking whether or not specific configurations
6662 # have requested that this magic not happen.
6663 #
6664 # The command line options always override the explicit settings in
6665 # configure.in, and the settings in configure.in override this magic.
6666 #
6667 # If the default for a toolchain is to use GNU as and ld, and you don't
6668 # want to do that, then you should use the --without-gnu-as and
6669 # --without-gnu-ld options for the configure script.  Similarly, if
6670 # the default is to use the included zlib and you don't want to do that,
6671 # you should use the --with-system-zlib option for the configure script.
6672
6673 if test x${use_gnu_as} = x &&
6674    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6675   with_gnu_as=yes
6676   extra_host_args="$extra_host_args --with-gnu-as"
6677 fi
6678
6679 if test x${use_gnu_ld} = x &&
6680    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6681   with_gnu_ld=yes
6682   extra_host_args="$extra_host_args --with-gnu-ld"
6683 fi
6684
6685 if test x${use_included_zlib} = x &&
6686    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6687   :
6688 else
6689   with_system_zlib=yes
6690   extra_host_args="$extra_host_args --with-system-zlib"
6691 fi
6692
6693 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6694 # can detect this case.
6695
6696 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6697   with_newlib=yes
6698   extra_host_args="$extra_host_args --with-newlib"
6699 fi
6700
6701 # Handle ${copy_dirs}
6702 set fnord ${copy_dirs}
6703 shift
6704 while test $# != 0 ; do
6705   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6706     :
6707   else
6708     echo Copying $1 to $2
6709
6710     # Use the install script to create the directory and all required
6711     # parent directories.
6712     if test -d $2 ; then
6713       :
6714     else
6715       echo >config.temp
6716       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6717     fi
6718
6719     # Copy the directory, assuming we have tar.
6720     # FIXME: Should we use B in the second tar?  Not all systems support it.
6721     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6722
6723     # It is the responsibility of the user to correctly adjust all
6724     # symlinks.  If somebody can figure out how to handle them correctly
6725     # here, feel free to add the code.
6726
6727     echo $1 > $2/COPIED
6728   fi
6729   shift; shift
6730 done
6731
6732 # Determine a target-dependent exec_prefix that the installed
6733 # gcc will search in.  Keep this list sorted by triplet, with
6734 # the *-*-osname triplets last.
6735 md_exec_prefix=
6736 case "${target}" in
6737   alpha*-*-*vms*)
6738     md_exec_prefix=/gnu/lib/gcc-lib
6739     ;;
6740   i[34567]86-pc-msdosdjgpp*)
6741     md_exec_prefix=/dev/env/DJDIR/bin
6742     ;;
6743   i[34567]86-*-sco3.2v5*)
6744     if test $with_gnu_as = yes; then
6745       md_exec_prefix=/usr/gnu/bin
6746     else
6747       md_exec_prefix=/usr/ccs/bin/elf
6748     fi
6749     ;;
6750
6751   mn10300-*-* | \
6752   powerpc-*-chorusos* | \
6753   powerpc*-*-eabi* | \
6754   powerpc*-*-sysv* | \
6755   powerpc*-*-kaos* | \
6756   s390x-ibm-tpf*)
6757     md_exec_prefix=/usr/ccs/bin
6758     ;;
6759   sparc64-*-elf*)
6760     ;;
6761   v850*-*-*)
6762     md_exec_prefix=/usr/ccs/bin
6763     ;;
6764   xtensa*-*-elf*)
6765     ;;
6766
6767   *-*-beos* | \
6768   *-*-elf* | \
6769   *-*-hpux* | \
6770   *-*-netware* | \
6771   *-*-nto-qnx* | \
6772   *-*-rtems* | \
6773   *-*-solaris2* | \
6774   *-*-sysv[45]* | \
6775   *-*-vxworks* | \
6776   *-wrs-windiss)
6777     md_exec_prefix=/usr/ccs/bin
6778     ;;
6779 esac
6780
6781 extra_arflags_for_target=
6782 extra_nmflags_for_target=
6783 extra_ranlibflags_for_target=
6784 target_makefile_frag=/dev/null
6785 case "${target}" in
6786   mep*-*-*)
6787     target_makefile_frag="config/mt-mep"
6788     ;;
6789   spu-*-*)
6790     target_makefile_frag="config/mt-spu"
6791     ;;
6792   mips*-sde-elf*)
6793     target_makefile_frag="config/mt-sde"
6794     ;;
6795   mipsisa*-*-elfoabi*)
6796     target_makefile_frag="config/mt-mips-elfoabi"
6797     ;;
6798   mips*-*-*linux* | mips*-*-gnu*)
6799     target_makefile_frag="config/mt-mips-gnu"
6800     ;;
6801   *-*-netware*)
6802     target_makefile_frag="config/mt-netware"
6803     ;;
6804   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6805     target_makefile_frag="config/mt-gnu"
6806     ;;
6807   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6808     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6809     # commands to handle both 32-bit and 64-bit objects.  These flags are
6810     # harmless if we're using GNU nm or ar.
6811     extra_arflags_for_target=" -X32_64"
6812     extra_nmflags_for_target=" -B -X32_64"
6813     ;;
6814   *-*-darwin[3-9]*)
6815     # ranlib before Darwin10 requires the -c flag to look at common symbols.
6816     extra_ranlibflags_for_target=" -c"
6817     ;;
6818   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6819     target_makefile_frag="config/mt-wince"
6820     ;;
6821 esac
6822
6823 alphaieee_frag=/dev/null
6824 case $target in
6825   alpha*-*-*)
6826     # This just makes sure to use the -mieee option to build target libs.
6827     # This should probably be set individually by each library.
6828     alphaieee_frag="config/mt-alphaieee"
6829     ;;
6830 esac
6831
6832 # If --enable-target-optspace always use -Os instead of -O2 to build
6833 # the target libraries, similarly if it is not specified, use -Os
6834 # on selected platforms.
6835 ospace_frag=/dev/null
6836 case "${enable_target_optspace}:${target}" in
6837   yes:*)
6838     ospace_frag="config/mt-ospace"
6839     ;;
6840   :d30v-*)
6841     ospace_frag="config/mt-d30v"
6842     ;;
6843   :m32r-* | :d10v-* | :fr30-*)
6844     ospace_frag="config/mt-ospace"
6845     ;;
6846   no:* | :*)
6847     ;;
6848   *)
6849     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6850     ;;
6851 esac
6852
6853 # Default to using --with-stabs for certain targets.
6854 if test x${with_stabs} = x ; then
6855   case "${target}" in
6856   mips*-*-irix[56]*)
6857     ;;
6858   mips*-*-* | alpha*-*-osf*)
6859     with_stabs=yes;
6860     extra_host_args="${extra_host_args} --with-stabs"
6861     ;;
6862   esac
6863 fi
6864
6865 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
6866 # them automatically.
6867 case "${host}" in
6868   hppa*64*-*-hpux11*)
6869     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6870     ;;
6871 esac
6872
6873 # Some systems (e.g., one of the i386-aix systems the gas testers are
6874 # using) don't handle "\$" correctly, so don't use it here.
6875 tooldir='${exec_prefix}'/${target_noncanonical}
6876 build_tooldir=${tooldir}
6877
6878 # Create a .gdbinit file which runs the one in srcdir
6879 # and tells GDB to look there for source files.
6880
6881 if test -r ${srcdir}/.gdbinit ; then
6882   case ${srcdir} in
6883     .) ;;
6884     *) cat > ./.gdbinit <<EOF
6885 # ${NO_EDIT}
6886 dir ${srcdir}
6887 dir .
6888 source ${srcdir}/.gdbinit
6889 EOF
6890     ;;
6891   esac
6892 fi
6893
6894 # Make sure that the compiler is able to generate an executable.  If it
6895 # can't, we are probably in trouble.  We don't care whether we can run the
6896 # executable--we might be using a cross compiler--we only care whether it
6897 # can be created.  At this point the main configure script has set CC.
6898 we_are_ok=no
6899 echo "int main () { return 0; }" > conftest.c
6900 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6901 if test $? = 0 ; then
6902   if test -s conftest || test -s conftest.exe ; then
6903     we_are_ok=yes
6904   fi
6905 fi
6906 case $we_are_ok in
6907   no)
6908     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6909     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6910     rm -f conftest*
6911     exit 1
6912     ;;
6913 esac
6914 rm -f conftest*
6915
6916 # The Solaris /usr/ucb/cc compiler does not appear to work.
6917 case "${host}" in
6918   sparc-sun-solaris2*)
6919       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6920       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6921           could_use=
6922           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6923           if test -d /opt/cygnus/bin ; then
6924               if test "$could_use" = "" ; then
6925                   could_use="/opt/cygnus/bin"
6926               else
6927                   could_use="$could_use or /opt/cygnus/bin"
6928               fi
6929           fi
6930         if test "$could_use" = "" ; then
6931             echo "Warning: compilation may fail because you're using"
6932             echo "/usr/ucb/cc.  You should change your PATH or CC "
6933             echo "variable and rerun configure."
6934         else
6935             echo "Warning: compilation may fail because you're using"
6936             echo "/usr/ucb/cc, when you should use the C compiler from"
6937             echo "$could_use.  You should change your"
6938             echo "PATH or CC variable and rerun configure."
6939         fi
6940       fi
6941   ;;
6942 esac
6943
6944 # Decide which environment variable is used to find dynamic libraries.
6945 case "${host}" in
6946   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6947   *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6948   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6949   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6950 esac
6951
6952 # On systems where the dynamic library environment variable is PATH,
6953 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6954 # built executables to PATH.
6955 if test "$RPATH_ENVVAR" = PATH; then
6956   GCC_SHLIB_SUBDIR=/shlib
6957 else
6958   GCC_SHLIB_SUBDIR=
6959 fi
6960
6961 # Record target_configdirs and the configure arguments for target and
6962 # build configuration in Makefile.
6963 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6964 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6965
6966 # If we are building libgomp, bootstrap it.
6967 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6968   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6969 fi
6970
6971 # Determine whether gdb needs tk/tcl or not.
6972 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6973 # and in that case we want gdb to be built without tk.  Ugh!
6974 # In fact I believe gdb is the *only* package directly dependent on tk,
6975 # so we should be able to put the 'maybe's in unconditionally and
6976 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
6977 # 100% sure that that's safe though.
6978
6979 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6980 case "$enable_gdbtk" in
6981   no)
6982     GDB_TK="" ;;
6983   yes)
6984     GDB_TK="${gdb_tk}" ;;
6985   *)
6986     # Only add the dependency on gdbtk when GDBtk is part of the gdb
6987     # distro.  Eventually someone will fix this and move Insight, nee
6988     # gdbtk to a separate directory.
6989     if test -d ${srcdir}/gdb/gdbtk ; then
6990       GDB_TK="${gdb_tk}"
6991     else
6992       GDB_TK=""
6993     fi
6994     ;;
6995 esac
6996 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6997 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6998
6999 # Strip out unwanted targets.
7000
7001 # While at that, we remove Makefiles if we were started for recursive
7002 # configuration, so that the top-level Makefile reconfigures them,
7003 # like we used to do when configure itself was recursive.
7004
7005 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7006 # but now we're fixing up the Makefile ourselves with the additional
7007 # commands passed to AC_CONFIG_FILES.  Use separate variables
7008 # extrasub-{build,host,target} not because there is any reason to split
7009 # the substitutions up that way, but only to remain below the limit of
7010 # 99 commands in a script, for HP-UX sed.
7011 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7012
7013 # Check whether --enable-bootstrap was given.
7014 if test "${enable_bootstrap+set}" = set; then :
7015   enableval=$enable_bootstrap;
7016 else
7017   enable_bootstrap=default
7018 fi
7019
7020
7021 # Issue errors and warnings for invalid/strange bootstrap combinations.
7022 case "$configdirs" in
7023   *gcc*) have_compiler=yes ;;
7024   *) have_compiler=no ;;
7025 esac
7026
7027 case "$have_compiler:$host:$target:$enable_bootstrap" in
7028   *:*:*:no) ;;
7029
7030   # Default behavior.  Enable bootstrap if we have a compiler
7031   # and we are in a native configuration.
7032   yes:$build:$build:default)
7033     enable_bootstrap=yes ;;
7034
7035   *:*:*:default)
7036     enable_bootstrap=no ;;
7037
7038   # We have a compiler and we are in a native configuration, bootstrap is ok
7039   yes:$build:$build:yes)
7040     ;;
7041
7042   # Other configurations, but we have a compiler.  Assume the user knows
7043   # what he's doing.
7044   yes:*:*:yes)
7045     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7046 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7047     ;;
7048
7049   # No compiler: if they passed --enable-bootstrap explicitly, fail
7050   no:*:*:yes)
7051     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7052
7053   # Fail if wrong command line
7054   *)
7055     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7056     ;;
7057 esac
7058
7059 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7060   *,c++,*:yes:yes) ;;
7061   *:yes:yes)
7062     as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7063     ;;
7064 esac
7065
7066 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7067   yes:yes:*\ gold\ *:*,c++,*) ;;
7068   yes:yes:*\ gold\ *:*)
7069     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7070     ;;
7071 esac
7072
7073 # Adjust the toplevel makefile according to whether bootstrap was selected.
7074 case $enable_bootstrap in
7075   yes)
7076     bootstrap_suffix=bootstrap
7077     BUILD_CONFIG=bootstrap-debug
7078     ;;
7079   no)
7080     bootstrap_suffix=no-bootstrap
7081     BUILD_CONFIG=
7082     ;;
7083 esac
7084
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7086 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7087
7088
7089 # Check whether --with-build-config was given.
7090 if test "${with_build_config+set}" = set; then :
7091   withval=$with_build_config; case $with_build_config in
7092    yes) with_build_config= ;;
7093    no) with_build_config= BUILD_CONFIG= ;;
7094    esac
7095 fi
7096
7097
7098 if test "x${with_build_config}" != x; then
7099   BUILD_CONFIG=$with_build_config
7100 else
7101   case $BUILD_CONFIG in
7102   bootstrap-debug)
7103     if echo "int f (void) { return 0; }" > conftest.c &&
7104        ${CC} -c conftest.c &&
7105        mv conftest.o conftest.o.g0 &&
7106        ${CC} -c -g conftest.c &&
7107        mv conftest.o conftest.o.g &&
7108        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7109       :
7110     else
7111       BUILD_CONFIG=
7112     fi
7113     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7114     ;;
7115   esac
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7118 $as_echo "$BUILD_CONFIG" >&6; }
7119
7120
7121 extrasub_build=
7122 for module in ${build_configdirs} ; do
7123   if test -z "${no_recursion}" \
7124      && test -f ${build_subdir}/${module}/Makefile; then
7125     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7126     rm -f ${build_subdir}/${module}/Makefile
7127   fi
7128   extrasub_build="$extrasub_build
7129 /^@if build-$module\$/d
7130 /^@endif build-$module\$/d
7131 /^@if build-$module-$bootstrap_suffix\$/d
7132 /^@endif build-$module-$bootstrap_suffix\$/d"
7133 done
7134 extrasub_host=
7135 for module in ${configdirs} ; do
7136   if test -z "${no_recursion}"; then
7137     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7138       if test -f ${file}; then
7139         echo 1>&2 "*** removing ${file} to force reconfigure"
7140         rm -f ${file}
7141       fi
7142     done
7143   fi
7144   extrasub_host="$extrasub_host
7145 /^@if $module\$/d
7146 /^@endif $module\$/d
7147 /^@if $module-$bootstrap_suffix\$/d
7148 /^@endif $module-$bootstrap_suffix\$/d"
7149 done
7150 extrasub_target=
7151 for module in ${target_configdirs} ; do
7152   if test -z "${no_recursion}" \
7153      && test -f ${target_subdir}/${module}/Makefile; then
7154     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7155     rm -f ${target_subdir}/${module}/Makefile
7156   fi
7157
7158   # We only bootstrap target libraries listed in bootstrap_target_libs.
7159   case $bootstrap_target_libs in
7160     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7161     *) target_bootstrap_suffix=no-bootstrap ;;
7162   esac
7163
7164   extrasub_target="$extrasub_target
7165 /^@if target-$module\$/d
7166 /^@endif target-$module\$/d
7167 /^@if target-$module-$target_bootstrap_suffix\$/d
7168 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7169 done
7170
7171 # Do the final fixup along with target modules.
7172 extrasub_target="$extrasub_target
7173 /^@if /,/^@endif /d"
7174
7175 # Create the serialization dependencies.  This uses a temporary file.
7176
7177 # Check whether --enable-serial-configure was given.
7178 if test "${enable_serial_configure+set}" = set; then :
7179   enableval=$enable_serial_configure;
7180 fi
7181
7182
7183 case ${enable_serial_configure} in
7184   yes)
7185     enable_serial_build_configure=yes
7186     enable_serial_host_configure=yes
7187     enable_serial_target_configure=yes
7188     ;;
7189 esac
7190
7191 # These force 'configure's to be done one at a time, to avoid problems
7192 # with contention over a shared config.cache.
7193 rm -f serdep.tmp
7194 echo '# serdep.tmp' > serdep.tmp
7195 olditem=
7196 test "x${enable_serial_build_configure}" = xyes &&
7197 for item in ${build_configdirs} ; do
7198   case ${olditem} in
7199     "") ;;
7200     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7201   esac
7202   olditem=${item}
7203 done
7204 olditem=
7205 test "x${enable_serial_host_configure}" = xyes &&
7206 for item in ${configdirs} ; do
7207   case ${olditem} in
7208     "") ;;
7209     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7210   esac
7211   olditem=${item}
7212 done
7213 olditem=
7214 test "x${enable_serial_target_configure}" = xyes &&
7215 for item in ${target_configdirs} ; do
7216   case ${olditem} in
7217     "") ;;
7218     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7219   esac
7220   olditem=${item}
7221 done
7222 serialization_dependencies=serdep.tmp
7223
7224
7225 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7226 # target, nonopt, and variable assignments.  These are the ones we
7227 # might not want to pass down to subconfigures.  The exception being
7228 # --cache-file=/dev/null, which is used to turn off the use of cache
7229 # files altogether, and which should be passed on to subconfigures.
7230 # Also strip program-prefix, program-suffix, and program-transform-name,
7231 # so that we can pass down a consistent program-transform-name.
7232 baseargs=
7233 keep_next=no
7234 skip_next=no
7235 eval "set -- $ac_configure_args"
7236 for ac_arg
7237 do
7238   if test X"$skip_next" = X"yes"; then
7239     skip_next=no
7240     continue
7241   fi
7242   if test X"$keep_next" = X"yes"; then
7243     case $ac_arg in
7244       *\'*)
7245         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7246     esac
7247     baseargs="$baseargs '$ac_arg'"
7248     keep_next=no
7249     continue
7250   fi
7251
7252   # Handle separated arguments.  Based on the logic generated by
7253   # autoconf 2.59.
7254   case $ac_arg in
7255     *=* | --config-cache | -C | -disable-* | --disable-* \
7256       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7257       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7258       | -with-* | --with-* | -without-* | --without-* | --x)
7259       separate_arg=no
7260       ;;
7261     -*)
7262       separate_arg=yes
7263       ;;
7264     *)
7265       separate_arg=no
7266       ;;
7267   esac
7268
7269   case "$ac_arg" in
7270     --cache-file=/dev/null | \
7271     -cache-file=/dev/null )
7272       # Handled here to avoid the test to skip args below.
7273       baseargs="$baseargs '$ac_arg'"
7274       # Assert: $separate_arg should always be no.
7275       keep_next=$separate_arg
7276       ;;
7277     --no*)
7278       continue
7279       ;;
7280     --c* | \
7281     --sr* | \
7282     --ho* | \
7283     --bu* | \
7284     --t* | \
7285     --program-* | \
7286     -cache_file* | \
7287     -srcdir* | \
7288     -host* | \
7289     -build* | \
7290     -target* | \
7291     -program-prefix* | \
7292     -program-suffix* | \
7293     -program-transform-name* )
7294       skip_next=$separate_arg
7295       continue
7296       ;;
7297     -*)
7298       # An option.  Add it.
7299       case $ac_arg in
7300         *\'*)
7301           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7302       esac
7303       baseargs="$baseargs '$ac_arg'"
7304       keep_next=$separate_arg
7305       ;;
7306     *)
7307       # Either a variable assignment, or a nonopt (triplet).  Don't
7308       # pass it down; let the Makefile handle this.
7309       continue
7310       ;;
7311   esac
7312 done
7313 # Remove the initial space we just introduced and, as these will be
7314 # expanded by make, quote '$'.
7315 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7316
7317 # Add in --program-transform-name, after --program-prefix and
7318 # --program-suffix have been applied to it.  Autoconf has already
7319 # doubled dollar signs and backslashes in program_transform_name; we want
7320 # the backslashes un-doubled, and then the entire thing wrapped in single
7321 # quotes, because this will be expanded first by make and then by the shell.
7322 # Also, because we want to override the logic in subdir configure scripts to
7323 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7324 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7325 ${program_transform_name}
7326 EOF_SED
7327 gcc_transform_name=`cat conftestsed.out`
7328 rm -f conftestsed.out
7329 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7330 if test "$silent" = yes; then
7331   baseargs="$baseargs --silent"
7332 fi
7333 baseargs="$baseargs --disable-option-checking"
7334
7335 # Record and document user additions to sub configure arguments.
7336
7337
7338
7339
7340 # For the build-side libraries, we just need to pretend we're native,
7341 # and not use the same cache file.  Multilibs are neither needed nor
7342 # desired.
7343 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7344
7345 # For host modules, accept cache file option, or specification as blank.
7346 case "${cache_file}" in
7347 "") # empty
7348   cache_file_option="" ;;
7349 /* | [A-Za-z]:[\\/]* ) # absolute path
7350   cache_file_option="--cache-file=${cache_file}" ;;
7351 *) # relative path
7352   cache_file_option="--cache-file=../${cache_file}" ;;
7353 esac
7354
7355 # Host dirs don't like to share a cache file either, horribly enough.
7356 # This seems to be due to autoconf 2.5x stupidity.
7357 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7358
7359 target_configargs="$target_configargs ${baseargs}"
7360
7361 # Passing a --with-cross-host argument lets the target libraries know
7362 # whether they are being built with a cross-compiler or being built
7363 # native.  However, it would be better to use other mechanisms to make the
7364 # sorts of decisions they want to make on this basis.  Please consider
7365 # this option to be deprecated.  FIXME.
7366 if test x${is_cross_compiler} = xyes ; then
7367   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7368 fi
7369
7370 # Default to --enable-multilib.
7371 if test x${enable_multilib} = x ; then
7372   target_configargs="--enable-multilib ${target_configargs}"
7373 fi
7374
7375 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7376 # changed from the earlier setting of with_newlib.
7377 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7378   target_configargs="--with-newlib ${target_configargs}"
7379 fi
7380
7381 # Different target subdirs use different values of certain variables
7382 # (notably CXX).  Worse, multilibs use *lots* of different values.
7383 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7384 # it doesn't automatically accept command-line overrides of them.
7385 # This means it's not safe for target subdirs to share a cache file,
7386 # which is disgusting, but there you have it.  Hopefully this can be
7387 # fixed in future.  It's still worthwhile to use a cache file for each
7388 # directory.  I think.
7389
7390 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7391 # We need to pass --target, as newer autoconf's requires consistency
7392 # for target_alias and gcc doesn't manage it consistently.
7393 target_configargs="--cache-file=./config.cache ${target_configargs}"
7394
7395 FLAGS_FOR_TARGET=
7396 case " $target_configdirs " in
7397  *" newlib "*)
7398   case " $target_configargs " in
7399   *" --with-newlib "*)
7400    case "$target" in
7401     *-cygwin*)
7402       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'
7403       ;;
7404    esac
7405
7406    # If we're not building GCC, don't discard standard headers.
7407    if test -d ${srcdir}/gcc; then
7408      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7409
7410      if test "${build}" != "${host}"; then
7411        # On Canadian crosses, CC_FOR_TARGET will have already been set
7412        # by `configure', so we won't have an opportunity to add -Bgcc/
7413        # to it.  This is right: we don't want to search that directory
7414        # for binaries, but we want the header files in there, so add
7415        # them explicitly.
7416        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7417
7418        # Someone might think of using the pre-installed headers on
7419        # Canadian crosses, in case the installed compiler is not fully
7420        # compatible with the compiler being built.  In this case, it
7421        # would be better to flag an error than risking having
7422        # incompatible object files being constructed.  We can't
7423        # guarantee that an error will be flagged, but let's hope the
7424        # compiler will do it, when presented with incompatible header
7425        # files.
7426      fi
7427    fi
7428
7429    case "${target}-${is_cross_compiler}" in
7430    i[3456789]86-*-linux*-no)
7431       # Here host == target, so we don't need to build gcc,
7432       # so we don't want to discard standard headers.
7433       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7434       ;;
7435    *)
7436       # If we're building newlib, use its generic headers last, but search
7437       # for any libc-related directories first (so make it the last -B
7438       # switch).
7439       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7440
7441       # If we're building libgloss, find the startup file, simulator library
7442       # and linker script.
7443       case " $target_configdirs " in
7444         *" libgloss "*)
7445         # Look for startup file, simulator library and maybe linker script.
7446         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7447         # Look for libnosys.a in case the target needs it.
7448         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7449         # Most targets have the linker script in the source directory.
7450         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7451         ;;
7452       esac
7453       ;;
7454    esac
7455    ;;
7456   esac
7457   ;;
7458 esac
7459
7460 case "$target" in
7461   x86_64-*mingw* | *-w64-mingw*)
7462   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7463   # however, use a symlink named 'mingw' in ${prefix} .
7464     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7465     ;;
7466   *-mingw*)
7467   # MinGW can't be handled as Cygwin above since it does not use newlib.
7468     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'
7469     ;;
7470 esac
7471
7472 # Allow the user to override the flags for
7473 # our build compiler if desired.
7474 if test x"${build}" = x"${host}" ; then
7475   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7476   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7477   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7478 fi
7479
7480 # On Canadian crosses, we'll be searching the right directories for
7481 # the previously-installed cross compiler, so don't bother to add
7482 # flags for directories within the install tree of the compiler
7483 # being built; programs in there won't even run.
7484 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7485   # Search for pre-installed headers if nothing else fits.
7486   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7487 fi
7488
7489 if test "x${use_gnu_ld}" = x &&
7490    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7491   # Arrange for us to find uninstalled linker scripts.
7492   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7493 fi
7494
7495 # Search for other target-specific linker scripts and such.
7496 case "${target}" in
7497   mep*)
7498     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7499     ;;
7500 esac
7501
7502 # Makefile fragments.
7503 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7504 do
7505   eval fragval=\$$frag
7506   if test $fragval != /dev/null; then
7507     eval $frag=${srcdir}/$fragval
7508   fi
7509 done
7510
7511
7512
7513
7514
7515 # Miscellanea: directories, flags, etc.
7516
7517
7518
7519
7520
7521
7522
7523
7524 # Build module lists & subconfigure args.
7525
7526
7527
7528 # Host module lists & subconfigure args.
7529
7530
7531
7532
7533 # Target module lists & subconfigure args.
7534
7535
7536
7537 # Build tools.
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556 # Generate default definitions for YACC, M4, LEX and other programs that run
7557 # on the build machine.  These are used if the Makefile can't locate these
7558 # programs in objdir.
7559 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7560
7561 for ac_prog in 'bison -y' byacc yacc
7562 do
7563   # Extract the first word of "$ac_prog", so it can be a program name with args.
7564 set dummy $ac_prog; ac_word=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if test "${ac_cv_prog_YACC+set}" = set; then :
7568   $as_echo_n "(cached) " >&6
7569 else
7570   if test -n "$YACC"; then
7571   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7572 else
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7575 do
7576   IFS=$as_save_IFS
7577   test -z "$as_dir" && as_dir=.
7578     for ac_exec_ext in '' $ac_executable_extensions; do
7579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7580     ac_cv_prog_YACC="$ac_prog"
7581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582     break 2
7583   fi
7584 done
7585   done
7586 IFS=$as_save_IFS
7587
7588 fi
7589 fi
7590 YACC=$ac_cv_prog_YACC
7591 if test -n "$YACC"; then
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7593 $as_echo "$YACC" >&6; }
7594 else
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597 fi
7598
7599
7600   test -n "$YACC" && break
7601 done
7602 test -n "$YACC" || YACC="$MISSING bison -y"
7603
7604 case " $build_configdirs " in
7605   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7606   *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7607 esac
7608
7609 for ac_prog in bison
7610 do
7611   # Extract the first word of "$ac_prog", so it can be a program name with args.
7612 set dummy $ac_prog; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if test "${ac_cv_prog_BISON+set}" = set; then :
7616   $as_echo_n "(cached) " >&6
7617 else
7618   if test -n "$BISON"; then
7619   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7620 else
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626     for ac_exec_ext in '' $ac_executable_extensions; do
7627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628     ac_cv_prog_BISON="$ac_prog"
7629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633   done
7634 IFS=$as_save_IFS
7635
7636 fi
7637 fi
7638 BISON=$ac_cv_prog_BISON
7639 if test -n "$BISON"; then
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7641 $as_echo "$BISON" >&6; }
7642 else
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7645 fi
7646
7647
7648   test -n "$BISON" && break
7649 done
7650 test -n "$BISON" || BISON="$MISSING bison"
7651
7652 case " $build_configdirs " in
7653   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7654 esac
7655
7656 for ac_prog in gm4 gnum4 m4
7657 do
7658   # Extract the first word of "$ac_prog", so it can be a program name with args.
7659 set dummy $ac_prog; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if test "${ac_cv_prog_M4+set}" = set; then :
7663   $as_echo_n "(cached) " >&6
7664 else
7665   if test -n "$M4"; then
7666   ac_cv_prog_M4="$M4" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671   IFS=$as_save_IFS
7672   test -z "$as_dir" && as_dir=.
7673     for ac_exec_ext in '' $ac_executable_extensions; do
7674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675     ac_cv_prog_M4="$ac_prog"
7676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677     break 2
7678   fi
7679 done
7680   done
7681 IFS=$as_save_IFS
7682
7683 fi
7684 fi
7685 M4=$ac_cv_prog_M4
7686 if test -n "$M4"; then
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7688 $as_echo "$M4" >&6; }
7689 else
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693
7694
7695   test -n "$M4" && break
7696 done
7697 test -n "$M4" || M4="$MISSING m4"
7698
7699 case " $build_configdirs " in
7700   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7701 esac
7702
7703 for ac_prog in flex lex
7704 do
7705   # Extract the first word of "$ac_prog", so it can be a program name with args.
7706 set dummy $ac_prog; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if test "${ac_cv_prog_LEX+set}" = set; then :
7710   $as_echo_n "(cached) " >&6
7711 else
7712   if test -n "$LEX"; then
7713   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718   IFS=$as_save_IFS
7719   test -z "$as_dir" && as_dir=.
7720     for ac_exec_ext in '' $ac_executable_extensions; do
7721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722     ac_cv_prog_LEX="$ac_prog"
7723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724     break 2
7725   fi
7726 done
7727   done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 LEX=$ac_cv_prog_LEX
7733 if test -n "$LEX"; then
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7735 $as_echo "$LEX" >&6; }
7736 else
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742   test -n "$LEX" && break
7743 done
7744 test -n "$LEX" || LEX="$MISSING flex"
7745
7746 case " $build_configdirs " in
7747   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7748   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7749 esac
7750
7751 for ac_prog in flex
7752 do
7753   # Extract the first word of "$ac_prog", so it can be a program name with args.
7754 set dummy $ac_prog; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if test "${ac_cv_prog_FLEX+set}" = set; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760   if test -n "$FLEX"; then
7761   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766   IFS=$as_save_IFS
7767   test -z "$as_dir" && as_dir=.
7768     for ac_exec_ext in '' $ac_executable_extensions; do
7769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770     ac_cv_prog_FLEX="$ac_prog"
7771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772     break 2
7773   fi
7774 done
7775   done
7776 IFS=$as_save_IFS
7777
7778 fi
7779 fi
7780 FLEX=$ac_cv_prog_FLEX
7781 if test -n "$FLEX"; then
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7783 $as_echo "$FLEX" >&6; }
7784 else
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788
7789
7790   test -n "$FLEX" && break
7791 done
7792 test -n "$FLEX" || FLEX="$MISSING flex"
7793
7794 case " $build_configdirs " in
7795   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7796 esac
7797
7798 for ac_prog in makeinfo
7799 do
7800   # Extract the first word of "$ac_prog", so it can be a program name with args.
7801 set dummy $ac_prog; ac_word=$2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7805   $as_echo_n "(cached) " >&6
7806 else
7807   if test -n "$MAKEINFO"; then
7808   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813   IFS=$as_save_IFS
7814   test -z "$as_dir" && as_dir=.
7815     for ac_exec_ext in '' $ac_executable_extensions; do
7816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817     ac_cv_prog_MAKEINFO="$ac_prog"
7818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819     break 2
7820   fi
7821 done
7822   done
7823 IFS=$as_save_IFS
7824
7825 fi
7826 fi
7827 MAKEINFO=$ac_cv_prog_MAKEINFO
7828 if test -n "$MAKEINFO"; then
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7830 $as_echo "$MAKEINFO" >&6; }
7831 else
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 fi
7835
7836
7837   test -n "$MAKEINFO" && break
7838 done
7839 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7840
7841 case " $build_configdirs " in
7842   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7843   *)
7844
7845     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7846     # higher, else we use the "missing" dummy.
7847     if ${MAKEINFO} --version \
7848        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7849       :
7850     else
7851       MAKEINFO="$MISSING makeinfo"
7852     fi
7853     ;;
7854
7855 esac
7856
7857 # FIXME: expect and dejagnu may become build tools?
7858
7859 for ac_prog in expect
7860 do
7861   # Extract the first word of "$ac_prog", so it can be a program name with args.
7862 set dummy $ac_prog; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7866   $as_echo_n "(cached) " >&6
7867 else
7868   if test -n "$EXPECT"; then
7869   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7870 else
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7873 do
7874   IFS=$as_save_IFS
7875   test -z "$as_dir" && as_dir=.
7876     for ac_exec_ext in '' $ac_executable_extensions; do
7877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7878     ac_cv_prog_EXPECT="$ac_prog"
7879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880     break 2
7881   fi
7882 done
7883   done
7884 IFS=$as_save_IFS
7885
7886 fi
7887 fi
7888 EXPECT=$ac_cv_prog_EXPECT
7889 if test -n "$EXPECT"; then
7890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7891 $as_echo "$EXPECT" >&6; }
7892 else
7893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7895 fi
7896
7897
7898   test -n "$EXPECT" && break
7899 done
7900 test -n "$EXPECT" || EXPECT="expect"
7901
7902 case " $configdirs " in
7903   *" expect "*)
7904     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7905     ;;
7906 esac
7907
7908 for ac_prog in runtest
7909 do
7910   # Extract the first word of "$ac_prog", so it can be a program name with args.
7911 set dummy $ac_prog; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7915   $as_echo_n "(cached) " >&6
7916 else
7917   if test -n "$RUNTEST"; then
7918   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925     for ac_exec_ext in '' $ac_executable_extensions; do
7926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927     ac_cv_prog_RUNTEST="$ac_prog"
7928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929     break 2
7930   fi
7931 done
7932   done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 RUNTEST=$ac_cv_prog_RUNTEST
7938 if test -n "$RUNTEST"; then
7939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7940 $as_echo "$RUNTEST" >&6; }
7941 else
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7944 fi
7945
7946
7947   test -n "$RUNTEST" && break
7948 done
7949 test -n "$RUNTEST" || RUNTEST="runtest"
7950
7951 case " $configdirs " in
7952   *" dejagnu "*)
7953     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7954     ;;
7955 esac
7956
7957
7958 # Host tools.
7959 ncn_tool_prefix=
7960 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7961 ncn_target_tool_prefix=
7962 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7963
7964
7965
7966 if test -n "$AR"; then
7967   ac_cv_prog_AR=$AR
7968 elif test -n "$ac_cv_prog_AR"; then
7969   AR=$ac_cv_prog_AR
7970 fi
7971
7972 if test -n "$ac_cv_prog_AR"; then
7973   for ncn_progname in ar; do
7974     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7975 set dummy ${ncn_progname}; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if test "${ac_cv_prog_AR+set}" = set; then :
7979   $as_echo_n "(cached) " >&6
7980 else
7981   if test -n "$AR"; then
7982   ac_cv_prog_AR="$AR" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987   IFS=$as_save_IFS
7988   test -z "$as_dir" && as_dir=.
7989     for ac_exec_ext in '' $ac_executable_extensions; do
7990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7991     ac_cv_prog_AR="${ncn_progname}"
7992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993     break 2
7994   fi
7995 done
7996   done
7997 IFS=$as_save_IFS
7998
7999 fi
8000 fi
8001 AR=$ac_cv_prog_AR
8002 if test -n "$AR"; then
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8004 $as_echo "$AR" >&6; }
8005 else
8006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8008 fi
8009
8010
8011   done
8012 fi
8013
8014 for ncn_progname in ar; do
8015   if test -n "$ncn_tool_prefix"; then
8016     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8017 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if test "${ac_cv_prog_AR+set}" = set; then :
8021   $as_echo_n "(cached) " >&6
8022 else
8023   if test -n "$AR"; then
8024   ac_cv_prog_AR="$AR" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029   IFS=$as_save_IFS
8030   test -z "$as_dir" && as_dir=.
8031     for ac_exec_ext in '' $ac_executable_extensions; do
8032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035     break 2
8036   fi
8037 done
8038   done
8039 IFS=$as_save_IFS
8040
8041 fi
8042 fi
8043 AR=$ac_cv_prog_AR
8044 if test -n "$AR"; then
8045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8046 $as_echo "$AR" >&6; }
8047 else
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 fi
8051
8052
8053   fi
8054   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8055     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8056 set dummy ${ncn_progname}; ac_word=$2
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058 $as_echo_n "checking for $ac_word... " >&6; }
8059 if test "${ac_cv_prog_AR+set}" = set; then :
8060   $as_echo_n "(cached) " >&6
8061 else
8062   if test -n "$AR"; then
8063   ac_cv_prog_AR="$AR" # Let the user override the test.
8064 else
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8067 do
8068   IFS=$as_save_IFS
8069   test -z "$as_dir" && as_dir=.
8070     for ac_exec_ext in '' $ac_executable_extensions; do
8071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8072     ac_cv_prog_AR="${ncn_progname}"
8073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074     break 2
8075   fi
8076 done
8077   done
8078 IFS=$as_save_IFS
8079
8080 fi
8081 fi
8082 AR=$ac_cv_prog_AR
8083 if test -n "$AR"; then
8084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8085 $as_echo "$AR" >&6; }
8086 else
8087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8089 fi
8090
8091
8092   fi
8093   test -n "$ac_cv_prog_AR" && break
8094 done
8095
8096 if test -z "$ac_cv_prog_AR" ; then
8097   set dummy ar
8098   if test $build = $host ; then
8099     AR="$2"
8100   else
8101     AR="${ncn_tool_prefix}$2"
8102   fi
8103 fi
8104
8105
8106
8107 if test -n "$AS"; then
8108   ac_cv_prog_AS=$AS
8109 elif test -n "$ac_cv_prog_AS"; then
8110   AS=$ac_cv_prog_AS
8111 fi
8112
8113 if test -n "$ac_cv_prog_AS"; then
8114   for ncn_progname in as; do
8115     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8116 set dummy ${ncn_progname}; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if test "${ac_cv_prog_AS+set}" = set; then :
8120   $as_echo_n "(cached) " >&6
8121 else
8122   if test -n "$AS"; then
8123   ac_cv_prog_AS="$AS" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128   IFS=$as_save_IFS
8129   test -z "$as_dir" && as_dir=.
8130     for ac_exec_ext in '' $ac_executable_extensions; do
8131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132     ac_cv_prog_AS="${ncn_progname}"
8133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134     break 2
8135   fi
8136 done
8137   done
8138 IFS=$as_save_IFS
8139
8140 fi
8141 fi
8142 AS=$ac_cv_prog_AS
8143 if test -n "$AS"; then
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8145 $as_echo "$AS" >&6; }
8146 else
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8149 fi
8150
8151
8152   done
8153 fi
8154
8155 for ncn_progname in as; do
8156   if test -n "$ncn_tool_prefix"; then
8157     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8158 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if test "${ac_cv_prog_AS+set}" = set; then :
8162   $as_echo_n "(cached) " >&6
8163 else
8164   if test -n "$AS"; then
8165   ac_cv_prog_AS="$AS" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170   IFS=$as_save_IFS
8171   test -z "$as_dir" && as_dir=.
8172     for ac_exec_ext in '' $ac_executable_extensions; do
8173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8174     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176     break 2
8177   fi
8178 done
8179   done
8180 IFS=$as_save_IFS
8181
8182 fi
8183 fi
8184 AS=$ac_cv_prog_AS
8185 if test -n "$AS"; then
8186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8187 $as_echo "$AS" >&6; }
8188 else
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191 fi
8192
8193
8194   fi
8195   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8196     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8197 set dummy ${ncn_progname}; ac_word=$2
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199 $as_echo_n "checking for $ac_word... " >&6; }
8200 if test "${ac_cv_prog_AS+set}" = set; then :
8201   $as_echo_n "(cached) " >&6
8202 else
8203   if test -n "$AS"; then
8204   ac_cv_prog_AS="$AS" # Let the user override the test.
8205 else
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in $PATH
8208 do
8209   IFS=$as_save_IFS
8210   test -z "$as_dir" && as_dir=.
8211     for ac_exec_ext in '' $ac_executable_extensions; do
8212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213     ac_cv_prog_AS="${ncn_progname}"
8214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215     break 2
8216   fi
8217 done
8218   done
8219 IFS=$as_save_IFS
8220
8221 fi
8222 fi
8223 AS=$ac_cv_prog_AS
8224 if test -n "$AS"; then
8225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8226 $as_echo "$AS" >&6; }
8227 else
8228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8230 fi
8231
8232
8233   fi
8234   test -n "$ac_cv_prog_AS" && break
8235 done
8236
8237 if test -z "$ac_cv_prog_AS" ; then
8238   set dummy as
8239   if test $build = $host ; then
8240     AS="$2"
8241   else
8242     AS="${ncn_tool_prefix}$2"
8243   fi
8244 fi
8245
8246
8247
8248 if test -n "$DLLTOOL"; then
8249   ac_cv_prog_DLLTOOL=$DLLTOOL
8250 elif test -n "$ac_cv_prog_DLLTOOL"; then
8251   DLLTOOL=$ac_cv_prog_DLLTOOL
8252 fi
8253
8254 if test -n "$ac_cv_prog_DLLTOOL"; then
8255   for ncn_progname in dlltool; do
8256     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8257 set dummy ${ncn_progname}; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8261   $as_echo_n "(cached) " >&6
8262 else
8263   if test -n "$DLLTOOL"; then
8264   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269   IFS=$as_save_IFS
8270   test -z "$as_dir" && as_dir=.
8271     for ac_exec_ext in '' $ac_executable_extensions; do
8272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273     ac_cv_prog_DLLTOOL="${ncn_progname}"
8274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275     break 2
8276   fi
8277 done
8278   done
8279 IFS=$as_save_IFS
8280
8281 fi
8282 fi
8283 DLLTOOL=$ac_cv_prog_DLLTOOL
8284 if test -n "$DLLTOOL"; then
8285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8286 $as_echo "$DLLTOOL" >&6; }
8287 else
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8290 fi
8291
8292
8293   done
8294 fi
8295
8296 for ncn_progname in dlltool; do
8297   if test -n "$ncn_tool_prefix"; then
8298     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8299 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8303   $as_echo_n "(cached) " >&6
8304 else
8305   if test -n "$DLLTOOL"; then
8306   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8310 do
8311   IFS=$as_save_IFS
8312   test -z "$as_dir" && as_dir=.
8313     for ac_exec_ext in '' $ac_executable_extensions; do
8314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317     break 2
8318   fi
8319 done
8320   done
8321 IFS=$as_save_IFS
8322
8323 fi
8324 fi
8325 DLLTOOL=$ac_cv_prog_DLLTOOL
8326 if test -n "$DLLTOOL"; then
8327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8328 $as_echo "$DLLTOOL" >&6; }
8329 else
8330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8332 fi
8333
8334
8335   fi
8336   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8337     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8338 set dummy ${ncn_progname}; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344   if test -n "$DLLTOOL"; then
8345   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350   IFS=$as_save_IFS
8351   test -z "$as_dir" && as_dir=.
8352     for ac_exec_ext in '' $ac_executable_extensions; do
8353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354     ac_cv_prog_DLLTOOL="${ncn_progname}"
8355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356     break 2
8357   fi
8358 done
8359   done
8360 IFS=$as_save_IFS
8361
8362 fi
8363 fi
8364 DLLTOOL=$ac_cv_prog_DLLTOOL
8365 if test -n "$DLLTOOL"; then
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8367 $as_echo "$DLLTOOL" >&6; }
8368 else
8369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8371 fi
8372
8373
8374   fi
8375   test -n "$ac_cv_prog_DLLTOOL" && break
8376 done
8377
8378 if test -z "$ac_cv_prog_DLLTOOL" ; then
8379   set dummy dlltool
8380   if test $build = $host ; then
8381     DLLTOOL="$2"
8382   else
8383     DLLTOOL="${ncn_tool_prefix}$2"
8384   fi
8385 fi
8386
8387
8388
8389 if test -n "$LD"; then
8390   ac_cv_prog_LD=$LD
8391 elif test -n "$ac_cv_prog_LD"; then
8392   LD=$ac_cv_prog_LD
8393 fi
8394
8395 if test -n "$ac_cv_prog_LD"; then
8396   for ncn_progname in ld; do
8397     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8398 set dummy ${ncn_progname}; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if test "${ac_cv_prog_LD+set}" = set; then :
8402   $as_echo_n "(cached) " >&6
8403 else
8404   if test -n "$LD"; then
8405   ac_cv_prog_LD="$LD" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410   IFS=$as_save_IFS
8411   test -z "$as_dir" && as_dir=.
8412     for ac_exec_ext in '' $ac_executable_extensions; do
8413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414     ac_cv_prog_LD="${ncn_progname}"
8415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419   done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 LD=$ac_cv_prog_LD
8425 if test -n "$LD"; then
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8427 $as_echo "$LD" >&6; }
8428 else
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 fi
8432
8433
8434   done
8435 fi
8436
8437 for ncn_progname in ld; do
8438   if test -n "$ncn_tool_prefix"; then
8439     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8440 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if test "${ac_cv_prog_LD+set}" = set; then :
8444   $as_echo_n "(cached) " >&6
8445 else
8446   if test -n "$LD"; then
8447   ac_cv_prog_LD="$LD" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8451 do
8452   IFS=$as_save_IFS
8453   test -z "$as_dir" && as_dir=.
8454     for ac_exec_ext in '' $ac_executable_extensions; do
8455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458     break 2
8459   fi
8460 done
8461   done
8462 IFS=$as_save_IFS
8463
8464 fi
8465 fi
8466 LD=$ac_cv_prog_LD
8467 if test -n "$LD"; then
8468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8469 $as_echo "$LD" >&6; }
8470 else
8471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8473 fi
8474
8475
8476   fi
8477   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8478     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8479 set dummy ${ncn_progname}; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if test "${ac_cv_prog_LD+set}" = set; then :
8483   $as_echo_n "(cached) " >&6
8484 else
8485   if test -n "$LD"; then
8486   ac_cv_prog_LD="$LD" # Let the user override the test.
8487 else
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8490 do
8491   IFS=$as_save_IFS
8492   test -z "$as_dir" && as_dir=.
8493     for ac_exec_ext in '' $ac_executable_extensions; do
8494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495     ac_cv_prog_LD="${ncn_progname}"
8496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497     break 2
8498   fi
8499 done
8500   done
8501 IFS=$as_save_IFS
8502
8503 fi
8504 fi
8505 LD=$ac_cv_prog_LD
8506 if test -n "$LD"; then
8507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8508 $as_echo "$LD" >&6; }
8509 else
8510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8512 fi
8513
8514
8515   fi
8516   test -n "$ac_cv_prog_LD" && break
8517 done
8518
8519 if test -z "$ac_cv_prog_LD" ; then
8520   set dummy ld
8521   if test $build = $host ; then
8522     LD="$2"
8523   else
8524     LD="${ncn_tool_prefix}$2"
8525   fi
8526 fi
8527
8528
8529
8530 if test -n "$LIPO"; then
8531   ac_cv_prog_LIPO=$LIPO
8532 elif test -n "$ac_cv_prog_LIPO"; then
8533   LIPO=$ac_cv_prog_LIPO
8534 fi
8535
8536 if test -n "$ac_cv_prog_LIPO"; then
8537   for ncn_progname in lipo; do
8538     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8539 set dummy ${ncn_progname}; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if test "${ac_cv_prog_LIPO+set}" = set; then :
8543   $as_echo_n "(cached) " >&6
8544 else
8545   if test -n "$LIPO"; then
8546   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8547 else
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8550 do
8551   IFS=$as_save_IFS
8552   test -z "$as_dir" && as_dir=.
8553     for ac_exec_ext in '' $ac_executable_extensions; do
8554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555     ac_cv_prog_LIPO="${ncn_progname}"
8556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557     break 2
8558   fi
8559 done
8560   done
8561 IFS=$as_save_IFS
8562
8563 fi
8564 fi
8565 LIPO=$ac_cv_prog_LIPO
8566 if test -n "$LIPO"; then
8567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8568 $as_echo "$LIPO" >&6; }
8569 else
8570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8572 fi
8573
8574
8575   done
8576 fi
8577
8578 for ncn_progname in lipo; do
8579   if test -n "$ncn_tool_prefix"; then
8580     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8581 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if test "${ac_cv_prog_LIPO+set}" = set; then :
8585   $as_echo_n "(cached) " >&6
8586 else
8587   if test -n "$LIPO"; then
8588   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8592 do
8593   IFS=$as_save_IFS
8594   test -z "$as_dir" && as_dir=.
8595     for ac_exec_ext in '' $ac_executable_extensions; do
8596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599     break 2
8600   fi
8601 done
8602   done
8603 IFS=$as_save_IFS
8604
8605 fi
8606 fi
8607 LIPO=$ac_cv_prog_LIPO
8608 if test -n "$LIPO"; then
8609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8610 $as_echo "$LIPO" >&6; }
8611 else
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614 fi
8615
8616
8617   fi
8618   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8619     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8620 set dummy ${ncn_progname}; ac_word=$2
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622 $as_echo_n "checking for $ac_word... " >&6; }
8623 if test "${ac_cv_prog_LIPO+set}" = set; then :
8624   $as_echo_n "(cached) " >&6
8625 else
8626   if test -n "$LIPO"; then
8627   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8628 else
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8631 do
8632   IFS=$as_save_IFS
8633   test -z "$as_dir" && as_dir=.
8634     for ac_exec_ext in '' $ac_executable_extensions; do
8635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8636     ac_cv_prog_LIPO="${ncn_progname}"
8637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8638     break 2
8639   fi
8640 done
8641   done
8642 IFS=$as_save_IFS
8643
8644 fi
8645 fi
8646 LIPO=$ac_cv_prog_LIPO
8647 if test -n "$LIPO"; then
8648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8649 $as_echo "$LIPO" >&6; }
8650 else
8651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8653 fi
8654
8655
8656   fi
8657   test -n "$ac_cv_prog_LIPO" && break
8658 done
8659
8660 if test -z "$ac_cv_prog_LIPO" ; then
8661   set dummy lipo
8662   if test $build = $host ; then
8663     LIPO="$2"
8664   else
8665     LIPO="${ncn_tool_prefix}$2"
8666   fi
8667 fi
8668
8669
8670
8671 if test -n "$NM"; then
8672   ac_cv_prog_NM=$NM
8673 elif test -n "$ac_cv_prog_NM"; then
8674   NM=$ac_cv_prog_NM
8675 fi
8676
8677 if test -n "$ac_cv_prog_NM"; then
8678   for ncn_progname in nm; do
8679     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8680 set dummy ${ncn_progname}; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 $as_echo_n "checking for $ac_word... " >&6; }
8683 if test "${ac_cv_prog_NM+set}" = set; then :
8684   $as_echo_n "(cached) " >&6
8685 else
8686   if test -n "$NM"; then
8687   ac_cv_prog_NM="$NM" # Let the user override the test.
8688 else
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8691 do
8692   IFS=$as_save_IFS
8693   test -z "$as_dir" && as_dir=.
8694     for ac_exec_ext in '' $ac_executable_extensions; do
8695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8696     ac_cv_prog_NM="${ncn_progname}"
8697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698     break 2
8699   fi
8700 done
8701   done
8702 IFS=$as_save_IFS
8703
8704 fi
8705 fi
8706 NM=$ac_cv_prog_NM
8707 if test -n "$NM"; then
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8709 $as_echo "$NM" >&6; }
8710 else
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8713 fi
8714
8715
8716   done
8717 fi
8718
8719 for ncn_progname in nm; do
8720   if test -n "$ncn_tool_prefix"; then
8721     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8722 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724 $as_echo_n "checking for $ac_word... " >&6; }
8725 if test "${ac_cv_prog_NM+set}" = set; then :
8726   $as_echo_n "(cached) " >&6
8727 else
8728   if test -n "$NM"; then
8729   ac_cv_prog_NM="$NM" # Let the user override the test.
8730 else
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8733 do
8734   IFS=$as_save_IFS
8735   test -z "$as_dir" && as_dir=.
8736     for ac_exec_ext in '' $ac_executable_extensions; do
8737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8738     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740     break 2
8741   fi
8742 done
8743   done
8744 IFS=$as_save_IFS
8745
8746 fi
8747 fi
8748 NM=$ac_cv_prog_NM
8749 if test -n "$NM"; then
8750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8751 $as_echo "$NM" >&6; }
8752 else
8753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 $as_echo "no" >&6; }
8755 fi
8756
8757
8758   fi
8759   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8760     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8761 set dummy ${ncn_progname}; ac_word=$2
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8763 $as_echo_n "checking for $ac_word... " >&6; }
8764 if test "${ac_cv_prog_NM+set}" = set; then :
8765   $as_echo_n "(cached) " >&6
8766 else
8767   if test -n "$NM"; then
8768   ac_cv_prog_NM="$NM" # Let the user override the test.
8769 else
8770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771 for as_dir in $PATH
8772 do
8773   IFS=$as_save_IFS
8774   test -z "$as_dir" && as_dir=.
8775     for ac_exec_ext in '' $ac_executable_extensions; do
8776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8777     ac_cv_prog_NM="${ncn_progname}"
8778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8779     break 2
8780   fi
8781 done
8782   done
8783 IFS=$as_save_IFS
8784
8785 fi
8786 fi
8787 NM=$ac_cv_prog_NM
8788 if test -n "$NM"; then
8789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8790 $as_echo "$NM" >&6; }
8791 else
8792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793 $as_echo "no" >&6; }
8794 fi
8795
8796
8797   fi
8798   test -n "$ac_cv_prog_NM" && break
8799 done
8800
8801 if test -z "$ac_cv_prog_NM" ; then
8802   set dummy nm
8803   if test $build = $host ; then
8804     NM="$2"
8805   else
8806     NM="${ncn_tool_prefix}$2"
8807   fi
8808 fi
8809
8810
8811
8812 if test -n "$RANLIB"; then
8813   ac_cv_prog_RANLIB=$RANLIB
8814 elif test -n "$ac_cv_prog_RANLIB"; then
8815   RANLIB=$ac_cv_prog_RANLIB
8816 fi
8817
8818 if test -n "$ac_cv_prog_RANLIB"; then
8819   for ncn_progname in ranlib; do
8820     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8821 set dummy ${ncn_progname}; ac_word=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 $as_echo_n "checking for $ac_word... " >&6; }
8824 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8825   $as_echo_n "(cached) " >&6
8826 else
8827   if test -n "$RANLIB"; then
8828   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8829 else
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 for as_dir in $PATH
8832 do
8833   IFS=$as_save_IFS
8834   test -z "$as_dir" && as_dir=.
8835     for ac_exec_ext in '' $ac_executable_extensions; do
8836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8837     ac_cv_prog_RANLIB="${ncn_progname}"
8838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8839     break 2
8840   fi
8841 done
8842   done
8843 IFS=$as_save_IFS
8844
8845 fi
8846 fi
8847 RANLIB=$ac_cv_prog_RANLIB
8848 if test -n "$RANLIB"; then
8849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8850 $as_echo "$RANLIB" >&6; }
8851 else
8852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8854 fi
8855
8856
8857   done
8858 fi
8859
8860 for ncn_progname in ranlib; do
8861   if test -n "$ncn_tool_prefix"; then
8862     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8863 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865 $as_echo_n "checking for $ac_word... " >&6; }
8866 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8867   $as_echo_n "(cached) " >&6
8868 else
8869   if test -n "$RANLIB"; then
8870   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8871 else
8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 for as_dir in $PATH
8874 do
8875   IFS=$as_save_IFS
8876   test -z "$as_dir" && as_dir=.
8877     for ac_exec_ext in '' $ac_executable_extensions; do
8878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8879     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881     break 2
8882   fi
8883 done
8884   done
8885 IFS=$as_save_IFS
8886
8887 fi
8888 fi
8889 RANLIB=$ac_cv_prog_RANLIB
8890 if test -n "$RANLIB"; then
8891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8892 $as_echo "$RANLIB" >&6; }
8893 else
8894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8896 fi
8897
8898
8899   fi
8900   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8901     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8902 set dummy ${ncn_progname}; ac_word=$2
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904 $as_echo_n "checking for $ac_word... " >&6; }
8905 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8906   $as_echo_n "(cached) " >&6
8907 else
8908   if test -n "$RANLIB"; then
8909   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8910 else
8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 for as_dir in $PATH
8913 do
8914   IFS=$as_save_IFS
8915   test -z "$as_dir" && as_dir=.
8916     for ac_exec_ext in '' $ac_executable_extensions; do
8917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8918     ac_cv_prog_RANLIB="${ncn_progname}"
8919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920     break 2
8921   fi
8922 done
8923   done
8924 IFS=$as_save_IFS
8925
8926 fi
8927 fi
8928 RANLIB=$ac_cv_prog_RANLIB
8929 if test -n "$RANLIB"; then
8930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8931 $as_echo "$RANLIB" >&6; }
8932 else
8933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934 $as_echo "no" >&6; }
8935 fi
8936
8937
8938   fi
8939   test -n "$ac_cv_prog_RANLIB" && break
8940 done
8941
8942 if test -z "$ac_cv_prog_RANLIB" ; then
8943   RANLIB="true"
8944 fi
8945
8946
8947
8948 if test -n "$STRIP"; then
8949   ac_cv_prog_STRIP=$STRIP
8950 elif test -n "$ac_cv_prog_STRIP"; then
8951   STRIP=$ac_cv_prog_STRIP
8952 fi
8953
8954 if test -n "$ac_cv_prog_STRIP"; then
8955   for ncn_progname in strip; do
8956     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8957 set dummy ${ncn_progname}; ac_word=$2
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8959 $as_echo_n "checking for $ac_word... " >&6; }
8960 if test "${ac_cv_prog_STRIP+set}" = set; then :
8961   $as_echo_n "(cached) " >&6
8962 else
8963   if test -n "$STRIP"; then
8964   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8965 else
8966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 for as_dir in $PATH
8968 do
8969   IFS=$as_save_IFS
8970   test -z "$as_dir" && as_dir=.
8971     for ac_exec_ext in '' $ac_executable_extensions; do
8972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8973     ac_cv_prog_STRIP="${ncn_progname}"
8974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8975     break 2
8976   fi
8977 done
8978   done
8979 IFS=$as_save_IFS
8980
8981 fi
8982 fi
8983 STRIP=$ac_cv_prog_STRIP
8984 if test -n "$STRIP"; then
8985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8986 $as_echo "$STRIP" >&6; }
8987 else
8988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8990 fi
8991
8992
8993   done
8994 fi
8995
8996 for ncn_progname in strip; do
8997   if test -n "$ncn_tool_prefix"; then
8998     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8999 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001 $as_echo_n "checking for $ac_word... " >&6; }
9002 if test "${ac_cv_prog_STRIP+set}" = set; then :
9003   $as_echo_n "(cached) " >&6
9004 else
9005   if test -n "$STRIP"; then
9006   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9007 else
9008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 for as_dir in $PATH
9010 do
9011   IFS=$as_save_IFS
9012   test -z "$as_dir" && as_dir=.
9013     for ac_exec_ext in '' $ac_executable_extensions; do
9014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9015     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9017     break 2
9018   fi
9019 done
9020   done
9021 IFS=$as_save_IFS
9022
9023 fi
9024 fi
9025 STRIP=$ac_cv_prog_STRIP
9026 if test -n "$STRIP"; then
9027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9028 $as_echo "$STRIP" >&6; }
9029 else
9030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9032 fi
9033
9034
9035   fi
9036   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9037     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9038 set dummy ${ncn_progname}; ac_word=$2
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040 $as_echo_n "checking for $ac_word... " >&6; }
9041 if test "${ac_cv_prog_STRIP+set}" = set; then :
9042   $as_echo_n "(cached) " >&6
9043 else
9044   if test -n "$STRIP"; then
9045   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9046 else
9047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048 for as_dir in $PATH
9049 do
9050   IFS=$as_save_IFS
9051   test -z "$as_dir" && as_dir=.
9052     for ac_exec_ext in '' $ac_executable_extensions; do
9053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9054     ac_cv_prog_STRIP="${ncn_progname}"
9055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056     break 2
9057   fi
9058 done
9059   done
9060 IFS=$as_save_IFS
9061
9062 fi
9063 fi
9064 STRIP=$ac_cv_prog_STRIP
9065 if test -n "$STRIP"; then
9066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9067 $as_echo "$STRIP" >&6; }
9068 else
9069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070 $as_echo "no" >&6; }
9071 fi
9072
9073
9074   fi
9075   test -n "$ac_cv_prog_STRIP" && break
9076 done
9077
9078 if test -z "$ac_cv_prog_STRIP" ; then
9079   STRIP="true"
9080 fi
9081
9082
9083
9084 if test -n "$WINDRES"; then
9085   ac_cv_prog_WINDRES=$WINDRES
9086 elif test -n "$ac_cv_prog_WINDRES"; then
9087   WINDRES=$ac_cv_prog_WINDRES
9088 fi
9089
9090 if test -n "$ac_cv_prog_WINDRES"; then
9091   for ncn_progname in windres; do
9092     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9093 set dummy ${ncn_progname}; ac_word=$2
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9095 $as_echo_n "checking for $ac_word... " >&6; }
9096 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9097   $as_echo_n "(cached) " >&6
9098 else
9099   if test -n "$WINDRES"; then
9100   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9101 else
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 for as_dir in $PATH
9104 do
9105   IFS=$as_save_IFS
9106   test -z "$as_dir" && as_dir=.
9107     for ac_exec_ext in '' $ac_executable_extensions; do
9108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9109     ac_cv_prog_WINDRES="${ncn_progname}"
9110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9111     break 2
9112   fi
9113 done
9114   done
9115 IFS=$as_save_IFS
9116
9117 fi
9118 fi
9119 WINDRES=$ac_cv_prog_WINDRES
9120 if test -n "$WINDRES"; then
9121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9122 $as_echo "$WINDRES" >&6; }
9123 else
9124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125 $as_echo "no" >&6; }
9126 fi
9127
9128
9129   done
9130 fi
9131
9132 for ncn_progname in windres; do
9133   if test -n "$ncn_tool_prefix"; then
9134     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9135 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   if test -n "$WINDRES"; then
9142   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147   IFS=$as_save_IFS
9148   test -z "$as_dir" && as_dir=.
9149     for ac_exec_ext in '' $ac_executable_extensions; do
9150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153     break 2
9154   fi
9155 done
9156   done
9157 IFS=$as_save_IFS
9158
9159 fi
9160 fi
9161 WINDRES=$ac_cv_prog_WINDRES
9162 if test -n "$WINDRES"; then
9163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9164 $as_echo "$WINDRES" >&6; }
9165 else
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 fi
9169
9170
9171   fi
9172   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9173     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9174 set dummy ${ncn_progname}; ac_word=$2
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9176 $as_echo_n "checking for $ac_word... " >&6; }
9177 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9178   $as_echo_n "(cached) " >&6
9179 else
9180   if test -n "$WINDRES"; then
9181   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9182 else
9183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184 for as_dir in $PATH
9185 do
9186   IFS=$as_save_IFS
9187   test -z "$as_dir" && as_dir=.
9188     for ac_exec_ext in '' $ac_executable_extensions; do
9189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9190     ac_cv_prog_WINDRES="${ncn_progname}"
9191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9192     break 2
9193   fi
9194 done
9195   done
9196 IFS=$as_save_IFS
9197
9198 fi
9199 fi
9200 WINDRES=$ac_cv_prog_WINDRES
9201 if test -n "$WINDRES"; then
9202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9203 $as_echo "$WINDRES" >&6; }
9204 else
9205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206 $as_echo "no" >&6; }
9207 fi
9208
9209
9210   fi
9211   test -n "$ac_cv_prog_WINDRES" && break
9212 done
9213
9214 if test -z "$ac_cv_prog_WINDRES" ; then
9215   set dummy windres
9216   if test $build = $host ; then
9217     WINDRES="$2"
9218   else
9219     WINDRES="${ncn_tool_prefix}$2"
9220   fi
9221 fi
9222
9223
9224
9225 if test -n "$WINDMC"; then
9226   ac_cv_prog_WINDMC=$WINDMC
9227 elif test -n "$ac_cv_prog_WINDMC"; then
9228   WINDMC=$ac_cv_prog_WINDMC
9229 fi
9230
9231 if test -n "$ac_cv_prog_WINDMC"; then
9232   for ncn_progname in windmc; do
9233     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9234 set dummy ${ncn_progname}; ac_word=$2
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236 $as_echo_n "checking for $ac_word... " >&6; }
9237 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9238   $as_echo_n "(cached) " >&6
9239 else
9240   if test -n "$WINDMC"; then
9241   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9242 else
9243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244 for as_dir in $PATH
9245 do
9246   IFS=$as_save_IFS
9247   test -z "$as_dir" && as_dir=.
9248     for ac_exec_ext in '' $ac_executable_extensions; do
9249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9250     ac_cv_prog_WINDMC="${ncn_progname}"
9251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9252     break 2
9253   fi
9254 done
9255   done
9256 IFS=$as_save_IFS
9257
9258 fi
9259 fi
9260 WINDMC=$ac_cv_prog_WINDMC
9261 if test -n "$WINDMC"; then
9262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9263 $as_echo "$WINDMC" >&6; }
9264 else
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9266 $as_echo "no" >&6; }
9267 fi
9268
9269
9270   done
9271 fi
9272
9273 for ncn_progname in windmc; do
9274   if test -n "$ncn_tool_prefix"; then
9275     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9276 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278 $as_echo_n "checking for $ac_word... " >&6; }
9279 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9280   $as_echo_n "(cached) " >&6
9281 else
9282   if test -n "$WINDMC"; then
9283   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9284 else
9285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286 for as_dir in $PATH
9287 do
9288   IFS=$as_save_IFS
9289   test -z "$as_dir" && as_dir=.
9290     for ac_exec_ext in '' $ac_executable_extensions; do
9291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9292     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294     break 2
9295   fi
9296 done
9297   done
9298 IFS=$as_save_IFS
9299
9300 fi
9301 fi
9302 WINDMC=$ac_cv_prog_WINDMC
9303 if test -n "$WINDMC"; then
9304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9305 $as_echo "$WINDMC" >&6; }
9306 else
9307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9309 fi
9310
9311
9312   fi
9313   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9314     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9315 set dummy ${ncn_progname}; ac_word=$2
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9317 $as_echo_n "checking for $ac_word... " >&6; }
9318 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9319   $as_echo_n "(cached) " >&6
9320 else
9321   if test -n "$WINDMC"; then
9322   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9323 else
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9326 do
9327   IFS=$as_save_IFS
9328   test -z "$as_dir" && as_dir=.
9329     for ac_exec_ext in '' $ac_executable_extensions; do
9330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331     ac_cv_prog_WINDMC="${ncn_progname}"
9332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333     break 2
9334   fi
9335 done
9336   done
9337 IFS=$as_save_IFS
9338
9339 fi
9340 fi
9341 WINDMC=$ac_cv_prog_WINDMC
9342 if test -n "$WINDMC"; then
9343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9344 $as_echo "$WINDMC" >&6; }
9345 else
9346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9348 fi
9349
9350
9351   fi
9352   test -n "$ac_cv_prog_WINDMC" && break
9353 done
9354
9355 if test -z "$ac_cv_prog_WINDMC" ; then
9356   set dummy windmc
9357   if test $build = $host ; then
9358     WINDMC="$2"
9359   else
9360     WINDMC="${ncn_tool_prefix}$2"
9361   fi
9362 fi
9363
9364
9365
9366 if test -n "$OBJCOPY"; then
9367   ac_cv_prog_OBJCOPY=$OBJCOPY
9368 elif test -n "$ac_cv_prog_OBJCOPY"; then
9369   OBJCOPY=$ac_cv_prog_OBJCOPY
9370 fi
9371
9372 if test -n "$ac_cv_prog_OBJCOPY"; then
9373   for ncn_progname in objcopy; do
9374     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9375 set dummy ${ncn_progname}; ac_word=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9379   $as_echo_n "(cached) " >&6
9380 else
9381   if test -n "$OBJCOPY"; then
9382   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9383 else
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 for as_dir in $PATH
9386 do
9387   IFS=$as_save_IFS
9388   test -z "$as_dir" && as_dir=.
9389     for ac_exec_ext in '' $ac_executable_extensions; do
9390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9391     ac_cv_prog_OBJCOPY="${ncn_progname}"
9392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9393     break 2
9394   fi
9395 done
9396   done
9397 IFS=$as_save_IFS
9398
9399 fi
9400 fi
9401 OBJCOPY=$ac_cv_prog_OBJCOPY
9402 if test -n "$OBJCOPY"; then
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9404 $as_echo "$OBJCOPY" >&6; }
9405 else
9406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9408 fi
9409
9410
9411   done
9412 fi
9413
9414 for ncn_progname in objcopy; do
9415   if test -n "$ncn_tool_prefix"; then
9416     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9417 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9421   $as_echo_n "(cached) " >&6
9422 else
9423   if test -n "$OBJCOPY"; then
9424   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9425 else
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9428 do
9429   IFS=$as_save_IFS
9430   test -z "$as_dir" && as_dir=.
9431     for ac_exec_ext in '' $ac_executable_extensions; do
9432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435     break 2
9436   fi
9437 done
9438   done
9439 IFS=$as_save_IFS
9440
9441 fi
9442 fi
9443 OBJCOPY=$ac_cv_prog_OBJCOPY
9444 if test -n "$OBJCOPY"; then
9445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9446 $as_echo "$OBJCOPY" >&6; }
9447 else
9448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449 $as_echo "no" >&6; }
9450 fi
9451
9452
9453   fi
9454   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9455     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9456 set dummy ${ncn_progname}; ac_word=$2
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9458 $as_echo_n "checking for $ac_word... " >&6; }
9459 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9460   $as_echo_n "(cached) " >&6
9461 else
9462   if test -n "$OBJCOPY"; then
9463   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9464 else
9465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466 for as_dir in $PATH
9467 do
9468   IFS=$as_save_IFS
9469   test -z "$as_dir" && as_dir=.
9470     for ac_exec_ext in '' $ac_executable_extensions; do
9471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9472     ac_cv_prog_OBJCOPY="${ncn_progname}"
9473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9474     break 2
9475   fi
9476 done
9477   done
9478 IFS=$as_save_IFS
9479
9480 fi
9481 fi
9482 OBJCOPY=$ac_cv_prog_OBJCOPY
9483 if test -n "$OBJCOPY"; then
9484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9485 $as_echo "$OBJCOPY" >&6; }
9486 else
9487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488 $as_echo "no" >&6; }
9489 fi
9490
9491
9492   fi
9493   test -n "$ac_cv_prog_OBJCOPY" && break
9494 done
9495
9496 if test -z "$ac_cv_prog_OBJCOPY" ; then
9497   set dummy objcopy
9498   if test $build = $host ; then
9499     OBJCOPY="$2"
9500   else
9501     OBJCOPY="${ncn_tool_prefix}$2"
9502   fi
9503 fi
9504
9505
9506
9507 if test -n "$OBJDUMP"; then
9508   ac_cv_prog_OBJDUMP=$OBJDUMP
9509 elif test -n "$ac_cv_prog_OBJDUMP"; then
9510   OBJDUMP=$ac_cv_prog_OBJDUMP
9511 fi
9512
9513 if test -n "$ac_cv_prog_OBJDUMP"; then
9514   for ncn_progname in objdump; do
9515     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9516 set dummy ${ncn_progname}; ac_word=$2
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9518 $as_echo_n "checking for $ac_word... " >&6; }
9519 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9520   $as_echo_n "(cached) " >&6
9521 else
9522   if test -n "$OBJDUMP"; then
9523   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9524 else
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 for as_dir in $PATH
9527 do
9528   IFS=$as_save_IFS
9529   test -z "$as_dir" && as_dir=.
9530     for ac_exec_ext in '' $ac_executable_extensions; do
9531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9532     ac_cv_prog_OBJDUMP="${ncn_progname}"
9533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9534     break 2
9535   fi
9536 done
9537   done
9538 IFS=$as_save_IFS
9539
9540 fi
9541 fi
9542 OBJDUMP=$ac_cv_prog_OBJDUMP
9543 if test -n "$OBJDUMP"; then
9544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9545 $as_echo "$OBJDUMP" >&6; }
9546 else
9547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9549 fi
9550
9551
9552   done
9553 fi
9554
9555 for ncn_progname in objdump; do
9556   if test -n "$ncn_tool_prefix"; then
9557     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9558 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560 $as_echo_n "checking for $ac_word... " >&6; }
9561 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9562   $as_echo_n "(cached) " >&6
9563 else
9564   if test -n "$OBJDUMP"; then
9565   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9566 else
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568 for as_dir in $PATH
9569 do
9570   IFS=$as_save_IFS
9571   test -z "$as_dir" && as_dir=.
9572     for ac_exec_ext in '' $ac_executable_extensions; do
9573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9574     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9576     break 2
9577   fi
9578 done
9579   done
9580 IFS=$as_save_IFS
9581
9582 fi
9583 fi
9584 OBJDUMP=$ac_cv_prog_OBJDUMP
9585 if test -n "$OBJDUMP"; then
9586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9587 $as_echo "$OBJDUMP" >&6; }
9588 else
9589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9591 fi
9592
9593
9594   fi
9595   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9596     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9597 set dummy ${ncn_progname}; ac_word=$2
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9599 $as_echo_n "checking for $ac_word... " >&6; }
9600 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9601   $as_echo_n "(cached) " >&6
9602 else
9603   if test -n "$OBJDUMP"; then
9604   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9605 else
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in $PATH
9608 do
9609   IFS=$as_save_IFS
9610   test -z "$as_dir" && as_dir=.
9611     for ac_exec_ext in '' $ac_executable_extensions; do
9612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613     ac_cv_prog_OBJDUMP="${ncn_progname}"
9614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9615     break 2
9616   fi
9617 done
9618   done
9619 IFS=$as_save_IFS
9620
9621 fi
9622 fi
9623 OBJDUMP=$ac_cv_prog_OBJDUMP
9624 if test -n "$OBJDUMP"; then
9625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9626 $as_echo "$OBJDUMP" >&6; }
9627 else
9628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629 $as_echo "no" >&6; }
9630 fi
9631
9632
9633   fi
9634   test -n "$ac_cv_prog_OBJDUMP" && break
9635 done
9636
9637 if test -z "$ac_cv_prog_OBJDUMP" ; then
9638   set dummy objdump
9639   if test $build = $host ; then
9640     OBJDUMP="$2"
9641   else
9642     OBJDUMP="${ncn_tool_prefix}$2"
9643   fi
9644 fi
9645
9646
9647
9648
9649
9650
9651 # Target tools.
9652
9653 # Check whether --with-build-time-tools was given.
9654 if test "${with_build_time_tools+set}" = set; then :
9655   withval=$with_build_time_tools; case x"$withval" in
9656      x/*) ;;
9657      *)
9658        with_build_time_tools=
9659        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9660 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9661        ;;
9662    esac
9663 else
9664   with_build_time_tools=
9665 fi
9666
9667
9668
9669
9670 if test -n "$CC_FOR_TARGET"; then
9671   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9672 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9673   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9674 fi
9675
9676 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9677   for ncn_progname in cc gcc; do
9678     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9679 set dummy ${ncn_progname}; ac_word=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9683   $as_echo_n "(cached) " >&6
9684 else
9685   if test -n "$CC_FOR_TARGET"; then
9686   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9687 else
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 for as_dir in $PATH
9690 do
9691   IFS=$as_save_IFS
9692   test -z "$as_dir" && as_dir=.
9693     for ac_exec_ext in '' $ac_executable_extensions; do
9694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9695     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697     break 2
9698   fi
9699 done
9700   done
9701 IFS=$as_save_IFS
9702
9703 fi
9704 fi
9705 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9706 if test -n "$CC_FOR_TARGET"; then
9707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9708 $as_echo "$CC_FOR_TARGET" >&6; }
9709 else
9710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711 $as_echo "no" >&6; }
9712 fi
9713
9714
9715   done
9716 fi
9717
9718 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9719   for ncn_progname in cc gcc; do
9720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9721 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9722     if test -x $with_build_time_tools/${ncn_progname}; then
9723       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9724       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9725 $as_echo "yes" >&6; }
9726       break
9727     else
9728       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9730     fi
9731   done
9732 fi
9733
9734 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9735   for ncn_progname in cc gcc; do
9736     if test -n "$ncn_target_tool_prefix"; then
9737       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9738 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9740 $as_echo_n "checking for $ac_word... " >&6; }
9741 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9742   $as_echo_n "(cached) " >&6
9743 else
9744   if test -n "$CC_FOR_TARGET"; then
9745   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9746 else
9747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748 for as_dir in $PATH
9749 do
9750   IFS=$as_save_IFS
9751   test -z "$as_dir" && as_dir=.
9752     for ac_exec_ext in '' $ac_executable_extensions; do
9753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9754     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9756     break 2
9757   fi
9758 done
9759   done
9760 IFS=$as_save_IFS
9761
9762 fi
9763 fi
9764 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9765 if test -n "$CC_FOR_TARGET"; then
9766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9767 $as_echo "$CC_FOR_TARGET" >&6; }
9768 else
9769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9770 $as_echo "no" >&6; }
9771 fi
9772
9773
9774     fi
9775     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9776       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9777 set dummy ${ncn_progname}; ac_word=$2
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779 $as_echo_n "checking for $ac_word... " >&6; }
9780 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9781   $as_echo_n "(cached) " >&6
9782 else
9783   if test -n "$CC_FOR_TARGET"; then
9784   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9785 else
9786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787 for as_dir in $PATH
9788 do
9789   IFS=$as_save_IFS
9790   test -z "$as_dir" && as_dir=.
9791     for ac_exec_ext in '' $ac_executable_extensions; do
9792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9793     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795     break 2
9796   fi
9797 done
9798   done
9799 IFS=$as_save_IFS
9800
9801 fi
9802 fi
9803 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9804 if test -n "$CC_FOR_TARGET"; then
9805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9806 $as_echo "$CC_FOR_TARGET" >&6; }
9807 else
9808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809 $as_echo "no" >&6; }
9810 fi
9811
9812
9813     fi
9814     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9815   done
9816 fi
9817
9818 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9819   set dummy cc gcc
9820   if test $build = $target ; then
9821     CC_FOR_TARGET="$2"
9822   else
9823     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9824   fi
9825 else
9826   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9827 fi
9828
9829
9830
9831 if test -n "$CXX_FOR_TARGET"; then
9832   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9833 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9834   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9835 fi
9836
9837 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9838   for ncn_progname in c++ g++ cxx gxx; do
9839     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9840 set dummy ${ncn_progname}; ac_word=$2
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9842 $as_echo_n "checking for $ac_word... " >&6; }
9843 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9844   $as_echo_n "(cached) " >&6
9845 else
9846   if test -n "$CXX_FOR_TARGET"; then
9847   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9848 else
9849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850 for as_dir in $PATH
9851 do
9852   IFS=$as_save_IFS
9853   test -z "$as_dir" && as_dir=.
9854     for ac_exec_ext in '' $ac_executable_extensions; do
9855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9856     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9858     break 2
9859   fi
9860 done
9861   done
9862 IFS=$as_save_IFS
9863
9864 fi
9865 fi
9866 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9867 if test -n "$CXX_FOR_TARGET"; then
9868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9869 $as_echo "$CXX_FOR_TARGET" >&6; }
9870 else
9871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872 $as_echo "no" >&6; }
9873 fi
9874
9875
9876   done
9877 fi
9878
9879 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9880   for ncn_progname in c++ g++ cxx gxx; do
9881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9882 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9883     if test -x $with_build_time_tools/${ncn_progname}; then
9884       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9886 $as_echo "yes" >&6; }
9887       break
9888     else
9889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9891     fi
9892   done
9893 fi
9894
9895 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9896   for ncn_progname in c++ g++ cxx gxx; do
9897     if test -n "$ncn_target_tool_prefix"; then
9898       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9899 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901 $as_echo_n "checking for $ac_word... " >&6; }
9902 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9903   $as_echo_n "(cached) " >&6
9904 else
9905   if test -n "$CXX_FOR_TARGET"; then
9906   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9907 else
9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909 for as_dir in $PATH
9910 do
9911   IFS=$as_save_IFS
9912   test -z "$as_dir" && as_dir=.
9913     for ac_exec_ext in '' $ac_executable_extensions; do
9914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9915     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9917     break 2
9918   fi
9919 done
9920   done
9921 IFS=$as_save_IFS
9922
9923 fi
9924 fi
9925 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9926 if test -n "$CXX_FOR_TARGET"; then
9927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9928 $as_echo "$CXX_FOR_TARGET" >&6; }
9929 else
9930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 $as_echo "no" >&6; }
9932 fi
9933
9934
9935     fi
9936     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9937       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9938 set dummy ${ncn_progname}; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9942   $as_echo_n "(cached) " >&6
9943 else
9944   if test -n "$CXX_FOR_TARGET"; then
9945   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9946 else
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 for as_dir in $PATH
9949 do
9950   IFS=$as_save_IFS
9951   test -z "$as_dir" && as_dir=.
9952     for ac_exec_ext in '' $ac_executable_extensions; do
9953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9954     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956     break 2
9957   fi
9958 done
9959   done
9960 IFS=$as_save_IFS
9961
9962 fi
9963 fi
9964 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9965 if test -n "$CXX_FOR_TARGET"; then
9966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9967 $as_echo "$CXX_FOR_TARGET" >&6; }
9968 else
9969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9971 fi
9972
9973
9974     fi
9975     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9976   done
9977 fi
9978
9979 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9980   set dummy c++ g++ cxx gxx
9981   if test $build = $target ; then
9982     CXX_FOR_TARGET="$2"
9983   else
9984     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9985   fi
9986 else
9987   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9988 fi
9989
9990
9991
9992 if test -n "$GCC_FOR_TARGET"; then
9993   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9994 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9995   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9996 fi
9997
9998 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9999   for ncn_progname in gcc; do
10000     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10001 set dummy ${ncn_progname}; ac_word=$2
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10003 $as_echo_n "checking for $ac_word... " >&6; }
10004 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10005   $as_echo_n "(cached) " >&6
10006 else
10007   if test -n "$GCC_FOR_TARGET"; then
10008   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10009 else
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in $PATH
10012 do
10013   IFS=$as_save_IFS
10014   test -z "$as_dir" && as_dir=.
10015     for ac_exec_ext in '' $ac_executable_extensions; do
10016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10017     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10019     break 2
10020   fi
10021 done
10022   done
10023 IFS=$as_save_IFS
10024
10025 fi
10026 fi
10027 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10028 if test -n "$GCC_FOR_TARGET"; then
10029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10030 $as_echo "$GCC_FOR_TARGET" >&6; }
10031 else
10032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10034 fi
10035
10036
10037   done
10038 fi
10039
10040 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10041   for ncn_progname in gcc; do
10042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10043 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10044     if test -x $with_build_time_tools/${ncn_progname}; then
10045       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10047 $as_echo "yes" >&6; }
10048       break
10049     else
10050       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10052     fi
10053   done
10054 fi
10055
10056 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10057   for ncn_progname in gcc; do
10058     if test -n "$ncn_target_tool_prefix"; then
10059       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10060 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10062 $as_echo_n "checking for $ac_word... " >&6; }
10063 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10064   $as_echo_n "(cached) " >&6
10065 else
10066   if test -n "$GCC_FOR_TARGET"; then
10067   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10068 else
10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070 for as_dir in $PATH
10071 do
10072   IFS=$as_save_IFS
10073   test -z "$as_dir" && as_dir=.
10074     for ac_exec_ext in '' $ac_executable_extensions; do
10075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10076     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10078     break 2
10079   fi
10080 done
10081   done
10082 IFS=$as_save_IFS
10083
10084 fi
10085 fi
10086 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10087 if test -n "$GCC_FOR_TARGET"; then
10088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10089 $as_echo "$GCC_FOR_TARGET" >&6; }
10090 else
10091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092 $as_echo "no" >&6; }
10093 fi
10094
10095
10096     fi
10097     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10098       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10099 set dummy ${ncn_progname}; ac_word=$2
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10101 $as_echo_n "checking for $ac_word... " >&6; }
10102 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10103   $as_echo_n "(cached) " >&6
10104 else
10105   if test -n "$GCC_FOR_TARGET"; then
10106   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10107 else
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10110 do
10111   IFS=$as_save_IFS
10112   test -z "$as_dir" && as_dir=.
10113     for ac_exec_ext in '' $ac_executable_extensions; do
10114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10117     break 2
10118   fi
10119 done
10120   done
10121 IFS=$as_save_IFS
10122
10123 fi
10124 fi
10125 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10126 if test -n "$GCC_FOR_TARGET"; then
10127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10128 $as_echo "$GCC_FOR_TARGET" >&6; }
10129 else
10130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10132 fi
10133
10134
10135     fi
10136     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10137   done
10138 fi
10139
10140 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10141   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10142 else
10143   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10144 fi
10145
10146
10147
10148 if test -n "$GCJ_FOR_TARGET"; then
10149   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10150 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10151   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10152 fi
10153
10154 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10155   for ncn_progname in gcj; do
10156     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10157 set dummy ${ncn_progname}; ac_word=$2
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159 $as_echo_n "checking for $ac_word... " >&6; }
10160 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10161   $as_echo_n "(cached) " >&6
10162 else
10163   if test -n "$GCJ_FOR_TARGET"; then
10164   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10165 else
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10168 do
10169   IFS=$as_save_IFS
10170   test -z "$as_dir" && as_dir=.
10171     for ac_exec_ext in '' $ac_executable_extensions; do
10172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10173     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10175     break 2
10176   fi
10177 done
10178   done
10179 IFS=$as_save_IFS
10180
10181 fi
10182 fi
10183 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10184 if test -n "$GCJ_FOR_TARGET"; then
10185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10186 $as_echo "$GCJ_FOR_TARGET" >&6; }
10187 else
10188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10190 fi
10191
10192
10193   done
10194 fi
10195
10196 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10197   for ncn_progname in gcj; do
10198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10199 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10200     if test -x $with_build_time_tools/${ncn_progname}; then
10201       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10203 $as_echo "yes" >&6; }
10204       break
10205     else
10206       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10208     fi
10209   done
10210 fi
10211
10212 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10213   for ncn_progname in gcj; do
10214     if test -n "$ncn_target_tool_prefix"; then
10215       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10216 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10218 $as_echo_n "checking for $ac_word... " >&6; }
10219 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10220   $as_echo_n "(cached) " >&6
10221 else
10222   if test -n "$GCJ_FOR_TARGET"; then
10223   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10224 else
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10227 do
10228   IFS=$as_save_IFS
10229   test -z "$as_dir" && as_dir=.
10230     for ac_exec_ext in '' $ac_executable_extensions; do
10231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10232     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234     break 2
10235   fi
10236 done
10237   done
10238 IFS=$as_save_IFS
10239
10240 fi
10241 fi
10242 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10243 if test -n "$GCJ_FOR_TARGET"; then
10244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10245 $as_echo "$GCJ_FOR_TARGET" >&6; }
10246 else
10247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10249 fi
10250
10251
10252     fi
10253     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10254       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10255 set dummy ${ncn_progname}; ac_word=$2
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10257 $as_echo_n "checking for $ac_word... " >&6; }
10258 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10259   $as_echo_n "(cached) " >&6
10260 else
10261   if test -n "$GCJ_FOR_TARGET"; then
10262   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10263 else
10264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265 for as_dir in $PATH
10266 do
10267   IFS=$as_save_IFS
10268   test -z "$as_dir" && as_dir=.
10269     for ac_exec_ext in '' $ac_executable_extensions; do
10270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10271     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10273     break 2
10274   fi
10275 done
10276   done
10277 IFS=$as_save_IFS
10278
10279 fi
10280 fi
10281 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10282 if test -n "$GCJ_FOR_TARGET"; then
10283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10284 $as_echo "$GCJ_FOR_TARGET" >&6; }
10285 else
10286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10287 $as_echo "no" >&6; }
10288 fi
10289
10290
10291     fi
10292     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10293   done
10294 fi
10295
10296 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10297   set dummy gcj
10298   if test $build = $target ; then
10299     GCJ_FOR_TARGET="$2"
10300   else
10301     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10302   fi
10303 else
10304   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10305 fi
10306
10307
10308
10309 if test -n "$GFORTRAN_FOR_TARGET"; then
10310   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10311 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10312   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10313 fi
10314
10315 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10316   for ncn_progname in gfortran; do
10317     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10318 set dummy ${ncn_progname}; ac_word=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10322   $as_echo_n "(cached) " >&6
10323 else
10324   if test -n "$GFORTRAN_FOR_TARGET"; then
10325   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10326 else
10327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328 for as_dir in $PATH
10329 do
10330   IFS=$as_save_IFS
10331   test -z "$as_dir" && as_dir=.
10332     for ac_exec_ext in '' $ac_executable_extensions; do
10333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10334     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10336     break 2
10337   fi
10338 done
10339   done
10340 IFS=$as_save_IFS
10341
10342 fi
10343 fi
10344 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10345 if test -n "$GFORTRAN_FOR_TARGET"; then
10346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10347 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10348 else
10349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10351 fi
10352
10353
10354   done
10355 fi
10356
10357 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10358   for ncn_progname in gfortran; do
10359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10360 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10361     if test -x $with_build_time_tools/${ncn_progname}; then
10362       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10363       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10364 $as_echo "yes" >&6; }
10365       break
10366     else
10367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368 $as_echo "no" >&6; }
10369     fi
10370   done
10371 fi
10372
10373 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10374   for ncn_progname in gfortran; do
10375     if test -n "$ncn_target_tool_prefix"; then
10376       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10377 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379 $as_echo_n "checking for $ac_word... " >&6; }
10380 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10381   $as_echo_n "(cached) " >&6
10382 else
10383   if test -n "$GFORTRAN_FOR_TARGET"; then
10384   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10385 else
10386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387 for as_dir in $PATH
10388 do
10389   IFS=$as_save_IFS
10390   test -z "$as_dir" && as_dir=.
10391     for ac_exec_ext in '' $ac_executable_extensions; do
10392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10393     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10395     break 2
10396   fi
10397 done
10398   done
10399 IFS=$as_save_IFS
10400
10401 fi
10402 fi
10403 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10404 if test -n "$GFORTRAN_FOR_TARGET"; then
10405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10406 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10407 else
10408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409 $as_echo "no" >&6; }
10410 fi
10411
10412
10413     fi
10414     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10415       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10416 set dummy ${ncn_progname}; ac_word=$2
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10418 $as_echo_n "checking for $ac_word... " >&6; }
10419 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10420   $as_echo_n "(cached) " >&6
10421 else
10422   if test -n "$GFORTRAN_FOR_TARGET"; then
10423   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10424 else
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10427 do
10428   IFS=$as_save_IFS
10429   test -z "$as_dir" && as_dir=.
10430     for ac_exec_ext in '' $ac_executable_extensions; do
10431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10432     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10434     break 2
10435   fi
10436 done
10437   done
10438 IFS=$as_save_IFS
10439
10440 fi
10441 fi
10442 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10443 if test -n "$GFORTRAN_FOR_TARGET"; then
10444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10445 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10446 else
10447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448 $as_echo "no" >&6; }
10449 fi
10450
10451
10452     fi
10453     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10454   done
10455 fi
10456
10457 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10458   set dummy gfortran
10459   if test $build = $target ; then
10460     GFORTRAN_FOR_TARGET="$2"
10461   else
10462     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10463   fi
10464 else
10465   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10466 fi
10467
10468
10469
10470 if test -n "$GOC_FOR_TARGET"; then
10471   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10472 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10473   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10474 fi
10475
10476 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10477   for ncn_progname in gccgo; do
10478     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10479 set dummy ${ncn_progname}; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10483   $as_echo_n "(cached) " >&6
10484 else
10485   if test -n "$GOC_FOR_TARGET"; then
10486   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10487 else
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10490 do
10491   IFS=$as_save_IFS
10492   test -z "$as_dir" && as_dir=.
10493     for ac_exec_ext in '' $ac_executable_extensions; do
10494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10495     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497     break 2
10498   fi
10499 done
10500   done
10501 IFS=$as_save_IFS
10502
10503 fi
10504 fi
10505 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10506 if test -n "$GOC_FOR_TARGET"; then
10507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10508 $as_echo "$GOC_FOR_TARGET" >&6; }
10509 else
10510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 $as_echo "no" >&6; }
10512 fi
10513
10514
10515   done
10516 fi
10517
10518 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10519   for ncn_progname in gccgo; do
10520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10521 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10522     if test -x $with_build_time_tools/${ncn_progname}; then
10523       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10524       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10525 $as_echo "yes" >&6; }
10526       break
10527     else
10528       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10530     fi
10531   done
10532 fi
10533
10534 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10535   for ncn_progname in gccgo; do
10536     if test -n "$ncn_target_tool_prefix"; then
10537       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10538 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540 $as_echo_n "checking for $ac_word... " >&6; }
10541 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10542   $as_echo_n "(cached) " >&6
10543 else
10544   if test -n "$GOC_FOR_TARGET"; then
10545   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10546 else
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in $PATH
10549 do
10550   IFS=$as_save_IFS
10551   test -z "$as_dir" && as_dir=.
10552     for ac_exec_ext in '' $ac_executable_extensions; do
10553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10554     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556     break 2
10557   fi
10558 done
10559   done
10560 IFS=$as_save_IFS
10561
10562 fi
10563 fi
10564 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10565 if test -n "$GOC_FOR_TARGET"; then
10566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10567 $as_echo "$GOC_FOR_TARGET" >&6; }
10568 else
10569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10571 fi
10572
10573
10574     fi
10575     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10576       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10577 set dummy ${ncn_progname}; ac_word=$2
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579 $as_echo_n "checking for $ac_word... " >&6; }
10580 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10581   $as_echo_n "(cached) " >&6
10582 else
10583   if test -n "$GOC_FOR_TARGET"; then
10584   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10585 else
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10588 do
10589   IFS=$as_save_IFS
10590   test -z "$as_dir" && as_dir=.
10591     for ac_exec_ext in '' $ac_executable_extensions; do
10592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10593     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595     break 2
10596   fi
10597 done
10598   done
10599 IFS=$as_save_IFS
10600
10601 fi
10602 fi
10603 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10604 if test -n "$GOC_FOR_TARGET"; then
10605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10606 $as_echo "$GOC_FOR_TARGET" >&6; }
10607 else
10608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610 fi
10611
10612
10613     fi
10614     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10615   done
10616 fi
10617
10618 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10619   set dummy gccgo
10620   if test $build = $target ; then
10621     GOC_FOR_TARGET="$2"
10622   else
10623     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10624   fi
10625 else
10626   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10627 fi
10628
10629
10630
10631 cat > conftest.c << \EOF
10632 #ifdef __GNUC__
10633   gcc_yay;
10634 #endif
10635 EOF
10636 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10637   have_gcc_for_target=yes
10638 else
10639   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10640   have_gcc_for_target=no
10641 fi
10642 rm conftest.c
10643
10644
10645
10646
10647 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10648   if test -n "$with_build_time_tools"; then
10649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10650 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10651     if test -x $with_build_time_tools/ar; then
10652       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10653       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10655 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10656     else
10657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; }
10659     fi
10660   elif test $build != $host && test $have_gcc_for_target = yes; then
10661     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10662     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10663     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10664   fi
10665 fi
10666 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10667   # Extract the first word of "ar", so it can be a program name with args.
10668 set dummy ar; ac_word=$2
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670 $as_echo_n "checking for $ac_word... " >&6; }
10671 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10672   $as_echo_n "(cached) " >&6
10673 else
10674   case $AR_FOR_TARGET in
10675   [\\/]* | ?:[\\/]*)
10676   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10677   ;;
10678   *)
10679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680 for as_dir in $gcc_cv_tool_dirs
10681 do
10682   IFS=$as_save_IFS
10683   test -z "$as_dir" && as_dir=.
10684     for ac_exec_ext in '' $ac_executable_extensions; do
10685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10686     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10688     break 2
10689   fi
10690 done
10691   done
10692 IFS=$as_save_IFS
10693
10694   ;;
10695 esac
10696 fi
10697 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10698 if test -n "$AR_FOR_TARGET"; then
10699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10700 $as_echo "$AR_FOR_TARGET" >&6; }
10701 else
10702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10704 fi
10705
10706
10707 fi
10708 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10709
10710
10711 if test -n "$AR_FOR_TARGET"; then
10712   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10713 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10714   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10715 fi
10716
10717 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10718   for ncn_progname in ar; do
10719     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10720 set dummy ${ncn_progname}; ac_word=$2
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722 $as_echo_n "checking for $ac_word... " >&6; }
10723 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10724   $as_echo_n "(cached) " >&6
10725 else
10726   if test -n "$AR_FOR_TARGET"; then
10727   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10728 else
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10731 do
10732   IFS=$as_save_IFS
10733   test -z "$as_dir" && as_dir=.
10734     for ac_exec_ext in '' $ac_executable_extensions; do
10735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10736     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738     break 2
10739   fi
10740 done
10741   done
10742 IFS=$as_save_IFS
10743
10744 fi
10745 fi
10746 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10747 if test -n "$AR_FOR_TARGET"; then
10748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10749 $as_echo "$AR_FOR_TARGET" >&6; }
10750 else
10751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10753 fi
10754
10755
10756   done
10757 fi
10758
10759 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10760   for ncn_progname in ar; do
10761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10762 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10763     if test -x $with_build_time_tools/${ncn_progname}; then
10764       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10765       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10766 $as_echo "yes" >&6; }
10767       break
10768     else
10769       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10771     fi
10772   done
10773 fi
10774
10775 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10776   for ncn_progname in ar; do
10777     if test -n "$ncn_target_tool_prefix"; then
10778       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10779 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10783   $as_echo_n "(cached) " >&6
10784 else
10785   if test -n "$AR_FOR_TARGET"; then
10786   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10787 else
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH
10790 do
10791   IFS=$as_save_IFS
10792   test -z "$as_dir" && as_dir=.
10793     for ac_exec_ext in '' $ac_executable_extensions; do
10794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797     break 2
10798   fi
10799 done
10800   done
10801 IFS=$as_save_IFS
10802
10803 fi
10804 fi
10805 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10806 if test -n "$AR_FOR_TARGET"; then
10807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10808 $as_echo "$AR_FOR_TARGET" >&6; }
10809 else
10810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10812 fi
10813
10814
10815     fi
10816     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10817       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10818 set dummy ${ncn_progname}; ac_word=$2
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820 $as_echo_n "checking for $ac_word... " >&6; }
10821 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10822   $as_echo_n "(cached) " >&6
10823 else
10824   if test -n "$AR_FOR_TARGET"; then
10825   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10826 else
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10829 do
10830   IFS=$as_save_IFS
10831   test -z "$as_dir" && as_dir=.
10832     for ac_exec_ext in '' $ac_executable_extensions; do
10833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10834     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10836     break 2
10837   fi
10838 done
10839   done
10840 IFS=$as_save_IFS
10841
10842 fi
10843 fi
10844 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10845 if test -n "$AR_FOR_TARGET"; then
10846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10847 $as_echo "$AR_FOR_TARGET" >&6; }
10848 else
10849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850 $as_echo "no" >&6; }
10851 fi
10852
10853
10854     fi
10855     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10856   done
10857 fi
10858
10859 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10860   set dummy ar
10861   if test $build = $target ; then
10862     AR_FOR_TARGET="$2"
10863   else
10864     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10865   fi
10866 else
10867   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10868 fi
10869
10870 else
10871   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10872 fi
10873
10874
10875
10876
10877 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10878   if test -n "$with_build_time_tools"; then
10879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10880 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10881     if test -x $with_build_time_tools/as; then
10882       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10883       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10885 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10886     else
10887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 $as_echo "no" >&6; }
10889     fi
10890   elif test $build != $host && test $have_gcc_for_target = yes; then
10891     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10892     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10893     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10894   fi
10895 fi
10896 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10897   # Extract the first word of "as", so it can be a program name with args.
10898 set dummy as; ac_word=$2
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900 $as_echo_n "checking for $ac_word... " >&6; }
10901 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10902   $as_echo_n "(cached) " >&6
10903 else
10904   case $AS_FOR_TARGET in
10905   [\\/]* | ?:[\\/]*)
10906   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10907   ;;
10908   *)
10909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910 for as_dir in $gcc_cv_tool_dirs
10911 do
10912   IFS=$as_save_IFS
10913   test -z "$as_dir" && as_dir=.
10914     for ac_exec_ext in '' $ac_executable_extensions; do
10915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10916     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10918     break 2
10919   fi
10920 done
10921   done
10922 IFS=$as_save_IFS
10923
10924   ;;
10925 esac
10926 fi
10927 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10928 if test -n "$AS_FOR_TARGET"; then
10929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10930 $as_echo "$AS_FOR_TARGET" >&6; }
10931 else
10932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933 $as_echo "no" >&6; }
10934 fi
10935
10936
10937 fi
10938 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10939
10940
10941 if test -n "$AS_FOR_TARGET"; then
10942   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10943 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10944   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10945 fi
10946
10947 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10948   for ncn_progname in as; do
10949     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10950 set dummy ${ncn_progname}; ac_word=$2
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10952 $as_echo_n "checking for $ac_word... " >&6; }
10953 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10954   $as_echo_n "(cached) " >&6
10955 else
10956   if test -n "$AS_FOR_TARGET"; then
10957   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10958 else
10959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960 for as_dir in $PATH
10961 do
10962   IFS=$as_save_IFS
10963   test -z "$as_dir" && as_dir=.
10964     for ac_exec_ext in '' $ac_executable_extensions; do
10965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10966     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10968     break 2
10969   fi
10970 done
10971   done
10972 IFS=$as_save_IFS
10973
10974 fi
10975 fi
10976 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10977 if test -n "$AS_FOR_TARGET"; then
10978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10979 $as_echo "$AS_FOR_TARGET" >&6; }
10980 else
10981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982 $as_echo "no" >&6; }
10983 fi
10984
10985
10986   done
10987 fi
10988
10989 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10990   for ncn_progname in as; do
10991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10992 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10993     if test -x $with_build_time_tools/${ncn_progname}; then
10994       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10995       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10996 $as_echo "yes" >&6; }
10997       break
10998     else
10999       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000 $as_echo "no" >&6; }
11001     fi
11002   done
11003 fi
11004
11005 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11006   for ncn_progname in as; do
11007     if test -n "$ncn_target_tool_prefix"; then
11008       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11009 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011 $as_echo_n "checking for $ac_word... " >&6; }
11012 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11013   $as_echo_n "(cached) " >&6
11014 else
11015   if test -n "$AS_FOR_TARGET"; then
11016   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11017 else
11018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019 for as_dir in $PATH
11020 do
11021   IFS=$as_save_IFS
11022   test -z "$as_dir" && as_dir=.
11023     for ac_exec_ext in '' $ac_executable_extensions; do
11024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11025     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11027     break 2
11028   fi
11029 done
11030   done
11031 IFS=$as_save_IFS
11032
11033 fi
11034 fi
11035 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11036 if test -n "$AS_FOR_TARGET"; then
11037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11038 $as_echo "$AS_FOR_TARGET" >&6; }
11039 else
11040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; }
11042 fi
11043
11044
11045     fi
11046     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11047       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11048 set dummy ${ncn_progname}; ac_word=$2
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050 $as_echo_n "checking for $ac_word... " >&6; }
11051 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11052   $as_echo_n "(cached) " >&6
11053 else
11054   if test -n "$AS_FOR_TARGET"; then
11055   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11056 else
11057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058 for as_dir in $PATH
11059 do
11060   IFS=$as_save_IFS
11061   test -z "$as_dir" && as_dir=.
11062     for ac_exec_ext in '' $ac_executable_extensions; do
11063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11064     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11066     break 2
11067   fi
11068 done
11069   done
11070 IFS=$as_save_IFS
11071
11072 fi
11073 fi
11074 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11075 if test -n "$AS_FOR_TARGET"; then
11076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11077 $as_echo "$AS_FOR_TARGET" >&6; }
11078 else
11079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11081 fi
11082
11083
11084     fi
11085     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11086   done
11087 fi
11088
11089 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11090   set dummy as
11091   if test $build = $target ; then
11092     AS_FOR_TARGET="$2"
11093   else
11094     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11095   fi
11096 else
11097   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11098 fi
11099
11100 else
11101   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11102 fi
11103
11104
11105
11106
11107 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11108   if test -n "$with_build_time_tools"; then
11109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11110 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11111     if test -x $with_build_time_tools/dlltool; then
11112       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11113       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11115 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11116     else
11117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 $as_echo "no" >&6; }
11119     fi
11120   elif test $build != $host && test $have_gcc_for_target = yes; then
11121     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11122     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11123     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11124   fi
11125 fi
11126 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11127   # Extract the first word of "dlltool", so it can be a program name with args.
11128 set dummy dlltool; ac_word=$2
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 $as_echo_n "checking for $ac_word... " >&6; }
11131 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11132   $as_echo_n "(cached) " >&6
11133 else
11134   case $DLLTOOL_FOR_TARGET in
11135   [\\/]* | ?:[\\/]*)
11136   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11137   ;;
11138   *)
11139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $gcc_cv_tool_dirs
11141 do
11142   IFS=$as_save_IFS
11143   test -z "$as_dir" && as_dir=.
11144     for ac_exec_ext in '' $ac_executable_extensions; do
11145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11146     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11148     break 2
11149   fi
11150 done
11151   done
11152 IFS=$as_save_IFS
11153
11154   ;;
11155 esac
11156 fi
11157 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11158 if test -n "$DLLTOOL_FOR_TARGET"; then
11159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11160 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11161 else
11162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11164 fi
11165
11166
11167 fi
11168 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11169
11170
11171 if test -n "$DLLTOOL_FOR_TARGET"; then
11172   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11173 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11174   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11175 fi
11176
11177 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11178   for ncn_progname in dlltool; do
11179     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11180 set dummy ${ncn_progname}; ac_word=$2
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182 $as_echo_n "checking for $ac_word... " >&6; }
11183 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11184   $as_echo_n "(cached) " >&6
11185 else
11186   if test -n "$DLLTOOL_FOR_TARGET"; then
11187   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11188 else
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11191 do
11192   IFS=$as_save_IFS
11193   test -z "$as_dir" && as_dir=.
11194     for ac_exec_ext in '' $ac_executable_extensions; do
11195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11196     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11198     break 2
11199   fi
11200 done
11201   done
11202 IFS=$as_save_IFS
11203
11204 fi
11205 fi
11206 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11207 if test -n "$DLLTOOL_FOR_TARGET"; then
11208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11209 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11210 else
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212 $as_echo "no" >&6; }
11213 fi
11214
11215
11216   done
11217 fi
11218
11219 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11220   for ncn_progname in dlltool; do
11221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11222 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11223     if test -x $with_build_time_tools/${ncn_progname}; then
11224       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11225       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11226 $as_echo "yes" >&6; }
11227       break
11228     else
11229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11231     fi
11232   done
11233 fi
11234
11235 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11236   for ncn_progname in dlltool; do
11237     if test -n "$ncn_target_tool_prefix"; then
11238       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11239 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241 $as_echo_n "checking for $ac_word... " >&6; }
11242 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11243   $as_echo_n "(cached) " >&6
11244 else
11245   if test -n "$DLLTOOL_FOR_TARGET"; then
11246   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11247 else
11248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249 for as_dir in $PATH
11250 do
11251   IFS=$as_save_IFS
11252   test -z "$as_dir" && as_dir=.
11253     for ac_exec_ext in '' $ac_executable_extensions; do
11254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11255     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11257     break 2
11258   fi
11259 done
11260   done
11261 IFS=$as_save_IFS
11262
11263 fi
11264 fi
11265 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11266 if test -n "$DLLTOOL_FOR_TARGET"; then
11267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11268 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11269 else
11270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11272 fi
11273
11274
11275     fi
11276     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11277       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11278 set dummy ${ncn_progname}; ac_word=$2
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280 $as_echo_n "checking for $ac_word... " >&6; }
11281 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11282   $as_echo_n "(cached) " >&6
11283 else
11284   if test -n "$DLLTOOL_FOR_TARGET"; then
11285   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11286 else
11287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11288 for as_dir in $PATH
11289 do
11290   IFS=$as_save_IFS
11291   test -z "$as_dir" && as_dir=.
11292     for ac_exec_ext in '' $ac_executable_extensions; do
11293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11294     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11296     break 2
11297   fi
11298 done
11299   done
11300 IFS=$as_save_IFS
11301
11302 fi
11303 fi
11304 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11305 if test -n "$DLLTOOL_FOR_TARGET"; then
11306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11307 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11308 else
11309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310 $as_echo "no" >&6; }
11311 fi
11312
11313
11314     fi
11315     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11316   done
11317 fi
11318
11319 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11320   set dummy dlltool
11321   if test $build = $target ; then
11322     DLLTOOL_FOR_TARGET="$2"
11323   else
11324     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11325   fi
11326 else
11327   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11328 fi
11329
11330 else
11331   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11332 fi
11333
11334
11335
11336
11337 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11338   if test -n "$with_build_time_tools"; then
11339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11340 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11341     if test -x $with_build_time_tools/ld; then
11342       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11343       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11344       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11345 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11346     else
11347       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348 $as_echo "no" >&6; }
11349     fi
11350   elif test $build != $host && test $have_gcc_for_target = yes; then
11351     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11352     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11353     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11354   fi
11355 fi
11356 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11357   # Extract the first word of "ld", so it can be a program name with args.
11358 set dummy ld; ac_word=$2
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360 $as_echo_n "checking for $ac_word... " >&6; }
11361 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11362   $as_echo_n "(cached) " >&6
11363 else
11364   case $LD_FOR_TARGET in
11365   [\\/]* | ?:[\\/]*)
11366   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11367   ;;
11368   *)
11369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370 for as_dir in $gcc_cv_tool_dirs
11371 do
11372   IFS=$as_save_IFS
11373   test -z "$as_dir" && as_dir=.
11374     for ac_exec_ext in '' $ac_executable_extensions; do
11375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11376     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11378     break 2
11379   fi
11380 done
11381   done
11382 IFS=$as_save_IFS
11383
11384   ;;
11385 esac
11386 fi
11387 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11388 if test -n "$LD_FOR_TARGET"; then
11389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11390 $as_echo "$LD_FOR_TARGET" >&6; }
11391 else
11392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11394 fi
11395
11396
11397 fi
11398 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11399
11400
11401 if test -n "$LD_FOR_TARGET"; then
11402   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11403 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11404   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11405 fi
11406
11407 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11408   for ncn_progname in ld; do
11409     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11410 set dummy ${ncn_progname}; ac_word=$2
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412 $as_echo_n "checking for $ac_word... " >&6; }
11413 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11414   $as_echo_n "(cached) " >&6
11415 else
11416   if test -n "$LD_FOR_TARGET"; then
11417   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11418 else
11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420 for as_dir in $PATH
11421 do
11422   IFS=$as_save_IFS
11423   test -z "$as_dir" && as_dir=.
11424     for ac_exec_ext in '' $ac_executable_extensions; do
11425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11426     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11428     break 2
11429   fi
11430 done
11431   done
11432 IFS=$as_save_IFS
11433
11434 fi
11435 fi
11436 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11437 if test -n "$LD_FOR_TARGET"; then
11438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11439 $as_echo "$LD_FOR_TARGET" >&6; }
11440 else
11441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442 $as_echo "no" >&6; }
11443 fi
11444
11445
11446   done
11447 fi
11448
11449 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11450   for ncn_progname in ld; do
11451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11452 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11453     if test -x $with_build_time_tools/${ncn_progname}; then
11454       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11455       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11456 $as_echo "yes" >&6; }
11457       break
11458     else
11459       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 $as_echo "no" >&6; }
11461     fi
11462   done
11463 fi
11464
11465 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11466   for ncn_progname in ld; do
11467     if test -n "$ncn_target_tool_prefix"; then
11468       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11469 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471 $as_echo_n "checking for $ac_word... " >&6; }
11472 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11473   $as_echo_n "(cached) " >&6
11474 else
11475   if test -n "$LD_FOR_TARGET"; then
11476   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11477 else
11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH
11480 do
11481   IFS=$as_save_IFS
11482   test -z "$as_dir" && as_dir=.
11483     for ac_exec_ext in '' $ac_executable_extensions; do
11484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11485     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487     break 2
11488   fi
11489 done
11490   done
11491 IFS=$as_save_IFS
11492
11493 fi
11494 fi
11495 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11496 if test -n "$LD_FOR_TARGET"; then
11497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11498 $as_echo "$LD_FOR_TARGET" >&6; }
11499 else
11500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 $as_echo "no" >&6; }
11502 fi
11503
11504
11505     fi
11506     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11507       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11508 set dummy ${ncn_progname}; ac_word=$2
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510 $as_echo_n "checking for $ac_word... " >&6; }
11511 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11512   $as_echo_n "(cached) " >&6
11513 else
11514   if test -n "$LD_FOR_TARGET"; then
11515   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11516 else
11517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in $PATH
11519 do
11520   IFS=$as_save_IFS
11521   test -z "$as_dir" && as_dir=.
11522     for ac_exec_ext in '' $ac_executable_extensions; do
11523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11524     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11526     break 2
11527   fi
11528 done
11529   done
11530 IFS=$as_save_IFS
11531
11532 fi
11533 fi
11534 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11535 if test -n "$LD_FOR_TARGET"; then
11536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11537 $as_echo "$LD_FOR_TARGET" >&6; }
11538 else
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540 $as_echo "no" >&6; }
11541 fi
11542
11543
11544     fi
11545     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11546   done
11547 fi
11548
11549 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11550   set dummy ld
11551   if test $build = $target ; then
11552     LD_FOR_TARGET="$2"
11553   else
11554     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11555   fi
11556 else
11557   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11558 fi
11559
11560 else
11561   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11562 fi
11563
11564
11565
11566
11567 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11568   if test -n "$with_build_time_tools"; then
11569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11570 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11571     if test -x $with_build_time_tools/lipo; then
11572       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11573       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11574       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11575 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11576     else
11577       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11579     fi
11580   elif test $build != $host && test $have_gcc_for_target = yes; then
11581     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11582     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11583     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11584   fi
11585 fi
11586 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11587   # Extract the first word of "lipo", so it can be a program name with args.
11588 set dummy lipo; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11592   $as_echo_n "(cached) " >&6
11593 else
11594   case $LIPO_FOR_TARGET in
11595   [\\/]* | ?:[\\/]*)
11596   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11597   ;;
11598   *)
11599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $gcc_cv_tool_dirs
11601 do
11602   IFS=$as_save_IFS
11603   test -z "$as_dir" && as_dir=.
11604     for ac_exec_ext in '' $ac_executable_extensions; do
11605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608     break 2
11609   fi
11610 done
11611   done
11612 IFS=$as_save_IFS
11613
11614   ;;
11615 esac
11616 fi
11617 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11618 if test -n "$LIPO_FOR_TARGET"; then
11619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11620 $as_echo "$LIPO_FOR_TARGET" >&6; }
11621 else
11622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11624 fi
11625
11626
11627 fi
11628 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11629
11630
11631 if test -n "$LIPO_FOR_TARGET"; then
11632   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11633 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11634   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11635 fi
11636
11637 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11638   for ncn_progname in lipo; do
11639     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11640 set dummy ${ncn_progname}; ac_word=$2
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642 $as_echo_n "checking for $ac_word... " >&6; }
11643 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11644   $as_echo_n "(cached) " >&6
11645 else
11646   if test -n "$LIPO_FOR_TARGET"; then
11647   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11648 else
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11651 do
11652   IFS=$as_save_IFS
11653   test -z "$as_dir" && as_dir=.
11654     for ac_exec_ext in '' $ac_executable_extensions; do
11655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11656     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11658     break 2
11659   fi
11660 done
11661   done
11662 IFS=$as_save_IFS
11663
11664 fi
11665 fi
11666 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11667 if test -n "$LIPO_FOR_TARGET"; then
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11669 $as_echo "$LIPO_FOR_TARGET" >&6; }
11670 else
11671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11673 fi
11674
11675
11676   done
11677 fi
11678
11679 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11680   for ncn_progname in lipo; do
11681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11682 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11683     if test -x $with_build_time_tools/${ncn_progname}; then
11684       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11685       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11686 $as_echo "yes" >&6; }
11687       break
11688     else
11689       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11691     fi
11692   done
11693 fi
11694
11695 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11696   for ncn_progname in lipo; do
11697     if test -n "$ncn_target_tool_prefix"; then
11698       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11699 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11703   $as_echo_n "(cached) " >&6
11704 else
11705   if test -n "$LIPO_FOR_TARGET"; then
11706   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11707 else
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11710 do
11711   IFS=$as_save_IFS
11712   test -z "$as_dir" && as_dir=.
11713     for ac_exec_ext in '' $ac_executable_extensions; do
11714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717     break 2
11718   fi
11719 done
11720   done
11721 IFS=$as_save_IFS
11722
11723 fi
11724 fi
11725 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11726 if test -n "$LIPO_FOR_TARGET"; then
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11728 $as_echo "$LIPO_FOR_TARGET" >&6; }
11729 else
11730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11732 fi
11733
11734
11735     fi
11736     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11737       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11738 set dummy ${ncn_progname}; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11742   $as_echo_n "(cached) " >&6
11743 else
11744   if test -n "$LIPO_FOR_TARGET"; then
11745   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11746 else
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750   IFS=$as_save_IFS
11751   test -z "$as_dir" && as_dir=.
11752     for ac_exec_ext in '' $ac_executable_extensions; do
11753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11754     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11756     break 2
11757   fi
11758 done
11759   done
11760 IFS=$as_save_IFS
11761
11762 fi
11763 fi
11764 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11765 if test -n "$LIPO_FOR_TARGET"; then
11766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11767 $as_echo "$LIPO_FOR_TARGET" >&6; }
11768 else
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 $as_echo "no" >&6; }
11771 fi
11772
11773
11774     fi
11775     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11776   done
11777 fi
11778
11779 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11780   set dummy lipo
11781   if test $build = $target ; then
11782     LIPO_FOR_TARGET="$2"
11783   else
11784     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11785   fi
11786 else
11787   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11788 fi
11789
11790 else
11791   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11792 fi
11793
11794
11795
11796
11797 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11798   if test -n "$with_build_time_tools"; then
11799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11800 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11801     if test -x $with_build_time_tools/nm; then
11802       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11803       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11804       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11805 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11806     else
11807       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809     fi
11810   elif test $build != $host && test $have_gcc_for_target = yes; then
11811     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11812     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11813     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11814   fi
11815 fi
11816 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11817   # Extract the first word of "nm", so it can be a program name with args.
11818 set dummy nm; ac_word=$2
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820 $as_echo_n "checking for $ac_word... " >&6; }
11821 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11822   $as_echo_n "(cached) " >&6
11823 else
11824   case $NM_FOR_TARGET in
11825   [\\/]* | ?:[\\/]*)
11826   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11827   ;;
11828   *)
11829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $gcc_cv_tool_dirs
11831 do
11832   IFS=$as_save_IFS
11833   test -z "$as_dir" && as_dir=.
11834     for ac_exec_ext in '' $ac_executable_extensions; do
11835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11836     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11838     break 2
11839   fi
11840 done
11841   done
11842 IFS=$as_save_IFS
11843
11844   ;;
11845 esac
11846 fi
11847 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11848 if test -n "$NM_FOR_TARGET"; then
11849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11850 $as_echo "$NM_FOR_TARGET" >&6; }
11851 else
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854 fi
11855
11856
11857 fi
11858 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11859
11860
11861 if test -n "$NM_FOR_TARGET"; then
11862   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11863 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11864   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11865 fi
11866
11867 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11868   for ncn_progname in nm; do
11869     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11870 set dummy ${ncn_progname}; ac_word=$2
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872 $as_echo_n "checking for $ac_word... " >&6; }
11873 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11874   $as_echo_n "(cached) " >&6
11875 else
11876   if test -n "$NM_FOR_TARGET"; then
11877   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11878 else
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11881 do
11882   IFS=$as_save_IFS
11883   test -z "$as_dir" && as_dir=.
11884     for ac_exec_ext in '' $ac_executable_extensions; do
11885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11886     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11888     break 2
11889   fi
11890 done
11891   done
11892 IFS=$as_save_IFS
11893
11894 fi
11895 fi
11896 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11897 if test -n "$NM_FOR_TARGET"; then
11898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11899 $as_echo "$NM_FOR_TARGET" >&6; }
11900 else
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11903 fi
11904
11905
11906   done
11907 fi
11908
11909 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11910   for ncn_progname in nm; do
11911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11912 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11913     if test -x $with_build_time_tools/${ncn_progname}; then
11914       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11915       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11916 $as_echo "yes" >&6; }
11917       break
11918     else
11919       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11921     fi
11922   done
11923 fi
11924
11925 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11926   for ncn_progname in nm; do
11927     if test -n "$ncn_target_tool_prefix"; then
11928       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11929 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931 $as_echo_n "checking for $ac_word... " >&6; }
11932 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11933   $as_echo_n "(cached) " >&6
11934 else
11935   if test -n "$NM_FOR_TARGET"; then
11936   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11937 else
11938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939 for as_dir in $PATH
11940 do
11941   IFS=$as_save_IFS
11942   test -z "$as_dir" && as_dir=.
11943     for ac_exec_ext in '' $ac_executable_extensions; do
11944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11945     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11947     break 2
11948   fi
11949 done
11950   done
11951 IFS=$as_save_IFS
11952
11953 fi
11954 fi
11955 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11956 if test -n "$NM_FOR_TARGET"; then
11957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11958 $as_echo "$NM_FOR_TARGET" >&6; }
11959 else
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 $as_echo "no" >&6; }
11962 fi
11963
11964
11965     fi
11966     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11967       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11968 set dummy ${ncn_progname}; ac_word=$2
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970 $as_echo_n "checking for $ac_word... " >&6; }
11971 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11972   $as_echo_n "(cached) " >&6
11973 else
11974   if test -n "$NM_FOR_TARGET"; then
11975   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11976 else
11977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978 for as_dir in $PATH
11979 do
11980   IFS=$as_save_IFS
11981   test -z "$as_dir" && as_dir=.
11982     for ac_exec_ext in '' $ac_executable_extensions; do
11983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11984     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11986     break 2
11987   fi
11988 done
11989   done
11990 IFS=$as_save_IFS
11991
11992 fi
11993 fi
11994 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11995 if test -n "$NM_FOR_TARGET"; then
11996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11997 $as_echo "$NM_FOR_TARGET" >&6; }
11998 else
11999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12001 fi
12002
12003
12004     fi
12005     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12006   done
12007 fi
12008
12009 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12010   set dummy nm
12011   if test $build = $target ; then
12012     NM_FOR_TARGET="$2"
12013   else
12014     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12015   fi
12016 else
12017   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12018 fi
12019
12020 else
12021   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12022 fi
12023
12024
12025
12026
12027 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12028   if test -n "$with_build_time_tools"; then
12029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12030 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12031     if test -x $with_build_time_tools/objdump; then
12032       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12033       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12034       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12035 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12036     else
12037       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12039     fi
12040   elif test $build != $host && test $have_gcc_for_target = yes; then
12041     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12042     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12043     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12044   fi
12045 fi
12046 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12047   # Extract the first word of "objdump", so it can be a program name with args.
12048 set dummy objdump; ac_word=$2
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050 $as_echo_n "checking for $ac_word... " >&6; }
12051 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12052   $as_echo_n "(cached) " >&6
12053 else
12054   case $OBJDUMP_FOR_TARGET in
12055   [\\/]* | ?:[\\/]*)
12056   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12057   ;;
12058   *)
12059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $gcc_cv_tool_dirs
12061 do
12062   IFS=$as_save_IFS
12063   test -z "$as_dir" && as_dir=.
12064     for ac_exec_ext in '' $ac_executable_extensions; do
12065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12066     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068     break 2
12069   fi
12070 done
12071   done
12072 IFS=$as_save_IFS
12073
12074   ;;
12075 esac
12076 fi
12077 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12078 if test -n "$OBJDUMP_FOR_TARGET"; then
12079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12080 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12081 else
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12084 fi
12085
12086
12087 fi
12088 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12089
12090
12091 if test -n "$OBJDUMP_FOR_TARGET"; then
12092   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12093 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12094   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12095 fi
12096
12097 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12098   for ncn_progname in objdump; do
12099     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12100 set dummy ${ncn_progname}; ac_word=$2
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102 $as_echo_n "checking for $ac_word... " >&6; }
12103 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12104   $as_echo_n "(cached) " >&6
12105 else
12106   if test -n "$OBJDUMP_FOR_TARGET"; then
12107   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12108 else
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12111 do
12112   IFS=$as_save_IFS
12113   test -z "$as_dir" && as_dir=.
12114     for ac_exec_ext in '' $ac_executable_extensions; do
12115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12116     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118     break 2
12119   fi
12120 done
12121   done
12122 IFS=$as_save_IFS
12123
12124 fi
12125 fi
12126 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12127 if test -n "$OBJDUMP_FOR_TARGET"; then
12128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12129 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12130 else
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12133 fi
12134
12135
12136   done
12137 fi
12138
12139 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12140   for ncn_progname in objdump; do
12141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12142 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12143     if test -x $with_build_time_tools/${ncn_progname}; then
12144       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12146 $as_echo "yes" >&6; }
12147       break
12148     else
12149       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151     fi
12152   done
12153 fi
12154
12155 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12156   for ncn_progname in objdump; do
12157     if test -n "$ncn_target_tool_prefix"; then
12158       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12159 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161 $as_echo_n "checking for $ac_word... " >&6; }
12162 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12163   $as_echo_n "(cached) " >&6
12164 else
12165   if test -n "$OBJDUMP_FOR_TARGET"; then
12166   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12167 else
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12170 do
12171   IFS=$as_save_IFS
12172   test -z "$as_dir" && as_dir=.
12173     for ac_exec_ext in '' $ac_executable_extensions; do
12174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12175     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177     break 2
12178   fi
12179 done
12180   done
12181 IFS=$as_save_IFS
12182
12183 fi
12184 fi
12185 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12186 if test -n "$OBJDUMP_FOR_TARGET"; then
12187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12188 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12189 else
12190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12192 fi
12193
12194
12195     fi
12196     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12197       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12198 set dummy ${ncn_progname}; ac_word=$2
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12200 $as_echo_n "checking for $ac_word... " >&6; }
12201 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12202   $as_echo_n "(cached) " >&6
12203 else
12204   if test -n "$OBJDUMP_FOR_TARGET"; then
12205   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12206 else
12207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12208 for as_dir in $PATH
12209 do
12210   IFS=$as_save_IFS
12211   test -z "$as_dir" && as_dir=.
12212     for ac_exec_ext in '' $ac_executable_extensions; do
12213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12214     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12216     break 2
12217   fi
12218 done
12219   done
12220 IFS=$as_save_IFS
12221
12222 fi
12223 fi
12224 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12225 if test -n "$OBJDUMP_FOR_TARGET"; then
12226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12227 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12228 else
12229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230 $as_echo "no" >&6; }
12231 fi
12232
12233
12234     fi
12235     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12236   done
12237 fi
12238
12239 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12240   set dummy objdump
12241   if test $build = $target ; then
12242     OBJDUMP_FOR_TARGET="$2"
12243   else
12244     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12245   fi
12246 else
12247   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12248 fi
12249
12250 else
12251   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12252 fi
12253
12254
12255
12256
12257 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12258   if test -n "$with_build_time_tools"; then
12259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12260 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12261     if test -x $with_build_time_tools/ranlib; then
12262       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12263       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12265 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12266     else
12267       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12269     fi
12270   elif test $build != $host && test $have_gcc_for_target = yes; then
12271     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12272     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12273     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12274   fi
12275 fi
12276 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12277   # Extract the first word of "ranlib", so it can be a program name with args.
12278 set dummy ranlib; ac_word=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12282   $as_echo_n "(cached) " >&6
12283 else
12284   case $RANLIB_FOR_TARGET in
12285   [\\/]* | ?:[\\/]*)
12286   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12287   ;;
12288   *)
12289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in $gcc_cv_tool_dirs
12291 do
12292   IFS=$as_save_IFS
12293   test -z "$as_dir" && as_dir=.
12294     for ac_exec_ext in '' $ac_executable_extensions; do
12295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298     break 2
12299   fi
12300 done
12301   done
12302 IFS=$as_save_IFS
12303
12304   ;;
12305 esac
12306 fi
12307 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12308 if test -n "$RANLIB_FOR_TARGET"; then
12309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12310 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12311 else
12312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12314 fi
12315
12316
12317 fi
12318 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12319
12320
12321 if test -n "$RANLIB_FOR_TARGET"; then
12322   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12323 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12324   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12325 fi
12326
12327 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12328   for ncn_progname in ranlib; do
12329     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12330 set dummy ${ncn_progname}; ac_word=$2
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332 $as_echo_n "checking for $ac_word... " >&6; }
12333 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12334   $as_echo_n "(cached) " >&6
12335 else
12336   if test -n "$RANLIB_FOR_TARGET"; then
12337   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12338 else
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12341 do
12342   IFS=$as_save_IFS
12343   test -z "$as_dir" && as_dir=.
12344     for ac_exec_ext in '' $ac_executable_extensions; do
12345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12346     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348     break 2
12349   fi
12350 done
12351   done
12352 IFS=$as_save_IFS
12353
12354 fi
12355 fi
12356 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12357 if test -n "$RANLIB_FOR_TARGET"; then
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12359 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12360 else
12361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 $as_echo "no" >&6; }
12363 fi
12364
12365
12366   done
12367 fi
12368
12369 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12370   for ncn_progname in ranlib; do
12371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12372 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12373     if test -x $with_build_time_tools/${ncn_progname}; then
12374       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12375       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12376 $as_echo "yes" >&6; }
12377       break
12378     else
12379       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; }
12381     fi
12382   done
12383 fi
12384
12385 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12386   for ncn_progname in ranlib; do
12387     if test -n "$ncn_target_tool_prefix"; then
12388       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12389 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391 $as_echo_n "checking for $ac_word... " >&6; }
12392 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12393   $as_echo_n "(cached) " >&6
12394 else
12395   if test -n "$RANLIB_FOR_TARGET"; then
12396   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12397 else
12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12400 do
12401   IFS=$as_save_IFS
12402   test -z "$as_dir" && as_dir=.
12403     for ac_exec_ext in '' $ac_executable_extensions; do
12404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12407     break 2
12408   fi
12409 done
12410   done
12411 IFS=$as_save_IFS
12412
12413 fi
12414 fi
12415 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12416 if test -n "$RANLIB_FOR_TARGET"; then
12417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12418 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12419 else
12420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12422 fi
12423
12424
12425     fi
12426     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12427       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12428 set dummy ${ncn_progname}; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434   if test -n "$RANLIB_FOR_TARGET"; then
12435   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12436 else
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12439 do
12440   IFS=$as_save_IFS
12441   test -z "$as_dir" && as_dir=.
12442     for ac_exec_ext in '' $ac_executable_extensions; do
12443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12446     break 2
12447   fi
12448 done
12449   done
12450 IFS=$as_save_IFS
12451
12452 fi
12453 fi
12454 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12455 if test -n "$RANLIB_FOR_TARGET"; then
12456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12457 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12458 else
12459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460 $as_echo "no" >&6; }
12461 fi
12462
12463
12464     fi
12465     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12466   done
12467 fi
12468
12469 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12470   set dummy ranlib
12471   if test $build = $target ; then
12472     RANLIB_FOR_TARGET="$2"
12473   else
12474     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12475   fi
12476 else
12477   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12478 fi
12479
12480 else
12481   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12482 fi
12483
12484
12485
12486
12487 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12488   if test -n "$with_build_time_tools"; then
12489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12490 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12491     if test -x $with_build_time_tools/strip; then
12492       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12493       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12494       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12495 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12496     else
12497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12499     fi
12500   elif test $build != $host && test $have_gcc_for_target = yes; then
12501     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12502     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12503     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12504   fi
12505 fi
12506 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12507   # Extract the first word of "strip", so it can be a program name with args.
12508 set dummy strip; ac_word=$2
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510 $as_echo_n "checking for $ac_word... " >&6; }
12511 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12512   $as_echo_n "(cached) " >&6
12513 else
12514   case $STRIP_FOR_TARGET in
12515   [\\/]* | ?:[\\/]*)
12516   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12517   ;;
12518   *)
12519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $gcc_cv_tool_dirs
12521 do
12522   IFS=$as_save_IFS
12523   test -z "$as_dir" && as_dir=.
12524     for ac_exec_ext in '' $ac_executable_extensions; do
12525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528     break 2
12529   fi
12530 done
12531   done
12532 IFS=$as_save_IFS
12533
12534   ;;
12535 esac
12536 fi
12537 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12538 if test -n "$STRIP_FOR_TARGET"; then
12539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12540 $as_echo "$STRIP_FOR_TARGET" >&6; }
12541 else
12542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543 $as_echo "no" >&6; }
12544 fi
12545
12546
12547 fi
12548 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12549
12550
12551 if test -n "$STRIP_FOR_TARGET"; then
12552   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12553 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12554   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12555 fi
12556
12557 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12558   for ncn_progname in strip; do
12559     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12560 set dummy ${ncn_progname}; ac_word=$2
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12562 $as_echo_n "checking for $ac_word... " >&6; }
12563 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12564   $as_echo_n "(cached) " >&6
12565 else
12566   if test -n "$STRIP_FOR_TARGET"; then
12567   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12568 else
12569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570 for as_dir in $PATH
12571 do
12572   IFS=$as_save_IFS
12573   test -z "$as_dir" && as_dir=.
12574     for ac_exec_ext in '' $ac_executable_extensions; do
12575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12576     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12578     break 2
12579   fi
12580 done
12581   done
12582 IFS=$as_save_IFS
12583
12584 fi
12585 fi
12586 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12587 if test -n "$STRIP_FOR_TARGET"; then
12588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12589 $as_echo "$STRIP_FOR_TARGET" >&6; }
12590 else
12591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 $as_echo "no" >&6; }
12593 fi
12594
12595
12596   done
12597 fi
12598
12599 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12600   for ncn_progname in strip; do
12601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12602 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12603     if test -x $with_build_time_tools/${ncn_progname}; then
12604       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12606 $as_echo "yes" >&6; }
12607       break
12608     else
12609       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12611     fi
12612   done
12613 fi
12614
12615 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12616   for ncn_progname in strip; do
12617     if test -n "$ncn_target_tool_prefix"; then
12618       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12619 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12623   $as_echo_n "(cached) " >&6
12624 else
12625   if test -n "$STRIP_FOR_TARGET"; then
12626   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12627 else
12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12630 do
12631   IFS=$as_save_IFS
12632   test -z "$as_dir" && as_dir=.
12633     for ac_exec_ext in '' $ac_executable_extensions; do
12634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12635     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637     break 2
12638   fi
12639 done
12640   done
12641 IFS=$as_save_IFS
12642
12643 fi
12644 fi
12645 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12646 if test -n "$STRIP_FOR_TARGET"; then
12647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12648 $as_echo "$STRIP_FOR_TARGET" >&6; }
12649 else
12650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12652 fi
12653
12654
12655     fi
12656     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12657       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12658 set dummy ${ncn_progname}; ac_word=$2
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660 $as_echo_n "checking for $ac_word... " >&6; }
12661 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12662   $as_echo_n "(cached) " >&6
12663 else
12664   if test -n "$STRIP_FOR_TARGET"; then
12665   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12666 else
12667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668 for as_dir in $PATH
12669 do
12670   IFS=$as_save_IFS
12671   test -z "$as_dir" && as_dir=.
12672     for ac_exec_ext in '' $ac_executable_extensions; do
12673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12674     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12676     break 2
12677   fi
12678 done
12679   done
12680 IFS=$as_save_IFS
12681
12682 fi
12683 fi
12684 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12685 if test -n "$STRIP_FOR_TARGET"; then
12686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12687 $as_echo "$STRIP_FOR_TARGET" >&6; }
12688 else
12689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690 $as_echo "no" >&6; }
12691 fi
12692
12693
12694     fi
12695     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12696   done
12697 fi
12698
12699 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12700   set dummy strip
12701   if test $build = $target ; then
12702     STRIP_FOR_TARGET="$2"
12703   else
12704     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12705   fi
12706 else
12707   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12708 fi
12709
12710 else
12711   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12712 fi
12713
12714
12715
12716
12717 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12718   if test -n "$with_build_time_tools"; then
12719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12720 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12721     if test -x $with_build_time_tools/windres; then
12722       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12723       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12724       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12725 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12726     else
12727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728 $as_echo "no" >&6; }
12729     fi
12730   elif test $build != $host && test $have_gcc_for_target = yes; then
12731     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12732     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12733     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12734   fi
12735 fi
12736 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12737   # Extract the first word of "windres", so it can be a program name with args.
12738 set dummy windres; ac_word=$2
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740 $as_echo_n "checking for $ac_word... " >&6; }
12741 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12742   $as_echo_n "(cached) " >&6
12743 else
12744   case $WINDRES_FOR_TARGET in
12745   [\\/]* | ?:[\\/]*)
12746   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12747   ;;
12748   *)
12749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750 for as_dir in $gcc_cv_tool_dirs
12751 do
12752   IFS=$as_save_IFS
12753   test -z "$as_dir" && as_dir=.
12754     for ac_exec_ext in '' $ac_executable_extensions; do
12755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12756     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12758     break 2
12759   fi
12760 done
12761   done
12762 IFS=$as_save_IFS
12763
12764   ;;
12765 esac
12766 fi
12767 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12768 if test -n "$WINDRES_FOR_TARGET"; then
12769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12770 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12771 else
12772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773 $as_echo "no" >&6; }
12774 fi
12775
12776
12777 fi
12778 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12779
12780
12781 if test -n "$WINDRES_FOR_TARGET"; then
12782   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12783 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12784   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12785 fi
12786
12787 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12788   for ncn_progname in windres; do
12789     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12790 set dummy ${ncn_progname}; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   if test -n "$WINDRES_FOR_TARGET"; then
12797   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12798 else
12799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800 for as_dir in $PATH
12801 do
12802   IFS=$as_save_IFS
12803   test -z "$as_dir" && as_dir=.
12804     for ac_exec_ext in '' $ac_executable_extensions; do
12805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12806     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12808     break 2
12809   fi
12810 done
12811   done
12812 IFS=$as_save_IFS
12813
12814 fi
12815 fi
12816 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12817 if test -n "$WINDRES_FOR_TARGET"; then
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12819 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12820 else
12821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12823 fi
12824
12825
12826   done
12827 fi
12828
12829 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12830   for ncn_progname in windres; do
12831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12832 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12833     if test -x $with_build_time_tools/${ncn_progname}; then
12834       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12835       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12836 $as_echo "yes" >&6; }
12837       break
12838     else
12839       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12841     fi
12842   done
12843 fi
12844
12845 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12846   for ncn_progname in windres; do
12847     if test -n "$ncn_target_tool_prefix"; then
12848       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12849 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851 $as_echo_n "checking for $ac_word... " >&6; }
12852 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12853   $as_echo_n "(cached) " >&6
12854 else
12855   if test -n "$WINDRES_FOR_TARGET"; then
12856   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12857 else
12858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859 for as_dir in $PATH
12860 do
12861   IFS=$as_save_IFS
12862   test -z "$as_dir" && as_dir=.
12863     for ac_exec_ext in '' $ac_executable_extensions; do
12864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12865     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12867     break 2
12868   fi
12869 done
12870   done
12871 IFS=$as_save_IFS
12872
12873 fi
12874 fi
12875 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12876 if test -n "$WINDRES_FOR_TARGET"; then
12877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12878 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12879 else
12880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881 $as_echo "no" >&6; }
12882 fi
12883
12884
12885     fi
12886     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12887       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12888 set dummy ${ncn_progname}; ac_word=$2
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890 $as_echo_n "checking for $ac_word... " >&6; }
12891 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12892   $as_echo_n "(cached) " >&6
12893 else
12894   if test -n "$WINDRES_FOR_TARGET"; then
12895   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12896 else
12897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12898 for as_dir in $PATH
12899 do
12900   IFS=$as_save_IFS
12901   test -z "$as_dir" && as_dir=.
12902     for ac_exec_ext in '' $ac_executable_extensions; do
12903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12904     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12906     break 2
12907   fi
12908 done
12909   done
12910 IFS=$as_save_IFS
12911
12912 fi
12913 fi
12914 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12915 if test -n "$WINDRES_FOR_TARGET"; then
12916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12917 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12918 else
12919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12921 fi
12922
12923
12924     fi
12925     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12926   done
12927 fi
12928
12929 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12930   set dummy windres
12931   if test $build = $target ; then
12932     WINDRES_FOR_TARGET="$2"
12933   else
12934     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12935   fi
12936 else
12937   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12938 fi
12939
12940 else
12941   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12942 fi
12943
12944
12945
12946
12947 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12948   if test -n "$with_build_time_tools"; then
12949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12950 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12951     if test -x $with_build_time_tools/windmc; then
12952       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12953       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12955 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12956     else
12957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958 $as_echo "no" >&6; }
12959     fi
12960   elif test $build != $host && test $have_gcc_for_target = yes; then
12961     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12962     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12963     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12964   fi
12965 fi
12966 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12967   # Extract the first word of "windmc", so it can be a program name with args.
12968 set dummy windmc; ac_word=$2
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970 $as_echo_n "checking for $ac_word... " >&6; }
12971 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12972   $as_echo_n "(cached) " >&6
12973 else
12974   case $WINDMC_FOR_TARGET in
12975   [\\/]* | ?:[\\/]*)
12976   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12977   ;;
12978   *)
12979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980 for as_dir in $gcc_cv_tool_dirs
12981 do
12982   IFS=$as_save_IFS
12983   test -z "$as_dir" && as_dir=.
12984     for ac_exec_ext in '' $ac_executable_extensions; do
12985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12986     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12988     break 2
12989   fi
12990 done
12991   done
12992 IFS=$as_save_IFS
12993
12994   ;;
12995 esac
12996 fi
12997 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12998 if test -n "$WINDMC_FOR_TARGET"; then
12999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13000 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13001 else
13002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003 $as_echo "no" >&6; }
13004 fi
13005
13006
13007 fi
13008 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13009
13010
13011 if test -n "$WINDMC_FOR_TARGET"; then
13012   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13013 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13014   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13015 fi
13016
13017 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13018   for ncn_progname in windmc; do
13019     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13020 set dummy ${ncn_progname}; ac_word=$2
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022 $as_echo_n "checking for $ac_word... " >&6; }
13023 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13024   $as_echo_n "(cached) " >&6
13025 else
13026   if test -n "$WINDMC_FOR_TARGET"; then
13027   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13028 else
13029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13030 for as_dir in $PATH
13031 do
13032   IFS=$as_save_IFS
13033   test -z "$as_dir" && as_dir=.
13034     for ac_exec_ext in '' $ac_executable_extensions; do
13035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13036     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13038     break 2
13039   fi
13040 done
13041   done
13042 IFS=$as_save_IFS
13043
13044 fi
13045 fi
13046 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13047 if test -n "$WINDMC_FOR_TARGET"; then
13048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13049 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13050 else
13051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13053 fi
13054
13055
13056   done
13057 fi
13058
13059 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13060   for ncn_progname in windmc; do
13061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13062 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13063     if test -x $with_build_time_tools/${ncn_progname}; then
13064       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13065       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066 $as_echo "yes" >&6; }
13067       break
13068     else
13069       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13071     fi
13072   done
13073 fi
13074
13075 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13076   for ncn_progname in windmc; do
13077     if test -n "$ncn_target_tool_prefix"; then
13078       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13079 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081 $as_echo_n "checking for $ac_word... " >&6; }
13082 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13083   $as_echo_n "(cached) " >&6
13084 else
13085   if test -n "$WINDMC_FOR_TARGET"; then
13086   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13087 else
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13090 do
13091   IFS=$as_save_IFS
13092   test -z "$as_dir" && as_dir=.
13093     for ac_exec_ext in '' $ac_executable_extensions; do
13094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097     break 2
13098   fi
13099 done
13100   done
13101 IFS=$as_save_IFS
13102
13103 fi
13104 fi
13105 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13106 if test -n "$WINDMC_FOR_TARGET"; then
13107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13108 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13109 else
13110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111 $as_echo "no" >&6; }
13112 fi
13113
13114
13115     fi
13116     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13117       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13118 set dummy ${ncn_progname}; ac_word=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120 $as_echo_n "checking for $ac_word... " >&6; }
13121 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13122   $as_echo_n "(cached) " >&6
13123 else
13124   if test -n "$WINDMC_FOR_TARGET"; then
13125   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13126 else
13127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128 for as_dir in $PATH
13129 do
13130   IFS=$as_save_IFS
13131   test -z "$as_dir" && as_dir=.
13132     for ac_exec_ext in '' $ac_executable_extensions; do
13133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13136     break 2
13137   fi
13138 done
13139   done
13140 IFS=$as_save_IFS
13141
13142 fi
13143 fi
13144 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13145 if test -n "$WINDMC_FOR_TARGET"; then
13146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13147 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13148 else
13149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150 $as_echo "no" >&6; }
13151 fi
13152
13153
13154     fi
13155     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13156   done
13157 fi
13158
13159 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13160   set dummy windmc
13161   if test $build = $target ; then
13162     WINDMC_FOR_TARGET="$2"
13163   else
13164     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13165   fi
13166 else
13167   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13168 fi
13169
13170 else
13171   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13172 fi
13173
13174
13175 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13176
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13178 $as_echo_n "checking where to find the target ar... " >&6; }
13179 if test "x${build}" != "x${host}" ; then
13180   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13181     # We already found the complete path
13182     ac_dir=`dirname $AR_FOR_TARGET`
13183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13184 $as_echo "pre-installed in $ac_dir" >&6; }
13185   else
13186     # Canadian cross, just use what we found
13187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13188 $as_echo "pre-installed" >&6; }
13189   fi
13190 else
13191   ok=yes
13192   case " ${configdirs} " in
13193     *" binutils "*) ;;
13194     *) ok=no ;;
13195   esac
13196
13197   if test $ok = yes; then
13198     # An in-tree tool is available and we can use it
13199     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13201 $as_echo "just compiled" >&6; }
13202   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13203     # We already found the complete path
13204     ac_dir=`dirname $AR_FOR_TARGET`
13205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13206 $as_echo "pre-installed in $ac_dir" >&6; }
13207   elif test "x$target" = "x$host"; then
13208     # We can use an host tool
13209     AR_FOR_TARGET='$(AR)'
13210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13211 $as_echo "host tool" >&6; }
13212   else
13213     # We need a cross tool
13214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13215 $as_echo "pre-installed" >&6; }
13216   fi
13217 fi
13218
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13220 $as_echo_n "checking where to find the target as... " >&6; }
13221 if test "x${build}" != "x${host}" ; then
13222   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13223     # We already found the complete path
13224     ac_dir=`dirname $AS_FOR_TARGET`
13225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13226 $as_echo "pre-installed in $ac_dir" >&6; }
13227   else
13228     # Canadian cross, just use what we found
13229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13230 $as_echo "pre-installed" >&6; }
13231   fi
13232 else
13233   ok=yes
13234   case " ${configdirs} " in
13235     *" gas "*) ;;
13236     *) ok=no ;;
13237   esac
13238
13239   if test $ok = yes; then
13240     # An in-tree tool is available and we can use it
13241     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13243 $as_echo "just compiled" >&6; }
13244   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13245     # We already found the complete path
13246     ac_dir=`dirname $AS_FOR_TARGET`
13247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13248 $as_echo "pre-installed in $ac_dir" >&6; }
13249   elif test "x$target" = "x$host"; then
13250     # We can use an host tool
13251     AS_FOR_TARGET='$(AS)'
13252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13253 $as_echo "host tool" >&6; }
13254   else
13255     # We need a cross tool
13256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13257 $as_echo "pre-installed" >&6; }
13258   fi
13259 fi
13260
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13262 $as_echo_n "checking where to find the target cc... " >&6; }
13263 if test "x${build}" != "x${host}" ; then
13264   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13265     # We already found the complete path
13266     ac_dir=`dirname $CC_FOR_TARGET`
13267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13268 $as_echo "pre-installed in $ac_dir" >&6; }
13269   else
13270     # Canadian cross, just use what we found
13271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13272 $as_echo "pre-installed" >&6; }
13273   fi
13274 else
13275   ok=yes
13276   case " ${configdirs} " in
13277     *" gcc "*) ;;
13278     *) ok=no ;;
13279   esac
13280
13281   if test $ok = yes; then
13282     # An in-tree tool is available and we can use it
13283     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13285 $as_echo "just compiled" >&6; }
13286   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13287     # We already found the complete path
13288     ac_dir=`dirname $CC_FOR_TARGET`
13289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13290 $as_echo "pre-installed in $ac_dir" >&6; }
13291   elif test "x$target" = "x$host"; then
13292     # We can use an host tool
13293     CC_FOR_TARGET='$(CC)'
13294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13295 $as_echo "host tool" >&6; }
13296   else
13297     # We need a cross tool
13298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13299 $as_echo "pre-installed" >&6; }
13300   fi
13301 fi
13302
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13304 $as_echo_n "checking where to find the target c++... " >&6; }
13305 if test "x${build}" != "x${host}" ; then
13306   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13307     # We already found the complete path
13308     ac_dir=`dirname $CXX_FOR_TARGET`
13309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13310 $as_echo "pre-installed in $ac_dir" >&6; }
13311   else
13312     # Canadian cross, just use what we found
13313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13314 $as_echo "pre-installed" >&6; }
13315   fi
13316 else
13317   ok=yes
13318   case " ${configdirs} " in
13319     *" gcc "*) ;;
13320     *) ok=no ;;
13321   esac
13322   case ,${enable_languages}, in
13323     *,c++,*) ;;
13324     *) ok=no ;;
13325   esac
13326   if test $ok = yes; then
13327     # An in-tree tool is available and we can use it
13328     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13330 $as_echo "just compiled" >&6; }
13331   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13332     # We already found the complete path
13333     ac_dir=`dirname $CXX_FOR_TARGET`
13334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13335 $as_echo "pre-installed in $ac_dir" >&6; }
13336   elif test "x$target" = "x$host"; then
13337     # We can use an host tool
13338     CXX_FOR_TARGET='$(CXX)'
13339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13340 $as_echo "host tool" >&6; }
13341   else
13342     # We need a cross tool
13343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13344 $as_echo "pre-installed" >&6; }
13345   fi
13346 fi
13347
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13349 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13350 if test "x${build}" != "x${host}" ; then
13351   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13352     # We already found the complete path
13353     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13355 $as_echo "pre-installed in $ac_dir" >&6; }
13356   else
13357     # Canadian cross, just use what we found
13358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13359 $as_echo "pre-installed" >&6; }
13360   fi
13361 else
13362   ok=yes
13363   case " ${configdirs} " in
13364     *" gcc "*) ;;
13365     *) ok=no ;;
13366   esac
13367   case ,${enable_languages}, in
13368     *,c++,*) ;;
13369     *) ok=no ;;
13370   esac
13371   if test $ok = yes; then
13372     # An in-tree tool is available and we can use it
13373     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'
13374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13375 $as_echo "just compiled" >&6; }
13376   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13377     # We already found the complete path
13378     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13380 $as_echo "pre-installed in $ac_dir" >&6; }
13381   elif test "x$target" = "x$host"; then
13382     # We can use an host tool
13383     RAW_CXX_FOR_TARGET='$(CXX)'
13384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13385 $as_echo "host tool" >&6; }
13386   else
13387     # We need a cross tool
13388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13389 $as_echo "pre-installed" >&6; }
13390   fi
13391 fi
13392
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13394 $as_echo_n "checking where to find the target dlltool... " >&6; }
13395 if test "x${build}" != "x${host}" ; then
13396   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13397     # We already found the complete path
13398     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13400 $as_echo "pre-installed in $ac_dir" >&6; }
13401   else
13402     # Canadian cross, just use what we found
13403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13404 $as_echo "pre-installed" >&6; }
13405   fi
13406 else
13407   ok=yes
13408   case " ${configdirs} " in
13409     *" binutils "*) ;;
13410     *) ok=no ;;
13411   esac
13412
13413   if test $ok = yes; then
13414     # An in-tree tool is available and we can use it
13415     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13417 $as_echo "just compiled" >&6; }
13418   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13419     # We already found the complete path
13420     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13422 $as_echo "pre-installed in $ac_dir" >&6; }
13423   elif test "x$target" = "x$host"; then
13424     # We can use an host tool
13425     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13427 $as_echo "host tool" >&6; }
13428   else
13429     # We need a cross tool
13430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13431 $as_echo "pre-installed" >&6; }
13432   fi
13433 fi
13434
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13436 $as_echo_n "checking where to find the target gcc... " >&6; }
13437 if test "x${build}" != "x${host}" ; then
13438   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13439     # We already found the complete path
13440     ac_dir=`dirname $GCC_FOR_TARGET`
13441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13442 $as_echo "pre-installed in $ac_dir" >&6; }
13443   else
13444     # Canadian cross, just use what we found
13445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13446 $as_echo "pre-installed" >&6; }
13447   fi
13448 else
13449   ok=yes
13450   case " ${configdirs} " in
13451     *" gcc "*) ;;
13452     *) ok=no ;;
13453   esac
13454
13455   if test $ok = yes; then
13456     # An in-tree tool is available and we can use it
13457     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13459 $as_echo "just compiled" >&6; }
13460   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13461     # We already found the complete path
13462     ac_dir=`dirname $GCC_FOR_TARGET`
13463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13464 $as_echo "pre-installed in $ac_dir" >&6; }
13465   elif test "x$target" = "x$host"; then
13466     # We can use an host tool
13467     GCC_FOR_TARGET='$()'
13468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13469 $as_echo "host tool" >&6; }
13470   else
13471     # We need a cross tool
13472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13473 $as_echo "pre-installed" >&6; }
13474   fi
13475 fi
13476
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13478 $as_echo_n "checking where to find the target gcj... " >&6; }
13479 if test "x${build}" != "x${host}" ; then
13480   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13481     # We already found the complete path
13482     ac_dir=`dirname $GCJ_FOR_TARGET`
13483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13484 $as_echo "pre-installed in $ac_dir" >&6; }
13485   else
13486     # Canadian cross, just use what we found
13487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13488 $as_echo "pre-installed" >&6; }
13489   fi
13490 else
13491   ok=yes
13492   case " ${configdirs} " in
13493     *" gcc "*) ;;
13494     *) ok=no ;;
13495   esac
13496   case ,${enable_languages}, in
13497     *,java,*) ;;
13498     *) ok=no ;;
13499   esac
13500   if test $ok = yes; then
13501     # An in-tree tool is available and we can use it
13502     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13504 $as_echo "just compiled" >&6; }
13505   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13506     # We already found the complete path
13507     ac_dir=`dirname $GCJ_FOR_TARGET`
13508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13509 $as_echo "pre-installed in $ac_dir" >&6; }
13510   elif test "x$target" = "x$host"; then
13511     # We can use an host tool
13512     GCJ_FOR_TARGET='$(GCJ)'
13513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13514 $as_echo "host tool" >&6; }
13515   else
13516     # We need a cross tool
13517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13518 $as_echo "pre-installed" >&6; }
13519   fi
13520 fi
13521
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13523 $as_echo_n "checking where to find the target gfortran... " >&6; }
13524 if test "x${build}" != "x${host}" ; then
13525   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13526     # We already found the complete path
13527     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13529 $as_echo "pre-installed in $ac_dir" >&6; }
13530   else
13531     # Canadian cross, just use what we found
13532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13533 $as_echo "pre-installed" >&6; }
13534   fi
13535 else
13536   ok=yes
13537   case " ${configdirs} " in
13538     *" gcc "*) ;;
13539     *) ok=no ;;
13540   esac
13541   case ,${enable_languages}, in
13542     *,fortran,*) ;;
13543     *) ok=no ;;
13544   esac
13545   if test $ok = yes; then
13546     # An in-tree tool is available and we can use it
13547     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13549 $as_echo "just compiled" >&6; }
13550   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13551     # We already found the complete path
13552     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13554 $as_echo "pre-installed in $ac_dir" >&6; }
13555   elif test "x$target" = "x$host"; then
13556     # We can use an host tool
13557     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13559 $as_echo "host tool" >&6; }
13560   else
13561     # We need a cross tool
13562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13563 $as_echo "pre-installed" >&6; }
13564   fi
13565 fi
13566
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13568 $as_echo_n "checking where to find the target gccgo... " >&6; }
13569 if test "x${build}" != "x${host}" ; then
13570   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13571     # We already found the complete path
13572     ac_dir=`dirname $GOC_FOR_TARGET`
13573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13574 $as_echo "pre-installed in $ac_dir" >&6; }
13575   else
13576     # Canadian cross, just use what we found
13577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13578 $as_echo "pre-installed" >&6; }
13579   fi
13580 else
13581   ok=yes
13582   case " ${configdirs} " in
13583     *" gcc "*) ;;
13584     *) ok=no ;;
13585   esac
13586   case ,${enable_languages}, in
13587     *,go,*) ;;
13588     *) ok=no ;;
13589   esac
13590   if test $ok = yes; then
13591     # An in-tree tool is available and we can use it
13592     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13594 $as_echo "just compiled" >&6; }
13595   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13596     # We already found the complete path
13597     ac_dir=`dirname $GOC_FOR_TARGET`
13598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13599 $as_echo "pre-installed in $ac_dir" >&6; }
13600   elif test "x$target" = "x$host"; then
13601     # We can use an host tool
13602     GOC_FOR_TARGET='$(GOC)'
13603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13604 $as_echo "host tool" >&6; }
13605   else
13606     # We need a cross tool
13607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13608 $as_echo "pre-installed" >&6; }
13609   fi
13610 fi
13611
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13613 $as_echo_n "checking where to find the target ld... " >&6; }
13614 if test "x${build}" != "x${host}" ; then
13615   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13616     # We already found the complete path
13617     ac_dir=`dirname $LD_FOR_TARGET`
13618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13619 $as_echo "pre-installed in $ac_dir" >&6; }
13620   else
13621     # Canadian cross, just use what we found
13622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13623 $as_echo "pre-installed" >&6; }
13624   fi
13625 else
13626   ok=yes
13627   case " ${configdirs} " in
13628     *" ld "*) ;;
13629     *) ok=no ;;
13630   esac
13631
13632   if test $ok = yes; then
13633     # An in-tree tool is available and we can use it
13634     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13636 $as_echo "just compiled" >&6; }
13637   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13638     # We already found the complete path
13639     ac_dir=`dirname $LD_FOR_TARGET`
13640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13641 $as_echo "pre-installed in $ac_dir" >&6; }
13642   elif test "x$target" = "x$host"; then
13643     # We can use an host tool
13644     LD_FOR_TARGET='$(LD)'
13645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13646 $as_echo "host tool" >&6; }
13647   else
13648     # We need a cross tool
13649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13650 $as_echo "pre-installed" >&6; }
13651   fi
13652 fi
13653
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13655 $as_echo_n "checking where to find the target lipo... " >&6; }
13656 if test "x${build}" != "x${host}" ; then
13657   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13658     # We already found the complete path
13659     ac_dir=`dirname $LIPO_FOR_TARGET`
13660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13661 $as_echo "pre-installed in $ac_dir" >&6; }
13662   else
13663     # Canadian cross, just use what we found
13664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13665 $as_echo "pre-installed" >&6; }
13666   fi
13667 else
13668   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13669     # We already found the complete path
13670     ac_dir=`dirname $LIPO_FOR_TARGET`
13671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13672 $as_echo "pre-installed in $ac_dir" >&6; }
13673   elif test "x$target" = "x$host"; then
13674     # We can use an host tool
13675     LIPO_FOR_TARGET='$(LIPO)'
13676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13677 $as_echo "host tool" >&6; }
13678   else
13679     # We need a cross tool
13680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13681 $as_echo "pre-installed" >&6; }
13682   fi
13683 fi
13684
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13686 $as_echo_n "checking where to find the target nm... " >&6; }
13687 if test "x${build}" != "x${host}" ; then
13688   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13689     # We already found the complete path
13690     ac_dir=`dirname $NM_FOR_TARGET`
13691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13692 $as_echo "pre-installed in $ac_dir" >&6; }
13693   else
13694     # Canadian cross, just use what we found
13695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13696 $as_echo "pre-installed" >&6; }
13697   fi
13698 else
13699   ok=yes
13700   case " ${configdirs} " in
13701     *" binutils "*) ;;
13702     *) ok=no ;;
13703   esac
13704
13705   if test $ok = yes; then
13706     # An in-tree tool is available and we can use it
13707     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13709 $as_echo "just compiled" >&6; }
13710   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13711     # We already found the complete path
13712     ac_dir=`dirname $NM_FOR_TARGET`
13713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13714 $as_echo "pre-installed in $ac_dir" >&6; }
13715   elif test "x$target" = "x$host"; then
13716     # We can use an host tool
13717     NM_FOR_TARGET='$(NM)'
13718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13719 $as_echo "host tool" >&6; }
13720   else
13721     # We need a cross tool
13722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13723 $as_echo "pre-installed" >&6; }
13724   fi
13725 fi
13726
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13728 $as_echo_n "checking where to find the target objdump... " >&6; }
13729 if test "x${build}" != "x${host}" ; then
13730   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13731     # We already found the complete path
13732     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13734 $as_echo "pre-installed in $ac_dir" >&6; }
13735   else
13736     # Canadian cross, just use what we found
13737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13738 $as_echo "pre-installed" >&6; }
13739   fi
13740 else
13741   ok=yes
13742   case " ${configdirs} " in
13743     *" binutils "*) ;;
13744     *) ok=no ;;
13745   esac
13746
13747   if test $ok = yes; then
13748     # An in-tree tool is available and we can use it
13749     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13751 $as_echo "just compiled" >&6; }
13752   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13753     # We already found the complete path
13754     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13756 $as_echo "pre-installed in $ac_dir" >&6; }
13757   elif test "x$target" = "x$host"; then
13758     # We can use an host tool
13759     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13761 $as_echo "host tool" >&6; }
13762   else
13763     # We need a cross tool
13764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13765 $as_echo "pre-installed" >&6; }
13766   fi
13767 fi
13768
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13770 $as_echo_n "checking where to find the target ranlib... " >&6; }
13771 if test "x${build}" != "x${host}" ; then
13772   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13773     # We already found the complete path
13774     ac_dir=`dirname $RANLIB_FOR_TARGET`
13775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13776 $as_echo "pre-installed in $ac_dir" >&6; }
13777   else
13778     # Canadian cross, just use what we found
13779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13780 $as_echo "pre-installed" >&6; }
13781   fi
13782 else
13783   ok=yes
13784   case " ${configdirs} " in
13785     *" binutils "*) ;;
13786     *) ok=no ;;
13787   esac
13788
13789   if test $ok = yes; then
13790     # An in-tree tool is available and we can use it
13791     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13793 $as_echo "just compiled" >&6; }
13794   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13795     # We already found the complete path
13796     ac_dir=`dirname $RANLIB_FOR_TARGET`
13797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798 $as_echo "pre-installed in $ac_dir" >&6; }
13799   elif test "x$target" = "x$host"; then
13800     # We can use an host tool
13801     RANLIB_FOR_TARGET='$(RANLIB)'
13802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13803 $as_echo "host tool" >&6; }
13804   else
13805     # We need a cross tool
13806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13807 $as_echo "pre-installed" >&6; }
13808   fi
13809 fi
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13812 $as_echo_n "checking where to find the target strip... " >&6; }
13813 if test "x${build}" != "x${host}" ; then
13814   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13815     # We already found the complete path
13816     ac_dir=`dirname $STRIP_FOR_TARGET`
13817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13818 $as_echo "pre-installed in $ac_dir" >&6; }
13819   else
13820     # Canadian cross, just use what we found
13821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13822 $as_echo "pre-installed" >&6; }
13823   fi
13824 else
13825   ok=yes
13826   case " ${configdirs} " in
13827     *" binutils "*) ;;
13828     *) ok=no ;;
13829   esac
13830
13831   if test $ok = yes; then
13832     # An in-tree tool is available and we can use it
13833     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13835 $as_echo "just compiled" >&6; }
13836   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13837     # We already found the complete path
13838     ac_dir=`dirname $STRIP_FOR_TARGET`
13839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13840 $as_echo "pre-installed in $ac_dir" >&6; }
13841   elif test "x$target" = "x$host"; then
13842     # We can use an host tool
13843     STRIP_FOR_TARGET='$(STRIP)'
13844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13845 $as_echo "host tool" >&6; }
13846   else
13847     # We need a cross tool
13848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13849 $as_echo "pre-installed" >&6; }
13850   fi
13851 fi
13852
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13854 $as_echo_n "checking where to find the target windres... " >&6; }
13855 if test "x${build}" != "x${host}" ; then
13856   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13857     # We already found the complete path
13858     ac_dir=`dirname $WINDRES_FOR_TARGET`
13859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13860 $as_echo "pre-installed in $ac_dir" >&6; }
13861   else
13862     # Canadian cross, just use what we found
13863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864 $as_echo "pre-installed" >&6; }
13865   fi
13866 else
13867   ok=yes
13868   case " ${configdirs} " in
13869     *" binutils "*) ;;
13870     *) ok=no ;;
13871   esac
13872
13873   if test $ok = yes; then
13874     # An in-tree tool is available and we can use it
13875     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13876     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13877 $as_echo "just compiled" >&6; }
13878   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13879     # We already found the complete path
13880     ac_dir=`dirname $WINDRES_FOR_TARGET`
13881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13882 $as_echo "pre-installed in $ac_dir" >&6; }
13883   elif test "x$target" = "x$host"; then
13884     # We can use an host tool
13885     WINDRES_FOR_TARGET='$(WINDRES)'
13886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13887 $as_echo "host tool" >&6; }
13888   else
13889     # We need a cross tool
13890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13891 $as_echo "pre-installed" >&6; }
13892   fi
13893 fi
13894
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13896 $as_echo_n "checking where to find the target windmc... " >&6; }
13897 if test "x${build}" != "x${host}" ; then
13898   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13899     # We already found the complete path
13900     ac_dir=`dirname $WINDMC_FOR_TARGET`
13901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13902 $as_echo "pre-installed in $ac_dir" >&6; }
13903   else
13904     # Canadian cross, just use what we found
13905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13906 $as_echo "pre-installed" >&6; }
13907   fi
13908 else
13909   ok=yes
13910   case " ${configdirs} " in
13911     *" binutils "*) ;;
13912     *) ok=no ;;
13913   esac
13914
13915   if test $ok = yes; then
13916     # An in-tree tool is available and we can use it
13917     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13919 $as_echo "just compiled" >&6; }
13920   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13921     # We already found the complete path
13922     ac_dir=`dirname $WINDMC_FOR_TARGET`
13923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13924 $as_echo "pre-installed in $ac_dir" >&6; }
13925   elif test "x$target" = "x$host"; then
13926     # We can use an host tool
13927     WINDMC_FOR_TARGET='$(WINDMC)'
13928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13929 $as_echo "host tool" >&6; }
13930   else
13931     # We need a cross tool
13932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13933 $as_echo "pre-installed" >&6; }
13934   fi
13935 fi
13936
13937
13938
13939
13940
13941 # Certain tools may need extra flags.
13942 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13943 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13944 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13945
13946 # When building target libraries, except in a Canadian cross, we use
13947 # the same toolchain as the compiler we just built.
13948 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13949 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13950 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13951 if test $host = $build; then
13952   case " $configdirs " in
13953     *" gcc "*)
13954       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13955       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13956       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13957       ;;
13958   esac
13959 fi
13960
13961
13962
13963
13964
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13966 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13967 # Check whether --enable-maintainer-mode was given.
13968 if test "${enable_maintainer_mode+set}" = set; then :
13969   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13970 else
13971   USE_MAINTAINER_MODE=no
13972 fi
13973
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13975 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13976
13977
13978 if test "$USE_MAINTAINER_MODE" = yes; then
13979   MAINTAINER_MODE_TRUE=
13980   MAINTAINER_MODE_FALSE='#'
13981 else
13982   MAINTAINER_MODE_TRUE='#'
13983   MAINTAINER_MODE_FALSE=
13984 fi
13985 MAINT=$MAINTAINER_MODE_TRUE
13986
13987 # ---------------------
13988 # GCC bootstrap support
13989 # ---------------------
13990
13991 # Stage specific cflags for build.
13992 stage1_cflags="-g"
13993 case $build in
13994   vax-*-*)
13995     case ${GCC} in
13996       yes) stage1_cflags="-g -Wa,-J" ;;
13997       *) stage1_cflags="-g -J" ;;
13998     esac ;;
13999 esac
14000
14001 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14002 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14003   saved_CFLAGS="$CFLAGS"
14004
14005   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14006   CFLAGS="$CFLAGS -fkeep-inline-functions"
14007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14008 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h.  */
14011
14012 #if (__GNUC__ < 3) \
14013     || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14014                           || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14015 #error http://gcc.gnu.org/PR29382
14016 #endif
14017
14018 int
14019 main ()
14020 {
14021
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14028 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14029 else
14030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031 $as_echo "no" >&6; }
14032 fi
14033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034
14035   CFLAGS="$saved_CFLAGS"
14036 fi
14037
14038
14039
14040 # Enable --enable-checking in stage1 of the compiler.
14041 # Check whether --enable-stage1-checking was given.
14042 if test "${enable_stage1_checking+set}" = set; then :
14043   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14044 else
14045   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14046   stage1_checking=--enable-checking=yes,types
14047 else
14048   stage1_checking=--enable-checking=$enable_checking,types
14049 fi
14050 fi
14051
14052
14053
14054 # Enable -Werror in bootstrap stage2 and later.
14055 # Check whether --enable-werror was given.
14056 if test "${enable_werror+set}" = set; then :
14057   enableval=$enable_werror;
14058 else
14059   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14060   enable_werror=yes
14061 else
14062   enable_werror=no
14063 fi
14064 fi
14065
14066 case ${enable_werror} in
14067   yes) stage2_werror_flag="--enable-werror-always" ;;
14068   *) stage2_werror_flag="" ;;
14069 esac
14070
14071
14072 # Specify what files to not compare during bootstrap.
14073
14074 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14075 case "$target" in
14076   hppa*64*-*-hpux*) ;;
14077   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14078 esac
14079 case " $configdirs " in
14080 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14081 esac
14082
14083
14084 ac_config_files="$ac_config_files Makefile"
14085
14086 cat >confcache <<\_ACEOF
14087 # This file is a shell script that caches the results of configure
14088 # tests run on this system so they can be shared between configure
14089 # scripts and configure runs, see configure's option --config-cache.
14090 # It is not useful on other systems.  If it contains results you don't
14091 # want to keep, you may remove or edit it.
14092 #
14093 # config.status only pays attention to the cache file if you give it
14094 # the --recheck option to rerun configure.
14095 #
14096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14098 # following values.
14099
14100 _ACEOF
14101
14102 # The following way of writing the cache mishandles newlines in values,
14103 # but we know of no workaround that is simple, portable, and efficient.
14104 # So, we kill variables containing newlines.
14105 # Ultrix sh set writes to stderr and can't be redirected directly,
14106 # and sets the high bit in the cache file unless we assign to the vars.
14107 (
14108   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14109     eval ac_val=\$$ac_var
14110     case $ac_val in #(
14111     *${as_nl}*)
14112       case $ac_var in #(
14113       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14114 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14115       esac
14116       case $ac_var in #(
14117       _ | IFS | as_nl) ;; #(
14118       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14119       *) { eval $ac_var=; unset $ac_var;} ;;
14120       esac ;;
14121     esac
14122   done
14123
14124   (set) 2>&1 |
14125     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14126     *${as_nl}ac_space=\ *)
14127       # `set' does not quote correctly, so add quotes: double-quote
14128       # substitution turns \\\\ into \\, and sed turns \\ into \.
14129       sed -n \
14130         "s/'/'\\\\''/g;
14131           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14132       ;; #(
14133     *)
14134       # `set' quotes correctly as required by POSIX, so do not add quotes.
14135       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14136       ;;
14137     esac |
14138     sort
14139 ) |
14140   sed '
14141      /^ac_cv_env_/b end
14142      t clear
14143      :clear
14144      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14145      t end
14146      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14147      :end' >>confcache
14148 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14149   if test -w "$cache_file"; then
14150     test "x$cache_file" != "x/dev/null" &&
14151       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14152 $as_echo "$as_me: updating cache $cache_file" >&6;}
14153     cat confcache >$cache_file
14154   else
14155     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14156 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14157   fi
14158 fi
14159 rm -f confcache
14160
14161 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14162 # Let make expand exec_prefix.
14163 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14164
14165 # Transform confdefs.h into DEFS.
14166 # Protect against shell expansion while executing Makefile rules.
14167 # Protect against Makefile macro expansion.
14168 #
14169 # If the first sed substitution is executed (which looks for macros that
14170 # take arguments), then branch to the quote section.  Otherwise,
14171 # look for a macro that doesn't take arguments.
14172 ac_script='
14173 :mline
14174 /\\$/{
14175  N
14176  s,\\\n,,
14177  b mline
14178 }
14179 t clear
14180 :clear
14181 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14182 t quote
14183 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14184 t quote
14185 b any
14186 :quote
14187 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14188 s/\[/\\&/g
14189 s/\]/\\&/g
14190 s/\$/$$/g
14191 H
14192 :any
14193 ${
14194         g
14195         s/^\n//
14196         s/\n/ /g
14197         p
14198 }
14199 '
14200 DEFS=`sed -n "$ac_script" confdefs.h`
14201
14202
14203 ac_libobjs=
14204 ac_ltlibobjs=
14205 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14206   # 1. Remove the extension, and $U if already installed.
14207   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14208   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14209   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14210   #    will be set to the directory where LIBOBJS objects are built.
14211   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14212   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14213 done
14214 LIBOBJS=$ac_libobjs
14215
14216 LTLIBOBJS=$ac_ltlibobjs
14217
14218
14219
14220 : ${CONFIG_STATUS=./config.status}
14221 ac_write_fail=0
14222 ac_clean_files_save=$ac_clean_files
14223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14225 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14226 as_write_fail=0
14227 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14228 #! $SHELL
14229 # Generated by $as_me.
14230 # Run this file to recreate the current configuration.
14231 # Compiler output produced by configure, useful for debugging
14232 # configure, is in config.log if it exists.
14233
14234 debug=false
14235 ac_cs_recheck=false
14236 ac_cs_silent=false
14237
14238 SHELL=\${CONFIG_SHELL-$SHELL}
14239 export SHELL
14240 _ASEOF
14241 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14242 ## -------------------- ##
14243 ## M4sh Initialization. ##
14244 ## -------------------- ##
14245
14246 # Be more Bourne compatible
14247 DUALCASE=1; export DUALCASE # for MKS sh
14248 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14249   emulate sh
14250   NULLCMD=:
14251   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14252   # is contrary to our usage.  Disable this feature.
14253   alias -g '${1+"$@"}'='"$@"'
14254   setopt NO_GLOB_SUBST
14255 else
14256   case `(set -o) 2>/dev/null` in #(
14257   *posix*) :
14258     set -o posix ;; #(
14259   *) :
14260      ;;
14261 esac
14262 fi
14263
14264
14265 as_nl='
14266 '
14267 export as_nl
14268 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14269 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14270 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14271 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14272 # Prefer a ksh shell builtin over an external printf program on Solaris,
14273 # but without wasting forks for bash or zsh.
14274 if test -z "$BASH_VERSION$ZSH_VERSION" \
14275     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14276   as_echo='print -r --'
14277   as_echo_n='print -rn --'
14278 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14279   as_echo='printf %s\n'
14280   as_echo_n='printf %s'
14281 else
14282   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14283     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14284     as_echo_n='/usr/ucb/echo -n'
14285   else
14286     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14287     as_echo_n_body='eval
14288       arg=$1;
14289       case $arg in #(
14290       *"$as_nl"*)
14291         expr "X$arg" : "X\\(.*\\)$as_nl";
14292         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14293       esac;
14294       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14295     '
14296     export as_echo_n_body
14297     as_echo_n='sh -c $as_echo_n_body as_echo'
14298   fi
14299   export as_echo_body
14300   as_echo='sh -c $as_echo_body as_echo'
14301 fi
14302
14303 # The user is always right.
14304 if test "${PATH_SEPARATOR+set}" != set; then
14305   PATH_SEPARATOR=:
14306   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14307     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14308       PATH_SEPARATOR=';'
14309   }
14310 fi
14311
14312
14313 # IFS
14314 # We need space, tab and new line, in precisely that order.  Quoting is
14315 # there to prevent editors from complaining about space-tab.
14316 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14317 # splitting by setting IFS to empty value.)
14318 IFS=" ""        $as_nl"
14319
14320 # Find who we are.  Look in the path if we contain no directory separator.
14321 case $0 in #((
14322   *[\\/]* ) as_myself=$0 ;;
14323   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14325 do
14326   IFS=$as_save_IFS
14327   test -z "$as_dir" && as_dir=.
14328     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14329   done
14330 IFS=$as_save_IFS
14331
14332      ;;
14333 esac
14334 # We did not find ourselves, most probably we were run as `sh COMMAND'
14335 # in which case we are not to be found in the path.
14336 if test "x$as_myself" = x; then
14337   as_myself=$0
14338 fi
14339 if test ! -f "$as_myself"; then
14340   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14341   exit 1
14342 fi
14343
14344 # Unset variables that we do not need and which cause bugs (e.g. in
14345 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14346 # suppresses any "Segmentation fault" message there.  '((' could
14347 # trigger a bug in pdksh 5.2.14.
14348 for as_var in BASH_ENV ENV MAIL MAILPATH
14349 do eval test x\${$as_var+set} = xset \
14350   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14351 done
14352 PS1='$ '
14353 PS2='> '
14354 PS4='+ '
14355
14356 # NLS nuisances.
14357 LC_ALL=C
14358 export LC_ALL
14359 LANGUAGE=C
14360 export LANGUAGE
14361
14362 # CDPATH.
14363 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14364
14365
14366 # as_fn_error ERROR [LINENO LOG_FD]
14367 # ---------------------------------
14368 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14369 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14370 # script with status $?, using 1 if that was 0.
14371 as_fn_error ()
14372 {
14373   as_status=$?; test $as_status -eq 0 && as_status=1
14374   if test "$3"; then
14375     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14376     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14377   fi
14378   $as_echo "$as_me: error: $1" >&2
14379   as_fn_exit $as_status
14380 } # as_fn_error
14381
14382
14383 # as_fn_set_status STATUS
14384 # -----------------------
14385 # Set $? to STATUS, without forking.
14386 as_fn_set_status ()
14387 {
14388   return $1
14389 } # as_fn_set_status
14390
14391 # as_fn_exit STATUS
14392 # -----------------
14393 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14394 as_fn_exit ()
14395 {
14396   set +e
14397   as_fn_set_status $1
14398   exit $1
14399 } # as_fn_exit
14400
14401 # as_fn_unset VAR
14402 # ---------------
14403 # Portably unset VAR.
14404 as_fn_unset ()
14405 {
14406   { eval $1=; unset $1;}
14407 }
14408 as_unset=as_fn_unset
14409 # as_fn_append VAR VALUE
14410 # ----------------------
14411 # Append the text in VALUE to the end of the definition contained in VAR. Take
14412 # advantage of any shell optimizations that allow amortized linear growth over
14413 # repeated appends, instead of the typical quadratic growth present in naive
14414 # implementations.
14415 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14416   eval 'as_fn_append ()
14417   {
14418     eval $1+=\$2
14419   }'
14420 else
14421   as_fn_append ()
14422   {
14423     eval $1=\$$1\$2
14424   }
14425 fi # as_fn_append
14426
14427 # as_fn_arith ARG...
14428 # ------------------
14429 # Perform arithmetic evaluation on the ARGs, and store the result in the
14430 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14431 # must be portable across $(()) and expr.
14432 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14433   eval 'as_fn_arith ()
14434   {
14435     as_val=$(( $* ))
14436   }'
14437 else
14438   as_fn_arith ()
14439   {
14440     as_val=`expr "$@" || test $? -eq 1`
14441   }
14442 fi # as_fn_arith
14443
14444
14445 if expr a : '\(a\)' >/dev/null 2>&1 &&
14446    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14447   as_expr=expr
14448 else
14449   as_expr=false
14450 fi
14451
14452 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14453   as_basename=basename
14454 else
14455   as_basename=false
14456 fi
14457
14458 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14459   as_dirname=dirname
14460 else
14461   as_dirname=false
14462 fi
14463
14464 as_me=`$as_basename -- "$0" ||
14465 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14466          X"$0" : 'X\(//\)$' \| \
14467          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14468 $as_echo X/"$0" |
14469     sed '/^.*\/\([^/][^/]*\)\/*$/{
14470             s//\1/
14471             q
14472           }
14473           /^X\/\(\/\/\)$/{
14474             s//\1/
14475             q
14476           }
14477           /^X\/\(\/\).*/{
14478             s//\1/
14479             q
14480           }
14481           s/.*/./; q'`
14482
14483 # Avoid depending upon Character Ranges.
14484 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14485 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14486 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14487 as_cr_digits='0123456789'
14488 as_cr_alnum=$as_cr_Letters$as_cr_digits
14489
14490 ECHO_C= ECHO_N= ECHO_T=
14491 case `echo -n x` in #(((((
14492 -n*)
14493   case `echo 'xy\c'` in
14494   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14495   xy)  ECHO_C='\c';;
14496   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14497        ECHO_T=' ';;
14498   esac;;
14499 *)
14500   ECHO_N='-n';;
14501 esac
14502
14503 rm -f conf$$ conf$$.exe conf$$.file
14504 if test -d conf$$.dir; then
14505   rm -f conf$$.dir/conf$$.file
14506 else
14507   rm -f conf$$.dir
14508   mkdir conf$$.dir 2>/dev/null
14509 fi
14510 if (echo >conf$$.file) 2>/dev/null; then
14511   if ln -s conf$$.file conf$$ 2>/dev/null; then
14512     as_ln_s='ln -s'
14513     # ... but there are two gotchas:
14514     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14515     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14516     # In both cases, we have to default to `cp -p'.
14517     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14518       as_ln_s='cp -p'
14519   elif ln conf$$.file conf$$ 2>/dev/null; then
14520     as_ln_s=ln
14521   else
14522     as_ln_s='cp -p'
14523   fi
14524 else
14525   as_ln_s='cp -p'
14526 fi
14527 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14528 rmdir conf$$.dir 2>/dev/null
14529
14530
14531 # as_fn_mkdir_p
14532 # -------------
14533 # Create "$as_dir" as a directory, including parents if necessary.
14534 as_fn_mkdir_p ()
14535 {
14536
14537   case $as_dir in #(
14538   -*) as_dir=./$as_dir;;
14539   esac
14540   test -d "$as_dir" || eval $as_mkdir_p || {
14541     as_dirs=
14542     while :; do
14543       case $as_dir in #(
14544       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14545       *) as_qdir=$as_dir;;
14546       esac
14547       as_dirs="'$as_qdir' $as_dirs"
14548       as_dir=`$as_dirname -- "$as_dir" ||
14549 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14550          X"$as_dir" : 'X\(//\)[^/]' \| \
14551          X"$as_dir" : 'X\(//\)$' \| \
14552          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14553 $as_echo X"$as_dir" |
14554     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14555             s//\1/
14556             q
14557           }
14558           /^X\(\/\/\)[^/].*/{
14559             s//\1/
14560             q
14561           }
14562           /^X\(\/\/\)$/{
14563             s//\1/
14564             q
14565           }
14566           /^X\(\/\).*/{
14567             s//\1/
14568             q
14569           }
14570           s/.*/./; q'`
14571       test -d "$as_dir" && break
14572     done
14573     test -z "$as_dirs" || eval "mkdir $as_dirs"
14574   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14575
14576
14577 } # as_fn_mkdir_p
14578 if mkdir -p . 2>/dev/null; then
14579   as_mkdir_p='mkdir -p "$as_dir"'
14580 else
14581   test -d ./-p && rmdir ./-p
14582   as_mkdir_p=false
14583 fi
14584
14585 if test -x / >/dev/null 2>&1; then
14586   as_test_x='test -x'
14587 else
14588   if ls -dL / >/dev/null 2>&1; then
14589     as_ls_L_option=L
14590   else
14591     as_ls_L_option=
14592   fi
14593   as_test_x='
14594     eval sh -c '\''
14595       if test -d "$1"; then
14596         test -d "$1/.";
14597       else
14598         case $1 in #(
14599         -*)set "./$1";;
14600         esac;
14601         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14602         ???[sx]*):;;*)false;;esac;fi
14603     '\'' sh
14604   '
14605 fi
14606 as_executable_p=$as_test_x
14607
14608 # Sed expression to map a string onto a valid CPP name.
14609 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14610
14611 # Sed expression to map a string onto a valid variable name.
14612 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14613
14614
14615 exec 6>&1
14616 ## ----------------------------------- ##
14617 ## Main body of $CONFIG_STATUS script. ##
14618 ## ----------------------------------- ##
14619 _ASEOF
14620 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14621
14622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14623 # Save the log message, to keep $0 and so on meaningful, and to
14624 # report actual input values of CONFIG_FILES etc. instead of their
14625 # values after options handling.
14626 ac_log="
14627 This file was extended by $as_me, which was
14628 generated by GNU Autoconf 2.64.  Invocation command line was
14629
14630   CONFIG_FILES    = $CONFIG_FILES
14631   CONFIG_HEADERS  = $CONFIG_HEADERS
14632   CONFIG_LINKS    = $CONFIG_LINKS
14633   CONFIG_COMMANDS = $CONFIG_COMMANDS
14634   $ $0 $@
14635
14636 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14637 "
14638
14639 _ACEOF
14640
14641 case $ac_config_files in *"
14642 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14643 esac
14644
14645
14646
14647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14648 # Files that config.status was made for.
14649 config_files="$ac_config_files"
14650
14651 _ACEOF
14652
14653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14654 ac_cs_usage="\
14655 \`$as_me' instantiates files and other configuration actions
14656 from templates according to the current configuration.  Unless the files
14657 and actions are specified as TAGs, all are instantiated by default.
14658
14659 Usage: $0 [OPTION]... [TAG]...
14660
14661   -h, --help       print this help, then exit
14662   -V, --version    print version number and configuration settings, then exit
14663   -q, --quiet, --silent
14664                    do not print progress messages
14665   -d, --debug      don't remove temporary files
14666       --recheck    update $as_me by reconfiguring in the same conditions
14667       --file=FILE[:TEMPLATE]
14668                    instantiate the configuration file FILE
14669
14670 Configuration files:
14671 $config_files
14672
14673 Report bugs to the package provider."
14674
14675 _ACEOF
14676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14677 ac_cs_version="\\
14678 config.status
14679 configured by $0, generated by GNU Autoconf 2.64,
14680   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14681
14682 Copyright (C) 2009 Free Software Foundation, Inc.
14683 This config.status script is free software; the Free Software Foundation
14684 gives unlimited permission to copy, distribute and modify it."
14685
14686 ac_pwd='$ac_pwd'
14687 srcdir='$srcdir'
14688 INSTALL='$INSTALL'
14689 AWK='$AWK'
14690 test -n "\$AWK" || AWK=awk
14691 _ACEOF
14692
14693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14694 # The default lists apply if the user does not specify any file.
14695 ac_need_defaults=:
14696 while test $# != 0
14697 do
14698   case $1 in
14699   --*=*)
14700     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14701     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14702     ac_shift=:
14703     ;;
14704   *)
14705     ac_option=$1
14706     ac_optarg=$2
14707     ac_shift=shift
14708     ;;
14709   esac
14710
14711   case $ac_option in
14712   # Handling of the options.
14713   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14714     ac_cs_recheck=: ;;
14715   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14716     $as_echo "$ac_cs_version"; exit ;;
14717   --debug | --debu | --deb | --de | --d | -d )
14718     debug=: ;;
14719   --file | --fil | --fi | --f )
14720     $ac_shift
14721     case $ac_optarg in
14722     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14723     esac
14724     as_fn_append CONFIG_FILES " '$ac_optarg'"
14725     ac_need_defaults=false;;
14726   --he | --h |  --help | --hel | -h )
14727     $as_echo "$ac_cs_usage"; exit ;;
14728   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14729   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14730     ac_cs_silent=: ;;
14731
14732   # This is an error.
14733   -*) as_fn_error "unrecognized option: \`$1'
14734 Try \`$0 --help' for more information." ;;
14735
14736   *) as_fn_append ac_config_targets " $1"
14737      ac_need_defaults=false ;;
14738
14739   esac
14740   shift
14741 done
14742
14743 ac_configure_extra_args=
14744
14745 if $ac_cs_silent; then
14746   exec 6>/dev/null
14747   ac_configure_extra_args="$ac_configure_extra_args --silent"
14748 fi
14749
14750 _ACEOF
14751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14752 if \$ac_cs_recheck; then
14753   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14754   shift
14755   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14756   CONFIG_SHELL='$SHELL'
14757   export CONFIG_SHELL
14758   exec "\$@"
14759 fi
14760
14761 _ACEOF
14762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14763 exec 5>>config.log
14764 {
14765   echo
14766   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14767 ## Running $as_me. ##
14768 _ASBOX
14769   $as_echo "$ac_log"
14770 } >&5
14771
14772 _ACEOF
14773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14774 #
14775 # INIT-COMMANDS
14776 #
14777 extrasub_build="$extrasub_build"
14778    extrasub_host="$extrasub_host"
14779    extrasub_target="$extrasub_target"
14780
14781 _ACEOF
14782
14783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14784
14785 # Handling of arguments.
14786 for ac_config_target in $ac_config_targets
14787 do
14788   case $ac_config_target in
14789     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14790
14791   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14792   esac
14793 done
14794
14795
14796 # If the user did not use the arguments to specify the items to instantiate,
14797 # then the envvar interface is used.  Set only those that are not.
14798 # We use the long form for the default assignment because of an extremely
14799 # bizarre bug on SunOS 4.1.3.
14800 if $ac_need_defaults; then
14801   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14802 fi
14803
14804 # Have a temporary directory for convenience.  Make it in the build tree
14805 # simply because there is no reason against having it here, and in addition,
14806 # creating and moving files from /tmp can sometimes cause problems.
14807 # Hook for its removal unless debugging.
14808 # Note that there is a small window in which the directory will not be cleaned:
14809 # after its creation but before its name has been assigned to `$tmp'.
14810 $debug ||
14811 {
14812   tmp=
14813   trap 'exit_status=$?
14814   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14815 ' 0
14816   trap 'as_fn_exit 1' 1 2 13 15
14817 }
14818 # Create a (secure) tmp directory for tmp files.
14819
14820 {
14821   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14822   test -n "$tmp" && test -d "$tmp"
14823 }  ||
14824 {
14825   tmp=./conf$$-$RANDOM
14826   (umask 077 && mkdir "$tmp")
14827 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14828
14829 # Set up the scripts for CONFIG_FILES section.
14830 # No need to generate them if there are no CONFIG_FILES.
14831 # This happens for instance with `./config.status config.h'.
14832 if test -n "$CONFIG_FILES"; then
14833
14834 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14835   ac_cs_awk_getline=:
14836   ac_cs_awk_pipe_init=
14837   ac_cs_awk_read_file='
14838       while ((getline aline < (F[key])) > 0)
14839         print(aline)
14840       close(F[key])'
14841   ac_cs_awk_pipe_fini=
14842 else
14843   ac_cs_awk_getline=false
14844   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14845   ac_cs_awk_read_file='
14846       print "|#_!!_#|"
14847       print "cat " F[key] " &&"
14848       '$ac_cs_awk_pipe_init
14849   # The final `:' finishes the AND list.
14850   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14851 fi
14852 ac_cr=`echo X | tr X '\015'`
14853 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14854 # But we know of no other shell where ac_cr would be empty at this
14855 # point, so we can use a bashism as a fallback.
14856 if test "x$ac_cr" = x; then
14857   eval ac_cr=\$\'\\r\'
14858 fi
14859 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14860 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14861   ac_cs_awk_cr='\r'
14862 else
14863   ac_cs_awk_cr=$ac_cr
14864 fi
14865
14866 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14867 _ACEOF
14868
14869 # Create commands to substitute file output variables.
14870 {
14871   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14872   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14873   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14874   echo "_ACAWK" &&
14875   echo "_ACEOF"
14876 } >conf$$files.sh &&
14877 . ./conf$$files.sh ||
14878   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14879 rm -f conf$$files.sh
14880
14881 {
14882   echo "cat >conf$$subs.awk <<_ACEOF" &&
14883   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14884   echo "_ACEOF"
14885 } >conf$$subs.sh ||
14886   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14887 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14888 ac_delim='%!_!# '
14889 for ac_last_try in false false false false false :; do
14890   . ./conf$$subs.sh ||
14891     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14892
14893   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14894   if test $ac_delim_n = $ac_delim_num; then
14895     break
14896   elif $ac_last_try; then
14897     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14898   else
14899     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14900   fi
14901 done
14902 rm -f conf$$subs.sh
14903
14904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14905 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14906 _ACEOF
14907 sed -n '
14908 h
14909 s/^/S["/; s/!.*/"]=/
14910 p
14911 g
14912 s/^[^!]*!//
14913 :repl
14914 t repl
14915 s/'"$ac_delim"'$//
14916 t delim
14917 :nl
14918 h
14919 s/\(.\{148\}\).*/\1/
14920 t more1
14921 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14922 p
14923 n
14924 b repl
14925 :more1
14926 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14927 p
14928 g
14929 s/.\{148\}//
14930 t nl
14931 :delim
14932 h
14933 s/\(.\{148\}\).*/\1/
14934 t more2
14935 s/["\\]/\\&/g; s/^/"/; s/$/"/
14936 p
14937 b
14938 :more2
14939 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14940 p
14941 g
14942 s/.\{148\}//
14943 t delim
14944 ' <conf$$subs.awk | sed '
14945 /^[^""]/{
14946   N
14947   s/\n//
14948 }
14949 ' >>$CONFIG_STATUS || ac_write_fail=1
14950 rm -f conf$$subs.awk
14951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14952 _ACAWK
14953 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14954   for (key in S) S_is_set[key] = 1
14955   FS = "\a"
14956   \$ac_cs_awk_pipe_init
14957 }
14958 {
14959   line = $ 0
14960   nfields = split(line, field, "@")
14961   substed = 0
14962   len = length(field[1])
14963   for (i = 2; i < nfields; i++) {
14964     key = field[i]
14965     keylen = length(key)
14966     if (S_is_set[key]) {
14967       value = S[key]
14968       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14969       len += length(value) + length(field[++i])
14970       substed = 1
14971     } else
14972       len += 1 + keylen
14973   }
14974   if (nfields == 3 && !substed) {
14975     key = field[2]
14976     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14977       \$ac_cs_awk_read_file
14978       next
14979     }
14980   }
14981   print line
14982 }
14983 \$ac_cs_awk_pipe_fini
14984 _ACAWK
14985 _ACEOF
14986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14987 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14988   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14989 else
14990   cat
14991 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14992   || as_fn_error "could not setup config files machinery" "$LINENO" 5
14993 _ACEOF
14994
14995 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14996 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14997 # trailing colons and then remove the whole line if VPATH becomes empty
14998 # (actually we leave an empty line to preserve line numbers).
14999 if test "x$srcdir" = x.; then
15000   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15001 s/:*\$(srcdir):*/:/
15002 s/:*\${srcdir}:*/:/
15003 s/:*@srcdir@:*/:/
15004 s/^\([^=]*=[     ]*\):*/\1/
15005 s/:*$//
15006 s/^[^=]*=[       ]*$//
15007 }'
15008 fi
15009
15010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15011 fi # test -n "$CONFIG_FILES"
15012
15013
15014 eval set X "  :F $CONFIG_FILES      "
15015 shift
15016 for ac_tag
15017 do
15018   case $ac_tag in
15019   :[FHLC]) ac_mode=$ac_tag; continue;;
15020   esac
15021   case $ac_mode$ac_tag in
15022   :[FHL]*:*);;
15023   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15024   :[FH]-) ac_tag=-:-;;
15025   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15026   esac
15027   ac_save_IFS=$IFS
15028   IFS=:
15029   set x $ac_tag
15030   IFS=$ac_save_IFS
15031   shift
15032   ac_file=$1
15033   shift
15034
15035   case $ac_mode in
15036   :L) ac_source=$1;;
15037   :[FH])
15038     ac_file_inputs=
15039     for ac_f
15040     do
15041       case $ac_f in
15042       -) ac_f="$tmp/stdin";;
15043       *) # Look for the file first in the build tree, then in the source tree
15044          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15045          # because $ac_f cannot contain `:'.
15046          test -f "$ac_f" ||
15047            case $ac_f in
15048            [\\/$]*) false;;
15049            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15050            esac ||
15051            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15052       esac
15053       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15054       as_fn_append ac_file_inputs " '$ac_f'"
15055     done
15056
15057     # Let's still pretend it is `configure' which instantiates (i.e., don't
15058     # use $as_me), people would be surprised to read:
15059     #    /* config.h.  Generated by config.status.  */
15060     configure_input='Generated from '`
15061           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15062         `' by configure.'
15063     if test x"$ac_file" != x-; then
15064       configure_input="$ac_file.  $configure_input"
15065       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15066 $as_echo "$as_me: creating $ac_file" >&6;}
15067     fi
15068     # Neutralize special characters interpreted by sed in replacement strings.
15069     case $configure_input in #(
15070     *\&* | *\|* | *\\* )
15071        ac_sed_conf_input=`$as_echo "$configure_input" |
15072        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15073     *) ac_sed_conf_input=$configure_input;;
15074     esac
15075
15076     case $ac_tag in
15077     *:-:* | *:-) cat >"$tmp/stdin" \
15078       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15079     esac
15080     ;;
15081   esac
15082
15083   ac_dir=`$as_dirname -- "$ac_file" ||
15084 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15085          X"$ac_file" : 'X\(//\)[^/]' \| \
15086          X"$ac_file" : 'X\(//\)$' \| \
15087          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15088 $as_echo X"$ac_file" |
15089     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15090             s//\1/
15091             q
15092           }
15093           /^X\(\/\/\)[^/].*/{
15094             s//\1/
15095             q
15096           }
15097           /^X\(\/\/\)$/{
15098             s//\1/
15099             q
15100           }
15101           /^X\(\/\).*/{
15102             s//\1/
15103             q
15104           }
15105           s/.*/./; q'`
15106   as_dir="$ac_dir"; as_fn_mkdir_p
15107   ac_builddir=.
15108
15109 case "$ac_dir" in
15110 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15111 *)
15112   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15113   # A ".." for each directory in $ac_dir_suffix.
15114   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15115   case $ac_top_builddir_sub in
15116   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15117   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15118   esac ;;
15119 esac
15120 ac_abs_top_builddir=$ac_pwd
15121 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15122 # for backward compatibility:
15123 ac_top_builddir=$ac_top_build_prefix
15124
15125 case $srcdir in
15126   .)  # We are building in place.
15127     ac_srcdir=.
15128     ac_top_srcdir=$ac_top_builddir_sub
15129     ac_abs_top_srcdir=$ac_pwd ;;
15130   [\\/]* | ?:[\\/]* )  # Absolute name.
15131     ac_srcdir=$srcdir$ac_dir_suffix;
15132     ac_top_srcdir=$srcdir
15133     ac_abs_top_srcdir=$srcdir ;;
15134   *) # Relative name.
15135     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15136     ac_top_srcdir=$ac_top_build_prefix$srcdir
15137     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15138 esac
15139 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15140
15141
15142   case $ac_mode in
15143   :F)
15144   #
15145   # CONFIG_FILE
15146   #
15147
15148   case $INSTALL in
15149   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15150   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15151   esac
15152 _ACEOF
15153
15154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15155 # If the template does not know about datarootdir, expand it.
15156 # FIXME: This hack should be removed a few years after 2.60.
15157 ac_datarootdir_hack=; ac_datarootdir_seen=
15158 ac_sed_dataroot='
15159 /datarootdir/ {
15160   p
15161   q
15162 }
15163 /@datadir@/p
15164 /@docdir@/p
15165 /@infodir@/p
15166 /@localedir@/p
15167 /@mandir@/p'
15168 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15169 *datarootdir*) ac_datarootdir_seen=yes;;
15170 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15171   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15172 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15173 _ACEOF
15174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15175   ac_datarootdir_hack='
15176   s&@datadir@&$datadir&g
15177   s&@docdir@&$docdir&g
15178   s&@infodir@&$infodir&g
15179   s&@localedir@&$localedir&g
15180   s&@mandir@&$mandir&g
15181   s&\\\${datarootdir}&$datarootdir&g' ;;
15182 esac
15183 _ACEOF
15184
15185 # Neutralize VPATH when `$srcdir' = `.'.
15186 # Shell code in configure.ac might set extrasub.
15187 # FIXME: do we really want to maintain this feature?
15188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15189 ac_sed_extra="$ac_vpsub
15190 $extrasub
15191 _ACEOF
15192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15193 :t
15194 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15195 s|@configure_input@|$ac_sed_conf_input|;t t
15196 s&@top_builddir@&$ac_top_builddir_sub&;t t
15197 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15198 s&@srcdir@&$ac_srcdir&;t t
15199 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15200 s&@top_srcdir@&$ac_top_srcdir&;t t
15201 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15202 s&@builddir@&$ac_builddir&;t t
15203 s&@abs_builddir@&$ac_abs_builddir&;t t
15204 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15205 s&@INSTALL@&$ac_INSTALL&;t t
15206 $ac_datarootdir_hack
15207 "
15208 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15209 if $ac_cs_awk_getline; then
15210   $AWK -f "$tmp/subs.awk"
15211 else
15212   $AWK -f "$tmp/subs.awk" | $SHELL
15213 fi >$tmp/out \
15214   || as_fn_error "could not create $ac_file" "$LINENO" 5
15215
15216 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15217   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15218   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15219   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15220 which seems to be undefined.  Please make sure it is defined." >&5
15221 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15222 which seems to be undefined.  Please make sure it is defined." >&2;}
15223
15224   rm -f "$tmp/stdin"
15225   case $ac_file in
15226   -) cat "$tmp/out" && rm -f "$tmp/out";;
15227   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15228   esac \
15229   || as_fn_error "could not create $ac_file" "$LINENO" 5
15230  ;;
15231
15232
15233
15234   esac
15235
15236
15237   case $ac_file$ac_mode in
15238     "Makefile":F) sed "$extrasub_build" Makefile |
15239    sed "$extrasub_host" |
15240    sed "$extrasub_target" > mf$$
15241    mv -f mf$$ Makefile ;;
15242
15243   esac
15244 done # for ac_tag
15245
15246
15247 as_fn_exit 0
15248 _ACEOF
15249 ac_clean_files=$ac_clean_files_save
15250
15251 test $ac_write_fail = 0 ||
15252   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15253
15254
15255 # configure is writing to config.log, and then calls config.status.
15256 # config.status does its own redirection, appending to config.log.
15257 # Unfortunately, on DOS this fails, as config.log is still kept open
15258 # by configure, so config.status won't be able to write to it; its
15259 # output is simply discarded.  So we exec the FD to /dev/null,
15260 # effectively closing config.log, so it can be properly (re)opened and
15261 # appended to by config.status.  When coming back to configure, we
15262 # need to make the FD available again.
15263 if test "$no_create" != yes; then
15264   ac_cs_success=:
15265   ac_config_status_args=
15266   test "$silent" = yes &&
15267     ac_config_status_args="$ac_config_status_args --quiet"
15268   exec 5>/dev/null
15269   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15270   exec 5>>config.log
15271   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15272   # would make configure fail if this is the last instruction.
15273   $ac_cs_success || as_fn_exit $?
15274 fi
15275 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15276   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15277 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15278 fi
15279