Fix libgphobos.spec in the wrong place with --enable-version-specific-runtime-libs
[platform/upstream/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OBJDUMP_FOR_TARGET
607 OBJCOPY_FOR_TARGET
608 NM_FOR_TARGET
609 LIPO_FOR_TARGET
610 LD_FOR_TARGET
611 DLLTOOL_FOR_TARGET
612 AS_FOR_TARGET
613 AR_FOR_TARGET
614 GDC_FOR_TARGET
615 GOC_FOR_TARGET
616 GFORTRAN_FOR_TARGET
617 GCC_FOR_TARGET
618 CXX_FOR_TARGET
619 CC_FOR_TARGET
620 READELF
621 OBJDUMP
622 OBJCOPY
623 WINDMC
624 WINDRES
625 STRIP
626 RANLIB
627 NM
628 LIPO
629 LD
630 DLLTOOL
631 AS
632 AR
633 RUNTEST
634 EXPECT
635 MAKEINFO
636 FLEX
637 LEX
638 M4
639 BISON
640 YACC
641 WINDRES_FOR_BUILD
642 WINDMC_FOR_BUILD
643 RANLIB_FOR_BUILD
644 NM_FOR_BUILD
645 LD_FOR_BUILD
646 LDFLAGS_FOR_BUILD
647 GDC_FOR_BUILD
648 GOC_FOR_BUILD
649 GFORTRAN_FOR_BUILD
650 DLLTOOL_FOR_BUILD
651 CXX_FOR_BUILD
652 CXXFLAGS_FOR_BUILD
653 CFLAGS_FOR_BUILD
654 CC_FOR_BUILD
655 AS_FOR_BUILD
656 AR_FOR_BUILD
657 target_configdirs
658 configdirs
659 build_configdirs
660 INSTALL_GDB_TK
661 GDB_TK
662 CONFIGURE_GDB_TK
663 build_tooldir
664 tooldir
665 GCC_SHLIB_SUBDIR
666 RPATH_ENVVAR
667 target_configargs
668 host_configargs
669 build_configargs
670 BUILD_CONFIG
671 LDFLAGS_FOR_TARGET
672 CXXFLAGS_FOR_TARGET
673 CFLAGS_FOR_TARGET
674 DEBUG_PREFIX_CFLAGS_FOR_TARGET
675 SYSROOT_CFLAGS_FOR_TARGET
676 get_gcc_base_ver
677 extra_host_zlib_configure_flags
678 extra_host_libiberty_configure_flags
679 stage1_languages
680 host_shared
681 extra_linker_plugin_flags
682 extra_linker_plugin_configure_flags
683 islinc
684 isllibs
685 poststage1_ldflags
686 poststage1_libs
687 stage1_ldflags
688 stage1_libs
689 extra_isl_gmp_configure_flags
690 extra_mpc_mpfr_configure_flags
691 extra_mpc_gmp_configure_flags
692 extra_mpfr_configure_flags
693 gmpinc
694 gmplibs
695 do_compare
696 GNATMAKE
697 GNATBIND
698 ac_ct_CXX
699 CXXFLAGS
700 CXX
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 extra_liboffloadmic_configure_flags
709 target_subdir
710 host_subdir
711 build_subdir
712 build_libsubdir
713 AWK
714 SED
715 LN_S
716 LN
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 target_os
721 target_vendor
722 target_cpu
723 target
724 host_os
725 host_vendor
726 host_cpu
727 host
728 target_noncanonical
729 host_noncanonical
730 build_noncanonical
731 build_os
732 build_vendor
733 build_cpu
734 build
735 TOPLEVEL_CONFIGURE_ARGUMENTS
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files='serialization_dependencies
775 host_makefile_frag
776 target_makefile_frag
777 alphaieee_frag
778 ospace_frag'
779 ac_user_opts='
780 enable_option_checking
781 with_build_libsubdir
782 with_system_zlib
783 enable_as_accelerator_for
784 enable_offload_targets
785 enable_gold
786 enable_ld
787 enable_compressed_debug_sections
788 enable_libquadmath
789 enable_libquadmath_support
790 enable_libada
791 enable_libssp
792 enable_libstdcxx
793 enable_liboffloadmic
794 enable_bootstrap
795 with_mpc
796 with_mpc_include
797 with_mpc_lib
798 with_mpfr_dir
799 with_mpfr
800 with_mpfr_include
801 with_mpfr_lib
802 with_gmp_dir
803 with_gmp
804 with_gmp_include
805 with_gmp_lib
806 with_stage1_libs
807 with_stage1_ldflags
808 with_boot_libs
809 with_boot_ldflags
810 with_isl
811 with_isl_include
812 with_isl_lib
813 enable_isl_version_check
814 enable_lto
815 enable_linker_plugin_configure_flags
816 enable_linker_plugin_flags
817 enable_host_shared
818 enable_stage1_languages
819 enable_objc_gc
820 with_target_bdw_gc
821 with_target_bdw_gc_include
822 with_target_bdw_gc_lib
823 with_gcc_major_version_only
824 with_build_sysroot
825 with_debug_prefix_map
826 with_build_config
827 enable_vtable_verify
828 enable_serial_configure
829 with_build_time_tools
830 enable_maintainer_mode
831 enable_stage1_checking
832 enable_werror
833 '
834       ac_precious_vars='build_alias
835 host_alias
836 target_alias
837 CC
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
842 CXX
843 CXXFLAGS
844 CCC
845 build_configargs
846 host_configargs
847 target_configargs
848 AR
849 AS
850 DLLTOOL
851 LD
852 LIPO
853 NM
854 RANLIB
855 STRIP
856 WINDRES
857 WINDMC
858 OBJCOPY
859 OBJDUMP
860 READELF
861 CC_FOR_TARGET
862 CXX_FOR_TARGET
863 GCC_FOR_TARGET
864 GFORTRAN_FOR_TARGET
865 GOC_FOR_TARGET
866 GDC_FOR_TARGET
867 AR_FOR_TARGET
868 AS_FOR_TARGET
869 DLLTOOL_FOR_TARGET
870 LD_FOR_TARGET
871 LIPO_FOR_TARGET
872 NM_FOR_TARGET
873 OBJCOPY_FOR_TARGET
874 OBJDUMP_FOR_TARGET
875 RANLIB_FOR_TARGET
876 READELF_FOR_TARGET
877 STRIP_FOR_TARGET
878 WINDRES_FOR_TARGET
879 WINDMC_FOR_TARGET'
880
881
882 # Initialize some variables set by options.
883 ac_init_help=
884 ac_init_version=false
885 ac_unrecognized_opts=
886 ac_unrecognized_sep=
887 # The variables have the same names as the options, with
888 # dashes changed to underlines.
889 cache_file=/dev/null
890 exec_prefix=NONE
891 no_create=
892 no_recursion=
893 prefix=NONE
894 program_prefix=NONE
895 program_suffix=NONE
896 program_transform_name=s,x,x,
897 silent=
898 site=
899 srcdir=
900 verbose=
901 x_includes=NONE
902 x_libraries=NONE
903
904 # Installation directory options.
905 # These are left unexpanded so users can "make install exec_prefix=/foo"
906 # and all the variables that are supposed to be based on exec_prefix
907 # by default will actually change.
908 # Use braces instead of parens because sh, perl, etc. also accept them.
909 # (The list follows the same order as the GNU Coding Standards.)
910 bindir='${exec_prefix}/bin'
911 sbindir='${exec_prefix}/sbin'
912 libexecdir='${exec_prefix}/libexec'
913 datarootdir='${prefix}/share'
914 datadir='${datarootdir}'
915 sysconfdir='${prefix}/etc'
916 sharedstatedir='${prefix}/com'
917 localstatedir='${prefix}/var'
918 includedir='${prefix}/include'
919 oldincludedir='/usr/include'
920 docdir='${datarootdir}/doc/${PACKAGE}'
921 infodir='${datarootdir}/info'
922 htmldir='${docdir}'
923 dvidir='${docdir}'
924 pdfdir='${docdir}'
925 psdir='${docdir}'
926 libdir='${exec_prefix}/lib'
927 localedir='${datarootdir}/locale'
928 mandir='${datarootdir}/man'
929
930 ac_prev=
931 ac_dashdash=
932 for ac_option
933 do
934   # If the previous option needs an argument, assign it.
935   if test -n "$ac_prev"; then
936     eval $ac_prev=\$ac_option
937     ac_prev=
938     continue
939   fi
940
941   case $ac_option in
942   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943   *=)   ac_optarg= ;;
944   *)    ac_optarg=yes ;;
945   esac
946
947   # Accept the important Cygnus configure options, so we can diagnose typos.
948
949   case $ac_dashdash$ac_option in
950   --)
951     ac_dashdash=yes ;;
952
953   -bindir | --bindir | --bindi | --bind | --bin | --bi)
954     ac_prev=bindir ;;
955   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956     bindir=$ac_optarg ;;
957
958   -build | --build | --buil | --bui | --bu)
959     ac_prev=build_alias ;;
960   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961     build_alias=$ac_optarg ;;
962
963   -cache-file | --cache-file | --cache-fil | --cache-fi \
964   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965     ac_prev=cache_file ;;
966   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968     cache_file=$ac_optarg ;;
969
970   --config-cache | -C)
971     cache_file=config.cache ;;
972
973   -datadir | --datadir | --datadi | --datad)
974     ac_prev=datadir ;;
975   -datadir=* | --datadir=* | --datadi=* | --datad=*)
976     datadir=$ac_optarg ;;
977
978   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979   | --dataroo | --dataro | --datar)
980     ac_prev=datarootdir ;;
981   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983     datarootdir=$ac_optarg ;;
984
985   -disable-* | --disable-*)
986     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987     # Reject names that are not valid shell variable names.
988     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989       as_fn_error $? "invalid feature name: $ac_useropt"
990     ac_useropt_orig=$ac_useropt
991     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992     case $ac_user_opts in
993       *"
994 "enable_$ac_useropt"
995 "*) ;;
996       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997          ac_unrecognized_sep=', ';;
998     esac
999     eval enable_$ac_useropt=no ;;
1000
1001   -docdir | --docdir | --docdi | --doc | --do)
1002     ac_prev=docdir ;;
1003   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004     docdir=$ac_optarg ;;
1005
1006   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007     ac_prev=dvidir ;;
1008   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009     dvidir=$ac_optarg ;;
1010
1011   -enable-* | --enable-*)
1012     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013     # Reject names that are not valid shell variable names.
1014     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015       as_fn_error $? "invalid feature name: $ac_useropt"
1016     ac_useropt_orig=$ac_useropt
1017     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018     case $ac_user_opts in
1019       *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023          ac_unrecognized_sep=', ';;
1024     esac
1025     eval enable_$ac_useropt=\$ac_optarg ;;
1026
1027   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029   | --exec | --exe | --ex)
1030     ac_prev=exec_prefix ;;
1031   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033   | --exec=* | --exe=* | --ex=*)
1034     exec_prefix=$ac_optarg ;;
1035
1036   -gas | --gas | --ga | --g)
1037     # Obsolete; use --with-gas.
1038     with_gas=yes ;;
1039
1040   -help | --help | --hel | --he | -h)
1041     ac_init_help=long ;;
1042   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043     ac_init_help=recursive ;;
1044   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045     ac_init_help=short ;;
1046
1047   -host | --host | --hos | --ho)
1048     ac_prev=host_alias ;;
1049   -host=* | --host=* | --hos=* | --ho=*)
1050     host_alias=$ac_optarg ;;
1051
1052   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053     ac_prev=htmldir ;;
1054   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055   | --ht=*)
1056     htmldir=$ac_optarg ;;
1057
1058   -includedir | --includedir | --includedi | --included | --include \
1059   | --includ | --inclu | --incl | --inc)
1060     ac_prev=includedir ;;
1061   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062   | --includ=* | --inclu=* | --incl=* | --inc=*)
1063     includedir=$ac_optarg ;;
1064
1065   -infodir | --infodir | --infodi | --infod | --info | --inf)
1066     ac_prev=infodir ;;
1067   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068     infodir=$ac_optarg ;;
1069
1070   -libdir | --libdir | --libdi | --libd)
1071     ac_prev=libdir ;;
1072   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073     libdir=$ac_optarg ;;
1074
1075   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076   | --libexe | --libex | --libe)
1077     ac_prev=libexecdir ;;
1078   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079   | --libexe=* | --libex=* | --libe=*)
1080     libexecdir=$ac_optarg ;;
1081
1082   -localedir | --localedir | --localedi | --localed | --locale)
1083     ac_prev=localedir ;;
1084   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085     localedir=$ac_optarg ;;
1086
1087   -localstatedir | --localstatedir | --localstatedi | --localstated \
1088   | --localstate | --localstat | --localsta | --localst | --locals)
1089     ac_prev=localstatedir ;;
1090   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092     localstatedir=$ac_optarg ;;
1093
1094   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095     ac_prev=mandir ;;
1096   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097     mandir=$ac_optarg ;;
1098
1099   -nfp | --nfp | --nf)
1100     # Obsolete; use --without-fp.
1101     with_fp=no ;;
1102
1103   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104   | --no-cr | --no-c | -n)
1105     no_create=yes ;;
1106
1107   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109     no_recursion=yes ;;
1110
1111   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113   | --oldin | --oldi | --old | --ol | --o)
1114     ac_prev=oldincludedir ;;
1115   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118     oldincludedir=$ac_optarg ;;
1119
1120   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121     ac_prev=prefix ;;
1122   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123     prefix=$ac_optarg ;;
1124
1125   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126   | --program-pre | --program-pr | --program-p)
1127     ac_prev=program_prefix ;;
1128   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130     program_prefix=$ac_optarg ;;
1131
1132   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133   | --program-suf | --program-su | --program-s)
1134     ac_prev=program_suffix ;;
1135   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137     program_suffix=$ac_optarg ;;
1138
1139   -program-transform-name | --program-transform-name \
1140   | --program-transform-nam | --program-transform-na \
1141   | --program-transform-n | --program-transform- \
1142   | --program-transform | --program-transfor \
1143   | --program-transfo | --program-transf \
1144   | --program-trans | --program-tran \
1145   | --progr-tra | --program-tr | --program-t)
1146     ac_prev=program_transform_name ;;
1147   -program-transform-name=* | --program-transform-name=* \
1148   | --program-transform-nam=* | --program-transform-na=* \
1149   | --program-transform-n=* | --program-transform-=* \
1150   | --program-transform=* | --program-transfor=* \
1151   | --program-transfo=* | --program-transf=* \
1152   | --program-trans=* | --program-tran=* \
1153   | --progr-tra=* | --program-tr=* | --program-t=*)
1154     program_transform_name=$ac_optarg ;;
1155
1156   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157     ac_prev=pdfdir ;;
1158   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159     pdfdir=$ac_optarg ;;
1160
1161   -psdir | --psdir | --psdi | --psd | --ps)
1162     ac_prev=psdir ;;
1163   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164     psdir=$ac_optarg ;;
1165
1166   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167   | -silent | --silent | --silen | --sile | --sil)
1168     silent=yes ;;
1169
1170   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171     ac_prev=sbindir ;;
1172   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173   | --sbi=* | --sb=*)
1174     sbindir=$ac_optarg ;;
1175
1176   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178   | --sharedst | --shareds | --shared | --share | --shar \
1179   | --sha | --sh)
1180     ac_prev=sharedstatedir ;;
1181   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184   | --sha=* | --sh=*)
1185     sharedstatedir=$ac_optarg ;;
1186
1187   -site | --site | --sit)
1188     ac_prev=site ;;
1189   -site=* | --site=* | --sit=*)
1190     site=$ac_optarg ;;
1191
1192   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193     ac_prev=srcdir ;;
1194   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195     srcdir=$ac_optarg ;;
1196
1197   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198   | --syscon | --sysco | --sysc | --sys | --sy)
1199     ac_prev=sysconfdir ;;
1200   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202     sysconfdir=$ac_optarg ;;
1203
1204   -target | --target | --targe | --targ | --tar | --ta | --t)
1205     ac_prev=target_alias ;;
1206   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207     target_alias=$ac_optarg ;;
1208
1209   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210     verbose=yes ;;
1211
1212   -version | --version | --versio | --versi | --vers | -V)
1213     ac_init_version=: ;;
1214
1215   -with-* | --with-*)
1216     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217     # Reject names that are not valid shell variable names.
1218     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219       as_fn_error $? "invalid package name: $ac_useropt"
1220     ac_useropt_orig=$ac_useropt
1221     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222     case $ac_user_opts in
1223       *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227          ac_unrecognized_sep=', ';;
1228     esac
1229     eval with_$ac_useropt=\$ac_optarg ;;
1230
1231   -without-* | --without-*)
1232     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233     # Reject names that are not valid shell variable names.
1234     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235       as_fn_error $? "invalid package name: $ac_useropt"
1236     ac_useropt_orig=$ac_useropt
1237     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238     case $ac_user_opts in
1239       *"
1240 "with_$ac_useropt"
1241 "*) ;;
1242       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243          ac_unrecognized_sep=', ';;
1244     esac
1245     eval with_$ac_useropt=no ;;
1246
1247   --x)
1248     # Obsolete; use --with-x.
1249     with_x=yes ;;
1250
1251   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252   | --x-incl | --x-inc | --x-in | --x-i)
1253     ac_prev=x_includes ;;
1254   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256     x_includes=$ac_optarg ;;
1257
1258   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260     ac_prev=x_libraries ;;
1261   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263     x_libraries=$ac_optarg ;;
1264
1265   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1266 Try \`$0 --help' for more information"
1267     ;;
1268
1269   *=*)
1270     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271     # Reject names that are not valid shell variable names.
1272     case $ac_envvar in #(
1273       '' | [0-9]* | *[!_$as_cr_alnum]* )
1274       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1275     esac
1276     eval $ac_envvar=\$ac_optarg
1277     export $ac_envvar ;;
1278
1279   *)
1280     # FIXME: should be removed in autoconf 3.0.
1281     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1285     ;;
1286
1287   esac
1288 done
1289
1290 if test -n "$ac_prev"; then
1291   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292   as_fn_error $? "missing argument to $ac_option"
1293 fi
1294
1295 if test -n "$ac_unrecognized_opts"; then
1296   case $enable_option_checking in
1297     no) ;;
1298     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1299     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300   esac
1301 fi
1302
1303 # Check all directory arguments for consistency.
1304 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305                 datadir sysconfdir sharedstatedir localstatedir includedir \
1306                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307                 libdir localedir mandir
1308 do
1309   eval ac_val=\$$ac_var
1310   # Remove trailing slashes.
1311   case $ac_val in
1312     */ )
1313       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314       eval $ac_var=\$ac_val;;
1315   esac
1316   # Be sure to have absolute directory names.
1317   case $ac_val in
1318     [\\/$]* | ?:[\\/]* )  continue;;
1319     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320   esac
1321   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1322 done
1323
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1327 build=$build_alias
1328 host=$host_alias
1329 target=$target_alias
1330
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333   if test "x$build_alias" = x; then
1334     cross_compiling=maybe
1335   elif test "x$build_alias" != "x$host_alias"; then
1336     cross_compiling=yes
1337   fi
1338 fi
1339
1340 ac_tool_prefix=
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343 test "$silent" = yes && exec 6>/dev/null
1344
1345
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349   as_fn_error $? "working directory cannot be determined"
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351   as_fn_error $? "pwd does not report name of working directory"
1352
1353
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356   ac_srcdir_defaulted=yes
1357   # Try the directory containing this script, then the parent directory.
1358   ac_confdir=`$as_dirname -- "$as_myself" ||
1359 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360          X"$as_myself" : 'X\(//\)[^/]' \| \
1361          X"$as_myself" : 'X\(//\)$' \| \
1362          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363 $as_echo X"$as_myself" |
1364     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\/\)[^/].*/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\/\)$/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\).*/{
1377             s//\1/
1378             q
1379           }
1380           s/.*/./; q'`
1381   srcdir=$ac_confdir
1382   if test ! -r "$srcdir/$ac_unique_file"; then
1383     srcdir=..
1384   fi
1385 else
1386   ac_srcdir_defaulted=no
1387 fi
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1391 fi
1392 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 ac_abs_confdir=`(
1394         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1395         pwd)`
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398   srcdir=.
1399 fi
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1403 case $srcdir in
1404 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 esac
1406 case $srcdir in
1407   *" "*)
1408     as_fn_error $? "path to source, $srcdir, contains spaces"
1409     ;;
1410 esac
1411 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1412
1413 for ac_var in $ac_precious_vars; do
1414   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415   eval ac_env_${ac_var}_value=\$${ac_var}
1416   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1419
1420 #
1421 # Report the --help message.
1422 #
1423 if test "$ac_init_help" = "long"; then
1424   # Omit some internal or obsolete options to make the list less imposing.
1425   # This message is too long to be a string in the A/UX 3.1 sh.
1426   cat <<_ACEOF
1427 \`configure' configures this package to adapt to many kinds of systems.
1428
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE.  See below for descriptions of some of the useful variables.
1433
1434 Defaults for the options are specified in brackets.
1435
1436 Configuration:
1437   -h, --help              display this help and exit
1438       --help=short        display options specific to this package
1439       --help=recursive    display the short help of all the included packages
1440   -V, --version           display version information and exit
1441   -q, --quiet, --silent   do not print \`checking ...' messages
1442       --cache-file=FILE   cache test results in FILE [disabled]
1443   -C, --config-cache      alias for \`--cache-file=config.cache'
1444   -n, --no-create         do not create output files
1445       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1446
1447 Installation directories:
1448   --prefix=PREFIX         install architecture-independent files in PREFIX
1449                           [$ac_default_prefix]
1450   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1451                           [PREFIX]
1452
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1457
1458 For better control, use the options below.
1459
1460 Fine tuning of the installation directories:
1461   --bindir=DIR            user executables [EPREFIX/bin]
1462   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1463   --libexecdir=DIR        program executables [EPREFIX/libexec]
1464   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1465   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1466   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1467   --libdir=DIR            object code libraries [EPREFIX/lib]
1468   --includedir=DIR        C header files [PREFIX/include]
1469   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1470   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1471   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1472   --infodir=DIR           info documentation [DATAROOTDIR/info]
1473   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1474   --mandir=DIR            man documentation [DATAROOTDIR/man]
1475   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1476   --htmldir=DIR           html documentation [DOCDIR]
1477   --dvidir=DIR            dvi documentation [DOCDIR]
1478   --pdfdir=DIR            pdf documentation [DOCDIR]
1479   --psdir=DIR             ps documentation [DOCDIR]
1480 _ACEOF
1481
1482   cat <<\_ACEOF
1483
1484 Program names:
1485   --program-prefix=PREFIX            prepend PREFIX to installed program names
1486   --program-suffix=SUFFIX            append SUFFIX to installed program names
1487   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1488
1489 System types:
1490   --build=BUILD     configure for building on BUILD [guessed]
1491   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1492   --target=TARGET   configure for building compilers for TARGET [HOST]
1493 _ACEOF
1494 fi
1495
1496 if test -n "$ac_init_help"; then
1497
1498   cat <<\_ACEOF
1499
1500 Optional Features:
1501   --disable-option-checking  ignore unrecognized --enable/--with options
1502   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1503   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1504   --enable-as-accelerator-for=ARG
1505                           build as offload target compiler. Specify offload
1506                           host triple by ARG
1507   --enable-offload-targets=LIST
1508                           enable offloading to devices from comma-separated
1509                           LIST of TARGET[=DIR]. Use optional path to find
1510                           offload target compiler during the build
1511   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1512   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1513   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1514                           Enable compressed debug sections for gas, gold or ld
1515                           by default
1516   --disable-libquadmath   do not build libquadmath directory
1517   --disable-libquadmath-support
1518                           disable libquadmath support for Fortran
1519   --enable-libada         build libada directory
1520   --enable-libssp         build libssp directory
1521   --disable-libstdcxx     do not build libstdc++-v3 directory
1522   --enable-liboffloadmic=ARG
1523                           build liboffloadmic [ARG={no,host,target}]
1524   --enable-bootstrap      enable bootstrapping [yes if native build]
1525   --disable-isl-version-check
1526                           disable check for isl version
1527   --enable-lto            enable link time optimization support
1528   --enable-linker-plugin-configure-flags=FLAGS
1529                           additional flags for configuring linker plugins
1530                           [none]
1531   --enable-linker-plugin-flags=FLAGS
1532                           additional flags for configuring and building linker
1533                           plugins [none]
1534   --enable-host-shared    build host code as shared libraries
1535   --enable-stage1-languages[=all]
1536                           choose additional languages to build during stage1.
1537                           Mostly useful for compiler development
1538   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1539                           Objective-C runtime
1540   --enable-vtable-verify  Enable vtable verification feature
1541   --enable-serial-[{host,target,build}-]configure
1542                           force sequential configuration of sub-packages for
1543                           the host, target or build machine, or all
1544                           sub-packages
1545   --enable-maintainer-mode
1546                           enable make rules and dependencies not useful (and
1547                           sometimes confusing) to the casual installer
1548   --enable-stage1-checking[=all]
1549                           choose additional checking for stage1 of the
1550                           compiler
1551   --enable-werror         enable -Werror in bootstrap stage2 and later
1552
1553 Optional Packages:
1554   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1556   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1557   --with-system-zlib      use installed libz
1558   --with-mpc=PATH         specify prefix directory for installed MPC package.
1559                           Equivalent to --with-mpc-include=PATH/include plus
1560                           --with-mpc-lib=PATH/lib
1561   --with-mpc-include=PATH specify directory for installed MPC include files
1562   --with-mpc-lib=PATH     specify directory for the installed MPC library
1563   --with-mpfr-dir=PATH    this option has been REMOVED
1564   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1565                           Equivalent to --with-mpfr-include=PATH/include plus
1566                           --with-mpfr-lib=PATH/lib
1567   --with-mpfr-include=PATH
1568                           specify directory for installed MPFR include files
1569   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1570   --with-gmp-dir=PATH     this option has been REMOVED
1571   --with-gmp=PATH         specify prefix directory for the installed GMP
1572                           package. Equivalent to
1573                           --with-gmp-include=PATH/include plus
1574                           --with-gmp-lib=PATH/lib
1575   --with-gmp-include=PATH specify directory for installed GMP include files
1576   --with-gmp-lib=PATH     specify directory for the installed GMP library
1577   --with-stage1-libs=LIBS libraries for stage1
1578   --with-stage1-ldflags=FLAGS
1579                           linker flags for stage1
1580   --with-boot-libs=LIBS   libraries for stage2 and later
1581   --with-boot-ldflags=FLAGS
1582                           linker flags for stage2 and later
1583   --with-isl=PATH         Specify prefix directory for the installed isl
1584                           package. Equivalent to
1585                           --with-isl-include=PATH/include plus
1586                           --with-isl-lib=PATH/lib
1587   --with-isl-include=PATH Specify directory for installed isl include files
1588   --with-isl-lib=PATH     Specify the directory for the installed isl library
1589   --with-target-bdw-gc=PATHLIST
1590                           specify prefix directory for installed bdw-gc
1591                           package. Equivalent to
1592                           --with-target-bdw-gc-include=PATH/include plus
1593                           --with-target-bdw-gc-lib=PATH/lib
1594   --with-target-bdw-gc-include=PATHLIST
1595                           specify directories for installed bdw-gc include
1596                           files
1597   --with-target-bdw-gc-lib=PATHLIST
1598                           specify directories for installed bdw-gc library
1599   --with-gcc-major-version-only
1600                           use only GCC major number in filesystem paths
1601   --with-build-sysroot=SYSROOT
1602                           use sysroot as the system root during the build
1603   --with-debug-prefix-map='A=B C=D ...'
1604                           map A to B, C to D ... in debug information
1605   --with-build-config='NAME NAME2...'
1606                           use config/NAME.mk build configuration
1607   --with-build-time-tools=PATH
1608                           use given path to find target tools during the build
1609
1610 Some influential environment variables:
1611   CC          C compiler command
1612   CFLAGS      C compiler flags
1613   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1614               nonstandard directory <lib dir>
1615   LIBS        libraries to pass to the linker, e.g. -l<library>
1616   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1617               you have headers in a nonstandard directory <include dir>
1618   CXX         C++ compiler command
1619   CXXFLAGS    C++ compiler flags
1620   build_configargs
1621               additional configure arguments for build directories
1622   host_configargs
1623               additional configure arguments for host directories
1624   target_configargs
1625               additional configure arguments for target directories
1626   AR          AR for the host
1627   AS          AS for the host
1628   DLLTOOL     DLLTOOL for the host
1629   LD          LD for the host
1630   LIPO        LIPO for the host
1631   NM          NM for the host
1632   RANLIB      RANLIB for the host
1633   STRIP       STRIP for the host
1634   WINDRES     WINDRES for the host
1635   WINDMC      WINDMC for the host
1636   OBJCOPY     OBJCOPY for the host
1637   OBJDUMP     OBJDUMP for the host
1638   READELF     READELF for the host
1639   CC_FOR_TARGET
1640               CC for the target
1641   CXX_FOR_TARGET
1642               CXX for the target
1643   GCC_FOR_TARGET
1644               GCC for the target
1645   GFORTRAN_FOR_TARGET
1646               GFORTRAN for the target
1647   GOC_FOR_TARGET
1648               GOC for the target
1649   GDC_FOR_TARGET
1650               GDC for the target
1651   AR_FOR_TARGET
1652               AR for the target
1653   AS_FOR_TARGET
1654               AS for the target
1655   DLLTOOL_FOR_TARGET
1656               DLLTOOL for the target
1657   LD_FOR_TARGET
1658               LD for the target
1659   LIPO_FOR_TARGET
1660               LIPO for the target
1661   NM_FOR_TARGET
1662               NM for the target
1663   OBJCOPY_FOR_TARGET
1664               OBJCOPY for the target
1665   OBJDUMP_FOR_TARGET
1666               OBJDUMP for the target
1667   RANLIB_FOR_TARGET
1668               RANLIB for the target
1669   READELF_FOR_TARGET
1670               READELF for the target
1671   STRIP_FOR_TARGET
1672               STRIP for the target
1673   WINDRES_FOR_TARGET
1674               WINDRES for the target
1675   WINDMC_FOR_TARGET
1676               WINDMC for the target
1677
1678 Use these variables to override the choices made by `configure' or to help
1679 it to find libraries and programs with nonstandard names/locations.
1680
1681 Report bugs to the package provider.
1682 _ACEOF
1683 ac_status=$?
1684 fi
1685
1686 if test "$ac_init_help" = "recursive"; then
1687   # If there are subdirs, report their specific --help.
1688   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689     test -d "$ac_dir" ||
1690       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691       continue
1692     ac_builddir=.
1693
1694 case "$ac_dir" in
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1696 *)
1697   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1698   # A ".." for each directory in $ac_dir_suffix.
1699   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700   case $ac_top_builddir_sub in
1701   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703   esac ;;
1704 esac
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1709
1710 case $srcdir in
1711   .)  # We are building in place.
1712     ac_srcdir=.
1713     ac_top_srcdir=$ac_top_builddir_sub
1714     ac_abs_top_srcdir=$ac_pwd ;;
1715   [\\/]* | ?:[\\/]* )  # Absolute name.
1716     ac_srcdir=$srcdir$ac_dir_suffix;
1717     ac_top_srcdir=$srcdir
1718     ac_abs_top_srcdir=$srcdir ;;
1719   *) # Relative name.
1720     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721     ac_top_srcdir=$ac_top_build_prefix$srcdir
1722     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1723 esac
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1725
1726     cd "$ac_dir" || { ac_status=$?; continue; }
1727     # Check for guested configure.
1728     if test -f "$ac_srcdir/configure.gnu"; then
1729       echo &&
1730       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731     elif test -f "$ac_srcdir/configure"; then
1732       echo &&
1733       $SHELL "$ac_srcdir/configure" --help=recursive
1734     else
1735       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1736     fi || ac_status=$?
1737     cd "$ac_pwd" || { ac_status=$?; break; }
1738   done
1739 fi
1740
1741 test -n "$ac_init_help" && exit $ac_status
1742 if $ac_init_version; then
1743   cat <<\_ACEOF
1744 configure
1745 generated by GNU Autoconf 2.69
1746
1747 Copyright (C) 2012 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1750 _ACEOF
1751   exit
1752 fi
1753
1754 ## ------------------------ ##
1755 ## Autoconf initialization. ##
1756 ## ------------------------ ##
1757
1758 # ac_fn_c_try_compile LINENO
1759 # --------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_compile ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   rm -f conftest.$ac_objext
1765   if { { ac_try="$ac_compile"
1766 case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_compile") 2>conftest.err
1773   ac_status=$?
1774   if test -s conftest.err; then
1775     grep -v '^ *+' conftest.err >conftest.er1
1776     cat conftest.er1 >&5
1777     mv -f conftest.er1 conftest.err
1778   fi
1779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780   test $ac_status = 0; } && {
1781          test -z "$ac_c_werror_flag" ||
1782          test ! -s conftest.err
1783        } && test -s conftest.$ac_objext; then :
1784   ac_retval=0
1785 else
1786   $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789         ac_retval=1
1790 fi
1791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792   as_fn_set_status $ac_retval
1793
1794 } # ac_fn_c_try_compile
1795
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   rm -f conftest.$ac_objext
1803   if { { ac_try="$ac_compile"
1804 case "(($ac_try" in
1805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806   *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810   (eval "$ac_compile") 2>conftest.err
1811   ac_status=$?
1812   if test -s conftest.err; then
1813     grep -v '^ *+' conftest.err >conftest.er1
1814     cat conftest.er1 >&5
1815     mv -f conftest.er1 conftest.err
1816   fi
1817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818   test $ac_status = 0; } && {
1819          test -z "$ac_cxx_werror_flag" ||
1820          test ! -s conftest.err
1821        } && test -s conftest.$ac_objext; then :
1822   ac_retval=0
1823 else
1824   $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827         ac_retval=1
1828 fi
1829   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830   as_fn_set_status $ac_retval
1831
1832 } # ac_fn_cxx_try_compile
1833
1834 # ac_fn_cxx_try_link LINENO
1835 # -------------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_cxx_try_link ()
1838 {
1839   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840   rm -f conftest.$ac_objext conftest$ac_exeext
1841   if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844   *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848   (eval "$ac_link") 2>conftest.err
1849   ac_status=$?
1850   if test -s conftest.err; then
1851     grep -v '^ *+' conftest.err >conftest.er1
1852     cat conftest.er1 >&5
1853     mv -f conftest.er1 conftest.err
1854   fi
1855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856   test $ac_status = 0; } && {
1857          test -z "$ac_cxx_werror_flag" ||
1858          test ! -s conftest.err
1859        } && test -s conftest$ac_exeext && {
1860          test "$cross_compiling" = yes ||
1861          test -x conftest$ac_exeext
1862        }; then :
1863   ac_retval=0
1864 else
1865   $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868         ac_retval=1
1869 fi
1870   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872   # interfere with the next link command; also delete a directory that is
1873   # left behind by Apple's compiler.  We do this before executing the actions.
1874   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876   as_fn_set_status $ac_retval
1877
1878 } # ac_fn_cxx_try_link
1879
1880 # ac_fn_c_try_link LINENO
1881 # -----------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_c_try_link ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   rm -f conftest.$ac_objext conftest$ac_exeext
1887   if { { ac_try="$ac_link"
1888 case "(($ac_try" in
1889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890   *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894   (eval "$ac_link") 2>conftest.err
1895   ac_status=$?
1896   if test -s conftest.err; then
1897     grep -v '^ *+' conftest.err >conftest.er1
1898     cat conftest.er1 >&5
1899     mv -f conftest.er1 conftest.err
1900   fi
1901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; } && {
1903          test -z "$ac_c_werror_flag" ||
1904          test ! -s conftest.err
1905        } && test -s conftest$ac_exeext && {
1906          test "$cross_compiling" = yes ||
1907          test -x conftest$ac_exeext
1908        }; then :
1909   ac_retval=0
1910 else
1911   $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914         ac_retval=1
1915 fi
1916   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918   # interfere with the next link command; also delete a directory that is
1919   # left behind by Apple's compiler.  We do this before executing the actions.
1920   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922   as_fn_set_status $ac_retval
1923
1924 } # ac_fn_c_try_link
1925 cat >config.log <<_ACEOF
1926 This file contains any messages produced by compilers while
1927 running configure, to aid debugging if configure makes a mistake.
1928
1929 It was created by $as_me, which was
1930 generated by GNU Autoconf 2.69.  Invocation command line was
1931
1932   $ $0 $@
1933
1934 _ACEOF
1935 exec 5>>config.log
1936 {
1937 cat <<_ASUNAME
1938 ## --------- ##
1939 ## Platform. ##
1940 ## --------- ##
1941
1942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1947
1948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1949 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1950
1951 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1952 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1954 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1955 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1956 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1957 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1958
1959 _ASUNAME
1960
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966     $as_echo "PATH: $as_dir"
1967   done
1968 IFS=$as_save_IFS
1969
1970 } >&5
1971
1972 cat >&5 <<_ACEOF
1973
1974
1975 ## ----------- ##
1976 ## Core tests. ##
1977 ## ----------- ##
1978
1979 _ACEOF
1980
1981
1982 # Keep a trace of the command line.
1983 # Strip out --no-create and --no-recursion so they do not pile up.
1984 # Strip out --silent because we don't want to record it for future runs.
1985 # Also quote any args containing shell meta-characters.
1986 # Make two passes to allow for proper duplicate-argument suppression.
1987 ac_configure_args=
1988 ac_configure_args0=
1989 ac_configure_args1=
1990 ac_must_keep_next=false
1991 for ac_pass in 1 2
1992 do
1993   for ac_arg
1994   do
1995     case $ac_arg in
1996     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1997     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1998     | -silent | --silent | --silen | --sile | --sil)
1999       continue ;;
2000     *\'*)
2001       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2002     esac
2003     case $ac_pass in
2004     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2005     2)
2006       as_fn_append ac_configure_args1 " '$ac_arg'"
2007       if test $ac_must_keep_next = true; then
2008         ac_must_keep_next=false # Got value, back to normal.
2009       else
2010         case $ac_arg in
2011           *=* | --config-cache | -C | -disable-* | --disable-* \
2012           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2013           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2014           | -with-* | --with-* | -without-* | --without-* | --x)
2015             case "$ac_configure_args0 " in
2016               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2017             esac
2018             ;;
2019           -* ) ac_must_keep_next=true ;;
2020         esac
2021       fi
2022       as_fn_append ac_configure_args " '$ac_arg'"
2023       ;;
2024     esac
2025   done
2026 done
2027 { ac_configure_args0=; unset ac_configure_args0;}
2028 { ac_configure_args1=; unset ac_configure_args1;}
2029
2030 # When interrupted or exit'd, cleanup temporary files, and complete
2031 # config.log.  We remove comments because anyway the quotes in there
2032 # would cause problems or look ugly.
2033 # WARNING: Use '\'' to represent an apostrophe within the trap.
2034 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2035 trap 'exit_status=$?
2036   # Save into config.log some information that might help in debugging.
2037   {
2038     echo
2039
2040     $as_echo "## ---------------- ##
2041 ## Cache variables. ##
2042 ## ---------------- ##"
2043     echo
2044     # The following way of writing the cache mishandles newlines in values,
2045 (
2046   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2047     eval ac_val=\$$ac_var
2048     case $ac_val in #(
2049     *${as_nl}*)
2050       case $ac_var in #(
2051       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2052 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2053       esac
2054       case $ac_var in #(
2055       _ | IFS | as_nl) ;; #(
2056       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2057       *) { eval $ac_var=; unset $ac_var;} ;;
2058       esac ;;
2059     esac
2060   done
2061   (set) 2>&1 |
2062     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2063     *${as_nl}ac_space=\ *)
2064       sed -n \
2065         "s/'\''/'\''\\\\'\'''\''/g;
2066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2067       ;; #(
2068     *)
2069       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2070       ;;
2071     esac |
2072     sort
2073 )
2074     echo
2075
2076     $as_echo "## ----------------- ##
2077 ## Output variables. ##
2078 ## ----------------- ##"
2079     echo
2080     for ac_var in $ac_subst_vars
2081     do
2082       eval ac_val=\$$ac_var
2083       case $ac_val in
2084       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2085       esac
2086       $as_echo "$ac_var='\''$ac_val'\''"
2087     done | sort
2088     echo
2089
2090     if test -n "$ac_subst_files"; then
2091       $as_echo "## ------------------- ##
2092 ## File substitutions. ##
2093 ## ------------------- ##"
2094       echo
2095       for ac_var in $ac_subst_files
2096       do
2097         eval ac_val=\$$ac_var
2098         case $ac_val in
2099         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100         esac
2101         $as_echo "$ac_var='\''$ac_val'\''"
2102       done | sort
2103       echo
2104     fi
2105
2106     if test -s confdefs.h; then
2107       $as_echo "## ----------- ##
2108 ## confdefs.h. ##
2109 ## ----------- ##"
2110       echo
2111       cat confdefs.h
2112       echo
2113     fi
2114     test "$ac_signal" != 0 &&
2115       $as_echo "$as_me: caught signal $ac_signal"
2116     $as_echo "$as_me: exit $exit_status"
2117   } >&5
2118   rm -f core *.core core.conftest.* &&
2119     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2120     exit $exit_status
2121 ' 0
2122 for ac_signal in 1 2 13 15; do
2123   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2124 done
2125 ac_signal=0
2126
2127 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2128 rm -f -r conftest* confdefs.h
2129
2130 $as_echo "/* confdefs.h */" > confdefs.h
2131
2132 # Predefined preprocessor variables.
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_NAME "$PACKAGE_NAME"
2136 _ACEOF
2137
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2140 _ACEOF
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2144 _ACEOF
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_STRING "$PACKAGE_STRING"
2148 _ACEOF
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_URL "$PACKAGE_URL"
2156 _ACEOF
2157
2158
2159 # Let the site file select an alternate cache file if it wants to.
2160 # Prefer an explicitly selected file to automatically selected ones.
2161 ac_site_file1=NONE
2162 ac_site_file2=NONE
2163 if test -n "$CONFIG_SITE"; then
2164   # We do not want a PATH search for config.site.
2165   case $CONFIG_SITE in #((
2166     -*)  ac_site_file1=./$CONFIG_SITE;;
2167     */*) ac_site_file1=$CONFIG_SITE;;
2168     *)   ac_site_file1=./$CONFIG_SITE;;
2169   esac
2170 elif test "x$prefix" != xNONE; then
2171   ac_site_file1=$prefix/share/config.site
2172   ac_site_file2=$prefix/etc/config.site
2173 else
2174   ac_site_file1=$ac_default_prefix/share/config.site
2175   ac_site_file2=$ac_default_prefix/etc/config.site
2176 fi
2177 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2178 do
2179   test "x$ac_site_file" = xNONE && continue
2180   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2181     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2182 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2183     sed 's/^/| /' "$ac_site_file" >&5
2184     . "$ac_site_file" \
2185       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187 as_fn_error $? "failed to load site script $ac_site_file
2188 See \`config.log' for more details" "$LINENO" 5; }
2189   fi
2190 done
2191
2192 if test -r "$cache_file"; then
2193   # Some versions of bash will fail to source /dev/null (special files
2194   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2195   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2196     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2197 $as_echo "$as_me: loading cache $cache_file" >&6;}
2198     case $cache_file in
2199       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2200       *)                      . "./$cache_file";;
2201     esac
2202   fi
2203 else
2204   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2205 $as_echo "$as_me: creating cache $cache_file" >&6;}
2206   >$cache_file
2207 fi
2208
2209 # Check that the precious variables saved in the cache have kept the same
2210 # value.
2211 ac_cache_corrupted=false
2212 for ac_var in $ac_precious_vars; do
2213   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2214   eval ac_new_set=\$ac_env_${ac_var}_set
2215   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2216   eval ac_new_val=\$ac_env_${ac_var}_value
2217   case $ac_old_set,$ac_new_set in
2218     set,)
2219       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2220 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2221       ac_cache_corrupted=: ;;
2222     ,set)
2223       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2224 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2225       ac_cache_corrupted=: ;;
2226     ,);;
2227     *)
2228       if test "x$ac_old_val" != "x$ac_new_val"; then
2229         # differences in whitespace do not lead to failure.
2230         ac_old_val_w=`echo x $ac_old_val`
2231         ac_new_val_w=`echo x $ac_new_val`
2232         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2233           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2234 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2235           ac_cache_corrupted=:
2236         else
2237           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2238 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2239           eval $ac_var=\$ac_old_val
2240         fi
2241         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2242 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2243         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2244 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2245       fi;;
2246   esac
2247   # Pass precious variables to config.status.
2248   if test "$ac_new_set" = set; then
2249     case $ac_new_val in
2250     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2251     *) ac_arg=$ac_var=$ac_new_val ;;
2252     esac
2253     case " $ac_configure_args " in
2254       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2255       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2256     esac
2257   fi
2258 done
2259 if $ac_cache_corrupted; then
2260   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2262   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2263 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2264   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2265 fi
2266 ## -------------------- ##
2267 ## Main body of script. ##
2268 ## -------------------- ##
2269
2270 ac_ext=c
2271 ac_cpp='$CPP $CPPFLAGS'
2272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2275
2276
2277
2278
2279
2280
2281
2282
2283 progname=$0
2284 # if PWD already has a value, it is probably wrong.
2285 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2286
2287 # Export original configure arguments for use by sub-configures.
2288 # Quote arguments with shell meta charatcers.
2289 TOPLEVEL_CONFIGURE_ARGUMENTS=
2290 set -- "$progname" "$@"
2291 for ac_arg
2292 do
2293   case "$ac_arg" in
2294   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2295     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2296     # if the argument is of the form -foo=baz, quote the baz part only
2297     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2298   *) ;;
2299   esac
2300   # Add the quoted argument to the list.
2301   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2302 done
2303 if test "$silent" = yes; then
2304   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2305 fi
2306 # Remove the initial space we just introduced and, as these will be
2307 # expanded by make, quote '$'.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2309
2310
2311 # Find the build, host, and target systems.
2312 ac_aux_dir=
2313 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2314   if test -f "$ac_dir/install-sh"; then
2315     ac_aux_dir=$ac_dir
2316     ac_install_sh="$ac_aux_dir/install-sh -c"
2317     break
2318   elif test -f "$ac_dir/install.sh"; then
2319     ac_aux_dir=$ac_dir
2320     ac_install_sh="$ac_aux_dir/install.sh -c"
2321     break
2322   elif test -f "$ac_dir/shtool"; then
2323     ac_aux_dir=$ac_dir
2324     ac_install_sh="$ac_aux_dir/shtool install -c"
2325     break
2326   fi
2327 done
2328 if test -z "$ac_aux_dir"; then
2329   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2330 fi
2331
2332 # These three variables are undocumented and unsupported,
2333 # and are intended to be withdrawn in a future Autoconf release.
2334 # They can cause serious problems if a builder's source tree is in a directory
2335 # whose full name contains unusual characters.
2336 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2337 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2338 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2339
2340
2341 # Make sure we can run config.sub.
2342 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2343   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2344
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2346 $as_echo_n "checking build system type... " >&6; }
2347 if ${ac_cv_build+:} false; then :
2348   $as_echo_n "(cached) " >&6
2349 else
2350   ac_build_alias=$build_alias
2351 test "x$ac_build_alias" = x &&
2352   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2353 test "x$ac_build_alias" = x &&
2354   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2355 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2356   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2357
2358 fi
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2360 $as_echo "$ac_cv_build" >&6; }
2361 case $ac_cv_build in
2362 *-*-*) ;;
2363 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2364 esac
2365 build=$ac_cv_build
2366 ac_save_IFS=$IFS; IFS='-'
2367 set x $ac_cv_build
2368 shift
2369 build_cpu=$1
2370 build_vendor=$2
2371 shift; shift
2372 # Remember, the first character of IFS is used to create $*,
2373 # except with old shells:
2374 build_os=$*
2375 IFS=$ac_save_IFS
2376 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2377
2378
2379  case ${build_alias} in
2380   "") build_noncanonical=${build} ;;
2381   *) build_noncanonical=${build_alias} ;;
2382 esac
2383
2384
2385
2386  case ${host_alias} in
2387   "") host_noncanonical=${build_noncanonical} ;;
2388   *) host_noncanonical=${host_alias} ;;
2389 esac
2390
2391
2392
2393  case ${target_alias} in
2394   "") target_noncanonical=${host_noncanonical} ;;
2395   *) target_noncanonical=${target_alias} ;;
2396 esac
2397
2398
2399
2400
2401 test "$host_noncanonical" = "$target_noncanonical" &&
2402   test "$program_prefix$program_suffix$program_transform_name" = \
2403     NONENONEs,x,x, &&
2404   program_transform_name=s,y,y,
2405
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2407 $as_echo_n "checking host system type... " >&6; }
2408 if ${ac_cv_host+:} false; then :
2409   $as_echo_n "(cached) " >&6
2410 else
2411   if test "x$host_alias" = x; then
2412   ac_cv_host=$ac_cv_build
2413 else
2414   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2415     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2416 fi
2417
2418 fi
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2420 $as_echo "$ac_cv_host" >&6; }
2421 case $ac_cv_host in
2422 *-*-*) ;;
2423 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2424 esac
2425 host=$ac_cv_host
2426 ac_save_IFS=$IFS; IFS='-'
2427 set x $ac_cv_host
2428 shift
2429 host_cpu=$1
2430 host_vendor=$2
2431 shift; shift
2432 # Remember, the first character of IFS is used to create $*,
2433 # except with old shells:
2434 host_os=$*
2435 IFS=$ac_save_IFS
2436 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2437
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2440 $as_echo_n "checking target system type... " >&6; }
2441 if ${ac_cv_target+:} false; then :
2442   $as_echo_n "(cached) " >&6
2443 else
2444   if test "x$target_alias" = x; then
2445   ac_cv_target=$ac_cv_host
2446 else
2447   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2448     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2449 fi
2450
2451 fi
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2453 $as_echo "$ac_cv_target" >&6; }
2454 case $ac_cv_target in
2455 *-*-*) ;;
2456 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2457 esac
2458 target=$ac_cv_target
2459 ac_save_IFS=$IFS; IFS='-'
2460 set x $ac_cv_target
2461 shift
2462 target_cpu=$1
2463 target_vendor=$2
2464 shift; shift
2465 # Remember, the first character of IFS is used to create $*,
2466 # except with old shells:
2467 target_os=$*
2468 IFS=$ac_save_IFS
2469 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2470
2471
2472 # The aliases save the names the user supplied, while $host etc.
2473 # will get canonicalized.
2474 test -n "$target_alias" &&
2475   test "$program_prefix$program_suffix$program_transform_name" = \
2476     NONENONEs,x,x, &&
2477   program_prefix=${target_alias}-
2478
2479 test "$program_prefix" != NONE &&
2480   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2481 # Use a double $ so make ignores it.
2482 test "$program_suffix" != NONE &&
2483   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2484 # Double any \ or $.
2485 # By default was `s,x,x', remove it if useless.
2486 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2487 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2488
2489
2490
2491 # Get 'install' or 'install-sh' and its variants.
2492 # Find a good install program.  We prefer a C program (faster),
2493 # so one script is as good as another.  But avoid the broken or
2494 # incompatible versions:
2495 # SysV /etc/install, /usr/sbin/install
2496 # SunOS /usr/etc/install
2497 # IRIX /sbin/install
2498 # AIX /bin/install
2499 # AmigaOS /C/install, which installs bootblocks on floppy discs
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # OS/2's system install, which has a completely different semantic
2504 # ./install, which can be erroneously created by make from ./install.sh.
2505 # Reject install programs that cannot install multiple files.
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2507 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2508 if test -z "$INSTALL"; then
2509 if ${ac_cv_path_install+:} false; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515   IFS=$as_save_IFS
2516   test -z "$as_dir" && as_dir=.
2517     # Account for people who put trailing slashes in PATH elements.
2518 case $as_dir/ in #((
2519   ./ | .// | /[cC]/* | \
2520   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2522   /usr/ucb/* ) ;;
2523   *)
2524     # OSF1 and SCO ODT 3.0 have their own names for install.
2525     # Don't use installbsd from OSF since it installs stuff as root
2526     # by default.
2527     for ac_prog in ginstall scoinst install; do
2528       for ac_exec_ext in '' $ac_executable_extensions; do
2529         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2530           if test $ac_prog = install &&
2531             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532             # AIX install.  It has an incompatible calling convention.
2533             :
2534           elif test $ac_prog = install &&
2535             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536             # program-specific install script used by HP pwplus--don't use.
2537             :
2538           else
2539             rm -rf conftest.one conftest.two conftest.dir
2540             echo one > conftest.one
2541             echo two > conftest.two
2542             mkdir conftest.dir
2543             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2544               test -s conftest.one && test -s conftest.two &&
2545               test -s conftest.dir/conftest.one &&
2546               test -s conftest.dir/conftest.two
2547             then
2548               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2549               break 3
2550             fi
2551           fi
2552         fi
2553       done
2554     done
2555     ;;
2556 esac
2557
2558   done
2559 IFS=$as_save_IFS
2560
2561 rm -rf conftest.one conftest.two conftest.dir
2562
2563 fi
2564   if test "${ac_cv_path_install+set}" = set; then
2565     INSTALL=$ac_cv_path_install
2566   else
2567     # As a last resort, use the slow shell script.  Don't cache a
2568     # value for INSTALL within a source directory, because that will
2569     # break other packages using the cache if that directory is
2570     # removed, or if the value is a relative name.
2571     INSTALL=$ac_install_sh
2572   fi
2573 fi
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2575 $as_echo "$INSTALL" >&6; }
2576
2577 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2578 # It thinks the first close brace ends the variable substitution.
2579 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2580
2581 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2582
2583 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2584
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2586 $as_echo_n "checking whether ln works... " >&6; }
2587 if ${acx_cv_prog_LN+:} false; then :
2588   $as_echo_n "(cached) " >&6
2589 else
2590   rm -f conftestdata_t
2591 echo >conftestdata_f
2592 if ln conftestdata_f conftestdata_t 2>/dev/null
2593 then
2594   acx_cv_prog_LN=ln
2595 else
2596   acx_cv_prog_LN=no
2597 fi
2598 rm -f conftestdata_f conftestdata_t
2599
2600 fi
2601 if test $acx_cv_prog_LN = no; then
2602   LN="cp"
2603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2604 $as_echo "no, using $LN" >&6; }
2605 else
2606   LN="$acx_cv_prog_LN"
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2608 $as_echo "yes" >&6; }
2609 fi
2610
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2612 $as_echo_n "checking whether ln -s works... " >&6; }
2613 LN_S=$as_ln_s
2614 if test "$LN_S" = "ln -s"; then
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 else
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2619 $as_echo "no, using $LN_S" >&6; }
2620 fi
2621
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2623 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2624 if ${ac_cv_path_SED+:} false; then :
2625   $as_echo_n "(cached) " >&6
2626 else
2627             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2628      for ac_i in 1 2 3 4 5 6 7; do
2629        ac_script="$ac_script$as_nl$ac_script"
2630      done
2631      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2632      { ac_script=; unset ac_script;}
2633      if test -z "$SED"; then
2634   ac_path_SED_found=false
2635   # Loop through the user's path and test for each of PROGNAME-LIST
2636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641     for ac_prog in sed gsed; do
2642     for ac_exec_ext in '' $ac_executable_extensions; do
2643       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2644       as_fn_executable_p "$ac_path_SED" || continue
2645 # Check for GNU ac_path_SED and select it if it is found.
2646   # Check for GNU $ac_path_SED
2647 case `"$ac_path_SED" --version 2>&1` in
2648 *GNU*)
2649   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2650 *)
2651   ac_count=0
2652   $as_echo_n 0123456789 >"conftest.in"
2653   while :
2654   do
2655     cat "conftest.in" "conftest.in" >"conftest.tmp"
2656     mv "conftest.tmp" "conftest.in"
2657     cp "conftest.in" "conftest.nl"
2658     $as_echo '' >> "conftest.nl"
2659     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2660     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2661     as_fn_arith $ac_count + 1 && ac_count=$as_val
2662     if test $ac_count -gt ${ac_path_SED_max-0}; then
2663       # Best one so far, save it but keep looking for a better one
2664       ac_cv_path_SED="$ac_path_SED"
2665       ac_path_SED_max=$ac_count
2666     fi
2667     # 10*(2^10) chars as input seems more than enough
2668     test $ac_count -gt 10 && break
2669   done
2670   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2671 esac
2672
2673       $ac_path_SED_found && break 3
2674     done
2675   done
2676   done
2677 IFS=$as_save_IFS
2678   if test -z "$ac_cv_path_SED"; then
2679     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2680   fi
2681 else
2682   ac_cv_path_SED=$SED
2683 fi
2684
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2687 $as_echo "$ac_cv_path_SED" >&6; }
2688  SED="$ac_cv_path_SED"
2689   rm -f conftest.sed
2690
2691 for ac_prog in gawk mawk nawk awk
2692 do
2693   # Extract the first word of "$ac_prog", so it can be a program name with args.
2694 set dummy $ac_prog; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_AWK+:} false; then :
2698   $as_echo_n "(cached) " >&6
2699 else
2700   if test -n "$AWK"; then
2701   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708     for ac_exec_ext in '' $ac_executable_extensions; do
2709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710     ac_cv_prog_AWK="$ac_prog"
2711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712     break 2
2713   fi
2714 done
2715   done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 AWK=$ac_cv_prog_AWK
2721 if test -n "$AWK"; then
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2723 $as_echo "$AWK" >&6; }
2724 else
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729
2730   test -n "$AWK" && break
2731 done
2732
2733
2734 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2735
2736 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2737 # a relative path.
2738 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2739   INSTALL="${srcpwd}/install-sh -c"
2740 fi
2741
2742 # Set srcdir to "." if that's what it is.
2743 # This is important for multilib support.
2744 pwd=`${PWDCMD-pwd}`
2745 if test "${pwd}" = "${srcpwd}" ; then
2746   srcdir=.
2747 fi
2748
2749 topsrcdir=$srcpwd
2750
2751 extra_host_args=
2752
2753 ### To add a new directory to the tree, first choose whether it is a target
2754 ### or a host dependent tool.  Then put it into the appropriate list
2755 ### (library or tools, host or target), doing a dependency sort.
2756
2757 # Subdirs will be configured in the order listed in build_configdirs,
2758 # configdirs, or target_configdirs; see the serialization section below.
2759
2760 # Dependency sorting is only needed when *configuration* must be done in
2761 # a particular order.  In all cases a dependency should be specified in
2762 # the Makefile, whether or not it's implicitly specified here.
2763
2764 # Double entries in build_configdirs, configdirs, or target_configdirs may
2765 # cause circular dependencies and break everything horribly.
2766
2767 # these library is used by various programs built for the build
2768 # environment
2769 #
2770 build_libs="build-libiberty build-libcpp"
2771
2772 # these tools are built for the build environment
2773 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2774
2775 # these libraries are used by various programs built for the host environment
2776 #f
2777 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2778
2779 # these tools are built for the host environment
2780 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2781 # know that we are building the simulator.
2782 # binutils, gas and ld appear in that order because it makes sense to run
2783 # "make check" in that particular order.
2784 # If --enable-gold is used, "gold" may replace "ld".
2785 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2786
2787 # these libraries are built for the target environment, and are built after
2788 # the host libraries and the host tools (which may be a cross compiler)
2789 # Note that libiberty is not a target library.
2790 target_libraries="target-libgcc \
2791                 target-libbacktrace \
2792                 target-libgloss \
2793                 target-newlib \
2794                 target-libgomp \
2795                 target-liboffloadmic \
2796                 target-libhsail-rt \
2797                 target-libatomic \
2798                 target-libitm \
2799                 target-libstdc++-v3 \
2800                 target-libsanitizer \
2801                 target-libvtv \
2802                 target-libssp \
2803                 target-libquadmath \
2804                 target-libgfortran \
2805                 target-libffi \
2806                 target-libobjc \
2807                 target-libada \
2808                 target-libgo \
2809                 target-libphobos"
2810
2811 # these tools are built using the target libraries, and are intended to
2812 # run only in the target environment
2813 #
2814 # note: any program that *uses* libraries that are in the "target_libraries"
2815 # list belongs in this list.
2816 #
2817 target_tools="target-rda"
2818
2819 ################################################################################
2820
2821 ## All tools belong in one of the four categories, and are assigned above
2822 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2823 ## is important because configure will choke if they ever get through.
2824 ## ${configdirs} is directories we build using the host tools.
2825 ## ${target_configdirs} is directories we build using the target tools.
2826 configdirs=`echo ${host_libs} ${host_tools}`
2827 target_configdirs=`echo ${target_libraries} ${target_tools}`
2828 build_configdirs=`echo ${build_libs} ${build_tools}`
2829
2830
2831
2832 ################################################################################
2833
2834 srcname="gnu development package"
2835
2836 # This gets set non-empty for some net releases of packages.
2837 appdirs=""
2838
2839 # Define is_cross_compiler to save on calls to 'test'.
2840 is_cross_compiler=
2841 if test x"${host}" = x"${target}" ; then
2842   is_cross_compiler=no
2843 else
2844   is_cross_compiler=yes
2845 fi
2846
2847 # Find the build and target subdir names.
2848
2849 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2850 # have matching libraries, they should use host libraries: Makefile.tpl
2851 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2852 # However, they still use the build modules, because the corresponding
2853 # host modules (e.g. bison) are only built for the host when bootstrap
2854 # finishes. So:
2855 # - build_subdir is where we find build modules, and never changes.
2856 # - build_libsubdir is where we find build libraries, and can be overridden.
2857
2858 # Prefix 'build-' so this never conflicts with target_subdir.
2859 build_subdir="build-${build_noncanonical}"
2860
2861 # Check whether --with-build-libsubdir was given.
2862 if test "${with_build_libsubdir+set}" = set; then :
2863   withval=$with_build_libsubdir; build_libsubdir="$withval"
2864 else
2865   build_libsubdir="$build_subdir"
2866 fi
2867
2868 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2869 if ( test $srcdir = . && test -d gcc ) \
2870    || test -d $srcdir/../host-${host_noncanonical}; then
2871   host_subdir="host-${host_noncanonical}"
2872 else
2873   host_subdir=.
2874 fi
2875 # No prefix.
2876 target_subdir=${target_noncanonical}
2877
2878 # Be sure to cover against remnants of an in-tree build.
2879 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2880   as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2881 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2882 fi
2883
2884 # Skipdirs are removed silently.
2885 skipdirs=
2886 # Noconfigdirs are removed loudly.
2887 noconfigdirs=""
2888
2889 use_gnu_ld=
2890 # Make sure we don't let GNU ld be added if we didn't want it.
2891 if test x$with_gnu_ld = xno ; then
2892   use_gnu_ld=no
2893   noconfigdirs="$noconfigdirs ld gold"
2894 fi
2895
2896 use_gnu_as=
2897 # Make sure we don't let GNU as be added if we didn't want it.
2898 if test x$with_gnu_as = xno ; then
2899   use_gnu_as=no
2900   noconfigdirs="$noconfigdirs gas"
2901 fi
2902
2903 use_included_zlib=
2904
2905 # Check whether --with-system-zlib was given.
2906 if test "${with_system_zlib+set}" = set; then :
2907   withval=$with_system_zlib;
2908 fi
2909
2910 # Make sure we don't let ZLIB be added if we didn't want it.
2911 if test x$with_system_zlib = xyes ; then
2912   use_included_zlib=no
2913   noconfigdirs="$noconfigdirs zlib"
2914 fi
2915
2916 # some tools are so dependent upon X11 that if we're not building with X,
2917 # it's not even worth trying to configure, much less build, that tool.
2918
2919 case ${with_x} in
2920   yes | "") ;; # the default value for this tree is that X11 is available
2921   no)
2922     skipdirs="${skipdirs} tk itcl libgui"
2923     # We won't be able to build gdbtk without X.
2924     enable_gdbtk=no
2925     ;;
2926   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2927 esac
2928
2929 # Some are only suitable for cross toolchains.
2930 # Remove these if host=target.
2931 cross_only="target-libgloss target-newlib target-opcodes"
2932
2933 case $is_cross_compiler in
2934   no) skipdirs="${skipdirs} ${cross_only}" ;;
2935 esac
2936
2937 # If both --with-headers and --with-libs are specified, default to
2938 # --without-newlib.
2939 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2940    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2941   if test x"${with_newlib}" = x ; then
2942     with_newlib=no
2943   fi
2944 fi
2945
2946 # Recognize --with-newlib/--without-newlib.
2947 case ${with_newlib} in
2948   no) skipdirs="${skipdirs} target-newlib" ;;
2949   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2950 esac
2951
2952 # Check whether --enable-as-accelerator-for was given.
2953 if test "${enable_as_accelerator_for+set}" = set; then :
2954   enableval=$enable_as_accelerator_for;
2955 fi
2956
2957
2958 # Check whether --enable-offload-targets was given.
2959 if test "${enable_offload_targets+set}" = set; then :
2960   enableval=$enable_offload_targets;
2961   if test x"$enable_offload_targets" = x; then
2962     as_fn_error $? "no offload targets specified" "$LINENO" 5
2963   fi
2964
2965 else
2966   enable_offload_targets=
2967 fi
2968
2969
2970 # Handle --enable-gold, --enable-ld.
2971 # --disable-gold [--enable-ld]
2972 #     Build only ld.  Default option.
2973 # --enable-gold [--enable-ld]
2974 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2975 #     as "ld.bfd" and "ld".
2976 # --enable-gold=default [--enable-ld]
2977 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2978 #     install ld as "ld.bfd".
2979 # --enable-gold[=default] --disable-ld
2980 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2981 # --enable-gold --enable-ld=default
2982 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2983 #     and ld.bfd).
2984 #     In other words, ld is default
2985 # --enable-gold=default --enable-ld=default
2986 #     Error.
2987
2988 default_ld=
2989 # Check whether --enable-gold was given.
2990 if test "${enable_gold+set}" = set; then :
2991   enableval=$enable_gold; ENABLE_GOLD=$enableval
2992 else
2993   ENABLE_GOLD=no
2994 fi
2995
2996 case "${ENABLE_GOLD}" in
2997   yes|default)
2998     # Check for ELF target.
2999     is_elf=no
3000     case "${target}" in
3001       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3002       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3003       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3004       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3005         case "${target}" in
3006           *-*-linux*aout* | *-*-linux*oldld*)
3007             ;;
3008           *)
3009             is_elf=yes
3010             ;;
3011         esac
3012     esac
3013
3014     if test "$is_elf" = "yes"; then
3015       # Check for target supported by gold.
3016       case "${target}" in
3017         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3018         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3019           configdirs="$configdirs gold"
3020           if test x${ENABLE_GOLD} = xdefault; then
3021             default_ld=gold
3022           fi
3023           ENABLE_GOLD=yes
3024           ;;
3025       esac
3026     fi
3027     ;;
3028   no)
3029     ;;
3030   *)
3031     as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3032     ;;
3033 esac
3034
3035 # Check whether --enable-ld was given.
3036 if test "${enable_ld+set}" = set; then :
3037   enableval=$enable_ld; ENABLE_LD=$enableval
3038 else
3039   ENABLE_LD=yes
3040 fi
3041
3042
3043 case "${ENABLE_LD}" in
3044   default)
3045     if test x${default_ld} != x; then
3046       as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3047     fi
3048     ;;
3049   yes)
3050     ;;
3051   no)
3052     if test x${ENABLE_GOLD} != xyes; then
3053       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3054 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3055     fi
3056     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3057     ;;
3058   *)
3059     as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3060     ;;
3061 esac
3062
3063 # PR gas/19109
3064 # Decide the default method for compressing debug sections.
3065 # Provide a configure time option to override our default.
3066 # Check whether --enable-compressed_debug_sections was given.
3067 if test "${enable_compressed_debug_sections+set}" = set; then :
3068   enableval=$enable_compressed_debug_sections;
3069   if test x"$enable_compressed_debug_sections" = xyes; then
3070     as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3071   fi
3072
3073 else
3074   enable_compressed_debug_sections=
3075 fi
3076
3077
3078 # Configure extra directories which are host specific
3079
3080 case "${host}" in
3081   *-cygwin*)
3082     configdirs="$configdirs libtermcap" ;;
3083 esac
3084
3085 # A target can indicate whether a language isn't supported for some reason.
3086 # Only spaces may be used in this macro; not newlines or tabs.
3087 unsupported_languages=
3088
3089 # Remove more programs from consideration, based on the host or
3090 # target this usually means that a port of the program doesn't
3091 # exist yet.
3092
3093 case "${host}" in
3094   i[3456789]86-*-msdosdjgpp*)
3095     noconfigdirs="$noconfigdirs tcl tk itcl"
3096     ;;
3097 esac
3098
3099
3100 # Check whether --enable-libquadmath was given.
3101 if test "${enable_libquadmath+set}" = set; then :
3102   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3103 else
3104   ENABLE_LIBQUADMATH=yes
3105 fi
3106
3107 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3108   noconfigdirs="$noconfigdirs target-libquadmath"
3109 fi
3110
3111
3112 # Check whether --enable-libquadmath-support was given.
3113 if test "${enable_libquadmath_support+set}" = set; then :
3114   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3115 else
3116   ENABLE_LIBQUADMATH_SUPPORT=yes
3117 fi
3118
3119 enable_libquadmath_support=
3120 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3121   enable_libquadmath_support=no
3122 fi
3123
3124
3125 # Check whether --enable-libada was given.
3126 if test "${enable_libada+set}" = set; then :
3127   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3128 else
3129   ENABLE_LIBADA=yes
3130 fi
3131
3132 if test "${ENABLE_LIBADA}" != "yes" ; then
3133   noconfigdirs="$noconfigdirs gnattools"
3134 fi
3135
3136 # Check whether --enable-libssp was given.
3137 if test "${enable_libssp+set}" = set; then :
3138   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3139 else
3140   ENABLE_LIBSSP=yes
3141 fi
3142
3143
3144 # Check whether --enable-libstdcxx was given.
3145 if test "${enable_libstdcxx+set}" = set; then :
3146   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3147 else
3148   ENABLE_LIBSTDCXX=default
3149 fi
3150
3151 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3152   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3153 fi
3154
3155 # If this is accelerator compiler and its target is intelmic we enable
3156 # target liboffloadmic by default.  If this is compiler with offloading
3157 # for intelmic we enable host liboffloadmic by default.  Otherwise
3158 # liboffloadmic is disabled by default.
3159 # Check whether --enable-liboffloadmic was given.
3160 if test "${enable_liboffloadmic+set}" = set; then :
3161   enableval=$enable_liboffloadmic; case "$enableval" in
3162   no | host | target)
3163     enable_liboffloadmic=$enableval ;;
3164   *)
3165     as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3166 esac
3167 else
3168   if test x"$enable_as_accelerator_for" != x; then
3169   case "${target}" in
3170     *-intelmic-* | *-intelmicemul-*)
3171       enable_liboffloadmic=target
3172       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3173       ;;
3174     *)
3175       enable_liboffloadmic=no
3176       ;;
3177   esac
3178 else
3179   case "${enable_offload_targets}" in
3180     *-intelmic-* | *-intelmicemul-*)
3181       enable_liboffloadmic=host
3182       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3183       ;;
3184     *)
3185       enable_liboffloadmic=no
3186       ;;
3187     esac
3188 fi
3189 fi
3190
3191
3192
3193 # Enable libgomp by default on hosted POSIX systems, and a few others.
3194 if test x$enable_libgomp = x ; then
3195     case "${target}" in
3196     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3197         ;;
3198     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3199         ;;
3200     *-*-solaris2* | *-*-hpux11*)
3201         ;;
3202     *-*-darwin* | *-*-aix*)
3203         ;;
3204     nvptx*-*-*)
3205         ;;
3206     *)
3207         noconfigdirs="$noconfigdirs target-libgomp"
3208         ;;
3209     esac
3210 fi
3211
3212 # Disable libatomic on unsupported systems.
3213 if test -d ${srcdir}/libatomic; then
3214     if test x$enable_libatomic = x; then
3215         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3216 $as_echo_n "checking for libatomic support... " >&6; }
3217         if (srcdir=${srcdir}/libatomic; \
3218                 . ${srcdir}/configure.tgt; \
3219                 test -n "$UNSUPPORTED")
3220         then
3221             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223             noconfigdirs="$noconfigdirs target-libatomic"
3224         else
3225             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3227         fi
3228     fi
3229 fi
3230
3231 # Disable liboffloadmic on unsupported systems.
3232 if test -d ${srcdir}/liboffloadmic; then
3233     if test x$enable_liboffloadmic != xno; then
3234         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3235 $as_echo_n "checking for liboffloadmic support... " >&6; }
3236         if (srcdir=${srcdir}/liboffloadmic; \
3237                 . ${srcdir}/configure.tgt; \
3238                 test -n "$UNSUPPORTED")
3239         then
3240             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242             noconfigdirs="$noconfigdirs target-liboffloadmic"
3243         else
3244             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3245 $as_echo "yes" >&6; }
3246         fi
3247     fi
3248 fi
3249
3250 # Disable libitm on unsupported systems.
3251 if test -d ${srcdir}/libitm; then
3252     if test x$enable_libitm = x; then
3253         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3254 $as_echo_n "checking for libitm support... " >&6; }
3255         if (srcdir=${srcdir}/libitm; \
3256                 . ${srcdir}/configure.tgt; \
3257                 test -n "$UNSUPPORTED")
3258         then
3259             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261             noconfigdirs="$noconfigdirs target-libitm"
3262         else
3263             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264 $as_echo "yes" >&6; }
3265         fi
3266     fi
3267 fi
3268
3269 # Disable libsanitizer on unsupported systems.
3270 if test -d ${srcdir}/libsanitizer; then
3271     if test x$enable_libsanitizer = x; then
3272         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3273 $as_echo_n "checking for libsanitizer support... " >&6; }
3274         if (srcdir=${srcdir}/libsanitizer; \
3275                 . ${srcdir}/configure.tgt; \
3276                 test -n "$UNSUPPORTED")
3277         then
3278             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3280             noconfigdirs="$noconfigdirs target-libsanitizer"
3281         else
3282             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3284         fi
3285     fi
3286 fi
3287
3288 # Disable libvtv on unsupported systems.
3289 if test -d ${srcdir}/libvtv; then
3290     if test x$enable_libvtv = x; then
3291         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3292 $as_echo_n "checking for libvtv support... " >&6; }
3293         if (srcdir=${srcdir}/libvtv; \
3294                 . ${srcdir}/configure.tgt; \
3295                 test "$VTV_SUPPORTED" != "yes")
3296         then
3297             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299             noconfigdirs="$noconfigdirs target-libvtv"
3300         else
3301             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302 $as_echo "yes" >&6; }
3303         fi
3304     fi
3305 fi
3306
3307
3308 # Disable libhsail-rt on unsupported systems.
3309 if test -d ${srcdir}/libhsail-rt; then
3310     if test x$enable_libhsail_rt = x; then
3311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3312 $as_echo_n "checking for libhsail-rt support... " >&6; }
3313         if (srcdir=${srcdir}/libhsail-rt; \
3314                 . ${srcdir}/configure.tgt; \
3315                 test -n "$UNSUPPORTED")
3316         then
3317             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319             unsupported_languages="$unsupported_languages brig"
3320             # This implicitly disables also target-libhsail-rt as it won't
3321             # get added to the build without BRIG FE.
3322         else
3323             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3325         fi
3326     fi
3327 fi
3328
3329
3330 # Disable libquadmath for some systems.
3331 case "${target}" in
3332   avr-*-*)
3333     noconfigdirs="$noconfigdirs target-libquadmath"
3334     ;;
3335   # libquadmath is unused on AIX and libquadmath build process use of
3336   # LD_LIBRARY_PATH can break AIX bootstrap.
3337   powerpc-*-aix* | rs6000-*-aix*)
3338     noconfigdirs="$noconfigdirs target-libquadmath"
3339     ;;
3340 esac
3341
3342 # Disable libssp for some systems.
3343 case "${target}" in
3344   avr-*-*)
3345     # No hosted I/O support.
3346     noconfigdirs="$noconfigdirs target-libssp"
3347     ;;
3348   powerpc-*-aix* | rs6000-*-aix*)
3349     noconfigdirs="$noconfigdirs target-libssp"
3350     ;;
3351   rl78-*-*)
3352     # libssp uses a misaligned load to trigger a fault, but the RL78
3353     # doesn't fault for those - instead, it gives a build-time error
3354     # for explicit misaligned loads.
3355     noconfigdirs="$noconfigdirs target-libssp"
3356     ;;
3357   visium-*-*)
3358     # No hosted I/O support.
3359     noconfigdirs="$noconfigdirs target-libssp"
3360     ;;
3361 esac
3362
3363 # Disable libstdc++-v3 for some systems.
3364 # Allow user to override this if they pass --enable-libstdc++-v3
3365 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3366   case "${target}" in
3367     *-*-vxworks*)
3368       # VxWorks uses the Dinkumware C++ library.
3369       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3370       ;;
3371     arm*-wince-pe*)
3372       # the C++ libraries don't build on top of CE's C libraries
3373       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374       ;;
3375     avr-*-*)
3376       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3377       ;;
3378     ft32-*-*)
3379       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3380       ;;
3381   esac
3382 fi
3383
3384 # Disable D on systems where it is known to not work.
3385 # For testing, you can override this with --enable-languages=d.
3386 case ,${enable_languages}, in
3387   *,d,*)
3388     ;;
3389   *)
3390     case "${target}" in
3391       *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3392         unsupported_languages="$unsupported_languages d"
3393         ;;
3394     esac
3395     ;;
3396 esac
3397
3398 # Disable libphobos on unsupported systems.
3399 # For testing, you can override this with --enable-libphobos.
3400 if test -d ${srcdir}/libphobos; then
3401     if test x$enable_libphobos = x; then
3402         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3403 $as_echo_n "checking for libphobos support... " >&6; }
3404         if (srcdir=${srcdir}/libphobos; \
3405                 . ${srcdir}/configure.tgt; \
3406                 test -n "$UNSUPPORTED")
3407         then
3408             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410             noconfigdirs="$noconfigdirs target-libphobos"
3411         else
3412             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413 $as_echo "yes" >&6; }
3414         fi
3415     fi
3416 fi
3417
3418 # Disable Fortran for some systems.
3419 case "${target}" in
3420   mmix-*-*)
3421     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3422     unsupported_languages="$unsupported_languages fortran"
3423     ;;
3424 esac
3425
3426 # Disable libffi for some systems.
3427 case "${target}" in
3428   powerpc-*-darwin*)
3429     ;;
3430   i[3456789]86-*-darwin*)
3431     ;;
3432   x86_64-*-darwin[912]*)
3433     ;;
3434   *-*-darwin*)
3435     noconfigdirs="$noconfigdirs target-libffi"
3436     ;;
3437   *-*-netware*)
3438     noconfigdirs="$noconfigdirs target-libffi"
3439     ;;
3440   *-*-phoenix*)
3441     noconfigdirs="$noconfigdirs target-libffi"
3442     ;;
3443   *-*-rtems*)
3444     noconfigdirs="$noconfigdirs target-libffi"
3445     ;;
3446   *-*-tpf*)
3447     noconfigdirs="$noconfigdirs target-libffi"
3448     ;;
3449   *-*-uclinux*)
3450     noconfigdirs="$noconfigdirs target-libffi"
3451     ;;
3452   *-*-vxworks*)
3453     noconfigdirs="$noconfigdirs target-libffi"
3454     ;;
3455   aarch64*-*-freebsd*)
3456     noconfigdirs="$noconfigdirs target-libffi"
3457     ;;
3458   alpha*-*-*vms*)
3459     noconfigdirs="$noconfigdirs target-libffi"
3460     ;;
3461   arm*-*-freebsd*)
3462     noconfigdirs="$noconfigdirs target-libffi"
3463     ;;
3464   arm-wince-pe)
3465     noconfigdirs="$noconfigdirs target-libffi"
3466     ;;
3467   arm*-*-symbianelf*)
3468     noconfigdirs="$noconfigdirs target-libffi"
3469     ;;
3470   cris-*-* | crisv32-*-*)
3471     case "${target}" in
3472       *-*-linux*)
3473         ;;
3474       *) # See PR46792 regarding target-libffi.
3475         noconfigdirs="$noconfigdirs target-libffi";;
3476     esac
3477     ;;
3478   hppa*64*-*-hpux*)
3479     noconfigdirs="$noconfigdirs target-libffi"
3480     ;;
3481   hppa*-hp-hpux11*)
3482     ;;
3483   hppa*-*-hpux*)
3484     noconfigdirs="$noconfigdirs target-libffi"
3485     ;;
3486   ia64*-*-*vms*)
3487     noconfigdirs="$noconfigdirs target-libffi"
3488     ;;
3489   i[3456789]86-w64-mingw*)
3490     noconfigdirs="$noconfigdirs target-libffi"
3491     ;;
3492   i[3456789]86-*-mingw*)
3493     noconfigdirs="$noconfigdirs target-libffi"
3494     ;;
3495   x86_64-*-mingw*)
3496     noconfigdirs="$noconfigdirs target-libffi"
3497     ;;
3498   mmix-*-*)
3499     noconfigdirs="$noconfigdirs target-libffi"
3500     ;;
3501   powerpc-*-aix*)
3502     ;;
3503   rs6000-*-aix*)
3504     ;;
3505   ft32-*-*)
3506     noconfigdirs="$noconfigdirs target-libffi"
3507     ;;
3508   *-*-lynxos*)
3509     noconfigdirs="$noconfigdirs target-libffi"
3510     ;;
3511 esac
3512
3513 # Disable the go frontend on systems where it is known to not work. Please keep
3514 # this in sync with contrib/config-list.mk.
3515 case "${target}" in
3516 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3517     unsupported_languages="$unsupported_languages go"
3518     ;;
3519 esac
3520
3521 # Disable libgo for some systems where it is known to not work.
3522 # For testing, you can easily override this with --enable-libgo.
3523 if test x$enable_libgo = x; then
3524     case "${target}" in
3525     *-*-darwin*)
3526         # PR 46986
3527         noconfigdirs="$noconfigdirs target-libgo"
3528         ;;
3529     *-*-cygwin* | *-*-mingw*)
3530         noconfigdirs="$noconfigdirs target-libgo"
3531         ;;
3532     esac
3533 fi
3534
3535 # Default libgloss CPU subdirectory.
3536 libgloss_dir="$target_cpu"
3537
3538 case "${target}" in
3539   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3540     libgloss_dir=wince
3541     ;;
3542   aarch64*-*-* )
3543     libgloss_dir=aarch64
3544     ;;
3545   arm*-*-*)
3546     libgloss_dir=arm
3547     ;;
3548   cris-*-* | crisv32-*-*)
3549     libgloss_dir=cris
3550     ;;
3551   hppa*-*-*)
3552     libgloss_dir=pa
3553     ;;
3554   i[3456789]86-*-*)
3555     libgloss_dir=i386
3556     ;;
3557   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3558     libgloss_dir=m68hc11
3559     ;;
3560   m68*-*-* | fido-*-*)
3561     libgloss_dir=m68k
3562     ;;
3563   mips*-*-*)
3564     libgloss_dir=mips
3565     ;;
3566   powerpc*-*-*)
3567     libgloss_dir=rs6000
3568     ;;
3569   sparc*-*-*)
3570     libgloss_dir=sparc
3571     ;;
3572 esac
3573
3574 # Disable newlib and libgloss for various target OSes.
3575 case "${target}" in
3576   alpha*-dec-osf*)
3577     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578     ;;
3579   i[3456789]86-*-linux*)
3580     # This section makes it possible to build newlib natively on linux.
3581     # If we are using a cross compiler then don't configure newlib.
3582     if test x${is_cross_compiler} != xno ; then
3583       noconfigdirs="$noconfigdirs target-newlib"
3584     fi
3585     noconfigdirs="$noconfigdirs target-libgloss"
3586     # If we are not using a cross compiler, do configure newlib.
3587     # Note however, that newlib will only be configured in this situation
3588     # if the --with-newlib option has been given, because otherwise
3589     # 'target-newlib' will appear in skipdirs.
3590     ;;
3591   i[3456789]86-*-rdos*)
3592     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593     ;;
3594   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3595     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596     ;;
3597   sparc-*-sunos4*)
3598     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599     ;;
3600   *-*-aix*)
3601     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602     ;;
3603   *-*-beos*)
3604     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605     ;;
3606   *-*-chorusos)
3607     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608     ;;
3609   *-*-dragonfly*)
3610     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611     ;;
3612   *-*-freebsd*)
3613     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614     ;;
3615   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3616     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617     ;;
3618   *-*-lynxos*)
3619     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620     ;;
3621   *-*-mingw*)
3622     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623     ;;
3624   *-*-netbsd*)
3625     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626     ;;
3627   *-*-netware*)
3628     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629     ;;
3630   *-*-tpf*)
3631     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632     ;;
3633   *-*-uclinux*)
3634     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635     ;;
3636   *-*-vxworks*)
3637     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638     ;;
3639 esac
3640
3641 case "${target}" in
3642   *-*-chorusos)
3643     ;;
3644   aarch64-*-darwin*)
3645     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3646     noconfigdirs="$noconfigdirs sim target-rda"
3647     ;;
3648   arm-*-darwin*)
3649     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3650     noconfigdirs="$noconfigdirs sim target-rda"
3651     ;;
3652   powerpc-*-darwin*)
3653     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3654     noconfigdirs="$noconfigdirs sim target-rda"
3655     ;;
3656   i[3456789]86-*-darwin*)
3657     noconfigdirs="$noconfigdirs ld gprof"
3658     noconfigdirs="$noconfigdirs sim target-rda"
3659     ;;
3660   x86_64-*-darwin[912]*)
3661     noconfigdirs="$noconfigdirs ld gas gprof"
3662     noconfigdirs="$noconfigdirs sim target-rda"
3663     ;;
3664   *-*-darwin*)
3665     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3666     noconfigdirs="$noconfigdirs sim target-rda"
3667     ;;
3668   *-*-dragonfly*)
3669     ;;
3670   *-*-freebsd*)
3671     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3672         && test -f /usr/local/include/gmp.h; then
3673       with_gmp=/usr/local
3674     fi
3675     ;;
3676   *-*-kaos*)
3677     # Remove unsupported stuff on all kaOS configurations.
3678     noconfigdirs="$noconfigdirs target-libgloss"
3679     ;;
3680   *-*-netbsd*)
3681     ;;
3682   *-*-netware*)
3683     ;;
3684   *-*-phoenix*)
3685     noconfigdirs="$noconfigdirs target-libgloss"
3686     ;;
3687   *-*-rtems*)
3688     noconfigdirs="$noconfigdirs target-libgloss"
3689     ;;
3690     # The tpf target doesn't support gdb yet.
3691   *-*-tpf*)
3692     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3693     ;;
3694   *-*-uclinux*)
3695     noconfigdirs="$noconfigdirs target-rda"
3696     ;;
3697   *-*-vxworks*)
3698     ;;
3699   alpha*-dec-osf*)
3700     # ld works, but does not support shared libraries.
3701     # gas doesn't generate exception information.
3702     noconfigdirs="$noconfigdirs gas ld"
3703     ;;
3704   alpha*-*-*vms*)
3705     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3706     ;;
3707   alpha*-*-*)
3708     # newlib is not 64 bit ready
3709     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710     ;;
3711   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3712     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3713     ;;
3714   arc*-*-*)
3715     noconfigdirs="$noconfigdirs sim"
3716     ;;
3717   arm-*-pe*)
3718     noconfigdirs="$noconfigdirs target-libgloss"
3719     ;;
3720   arm-*-riscix*)
3721     noconfigdirs="$noconfigdirs ld target-libgloss"
3722     ;;
3723   avr-*-*)
3724     if test x${with_avrlibc} != xno; then
3725       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726     fi
3727     ;;
3728   c4x-*-* | tic4x-*-*)
3729     noconfigdirs="$noconfigdirs target-libgloss"
3730     ;;
3731   tic54x-*-*)
3732     noconfigdirs="$noconfigdirs target-libgloss gdb"
3733     ;;
3734   d10v-*-*)
3735     noconfigdirs="$noconfigdirs target-libgloss"
3736     ;;
3737   d30v-*-*)
3738     noconfigdirs="$noconfigdirs gdb"
3739     ;;
3740   fr30-*-elf*)
3741     noconfigdirs="$noconfigdirs gdb"
3742     ;;
3743   ft32-*-*)
3744     noconfigdirs="$noconfigdirs target-rda gprof"
3745     ;;
3746   moxie-*-*)
3747     noconfigdirs="$noconfigdirs"
3748     ;;
3749   h8300*-*-*)
3750     noconfigdirs="$noconfigdirs target-libgloss"
3751     ;;
3752   h8500-*-*)
3753     noconfigdirs="$noconfigdirs target-libgloss"
3754     ;;
3755   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3756     ;;
3757   hppa*64*-*-hpux*)
3758     noconfigdirs="$noconfigdirs gdb"
3759     ;;
3760   hppa*-*-hpux11*)
3761     noconfigdirs="$noconfigdirs gdb ld"
3762     ;;
3763   hppa*64*-*-linux*)
3764     ;;
3765   hppa*-*-linux*)
3766     ;;
3767   hppa*-*-*elf* | \
3768   hppa*-*-lites* | \
3769   hppa*-*-openbsd* | \
3770   hppa*64*-*-*)
3771     ;;
3772   hppa*-*-pro*)
3773     ;;
3774   hppa*-*-*)
3775     noconfigdirs="$noconfigdirs ld"
3776     ;;
3777   i960-*-*)
3778     noconfigdirs="$noconfigdirs gdb"
3779     ;;
3780   ia64*-*-elf*)
3781     # No gdb support yet.
3782     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3783     ;;
3784   ia64*-**-hpux*)
3785     # No ld support yet.
3786     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3787     ;;
3788   ia64*-*-*vms*)
3789     # No ld support yet.
3790     noconfigdirs="$noconfigdirs libgui itcl ld"
3791     ;;
3792   i[3456789]86-w64-mingw*)
3793     ;;
3794   i[3456789]86-*-mingw*)
3795     target_configdirs="$target_configdirs target-winsup"
3796     ;;
3797   *-*-cygwin*)
3798     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3799     noconfigdirs="$noconfigdirs target-libgloss"
3800     # always build newlib if winsup directory is present.
3801     if test -d "$srcdir/winsup/cygwin"; then
3802       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3803     elif test -d "$srcdir/newlib"; then
3804       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3805     fi
3806     ;;
3807   i[3456789]86-*-pe)
3808     noconfigdirs="$noconfigdirs target-libgloss"
3809     ;;
3810   i[3456789]86-*-sco3.2v5*)
3811     # The linker does not yet know about weak symbols in COFF,
3812     # and is not configured to handle mixed ELF and COFF.
3813     noconfigdirs="$noconfigdirs ld target-libgloss"
3814     ;;
3815   i[3456789]86-*-sco*)
3816     noconfigdirs="$noconfigdirs gprof target-libgloss"
3817     ;;
3818   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3819     noconfigdirs="$noconfigdirs target-libgloss"
3820     ;;
3821   i[3456789]86-*-sysv4*)
3822     noconfigdirs="$noconfigdirs target-libgloss"
3823     ;;
3824   i[3456789]86-*-beos*)
3825     noconfigdirs="$noconfigdirs gdb"
3826     ;;
3827   i[3456789]86-*-rdos*)
3828     noconfigdirs="$noconfigdirs gdb"
3829     ;;
3830   mmix-*-*)
3831     noconfigdirs="$noconfigdirs gdb"
3832     ;;
3833   mt-*-*)
3834     noconfigdirs="$noconfigdirs sim"
3835     ;;
3836   nfp-*-*)
3837     noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3838     noconfigdirs="$noconfigdirs $target_libraries"
3839     ;;
3840   powerpc-*-aix*)
3841     # copied from rs6000-*-* entry
3842     noconfigdirs="$noconfigdirs gprof"
3843     ;;
3844   powerpc*-*-winnt* | powerpc*-*-pe*)
3845     target_configdirs="$target_configdirs target-winsup"
3846     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3847     # always build newlib.
3848     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3849     ;;
3850     # This is temporary until we can link against shared libraries
3851   powerpcle-*-solaris*)
3852     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3853     ;;
3854   powerpc-*-beos*)
3855     noconfigdirs="$noconfigdirs gdb"
3856     ;;
3857   rs6000-*-lynxos*)
3858     noconfigdirs="$noconfigdirs gprof"
3859     ;;
3860   rs6000-*-aix*)
3861     noconfigdirs="$noconfigdirs gprof"
3862     ;;
3863   rs6000-*-*)
3864     noconfigdirs="$noconfigdirs gprof"
3865     ;;
3866   m68k-apollo-*)
3867     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3868     ;;
3869   microblaze*)
3870     noconfigdirs="$noconfigdirs gprof"
3871     ;;
3872   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3873     if test x$with_newlib = xyes; then
3874       noconfigdirs="$noconfigdirs gprof"
3875     fi
3876     ;;
3877   mips*-*-irix5*)
3878     noconfigdirs="$noconfigdirs gprof target-libgloss"
3879     ;;
3880   mips*-*-irix6*)
3881     noconfigdirs="$noconfigdirs gprof target-libgloss"
3882     ;;
3883   mips*-*-bsd*)
3884     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3885     ;;
3886   mips*-*-linux*)
3887     ;;
3888   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3889   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3890     noconfigdirs="$noconfigdirs ld gas gprof"
3891     ;;
3892   mips*-*-*)
3893     noconfigdirs="$noconfigdirs gprof"
3894     ;;
3895   nvptx*-*-*)
3896     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3897     ;;
3898   sh-*-*)
3899     case "${target}" in
3900       sh*-*-elf)
3901          ;;
3902       *)
3903          noconfigdirs="$noconfigdirs target-libgloss" ;;
3904     esac
3905     ;;
3906   sparc-*-sunos4*)
3907     if test x${is_cross_compiler} = xno ; then
3908            use_gnu_ld=no
3909     fi
3910     ;;
3911   tic6x-*-*)
3912     noconfigdirs="$noconfigdirs sim"
3913     ;;
3914   tilepro*-*-* | tilegx*-*-*)
3915     noconfigdirs="$noconfigdirs sim"
3916     ;;
3917   v810-*-*)
3918     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3919     ;;
3920   vax-*-*)
3921     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3922     ;;
3923   wasm32-*-*)
3924     noconfigdirs="$noconfigdirs ld"
3925     ;;
3926 esac
3927
3928 # If we aren't building newlib, then don't build libgloss, since libgloss
3929 # depends upon some newlib header files.
3930 case "${noconfigdirs}" in
3931   *target-libgloss*) ;;
3932   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3933 esac
3934
3935 # Work in distributions that contain no compiler tools, like Autoconf.
3936 host_makefile_frag=/dev/null
3937 if test -d ${srcdir}/config ; then
3938 case "${host}" in
3939   i[3456789]86-*-msdosdjgpp*)
3940     host_makefile_frag="config/mh-djgpp"
3941     ;;
3942   *-cygwin*)
3943
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3945 $as_echo_n "checking to see if cat works as expected... " >&6; }
3946 echo a >cygwin-cat-check
3947 if test `cat cygwin-cat-check` = a ; then
3948   rm cygwin-cat-check
3949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950 $as_echo "yes" >&6; }
3951 else
3952   rm cygwin-cat-check
3953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955   as_fn_error $? "The cat command does not ignore carriage return characters.
3956   Please either mount the build directory in binary mode or run the following
3957   commands before running any configure script:
3958 set -o igncr
3959 export SHELLOPTS
3960   " "$LINENO" 5
3961 fi
3962
3963     host_makefile_frag="config/mh-cygwin"
3964     ;;
3965   *-mingw*)
3966     host_makefile_frag="config/mh-mingw"
3967     ;;
3968   alpha*-linux*)
3969     host_makefile_frag="config/mh-alpha-linux"
3970     ;;
3971   hppa*-hp-hpux10*)
3972     host_makefile_frag="config/mh-pa-hpux10"
3973     ;;
3974   hppa*-hp-hpux*)
3975     host_makefile_frag="config/mh-pa"
3976     ;;
3977   hppa*-*)
3978     host_makefile_frag="config/mh-pa"
3979     ;;
3980   *-*-darwin*)
3981     host_makefile_frag="config/mh-darwin"
3982     ;;
3983   powerpc-*-aix*)
3984     host_makefile_frag="config/mh-ppc-aix"
3985     ;;
3986   rs6000-*-aix*)
3987     host_makefile_frag="config/mh-ppc-aix"
3988     ;;
3989 esac
3990 fi
3991
3992 if test "${build}" != "${host}" ; then
3993   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3994   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3995   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3996   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3997   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3998   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3999   GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4000   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4001   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4002   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4003   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4004   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4005   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4006 else
4007   AR_FOR_BUILD="\$(AR)"
4008   AS_FOR_BUILD="\$(AS)"
4009   CC_FOR_BUILD="\$(CC)"
4010   CXX_FOR_BUILD="\$(CXX)"
4011   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4012   GOC_FOR_BUILD="\$(GOC)"
4013   GDC_FOR_BUILD="\$(GDC)"
4014   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4015   LD_FOR_BUILD="\$(LD)"
4016   NM_FOR_BUILD="\$(NM)"
4017   RANLIB_FOR_BUILD="\$(RANLIB)"
4018   WINDRES_FOR_BUILD="\$(WINDRES)"
4019   WINDMC_FOR_BUILD="\$(WINDMC)"
4020 fi
4021
4022 ac_ext=c
4023 ac_cpp='$CPP $CPPFLAGS'
4024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027 if test -n "$ac_tool_prefix"; then
4028   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4029 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if ${ac_cv_prog_CC+:} false; then :
4033   $as_echo_n "(cached) " >&6
4034 else
4035   if test -n "$CC"; then
4036   ac_cv_prog_CC="$CC" # Let the user override the test.
4037 else
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4040 do
4041   IFS=$as_save_IFS
4042   test -z "$as_dir" && as_dir=.
4043     for ac_exec_ext in '' $ac_executable_extensions; do
4044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4045     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047     break 2
4048   fi
4049 done
4050   done
4051 IFS=$as_save_IFS
4052
4053 fi
4054 fi
4055 CC=$ac_cv_prog_CC
4056 if test -n "$CC"; then
4057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4058 $as_echo "$CC" >&6; }
4059 else
4060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4062 fi
4063
4064
4065 fi
4066 if test -z "$ac_cv_prog_CC"; then
4067   ac_ct_CC=$CC
4068   # Extract the first word of "gcc", so it can be a program name with args.
4069 set dummy gcc; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4073   $as_echo_n "(cached) " >&6
4074 else
4075   if test -n "$ac_ct_CC"; then
4076   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4080 do
4081   IFS=$as_save_IFS
4082   test -z "$as_dir" && as_dir=.
4083     for ac_exec_ext in '' $ac_executable_extensions; do
4084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4085     ac_cv_prog_ac_ct_CC="gcc"
4086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087     break 2
4088   fi
4089 done
4090   done
4091 IFS=$as_save_IFS
4092
4093 fi
4094 fi
4095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4096 if test -n "$ac_ct_CC"; then
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4098 $as_echo "$ac_ct_CC" >&6; }
4099 else
4100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4102 fi
4103
4104   if test "x$ac_ct_CC" = x; then
4105     CC=""
4106   else
4107     case $cross_compiling:$ac_tool_warned in
4108 yes:)
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4111 ac_tool_warned=yes ;;
4112 esac
4113     CC=$ac_ct_CC
4114   fi
4115 else
4116   CC="$ac_cv_prog_CC"
4117 fi
4118
4119 if test -z "$CC"; then
4120           if test -n "$ac_tool_prefix"; then
4121     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}cc; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_CC+:} false; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   if test -n "$CC"; then
4129   ac_cv_prog_CC="$CC" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138     ac_cv_prog_CC="${ac_tool_prefix}cc"
4139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143   done
4144 IFS=$as_save_IFS
4145
4146 fi
4147 fi
4148 CC=$ac_cv_prog_CC
4149 if test -n "$CC"; then
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4151 $as_echo "$CC" >&6; }
4152 else
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4155 fi
4156
4157
4158   fi
4159 fi
4160 if test -z "$CC"; then
4161   # Extract the first word of "cc", so it can be a program name with args.
4162 set dummy cc; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_CC+:} false; then :
4166   $as_echo_n "(cached) " >&6
4167 else
4168   if test -n "$CC"; then
4169   ac_cv_prog_CC="$CC" # Let the user override the test.
4170 else
4171   ac_prog_rejected=no
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177     for ac_exec_ext in '' $ac_executable_extensions; do
4178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4180        ac_prog_rejected=yes
4181        continue
4182      fi
4183     ac_cv_prog_CC="cc"
4184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185     break 2
4186   fi
4187 done
4188   done
4189 IFS=$as_save_IFS
4190
4191 if test $ac_prog_rejected = yes; then
4192   # We found a bogon in the path, so make sure we never use it.
4193   set dummy $ac_cv_prog_CC
4194   shift
4195   if test $# != 0; then
4196     # We chose a different compiler from the bogus one.
4197     # However, it has the same basename, so the bogon will be chosen
4198     # first if we set CC to just the basename; use the full file name.
4199     shift
4200     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4201   fi
4202 fi
4203 fi
4204 fi
4205 CC=$ac_cv_prog_CC
4206 if test -n "$CC"; then
4207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208 $as_echo "$CC" >&6; }
4209 else
4210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 fi
4213
4214
4215 fi
4216 if test -z "$CC"; then
4217   if test -n "$ac_tool_prefix"; then
4218   for ac_prog in cl.exe
4219   do
4220     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_CC+:} false; then :
4225   $as_echo_n "(cached) " >&6
4226 else
4227   if test -n "$CC"; then
4228   ac_cv_prog_CC="$CC" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233   IFS=$as_save_IFS
4234   test -z "$as_dir" && as_dir=.
4235     for ac_exec_ext in '' $ac_executable_extensions; do
4236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239     break 2
4240   fi
4241 done
4242   done
4243 IFS=$as_save_IFS
4244
4245 fi
4246 fi
4247 CC=$ac_cv_prog_CC
4248 if test -n "$CC"; then
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 $as_echo "$CC" >&6; }
4251 else
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256
4257     test -n "$CC" && break
4258   done
4259 fi
4260 if test -z "$CC"; then
4261   ac_ct_CC=$CC
4262   for ac_prog in cl.exe
4263 do
4264   # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   if test -n "$ac_ct_CC"; then
4272   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277   IFS=$as_save_IFS
4278   test -z "$as_dir" && as_dir=.
4279     for ac_exec_ext in '' $ac_executable_extensions; do
4280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281     ac_cv_prog_ac_ct_CC="$ac_prog"
4282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283     break 2
4284   fi
4285 done
4286   done
4287 IFS=$as_save_IFS
4288
4289 fi
4290 fi
4291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4292 if test -n "$ac_ct_CC"; then
4293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4294 $as_echo "$ac_ct_CC" >&6; }
4295 else
4296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4298 fi
4299
4300
4301   test -n "$ac_ct_CC" && break
4302 done
4303
4304   if test "x$ac_ct_CC" = x; then
4305     CC=""
4306   else
4307     case $cross_compiling:$ac_tool_warned in
4308 yes:)
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311 ac_tool_warned=yes ;;
4312 esac
4313     CC=$ac_ct_CC
4314   fi
4315 fi
4316
4317 fi
4318
4319
4320 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4322 as_fn_error $? "no acceptable C compiler found in \$PATH
4323 See \`config.log' for more details" "$LINENO" 5; }
4324
4325 # Provide some information about the compiler.
4326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4327 set X $ac_compile
4328 ac_compiler=$2
4329 for ac_option in --version -v -V -qversion; do
4330   { { ac_try="$ac_compiler $ac_option >&5"
4331 case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 $as_echo "$ac_try_echo"; } >&5
4337   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4338   ac_status=$?
4339   if test -s conftest.err; then
4340     sed '10a\
4341 ... rest of stderr output deleted ...
4342          10q' conftest.err >conftest.er1
4343     cat conftest.er1 >&5
4344   fi
4345   rm -f conftest.er1 conftest.err
4346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347   test $ac_status = 0; }
4348 done
4349
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h.  */
4352
4353 int
4354 main ()
4355 {
4356
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 ac_clean_files_save=$ac_clean_files
4362 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4363 # Try to create an executable without -o first, disregard a.out.
4364 # It will help us diagnose broken compilers, and finding out an intuition
4365 # of exeext.
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4367 $as_echo_n "checking whether the C compiler works... " >&6; }
4368 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4369
4370 # The possible output files:
4371 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4372
4373 ac_rmfiles=
4374 for ac_file in $ac_files
4375 do
4376   case $ac_file in
4377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4378     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4379   esac
4380 done
4381 rm -f $ac_rmfiles
4382
4383 if { { ac_try="$ac_link_default"
4384 case "(($ac_try" in
4385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386   *) ac_try_echo=$ac_try;;
4387 esac
4388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389 $as_echo "$ac_try_echo"; } >&5
4390   (eval "$ac_link_default") 2>&5
4391   ac_status=$?
4392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393   test $ac_status = 0; }; then :
4394   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4395 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4396 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4397 # so that the user can short-circuit this test for compilers unknown to
4398 # Autoconf.
4399 for ac_file in $ac_files ''
4400 do
4401   test -f "$ac_file" || continue
4402   case $ac_file in
4403     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4404         ;;
4405     [ab].out )
4406         # We found the default executable, but exeext='' is most
4407         # certainly right.
4408         break;;
4409     *.* )
4410         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4411         then :; else
4412            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4413         fi
4414         # We set ac_cv_exeext here because the later test for it is not
4415         # safe: cross compilers may not add the suffix if given an `-o'
4416         # argument, so we may need to know it at that point already.
4417         # Even if this section looks crufty: it has the advantage of
4418         # actually working.
4419         break;;
4420     * )
4421         break;;
4422   esac
4423 done
4424 test "$ac_cv_exeext" = no && ac_cv_exeext=
4425
4426 else
4427   ac_file=''
4428 fi
4429 if test -z "$ac_file"; then :
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 $as_echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437 as_fn_error 77 "C compiler cannot create executables
4438 See \`config.log' for more details" "$LINENO" 5; }
4439 else
4440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4441 $as_echo "yes" >&6; }
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4444 $as_echo_n "checking for C compiler default output file name... " >&6; }
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4446 $as_echo "$ac_file" >&6; }
4447 ac_exeext=$ac_cv_exeext
4448
4449 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4450 ac_clean_files=$ac_clean_files_save
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4452 $as_echo_n "checking for suffix of executables... " >&6; }
4453 if { { ac_try="$ac_link"
4454 case "(($ac_try" in
4455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456   *) ac_try_echo=$ac_try;;
4457 esac
4458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459 $as_echo "$ac_try_echo"; } >&5
4460   (eval "$ac_link") 2>&5
4461   ac_status=$?
4462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4463   test $ac_status = 0; }; then :
4464   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4465 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4466 # work properly (i.e., refer to `conftest.exe'), while it won't with
4467 # `rm'.
4468 for ac_file in conftest.exe conftest conftest.*; do
4469   test -f "$ac_file" || continue
4470   case $ac_file in
4471     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4472     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4473           break;;
4474     * ) break;;
4475   esac
4476 done
4477 else
4478   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4481 See \`config.log' for more details" "$LINENO" 5; }
4482 fi
4483 rm -f conftest conftest$ac_cv_exeext
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4485 $as_echo "$ac_cv_exeext" >&6; }
4486
4487 rm -f conftest.$ac_ext
4488 EXEEXT=$ac_cv_exeext
4489 ac_exeext=$EXEEXT
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h.  */
4492 #include <stdio.h>
4493 int
4494 main ()
4495 {
4496 FILE *f = fopen ("conftest.out", "w");
4497  return ferror (f) || fclose (f) != 0;
4498
4499   ;
4500   return 0;
4501 }
4502 _ACEOF
4503 ac_clean_files="$ac_clean_files conftest.out"
4504 # Check that the compiler produces executables we can run.  If not, either
4505 # the compiler is broken, or we cross compile.
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4507 $as_echo_n "checking whether we are cross compiling... " >&6; }
4508 if test "$cross_compiling" != yes; then
4509   { { ac_try="$ac_link"
4510 case "(($ac_try" in
4511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512   *) ac_try_echo=$ac_try;;
4513 esac
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516   (eval "$ac_link") 2>&5
4517   ac_status=$?
4518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519   test $ac_status = 0; }
4520   if { ac_try='./conftest$ac_cv_exeext'
4521   { { case "(($ac_try" in
4522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523   *) ac_try_echo=$ac_try;;
4524 esac
4525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4526 $as_echo "$ac_try_echo"; } >&5
4527   (eval "$ac_try") 2>&5
4528   ac_status=$?
4529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530   test $ac_status = 0; }; }; then
4531     cross_compiling=no
4532   else
4533     if test "$cross_compiling" = maybe; then
4534         cross_compiling=yes
4535     else
4536         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4538 as_fn_error $? "cannot run C compiled programs.
4539 If you meant to cross compile, use \`--host'.
4540 See \`config.log' for more details" "$LINENO" 5; }
4541     fi
4542   fi
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4545 $as_echo "$cross_compiling" >&6; }
4546
4547 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4548 ac_clean_files=$ac_clean_files_save
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4550 $as_echo_n "checking for suffix of object files... " >&6; }
4551 if ${ac_cv_objext+:} false; then :
4552   $as_echo_n "(cached) " >&6
4553 else
4554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h.  */
4556
4557 int
4558 main ()
4559 {
4560
4561   ;
4562   return 0;
4563 }
4564 _ACEOF
4565 rm -f conftest.o conftest.obj
4566 if { { ac_try="$ac_compile"
4567 case "(($ac_try" in
4568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569   *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573   (eval "$ac_compile") 2>&5
4574   ac_status=$?
4575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576   test $ac_status = 0; }; then :
4577   for ac_file in conftest.o conftest.obj conftest.*; do
4578   test -f "$ac_file" || continue;
4579   case $ac_file in
4580     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4581     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4582        break;;
4583   esac
4584 done
4585 else
4586   $as_echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4591 as_fn_error $? "cannot compute suffix of object files: cannot compile
4592 See \`config.log' for more details" "$LINENO" 5; }
4593 fi
4594 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4595 fi
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4597 $as_echo "$ac_cv_objext" >&6; }
4598 OBJEXT=$ac_cv_objext
4599 ac_objext=$OBJEXT
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4601 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4602 if ${ac_cv_c_compiler_gnu+:} false; then :
4603   $as_echo_n "(cached) " >&6
4604 else
4605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h.  */
4607
4608 int
4609 main ()
4610 {
4611 #ifndef __GNUC__
4612        choke me
4613 #endif
4614
4615   ;
4616   return 0;
4617 }
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620   ac_compiler_gnu=yes
4621 else
4622   ac_compiler_gnu=no
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4626
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4629 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4630 if test $ac_compiler_gnu = yes; then
4631   GCC=yes
4632 else
4633   GCC=
4634 fi
4635 ac_test_CFLAGS=${CFLAGS+set}
4636 ac_save_CFLAGS=$CFLAGS
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4638 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4639 if ${ac_cv_prog_cc_g+:} false; then :
4640   $as_echo_n "(cached) " >&6
4641 else
4642   ac_save_c_werror_flag=$ac_c_werror_flag
4643    ac_c_werror_flag=yes
4644    ac_cv_prog_cc_g=no
4645    CFLAGS="-g"
4646    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h.  */
4648
4649 int
4650 main ()
4651 {
4652
4653   ;
4654   return 0;
4655 }
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658   ac_cv_prog_cc_g=yes
4659 else
4660   CFLAGS=""
4661       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h.  */
4663
4664 int
4665 main ()
4666 {
4667
4668   ;
4669   return 0;
4670 }
4671 _ACEOF
4672 if ac_fn_c_try_compile "$LINENO"; then :
4673
4674 else
4675   ac_c_werror_flag=$ac_save_c_werror_flag
4676          CFLAGS="-g"
4677          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h.  */
4679
4680 int
4681 main ()
4682 {
4683
4684   ;
4685   return 0;
4686 }
4687 _ACEOF
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689   ac_cv_prog_cc_g=yes
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 fi
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 fi
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696    ac_c_werror_flag=$ac_save_c_werror_flag
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4699 $as_echo "$ac_cv_prog_cc_g" >&6; }
4700 if test "$ac_test_CFLAGS" = set; then
4701   CFLAGS=$ac_save_CFLAGS
4702 elif test $ac_cv_prog_cc_g = yes; then
4703   if test "$GCC" = yes; then
4704     CFLAGS="-g -O2"
4705   else
4706     CFLAGS="-g"
4707   fi
4708 else
4709   if test "$GCC" = yes; then
4710     CFLAGS="-O2"
4711   else
4712     CFLAGS=
4713   fi
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4716 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4717 if ${ac_cv_prog_cc_c89+:} false; then :
4718   $as_echo_n "(cached) " >&6
4719 else
4720   ac_cv_prog_cc_c89=no
4721 ac_save_CC=$CC
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724 #include <stdarg.h>
4725 #include <stdio.h>
4726 struct stat;
4727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4728 struct buf { int x; };
4729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4730 static char *e (p, i)
4731      char **p;
4732      int i;
4733 {
4734   return p[i];
4735 }
4736 static char *f (char * (*g) (char **, int), char **p, ...)
4737 {
4738   char *s;
4739   va_list v;
4740   va_start (v,p);
4741   s = g (p, va_arg (v,int));
4742   va_end (v);
4743   return s;
4744 }
4745
4746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4747    function prototypes and stuff, but not '\xHH' hex character constants.
4748    These don't provoke an error unfortunately, instead are silently treated
4749    as 'x'.  The following induces an error, until -std is added to get
4750    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4751    array size at least.  It's necessary to write '\x00'==0 to get something
4752    that's true only with -std.  */
4753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4754
4755 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4756    inside strings and character constants.  */
4757 #define FOO(x) 'x'
4758 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4759
4760 int test (int i, double x);
4761 struct s1 {int (*f) (int a);};
4762 struct s2 {int (*f) (double a);};
4763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4764 int argc;
4765 char **argv;
4766 int
4767 main ()
4768 {
4769 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4770   ;
4771   return 0;
4772 }
4773 _ACEOF
4774 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4775         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4776 do
4777   CC="$ac_save_CC $ac_arg"
4778   if ac_fn_c_try_compile "$LINENO"; then :
4779   ac_cv_prog_cc_c89=$ac_arg
4780 fi
4781 rm -f core conftest.err conftest.$ac_objext
4782   test "x$ac_cv_prog_cc_c89" != "xno" && break
4783 done
4784 rm -f conftest.$ac_ext
4785 CC=$ac_save_CC
4786
4787 fi
4788 # AC_CACHE_VAL
4789 case "x$ac_cv_prog_cc_c89" in
4790   x)
4791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4792 $as_echo "none needed" >&6; } ;;
4793   xno)
4794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4795 $as_echo "unsupported" >&6; } ;;
4796   *)
4797     CC="$CC $ac_cv_prog_cc_c89"
4798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4799 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4800 esac
4801 if test "x$ac_cv_prog_cc_c89" != xno; then :
4802
4803 fi
4804
4805 ac_ext=c
4806 ac_cpp='$CPP $CPPFLAGS'
4807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810
4811 ac_ext=cpp
4812 ac_cpp='$CXXCPP $CPPFLAGS'
4813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4816 if test -z "$CXX"; then
4817   if test -n "$CCC"; then
4818     CXX=$CCC
4819   else
4820     if test -n "$ac_tool_prefix"; then
4821   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4822   do
4823     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_prog_CXX+:} false; then :
4828   $as_echo_n "(cached) " >&6
4829 else
4830   if test -n "$CXX"; then
4831   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838     for ac_exec_ext in '' $ac_executable_extensions; do
4839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842     break 2
4843   fi
4844 done
4845   done
4846 IFS=$as_save_IFS
4847
4848 fi
4849 fi
4850 CXX=$ac_cv_prog_CXX
4851 if test -n "$CXX"; then
4852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4853 $as_echo "$CXX" >&6; }
4854 else
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4857 fi
4858
4859
4860     test -n "$CXX" && break
4861   done
4862 fi
4863 if test -z "$CXX"; then
4864   ac_ct_CXX=$CXX
4865   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4866 do
4867   # Extract the first word of "$ac_prog", so it can be a program name with args.
4868 set dummy $ac_prog; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4872   $as_echo_n "(cached) " >&6
4873 else
4874   if test -n "$ac_ct_CXX"; then
4875   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882     for ac_exec_ext in '' $ac_executable_extensions; do
4883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884     ac_cv_prog_ac_ct_CXX="$ac_prog"
4885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886     break 2
4887   fi
4888 done
4889   done
4890 IFS=$as_save_IFS
4891
4892 fi
4893 fi
4894 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4895 if test -n "$ac_ct_CXX"; then
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4897 $as_echo "$ac_ct_CXX" >&6; }
4898 else
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4901 fi
4902
4903
4904   test -n "$ac_ct_CXX" && break
4905 done
4906
4907   if test "x$ac_ct_CXX" = x; then
4908     CXX="g++"
4909   else
4910     case $cross_compiling:$ac_tool_warned in
4911 yes:)
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4914 ac_tool_warned=yes ;;
4915 esac
4916     CXX=$ac_ct_CXX
4917   fi
4918 fi
4919
4920   fi
4921 fi
4922 # Provide some information about the compiler.
4923 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4924 set X $ac_compile
4925 ac_compiler=$2
4926 for ac_option in --version -v -V -qversion; do
4927   { { ac_try="$ac_compiler $ac_option >&5"
4928 case "(($ac_try" in
4929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930   *) ac_try_echo=$ac_try;;
4931 esac
4932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4933 $as_echo "$ac_try_echo"; } >&5
4934   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4935   ac_status=$?
4936   if test -s conftest.err; then
4937     sed '10a\
4938 ... rest of stderr output deleted ...
4939          10q' conftest.err >conftest.er1
4940     cat conftest.er1 >&5
4941   fi
4942   rm -f conftest.er1 conftest.err
4943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4944   test $ac_status = 0; }
4945 done
4946
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4948 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4949 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h.  */
4954
4955 int
4956 main ()
4957 {
4958 #ifndef __GNUC__
4959        choke me
4960 #endif
4961
4962   ;
4963   return 0;
4964 }
4965 _ACEOF
4966 if ac_fn_cxx_try_compile "$LINENO"; then :
4967   ac_compiler_gnu=yes
4968 else
4969   ac_compiler_gnu=no
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4973
4974 fi
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4976 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4977 if test $ac_compiler_gnu = yes; then
4978   GXX=yes
4979 else
4980   GXX=
4981 fi
4982 ac_test_CXXFLAGS=${CXXFLAGS+set}
4983 ac_save_CXXFLAGS=$CXXFLAGS
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4985 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4986 if ${ac_cv_prog_cxx_g+:} false; then :
4987   $as_echo_n "(cached) " >&6
4988 else
4989   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4990    ac_cxx_werror_flag=yes
4991    ac_cv_prog_cxx_g=no
4992    CXXFLAGS="-g"
4993    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h.  */
4995
4996 int
4997 main ()
4998 {
4999
5000   ;
5001   return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_cxx_try_compile "$LINENO"; then :
5005   ac_cv_prog_cxx_g=yes
5006 else
5007   CXXFLAGS=""
5008       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h.  */
5010
5011 int
5012 main ()
5013 {
5014
5015   ;
5016   return 0;
5017 }
5018 _ACEOF
5019 if ac_fn_cxx_try_compile "$LINENO"; then :
5020
5021 else
5022   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5023          CXXFLAGS="-g"
5024          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h.  */
5026
5027 int
5028 main ()
5029 {
5030
5031   ;
5032   return 0;
5033 }
5034 _ACEOF
5035 if ac_fn_cxx_try_compile "$LINENO"; then :
5036   ac_cv_prog_cxx_g=yes
5037 fi
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039 fi
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 fi
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5044 fi
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5046 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5047 if test "$ac_test_CXXFLAGS" = set; then
5048   CXXFLAGS=$ac_save_CXXFLAGS
5049 elif test $ac_cv_prog_cxx_g = yes; then
5050   if test "$GXX" = yes; then
5051     CXXFLAGS="-g -O2"
5052   else
5053     CXXFLAGS="-g"
5054   fi
5055 else
5056   if test "$GXX" = yes; then
5057     CXXFLAGS="-O2"
5058   else
5059     CXXFLAGS=
5060   fi
5061 fi
5062 ac_ext=c
5063 ac_cpp='$CPP $CPPFLAGS'
5064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5067
5068
5069 # We must set the default linker to the linker used by gcc for the correct
5070 # operation of libtool.  If LD is not defined and we are using gcc, try to
5071 # set the LD default to the ld used by gcc.
5072 if test -z "$LD"; then
5073   if test "$GCC" = yes; then
5074     case $build in
5075     *-*-mingw*)
5076       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5077     *)
5078       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5079     esac
5080     case $gcc_prog_ld in
5081     # Accept absolute paths.
5082     [\\/]* | [A-Za-z]:[\\/]*)
5083       LD="$gcc_prog_ld" ;;
5084     esac
5085   fi
5086 fi
5087
5088 # Check whether -static-libstdc++ -static-libgcc is supported.
5089 have_static_libs=no
5090 if test "$GCC" = yes; then
5091   saved_LDFLAGS="$LDFLAGS"
5092
5093   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5095 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5096   ac_ext=cpp
5097 ac_cpp='$CXXCPP $CPPFLAGS'
5098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5101
5102
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h.  */
5105
5106 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5107 #error -static-libstdc++ not implemented
5108 #endif
5109 int main() {}
5110 _ACEOF
5111 if ac_fn_cxx_try_link "$LINENO"; then :
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5113 $as_echo "yes" >&6; }; have_static_libs=yes
5114 else
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118 rm -f core conftest.err conftest.$ac_objext \
5119     conftest$ac_exeext conftest.$ac_ext
5120   ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125
5126
5127   LDFLAGS="$saved_LDFLAGS"
5128 fi
5129
5130
5131
5132
5133 if test -n "$ac_tool_prefix"; then
5134   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5135 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if ${ac_cv_prog_GNATBIND+:} false; then :
5139   $as_echo_n "(cached) " >&6
5140 else
5141   if test -n "$GNATBIND"; then
5142   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147   IFS=$as_save_IFS
5148   test -z "$as_dir" && as_dir=.
5149     for ac_exec_ext in '' $ac_executable_extensions; do
5150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153     break 2
5154   fi
5155 done
5156   done
5157 IFS=$as_save_IFS
5158
5159 fi
5160 fi
5161 GNATBIND=$ac_cv_prog_GNATBIND
5162 if test -n "$GNATBIND"; then
5163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5164 $as_echo "$GNATBIND" >&6; }
5165 else
5166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5168 fi
5169
5170
5171 fi
5172 if test -z "$ac_cv_prog_GNATBIND"; then
5173   ac_ct_GNATBIND=$GNATBIND
5174   # Extract the first word of "gnatbind", so it can be a program name with args.
5175 set dummy gnatbind; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5179   $as_echo_n "(cached) " >&6
5180 else
5181   if test -n "$ac_ct_GNATBIND"; then
5182   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187   IFS=$as_save_IFS
5188   test -z "$as_dir" && as_dir=.
5189     for ac_exec_ext in '' $ac_executable_extensions; do
5190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193     break 2
5194   fi
5195 done
5196   done
5197 IFS=$as_save_IFS
5198
5199 fi
5200 fi
5201 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5202 if test -n "$ac_ct_GNATBIND"; then
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5204 $as_echo "$ac_ct_GNATBIND" >&6; }
5205 else
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5208 fi
5209
5210   if test "x$ac_ct_GNATBIND" = x; then
5211     GNATBIND="no"
5212   else
5213     case $cross_compiling:$ac_tool_warned in
5214 yes:)
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5217 ac_tool_warned=yes ;;
5218 esac
5219     GNATBIND=$ac_ct_GNATBIND
5220   fi
5221 else
5222   GNATBIND="$ac_cv_prog_GNATBIND"
5223 fi
5224
5225 if test -n "$ac_tool_prefix"; then
5226   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5227 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_GNATMAKE+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   if test -n "$GNATMAKE"; then
5234   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5238 do
5239   IFS=$as_save_IFS
5240   test -z "$as_dir" && as_dir=.
5241     for ac_exec_ext in '' $ac_executable_extensions; do
5242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245     break 2
5246   fi
5247 done
5248   done
5249 IFS=$as_save_IFS
5250
5251 fi
5252 fi
5253 GNATMAKE=$ac_cv_prog_GNATMAKE
5254 if test -n "$GNATMAKE"; then
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5256 $as_echo "$GNATMAKE" >&6; }
5257 else
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5260 fi
5261
5262
5263 fi
5264 if test -z "$ac_cv_prog_GNATMAKE"; then
5265   ac_ct_GNATMAKE=$GNATMAKE
5266   # Extract the first word of "gnatmake", so it can be a program name with args.
5267 set dummy gnatmake; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   if test -n "$ac_ct_GNATMAKE"; then
5274   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279   IFS=$as_save_IFS
5280   test -z "$as_dir" && as_dir=.
5281     for ac_exec_ext in '' $ac_executable_extensions; do
5282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285     break 2
5286   fi
5287 done
5288   done
5289 IFS=$as_save_IFS
5290
5291 fi
5292 fi
5293 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5294 if test -n "$ac_ct_GNATMAKE"; then
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5296 $as_echo "$ac_ct_GNATMAKE" >&6; }
5297 else
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5300 fi
5301
5302   if test "x$ac_ct_GNATMAKE" = x; then
5303     GNATMAKE="no"
5304   else
5305     case $cross_compiling:$ac_tool_warned in
5306 yes:)
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5309 ac_tool_warned=yes ;;
5310 esac
5311     GNATMAKE=$ac_ct_GNATMAKE
5312   fi
5313 else
5314   GNATMAKE="$ac_cv_prog_GNATMAKE"
5315 fi
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5318 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5319 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5320   $as_echo_n "(cached) " >&6
5321 else
5322   cat >conftest.adb <<EOF
5323 procedure conftest is begin null; end conftest;
5324 EOF
5325 acx_cv_cc_gcc_supports_ada=no
5326 # There is a bug in old released versions of GCC which causes the
5327 # driver to exit successfully when the appropriate language module
5328 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5329 # Therefore we must check for the error message as well as an
5330 # unsuccessful exit.
5331 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5332 # given a .adb file, but produce no object file.  So we must check
5333 # if an object file was really produced to guard against this.
5334 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5335 if test x"$errors" = x && test -f conftest.$ac_objext; then
5336   acx_cv_cc_gcc_supports_ada=yes
5337 fi
5338 rm -f conftest.*
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5341 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5342
5343 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5344   have_gnat=yes
5345 else
5346   have_gnat=no
5347 fi
5348
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5350 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5351 if ${gcc_cv_prog_cmp_skip+:} false; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354    echo abfoo >t1
5355   echo cdfoo >t2
5356   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5357   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5358     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5359       :
5360     else
5361       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5362     fi
5363   fi
5364   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5365     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5366       :
5367     else
5368       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5369     fi
5370   fi
5371   rm t1 t2
5372
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5375 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5376 do_compare="$gcc_cv_prog_cmp_skip"
5377
5378
5379
5380 # Check whether --enable-bootstrap was given.
5381 if test "${enable_bootstrap+set}" = set; then :
5382   enableval=$enable_bootstrap;
5383 else
5384   enable_bootstrap=default
5385 fi
5386
5387
5388 # Issue errors and warnings for invalid/strange bootstrap combinations.
5389 if test -r $srcdir/gcc/configure; then
5390   have_compiler=yes
5391 else
5392   have_compiler=no
5393 fi
5394
5395 case "$have_compiler:$host:$target:$enable_bootstrap" in
5396   *:*:*:no) ;;
5397
5398   # Default behavior.  Enable bootstrap if we have a compiler
5399   # and we are in a native configuration.
5400   yes:$build:$build:default)
5401     enable_bootstrap=yes ;;
5402
5403   *:*:*:default)
5404     enable_bootstrap=no ;;
5405
5406   # We have a compiler and we are in a native configuration, bootstrap is ok
5407   yes:$build:$build:yes)
5408     ;;
5409
5410   # Other configurations, but we have a compiler.  Assume the user knows
5411   # what he's doing.
5412   yes:*:*:yes)
5413     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5414 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5415     ;;
5416
5417   # No compiler: if they passed --enable-bootstrap explicitly, fail
5418   no:*:*:yes)
5419     as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5420
5421   # Fail if wrong command line
5422   *)
5423     as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5424     ;;
5425 esac
5426
5427 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5428 # C++98 compiler can still start the bootstrap.
5429 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5430   CXX="$CXX -std=gnu++98"
5431 fi
5432
5433 # Used for setting $lt_cv_objdir
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5435 $as_echo_n "checking for objdir... " >&6; }
5436 if ${lt_cv_objdir+:} false; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439   rm -f .libs 2>/dev/null
5440 mkdir .libs 2>/dev/null
5441 if test -d .libs; then
5442   lt_cv_objdir=.libs
5443 else
5444   # MS-DOS does not allow filenames that begin with a dot.
5445   lt_cv_objdir=_libs
5446 fi
5447 rmdir .libs 2>/dev/null
5448 fi
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5450 $as_echo "$lt_cv_objdir" >&6; }
5451 objdir=$lt_cv_objdir
5452
5453
5454
5455
5456
5457 cat >>confdefs.h <<_ACEOF
5458 #define LT_OBJDIR "$lt_cv_objdir/"
5459 _ACEOF
5460
5461
5462
5463 # Check for GMP, MPFR and MPC
5464 gmplibs="-lmpc -lmpfr -lgmp"
5465 gmpinc=
5466 have_gmp=no
5467
5468 # Specify a location for mpc
5469 # check for this first so it ends up on the link line before mpfr.
5470
5471 # Check whether --with-mpc was given.
5472 if test "${with_mpc+set}" = set; then :
5473   withval=$with_mpc;
5474 fi
5475
5476
5477 # Check whether --with-mpc-include was given.
5478 if test "${with_mpc_include+set}" = set; then :
5479   withval=$with_mpc_include;
5480 fi
5481
5482
5483 # Check whether --with-mpc-lib was given.
5484 if test "${with_mpc_lib+set}" = set; then :
5485   withval=$with_mpc_lib;
5486 fi
5487
5488
5489 if test "x$with_mpc" != x; then
5490   gmplibs="-L$with_mpc/lib $gmplibs"
5491   gmpinc="-I$with_mpc/include $gmpinc"
5492 fi
5493 if test "x$with_mpc_include" != x; then
5494   gmpinc="-I$with_mpc_include $gmpinc"
5495 fi
5496 if test "x$with_mpc_lib" != x; then
5497   gmplibs="-L$with_mpc_lib $gmplibs"
5498 fi
5499 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5500   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5501   gmpinc='-I$$s/mpc/src '"$gmpinc"
5502   # Do not test the mpc version.  Assume that it is sufficient, since
5503   # it is in the source tree, and the library has not been built yet
5504   # but it would be included on the link line in the version check below
5505   # hence making the test fail.
5506   have_gmp=yes
5507 fi
5508
5509 # Specify a location for mpfr
5510 # check for this first so it ends up on the link line before gmp.
5511
5512 # Check whether --with-mpfr-dir was given.
5513 if test "${with_mpfr_dir+set}" = set; then :
5514   withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5515 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5516 fi
5517
5518
5519
5520 # Check whether --with-mpfr was given.
5521 if test "${with_mpfr+set}" = set; then :
5522   withval=$with_mpfr;
5523 fi
5524
5525
5526 # Check whether --with-mpfr-include was given.
5527 if test "${with_mpfr_include+set}" = set; then :
5528   withval=$with_mpfr_include;
5529 fi
5530
5531
5532 # Check whether --with-mpfr-lib was given.
5533 if test "${with_mpfr_lib+set}" = set; then :
5534   withval=$with_mpfr_lib;
5535 fi
5536
5537
5538 if test "x$with_mpfr" != x; then
5539   gmplibs="-L$with_mpfr/lib $gmplibs"
5540   gmpinc="-I$with_mpfr/include $gmpinc"
5541 fi
5542 if test "x$with_mpfr_include" != x; then
5543   gmpinc="-I$with_mpfr_include $gmpinc"
5544 fi
5545 if test "x$with_mpfr_lib" != x; then
5546   gmplibs="-L$with_mpfr_lib $gmplibs"
5547 fi
5548 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5549   # MPFR v3.1.0 moved the sources into a src sub-directory.
5550   if ! test -d ${srcdir}/mpfr/src; then
5551     as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5552   fi
5553   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5554   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5555   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5556   # Do not test the mpfr version.  Assume that it is sufficient, since
5557   # it is in the source tree, and the library has not been built yet
5558   # but it would be included on the link line in the version check below
5559   # hence making the test fail.
5560   have_gmp=yes
5561 fi
5562
5563 # Specify a location for gmp
5564
5565 # Check whether --with-gmp-dir was given.
5566 if test "${with_gmp_dir+set}" = set; then :
5567   withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5568 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5569 fi
5570
5571
5572
5573 # Check whether --with-gmp was given.
5574 if test "${with_gmp+set}" = set; then :
5575   withval=$with_gmp;
5576 fi
5577
5578
5579 # Check whether --with-gmp-include was given.
5580 if test "${with_gmp_include+set}" = set; then :
5581   withval=$with_gmp_include;
5582 fi
5583
5584
5585 # Check whether --with-gmp-lib was given.
5586 if test "${with_gmp_lib+set}" = set; then :
5587   withval=$with_gmp_lib;
5588 fi
5589
5590
5591
5592 if test "x$with_gmp" != x; then
5593   gmplibs="-L$with_gmp/lib $gmplibs"
5594   gmpinc="-I$with_gmp/include $gmpinc"
5595 fi
5596 if test "x$with_gmp_include" != x; then
5597   gmpinc="-I$with_gmp_include $gmpinc"
5598 fi
5599 if test "x$with_gmp_lib" != x; then
5600   gmplibs="-L$with_gmp_lib $gmplibs"
5601 fi
5602 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5603   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5604   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5605   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5606   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5607   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5608   # Do not test the gmp version.  Assume that it is sufficient, since
5609   # it is in the source tree, and the library has not been built yet
5610   # but it would be included on the link line in the version check below
5611   # hence making the test fail.
5612   have_gmp=yes
5613 fi
5614
5615 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5616   have_gmp=yes
5617   saved_CFLAGS="$CFLAGS"
5618   CFLAGS="$CFLAGS $gmpinc"
5619   # Check for the recommended and required versions of GMP.
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5621 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5622
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h.  */
5625 #include "gmp.h"
5626 int
5627 main ()
5628 {
5629
5630   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5631   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5632   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5633   choke me
5634   #endif
5635
5636   ;
5637   return 0;
5638 }
5639 _ACEOF
5640 if ac_fn_c_try_compile "$LINENO"; then :
5641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h.  */
5643 #include <gmp.h>
5644 int
5645 main ()
5646 {
5647
5648   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5649   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5650   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5651   choke me
5652   #endif
5653
5654   ;
5655   return 0;
5656 }
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5660 $as_echo "yes" >&6; }
5661 else
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5663 $as_echo "buggy but acceptable" >&6; }
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 else
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }; have_gmp=no
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671
5672   # If we have GMP, check the MPFR version.
5673   if test x"$have_gmp" = xyes; then
5674     # Check for the recommended and required versions of MPFR.
5675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5676 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5677     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h.  */
5679 #include <gmp.h>
5680     #include <mpfr.h>
5681 int
5682 main ()
5683 {
5684
5685     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5686     choke me
5687     #endif
5688
5689   ;
5690   return 0;
5691 }
5692 _ACEOF
5693 if ac_fn_c_try_compile "$LINENO"; then :
5694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h.  */
5696 #include <gmp.h>
5697     #include <mpfr.h>
5698 int
5699 main ()
5700 {
5701
5702     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5703     choke me
5704     #endif
5705
5706   ;
5707   return 0;
5708 }
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5712 $as_echo "yes" >&6; }
5713 else
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5715 $as_echo "buggy but acceptable" >&6; }
5716 fi
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 else
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }; have_gmp=no
5721 fi
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723   fi
5724
5725   # Check for the MPC header version.
5726   if test x"$have_gmp" = xyes ; then
5727     # Check for the recommended and required versions of MPC.
5728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5729 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5730     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h.  */
5732 #include <mpc.h>
5733 int
5734 main ()
5735 {
5736
5737     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5738     choke me
5739     #endif
5740
5741   ;
5742   return 0;
5743 }
5744 _ACEOF
5745 if ac_fn_c_try_compile "$LINENO"; then :
5746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h.  */
5748 #include <mpc.h>
5749 int
5750 main ()
5751 {
5752
5753     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5754     choke me
5755     #endif
5756
5757   ;
5758   return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_compile "$LINENO"; then :
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5763 $as_echo "yes" >&6; }
5764 else
5765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5766 $as_echo "buggy but acceptable" >&6; }
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 else
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }; have_gmp=no
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774   fi
5775
5776   # Now check the MPFR library.
5777   if test x"$have_gmp" = xyes; then
5778     saved_LIBS="$LIBS"
5779     LIBS="$LIBS $gmplibs"
5780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5781 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5782     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h.  */
5784 #include <mpc.h>
5785 int
5786 main ()
5787 {
5788
5789     mpfr_t n;
5790     mpfr_t x;
5791     mpc_t c;
5792     int t;
5793     mpfr_init (n);
5794     mpfr_init (x);
5795     mpfr_atan2 (n, n, x, GMP_RNDN);
5796     mpfr_erfc (n, x, GMP_RNDN);
5797     mpfr_subnormalize (x, t, GMP_RNDN);
5798     mpfr_clear(n);
5799     mpfr_clear(x);
5800     mpc_init2 (c, 53);
5801     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5802     mpc_cosh (c, c, MPC_RNDNN);
5803     mpc_pow (c, c, c, MPC_RNDNN);
5804     mpc_acosh (c, c, MPC_RNDNN);
5805     mpc_clear (c);
5806
5807   ;
5808   return 0;
5809 }
5810 _ACEOF
5811 if ac_fn_c_try_link "$LINENO"; then :
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5813 $as_echo "yes" >&6; }
5814 else
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }; have_gmp=no
5817 fi
5818 rm -f core conftest.err conftest.$ac_objext \
5819     conftest$ac_exeext conftest.$ac_ext
5820     LIBS="$saved_LIBS"
5821   fi
5822
5823   CFLAGS="$saved_CFLAGS"
5824
5825 # The library versions listed in the error message below should match
5826 # the HARD-minimums enforced above.
5827   if test x$have_gmp != xyes; then
5828     as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5829 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5830 their locations.  Source code for these libraries can be found at
5831 their respective hosting sites as well as at
5832 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5833 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5834 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5835 make sure that you have installed both the libraries and the header
5836 files.  They may be located in separate packages." "$LINENO" 5
5837   fi
5838 fi
5839
5840 # Flags needed for both GMP, MPFR and/or MPC.
5841
5842
5843
5844
5845
5846
5847
5848 # Libraries to use for stage1 or when not bootstrapping.
5849
5850 # Check whether --with-stage1-libs was given.
5851 if test "${with_stage1_libs+set}" = set; then :
5852   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5853    stage1_libs=
5854  else
5855    stage1_libs=$withval
5856  fi
5857 else
5858   stage1_libs=
5859 fi
5860
5861
5862
5863 # Linker flags to use for stage1 or when not bootstrapping.
5864
5865 # Check whether --with-stage1-ldflags was given.
5866 if test "${with_stage1_ldflags+set}" = set; then :
5867   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5868    stage1_ldflags=
5869  else
5870    stage1_ldflags=$withval
5871  fi
5872 else
5873   stage1_ldflags=
5874  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5875  # if supported.  But if the user explicitly specified the libraries to use,
5876  # trust that they are doing what they want.
5877  if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5878    stage1_ldflags="-static-libstdc++ -static-libgcc"
5879  fi
5880 fi
5881
5882
5883
5884 # Libraries to use for stage2 and later builds.
5885
5886 # Check whether --with-boot-libs was given.
5887 if test "${with_boot_libs+set}" = set; then :
5888   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5889    poststage1_libs=
5890  else
5891    poststage1_libs=$withval
5892  fi
5893 else
5894   poststage1_libs=
5895 fi
5896
5897
5898
5899 # Linker flags to use for stage2 and later builds.
5900
5901 # Check whether --with-boot-ldflags was given.
5902 if test "${with_boot_ldflags+set}" = set; then :
5903   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5904    poststage1_ldflags=
5905  else
5906    poststage1_ldflags=$withval
5907  fi
5908 else
5909   poststage1_ldflags=
5910  # In stages 2 and 3, default to linking libstdc++ and libgcc
5911  # statically.  But if the user explicitly specified the libraries to
5912  # use, trust that they are doing what they want.
5913  if test "$poststage1_libs" = ""; then
5914    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5915  fi
5916 fi
5917
5918
5919
5920 # GCC GRAPHITE dependency isl.
5921 # Basic setup is inlined here, actual checks are in config/isl.m4
5922
5923
5924 # Check whether --with-isl was given.
5925 if test "${with_isl+set}" = set; then :
5926   withval=$with_isl;
5927 fi
5928
5929
5930 # Treat --without-isl as a request to disable
5931 # GRAPHITE support and skip all following checks.
5932 if test "x$with_isl" != "xno"; then
5933   # Check for isl
5934
5935
5936 # Check whether --with-isl-include was given.
5937 if test "${with_isl_include+set}" = set; then :
5938   withval=$with_isl_include;
5939 fi
5940
5941
5942 # Check whether --with-isl-lib was given.
5943 if test "${with_isl_lib+set}" = set; then :
5944   withval=$with_isl_lib;
5945 fi
5946
5947
5948   # Check whether --enable-isl-version-check was given.
5949 if test "${enable_isl_version_check+set}" = set; then :
5950   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5951 else
5952   ENABLE_ISL_CHECK=yes
5953 fi
5954
5955
5956   # Initialize isllibs and islinc.
5957   case $with_isl in
5958     no)
5959       isllibs=
5960       islinc=
5961       ;;
5962     "" | yes)
5963       ;;
5964     *)
5965       isllibs="-L$with_isl/lib"
5966       islinc="-I$with_isl/include"
5967       ;;
5968   esac
5969   if test "x${with_isl_include}" != x ; then
5970     islinc="-I$with_isl_include"
5971   fi
5972   if test "x${with_isl_lib}" != x; then
5973     isllibs="-L$with_isl_lib"
5974   fi
5975         if test "x${islinc}" = x && test "x${isllibs}" = x \
5976      && test -d ${srcdir}/isl; then
5977     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5978     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5979     ENABLE_ISL_CHECK=no
5980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5981 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5982   fi
5983
5984   isllibs="${isllibs} -lisl"
5985
5986
5987
5988   if test "${ENABLE_ISL_CHECK}" = yes ; then
5989     _isl_saved_CFLAGS=$CFLAGS
5990     _isl_saved_LDFLAGS=$LDFLAGS
5991     _isl_saved_LIBS=$LIBS
5992
5993     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5994     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5995     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5996
5997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
5998 $as_echo_n "checking for isl 0.15 or later... " >&6; }
5999     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h.  */
6001 #include <isl/schedule.h>
6002 int
6003 main ()
6004 {
6005 isl_options_set_schedule_serialize_sccs (NULL, 0);
6006   ;
6007   return 0;
6008 }
6009 _ACEOF
6010 if ac_fn_c_try_link "$LINENO"; then :
6011   gcc_cv_isl=yes
6012 else
6013   gcc_cv_isl=no
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext \
6016     conftest$ac_exeext conftest.$ac_ext
6017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6018 $as_echo "$gcc_cv_isl" >&6; }
6019
6020     if test "${gcc_cv_isl}" = no ; then
6021       { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6022 $as_echo "required isl version is 0.15 or later" >&6; }
6023     fi
6024
6025     CFLAGS=$_isl_saved_CFLAGS
6026     LDFLAGS=$_isl_saved_LDFLAGS
6027     LIBS=$_isl_saved_LIBS
6028   fi
6029
6030
6031
6032
6033
6034
6035   if test "x${with_isl}" = xno; then
6036     graphite_requested=no
6037   elif test "x${with_isl}" != x \
6038     || test "x${with_isl_include}" != x \
6039     || test "x${with_isl_lib}" != x ; then
6040     graphite_requested=yes
6041   else
6042     graphite_requested=no
6043   fi
6044
6045
6046
6047   if test "${gcc_cv_isl}" = no ; then
6048     isllibs=
6049     islinc=
6050   fi
6051
6052   if test "${graphite_requested}" = yes \
6053     && test "x${isllibs}" = x \
6054     && test "x${islinc}" = x ; then
6055
6056     as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
6057   fi
6058
6059
6060 fi
6061
6062 # If the isl check failed, disable builds of in-tree variant of isl
6063 if test "x$with_isl" = xno ||
6064    test "x$gcc_cv_isl" = xno; then
6065   noconfigdirs="$noconfigdirs isl"
6066   islinc=
6067 fi
6068
6069
6070
6071
6072 # Check for LTO support.
6073 # Check whether --enable-lto was given.
6074 if test "${enable_lto+set}" = set; then :
6075   enableval=$enable_lto; enable_lto=$enableval
6076 else
6077   enable_lto=yes; default_enable_lto=yes
6078 fi
6079
6080
6081
6082
6083
6084 target_elf=no
6085 case $target in
6086   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6087   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6088   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6089   nvptx-*-none)
6090     target_elf=no
6091     ;;
6092   *)
6093     target_elf=yes
6094     ;;
6095 esac
6096
6097 if test $target_elf = yes; then :
6098   # ELF platforms build the lto-plugin always.
6099   build_lto_plugin=yes
6100
6101 else
6102   if test x"$default_enable_lto" = x"yes" ; then
6103     case $target in
6104       *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6105       # On other non-ELF platforms, LTO has yet to be validated.
6106       *) enable_lto=no ;;
6107     esac
6108   else
6109   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6110   # It would also be nice to check the binutils support, but we don't
6111   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6112   # warn during gcc/ subconfigure; unless you're bootstrapping with
6113   # -flto it won't be needed until after installation anyway.
6114     case $target in
6115       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6116       *) if test x"$enable_lto" = x"yes"; then
6117         as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6118         fi
6119       ;;
6120     esac
6121   fi
6122   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6123   # Build it unless LTO was explicitly disabled.
6124   case $target in
6125     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6126     *) ;;
6127   esac
6128
6129 fi
6130
6131
6132 # Check whether --enable-linker-plugin-configure-flags was given.
6133 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6134   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6135 else
6136   extra_linker_plugin_configure_flags=
6137 fi
6138
6139
6140 # Check whether --enable-linker-plugin-flags was given.
6141 if test "${enable_linker_plugin_flags+set}" = set; then :
6142   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6143 else
6144   extra_linker_plugin_flags=
6145 fi
6146
6147
6148
6149 # Enable --enable-host-shared.
6150 # Checked early to determine whether jit is an 'all' language
6151 # Check whether --enable-host-shared was given.
6152 if test "${enable_host_shared+set}" = set; then :
6153   enableval=$enable_host_shared; host_shared=$enableval
6154 else
6155   host_shared=no
6156 fi
6157
6158
6159
6160 # By default, C and C++ are the only stage 1 languages.
6161 stage1_languages=,c,
6162
6163 # Target libraries that we bootstrap.
6164 bootstrap_target_libs=,target-libgcc,
6165
6166 # Figure out what language subdirectories are present.
6167 # Look if the user specified --enable-languages="..."; if not, use
6168 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6169 # go away some day.
6170 # NB:  embedded tabs in this IF block -- do not untabify
6171 if test -d ${srcdir}/gcc; then
6172   if test x"${enable_languages+set}" != xset; then
6173     if test x"${LANGUAGES+set}" = xset; then
6174       enable_languages="${LANGUAGES}"
6175         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6176     else
6177       enable_languages=default
6178     fi
6179   else
6180     if test x"${enable_languages}" = x ||
6181        test x"${enable_languages}" = xyes;
6182        then
6183       echo configure.ac: --enable-languages needs at least one language argument 1>&2
6184       exit 1
6185     fi
6186   fi
6187   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6188
6189   # 'f95' is the old name for the 'fortran' language. We issue a warning
6190   # and make the substitution.
6191   case ,${enable_languages}, in
6192     *,f95,*)
6193       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6194       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6195       ;;
6196   esac
6197
6198   # If bootstrapping, C++ must be enabled.
6199   case ",$enable_languages,:$enable_bootstrap" in
6200     *,c++,*:*) ;;
6201     *:yes)
6202       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6203         enable_languages="${enable_languages},c++"
6204       else
6205         as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6206       fi
6207       ;;
6208   esac
6209
6210   # First scan to see if an enabled language requires some other language.
6211   # We assume that a given config-lang.in will list all the language
6212   # front ends it requires, even if some are required indirectly.
6213   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6214     case ${lang_frag} in
6215       ..) ;;
6216       # The odd quoting in the next line works around
6217       # an apparent bug in bash 1.12 on linux.
6218       ${srcdir}/gcc/[*]/config-lang.in) ;;
6219       *)
6220         # From the config-lang.in, get $language, $lang_requires, and
6221         # $lang_requires_boot_languages.
6222         language=
6223         lang_requires=
6224         lang_requires_boot_languages=
6225         # set srcdir during sourcing lang_frag to the gcc dir.
6226         # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6227         # polutes this shell
6228         saved_srcdir=${srcdir}
6229         srcdir=${srcdir}/gcc . ${lang_frag}
6230         srcdir=${saved_srcdir}
6231         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6232           case ,${enable_languages}, in
6233             *,$other,*) ;;
6234             *,default,*) ;;
6235             *,all,*) ;;
6236             *,$language,*)
6237               echo " \`$other' language required by \`$language'; enabling" 1>&2
6238               enable_languages="${enable_languages},${other}"
6239               ;;
6240           esac
6241         done
6242         for other in ${lang_requires_boot_languages} ; do
6243           if test "$other" != "c"; then
6244             case ,${enable_stage1_languages}, in
6245               *,$other,*) ;;
6246               *,default,*) ;;
6247               *,all,*) ;;
6248               *)
6249                 case ,${enable_languages}, in
6250                   *,$language,*)
6251                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6252                     enable_stage1_languages="$enable_stage1_languages,${other}"
6253                     ;;
6254                 esac
6255                 ;;
6256             esac
6257           fi
6258         done
6259         ;;
6260     esac
6261   done
6262
6263   new_enable_languages=,c,
6264
6265   # If LTO is enabled, add the LTO front end.
6266   if test "$enable_lto" = "yes" ; then
6267     case ,${enable_languages}, in
6268       *,lto,*) ;;
6269       *) enable_languages="${enable_languages},lto" ;;
6270     esac
6271     if test "${build_lto_plugin}" = "yes" ; then
6272       configdirs="$configdirs lto-plugin"
6273     fi
6274   fi
6275
6276   # If we're building an offloading compiler, add the LTO front end.
6277   if test x"$enable_as_accelerator_for" != x ; then
6278     case ,${enable_languages}, in
6279       *,lto,*) ;;
6280       *) enable_languages="${enable_languages},lto" ;;
6281     esac
6282   fi
6283
6284   missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6285   potential_languages=,c,
6286
6287   enabled_target_libs=
6288   disabled_target_libs=
6289
6290   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6291     case ${lang_frag} in
6292       ..) ;;
6293       # The odd quoting in the next line works around
6294       # an apparent bug in bash 1.12 on linux.
6295       ${srcdir}/gcc/[*]/config-lang.in) ;;
6296       *)
6297         # From the config-lang.in, get $language, $target_libs,
6298         # $lang_dirs, $boot_language, and $build_by_default
6299         language=
6300         target_libs=
6301         lang_dirs=
6302         subdir_requires=
6303         boot_language=no
6304         build_by_default=yes
6305         # set srcdir during sourcing.  See above about save & restore
6306         saved_srcdir=${srcdir}
6307         srcdir=${srcdir}/gcc . ${lang_frag}
6308         srcdir=${saved_srcdir}
6309         if test x${language} = x; then
6310           echo "${lang_frag} doesn't set \$language." 1>&2
6311           exit 1
6312         fi
6313
6314         if test "$language" = "c++"; then
6315           boot_language=yes
6316         fi
6317
6318         add_this_lang=no
6319         # C is always enabled, so no need to add it again
6320         if test "$language" != "c"; then
6321           case ,${enable_languages}, in
6322             *,${language},*)
6323               # Language was explicitly selected; include it
6324               add_this_lang=yes
6325               ;;
6326             *,all,*)
6327               # All languages are enabled
6328               add_this_lang=all
6329               ;;
6330             *,default,*)
6331               # 'default' was selected, select it if it is a default language
6332               add_this_lang=${build_by_default}
6333               ;;
6334           esac
6335         fi
6336
6337         # Disable languages that need other directories if these aren't available.
6338         for i in $subdir_requires; do
6339           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6340           case ${add_this_lang} in
6341             yes)
6342               # Specifically requested language; tell them.
6343               as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6344               ;;
6345             all)
6346               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6347 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6348               add_this_lang=unsupported
6349               ;;
6350             *)
6351               # Silently disable.
6352               add_this_lang=unsupported
6353               ;;
6354           esac
6355         done
6356
6357         # Disable Ada if no preexisting GNAT is available.
6358         case ${add_this_lang}:${language}:${have_gnat} in
6359           yes:ada:no)
6360             # Specifically requested language; tell them.
6361             as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6362             ;;
6363           all:ada:no)
6364             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6365 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6366             add_this_lang=unsupported
6367             ;;
6368           *:ada:no)
6369             # Silently disable.
6370             add_this_lang=unsupported
6371             ;;
6372         esac
6373
6374         # Disable jit if -enable-host-shared not specified
6375         case ${add_this_lang}:${language}:${host_shared} in
6376           yes:jit:no)
6377             # PR jit/64780: explicitly specify --enable-host-shared
6378             as_fn_error $? "
6379 Enabling language \"jit\" requires --enable-host-shared.
6380
6381 --enable-host-shared typically slows the rest of the compiler down by
6382 a few %, so you must explicitly enable it.
6383
6384 If you want to build both the jit and the regular compiler, it is often
6385 best to do this via two separate configure/builds, in separate
6386 directories, to avoid imposing the performance cost of
6387 --enable-host-shared on the regular compiler." "$LINENO" 5
6388             ;;
6389           all:jit:no)
6390             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6391 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6392             add_this_lang=unsupported
6393             ;;
6394           *:jit:no)
6395             # Silently disable.
6396             add_this_lang=unsupported
6397             ;;
6398         esac
6399
6400         # Disable a language that is unsupported by the target.
6401         case "${add_this_lang}: $unsupported_languages " in
6402           no:*) ;;
6403           unsupported:*) ;;
6404           *:*" $language "*)
6405             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6406 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6407             add_this_lang=unsupported
6408             ;;
6409         esac
6410
6411         case $add_this_lang in
6412           unsupported)
6413             # Remove language-dependent dirs.
6414             disabled_target_libs="$disabled_target_libs $target_libs"
6415             noconfigdirs="$noconfigdirs $lang_dirs"
6416             ;;
6417           no)
6418             # Remove language-dependent dirs; still show language as supported.
6419             disabled_target_libs="$disabled_target_libs $target_libs"
6420             noconfigdirs="$noconfigdirs $lang_dirs"
6421             potential_languages="${potential_languages}${language},"
6422             ;;
6423           all|yes)
6424             new_enable_languages="${new_enable_languages}${language},"
6425             potential_languages="${potential_languages}${language},"
6426             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6427             enabled_target_libs="$enabled_target_libs $target_libs"
6428             case "${boot_language}:,$enable_stage1_languages," in
6429               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6430                 # Add to (comma-separated) list of stage 1 languages.
6431                 case ",$stage1_languages," in
6432                   *,$language,* | ,yes, | ,all,) ;;
6433                   *) stage1_languages="${stage1_languages}${language}," ;;
6434                 esac
6435                 # We need to bootstrap any supporting libraries.
6436                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6437                 ;;
6438             esac
6439             ;;
6440         esac
6441         ;;
6442     esac
6443   done
6444
6445   # Add target libraries which are only needed for disabled languages
6446   # to noconfigdirs.
6447   if test -n "$disabled_target_libs"; then
6448     for dir in $disabled_target_libs; do
6449       case " $enabled_target_libs " in
6450       *" ${dir} "*) ;;
6451       *) noconfigdirs="$noconfigdirs $dir" ;;
6452       esac
6453     done
6454   fi
6455
6456   # Check whether --enable-stage1-languages was given.
6457 if test "${enable_stage1_languages+set}" = set; then :
6458   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6459     ,no,|,,)
6460       # Set it to something that will have no effect in the loop below
6461       enable_stage1_languages=c ;;
6462     ,yes,)
6463       enable_stage1_languages=`echo $new_enable_languages | \
6464         sed -e "s/^,//" -e "s/,$//" ` ;;
6465     *,all,*)
6466       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6467         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6468   esac
6469
6470   # Add "good" languages from enable_stage1_languages to stage1_languages,
6471   # while "bad" languages go in missing_languages.  Leave no duplicates.
6472   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6473     case $potential_languages in
6474       *,$i,*)
6475         case $stage1_languages in
6476           *,$i,*) ;;
6477           *) stage1_languages="$stage1_languages$i," ;;
6478         esac ;;
6479       *)
6480         case $missing_languages in
6481           *,$i,*) ;;
6482           *) missing_languages="$missing_languages$i," ;;
6483         esac ;;
6484      esac
6485   done
6486 fi
6487
6488
6489   # Remove leading/trailing commas that were added for simplicity
6490   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6491   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6492   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6493   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6494
6495   if test "x$missing_languages" != x; then
6496     as_fn_error $? "
6497 The following requested languages could not be built: ${missing_languages}
6498 Supported languages are: ${potential_languages}" "$LINENO" 5
6499   fi
6500   if test "x$new_enable_languages" != "x$enable_languages"; then
6501     echo The following languages will be built: ${new_enable_languages}
6502     enable_languages="$new_enable_languages"
6503   fi
6504
6505
6506   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6507 fi
6508
6509 # Handle --disable-<component> generically.
6510 for dir in $configdirs $build_configdirs $target_configdirs ; do
6511   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6512   varname=`echo $dirname | sed -e s/+/_/g`
6513   if eval test x\${enable_${varname}} "=" xno ; then
6514     noconfigdirs="$noconfigdirs $dir"
6515   fi
6516 done
6517
6518 # Check for Boehm's garbage collector
6519 # Check whether --enable-objc-gc was given.
6520 if test "${enable_objc_gc+set}" = set; then :
6521   enableval=$enable_objc_gc;
6522 fi
6523
6524
6525 # Check whether --with-target-bdw-gc was given.
6526 if test "${with_target_bdw_gc+set}" = set; then :
6527   withval=$with_target_bdw_gc;
6528 fi
6529
6530
6531 # Check whether --with-target-bdw-gc-include was given.
6532 if test "${with_target_bdw_gc_include+set}" = set; then :
6533   withval=$with_target_bdw_gc_include;
6534 fi
6535
6536
6537 # Check whether --with-target-bdw-gc-lib was given.
6538 if test "${with_target_bdw_gc_lib+set}" = set; then :
6539   withval=$with_target_bdw_gc_lib;
6540 fi
6541
6542
6543 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6545 $as_echo_n "checking for bdw garbage collector... " >&6; }
6546   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6548 $as_echo "using bdw-gc in default locations" >&6; }
6549   else
6550         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6551       as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6552     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6553       as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6554     else
6555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6556 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6557     fi
6558   fi
6559 esac
6560
6561 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6562 case ,${enable_languages}, in
6563   *,c++,*)
6564     # Disable libitm, libsanitizer if we're not building libstdc++
6565     case "${noconfigdirs}" in
6566       *target-libstdc++-v3*)
6567         noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6568         ;;
6569       *) ;;
6570     esac
6571     ;;
6572   *)
6573     noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6574     ;;
6575 esac
6576
6577 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6578 # $build_configdirs and $target_configdirs.
6579 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6580
6581 notsupp=""
6582 for dir in . $skipdirs $noconfigdirs ; do
6583   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6584   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6585     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6586     if test -r $srcdir/$dirname/configure ; then
6587       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6588         true
6589       else
6590         notsupp="$notsupp $dir"
6591       fi
6592     fi
6593   fi
6594   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6595     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6596     if test -r $srcdir/$dirname/configure ; then
6597       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6598         true
6599       else
6600         notsupp="$notsupp $dir"
6601       fi
6602     fi
6603   fi
6604   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6605     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6606     if test -r $srcdir/$dirname/configure ; then
6607       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6608         true
6609       else
6610         notsupp="$notsupp $dir"
6611       fi
6612     fi
6613   fi
6614 done
6615
6616 # Quietly strip out all directories which aren't configurable in this tree.
6617 # This relies on all configurable subdirectories being autoconfiscated, which
6618 # is now the case.
6619 build_configdirs_all="$build_configdirs"
6620 build_configdirs=
6621 for i in ${build_configdirs_all} ; do
6622   j=`echo $i | sed -e s/build-//g`
6623   if test -f ${srcdir}/$j/configure ; then
6624     build_configdirs="${build_configdirs} $i"
6625   fi
6626 done
6627
6628 configdirs_all="$configdirs"
6629 configdirs=
6630 for i in ${configdirs_all} ; do
6631   if test -f ${srcdir}/$i/configure ; then
6632     configdirs="${configdirs} $i"
6633   fi
6634 done
6635
6636 target_configdirs_all="$target_configdirs"
6637 target_configdirs=
6638 for i in ${target_configdirs_all} ; do
6639   j=`echo $i | sed -e s/target-//g`
6640   if test -f ${srcdir}/$j/configure ; then
6641     target_configdirs="${target_configdirs} $i"
6642   fi
6643 done
6644
6645 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6646 # so we have to add it after the preceding checks.
6647 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6648 then
6649   case " $configdirs " in
6650     *" libiberty "*)
6651       # If we can build libiberty, we can also build libiberty-linker-plugin.
6652       configdirs="$configdirs libiberty-linker-plugin"
6653       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6654         --with-libiberty=../libiberty-linker-plugin";;
6655     *)
6656       as_fn_error $? "libiberty missing" "$LINENO" 5;;
6657   esac
6658 fi
6659
6660 # Sometimes we have special requirements for the host libiberty.
6661 extra_host_libiberty_configure_flags=
6662 extra_host_zlib_configure_flags=
6663 case " $configdirs " in
6664   *" lto-plugin "* | *" libcc1 "*)
6665     # When these are to be built as shared libraries, the same applies to
6666     # libiberty.
6667     extra_host_libiberty_configure_flags=--enable-shared
6668     ;;
6669   *" bfd "*)
6670     # When bfd is to be built as a shared library, the same applies to
6671     # zlib.
6672     if test "$enable_shared" = "yes"; then
6673       extra_host_zlib_configure_flags=--enable-host-shared
6674     fi
6675     ;;
6676 esac
6677
6678
6679
6680 # Produce a warning message for the subdirs we can't configure.
6681 # This isn't especially interesting in the Cygnus tree, but in the individual
6682 # FSF releases, it's important to let people know when their machine isn't
6683 # supported by the one or two programs in a package.
6684
6685 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6686   # If $appdirs is non-empty, at least one of those directories must still
6687   # be configured, or we error out.  (E.g., if the gas release supports a
6688   # specified target in some subdirs but not the gas subdir, we shouldn't
6689   # pretend that all is well.)
6690   if test -n "$appdirs" ; then
6691     for dir in $appdirs ; do
6692       if test -r $dir/Makefile.in ; then
6693         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6694           appdirs=""
6695           break
6696         fi
6697         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6698           appdirs=""
6699           break
6700         fi
6701       fi
6702     done
6703     if test -n "$appdirs" ; then
6704       echo "*** This configuration is not supported by this package." 1>&2
6705       exit 1
6706     fi
6707   fi
6708   # Okay, some application will build, or we don't care to check.  Still
6709   # notify of subdirs not getting built.
6710   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6711   echo "    ${notsupp}" 1>&2
6712   echo "    (Any other directories should still work fine.)" 1>&2
6713 fi
6714
6715 case "$host" in
6716   *msdosdjgpp*)
6717     enable_gdbtk=no ;;
6718 esac
6719
6720 # To find our prefix, in gcc_cv_tool_prefix.
6721
6722 # The user is always right.
6723 if test "${PATH_SEPARATOR+set}" != set; then
6724   echo "#! /bin/sh" >conf$$.sh
6725   echo  "exit 0"   >>conf$$.sh
6726   chmod +x conf$$.sh
6727   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6728     PATH_SEPARATOR=';'
6729   else
6730     PATH_SEPARATOR=:
6731   fi
6732   rm -f conf$$.sh
6733 fi
6734
6735
6736   get_gcc_base_ver="cat"
6737
6738 # Check whether --with-gcc-major-version-only was given.
6739 if test "${with_gcc_major_version_only+set}" = set; then :
6740   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6741         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6742       fi
6743
6744 fi
6745
6746
6747
6748
6749
6750
6751 if test "x$exec_prefix" = xNONE; then
6752         if test "x$prefix" = xNONE; then
6753                 gcc_cv_tool_prefix=$ac_default_prefix
6754         else
6755                 gcc_cv_tool_prefix=$prefix
6756         fi
6757 else
6758         gcc_cv_tool_prefix=$exec_prefix
6759 fi
6760
6761 # If there is no compiler in the tree, use the PATH only.  In any
6762 # case, if there is no compiler in the tree nobody should use
6763 # AS_FOR_TARGET and LD_FOR_TARGET.
6764 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6765     if test x$with_gcc_major_version_only = xyes ; then
6766                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6767             else
6768         gcc_version=`cat $srcdir/gcc/BASE-VER`
6769     fi
6770     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6771     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6772     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6773     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6774     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6775     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6776 else
6777     gcc_cv_tool_dirs=
6778 fi
6779
6780 if test x$build = x$target && test -n "$md_exec_prefix"; then
6781         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6782 fi
6783
6784
6785
6786 copy_dirs=
6787
6788
6789 # Check whether --with-build-sysroot was given.
6790 if test "${with_build_sysroot+set}" = set; then :
6791   withval=$with_build_sysroot; if test x"$withval" != x ; then
6792      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6793    fi
6794 else
6795   SYSROOT_CFLAGS_FOR_TARGET=
6796 fi
6797
6798
6799
6800
6801 # Check whether --with-debug-prefix-map was given.
6802 if test "${with_debug_prefix_map+set}" = set; then :
6803   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6804      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6805      for debug_map in $withval; do
6806        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6807      done
6808    fi
6809 else
6810   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6811 fi
6812
6813
6814
6815 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6816 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6817 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6818 # We want to ensure that TARGET libraries (which we know are built with
6819 # gcc) are built with "-O2 -g", so include those options when setting
6820 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6821 if test "x$CFLAGS_FOR_TARGET" = x; then
6822   if test "x${is_cross_compiler}" = xyes; then
6823     CFLAGS_FOR_TARGET="-g -O2"
6824   else
6825     CFLAGS_FOR_TARGET=$CFLAGS
6826     case " $CFLAGS " in
6827       *" -O2 "*) ;;
6828       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6829     esac
6830     case " $CFLAGS " in
6831       *" -g "* | *" -g3 "*) ;;
6832       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6833     esac
6834   fi
6835 fi
6836
6837
6838 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6839   if test "x${is_cross_compiler}" = xyes; then
6840     CXXFLAGS_FOR_TARGET="-g -O2"
6841   else
6842     CXXFLAGS_FOR_TARGET=$CXXFLAGS
6843     case " $CXXFLAGS " in
6844       *" -O2 "*) ;;
6845       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6846     esac
6847     case " $CXXFLAGS " in
6848       *" -g "* | *" -g3 "*) ;;
6849       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6850     esac
6851   fi
6852 fi
6853
6854
6855
6856
6857 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6858 # the named directory are copied to $(tooldir)/sys-include.
6859 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6860   if test x${is_cross_compiler} = xno ; then
6861     echo 1>&2 '***' --with-headers is only supported when cross compiling
6862     exit 1
6863   fi
6864   if test x"${with_headers}" != xyes ; then
6865     x=${gcc_cv_tool_prefix}
6866     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6867   fi
6868 fi
6869
6870 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6871 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6872 # are permitted.
6873 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6874   if test x${is_cross_compiler} = xno ; then
6875     echo 1>&2 '***' --with-libs is only supported when cross compiling
6876     exit 1
6877   fi
6878   if test x"${with_libs}" != xyes ; then
6879     # Copy the libraries in reverse order, so that files in the first named
6880     # library override files in subsequent libraries.
6881     x=${gcc_cv_tool_prefix}
6882     for l in ${with_libs}; do
6883       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6884     done
6885   fi
6886 fi
6887
6888 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6889 #
6890 # This is done by determining whether or not the appropriate directory
6891 # is available, and by checking whether or not specific configurations
6892 # have requested that this magic not happen.
6893 #
6894 # The command line options always override the explicit settings in
6895 # configure.ac, and the settings in configure.ac override this magic.
6896 #
6897 # If the default for a toolchain is to use GNU as and ld, and you don't
6898 # want to do that, then you should use the --without-gnu-as and
6899 # --without-gnu-ld options for the configure script.  Similarly, if
6900 # the default is to use the included zlib and you don't want to do that,
6901 # you should use the --with-system-zlib option for the configure script.
6902
6903 if test x${use_gnu_as} = x &&
6904    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6905   with_gnu_as=yes
6906   extra_host_args="$extra_host_args --with-gnu-as"
6907 fi
6908
6909 if test x${use_gnu_ld} = x &&
6910    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6911   with_gnu_ld=yes
6912   extra_host_args="$extra_host_args --with-gnu-ld"
6913 fi
6914
6915 if test x${use_included_zlib} = x &&
6916    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6917   :
6918 else
6919   with_system_zlib=yes
6920   extra_host_args="$extra_host_args --with-system-zlib"
6921 fi
6922
6923 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6924 # can detect this case.
6925
6926 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6927   with_newlib=yes
6928   extra_host_args="$extra_host_args --with-newlib"
6929 fi
6930
6931 # Handle ${copy_dirs}
6932 set fnord ${copy_dirs}
6933 shift
6934 while test $# != 0 ; do
6935   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6936     :
6937   else
6938     echo Copying $1 to $2
6939
6940     # Use the install script to create the directory and all required
6941     # parent directories.
6942     if test -d $2 ; then
6943       :
6944     else
6945       echo >config.temp
6946       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6947     fi
6948
6949     # Copy the directory, assuming we have tar.
6950     # FIXME: Should we use B in the second tar?  Not all systems support it.
6951     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6952
6953     # It is the responsibility of the user to correctly adjust all
6954     # symlinks.  If somebody can figure out how to handle them correctly
6955     # here, feel free to add the code.
6956
6957     echo $1 > $2/COPIED
6958   fi
6959   shift; shift
6960 done
6961
6962 # Determine a target-dependent exec_prefix that the installed
6963 # gcc will search in.  Keep this list sorted by triplet, with
6964 # the *-*-osname triplets last.
6965 md_exec_prefix=
6966 case "${target}" in
6967   i[34567]86-pc-msdosdjgpp*)
6968     md_exec_prefix=/dev/env/DJDIR/bin
6969     ;;
6970   *-*-hpux* | \
6971   *-*-nto-qnx* | \
6972   *-*-solaris2*)
6973     md_exec_prefix=/usr/ccs/bin
6974     ;;
6975 esac
6976
6977 extra_arflags_for_target=
6978 extra_nmflags_for_target=
6979 extra_ranlibflags_for_target=
6980 target_makefile_frag=/dev/null
6981 case "${target}" in
6982   spu-*-*)
6983     target_makefile_frag="config/mt-spu"
6984     ;;
6985   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6986     target_makefile_frag="config/mt-sde"
6987     ;;
6988   mipsisa*-*-elfoabi*)
6989     target_makefile_frag="config/mt-mips-elfoabi"
6990     ;;
6991   mips*-*-*linux* | mips*-*-gnu*)
6992     target_makefile_frag="config/mt-mips-gnu"
6993     ;;
6994   nios2-*-elf*)
6995     target_makefile_frag="config/mt-nios2-elf"
6996     ;;
6997   *-*-linux-android*)
6998     target_makefile_frag="config/mt-android"
6999     ;;
7000   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7001     target_makefile_frag="config/mt-gnu"
7002     ;;
7003   *-*-aix4.[3456789]* | *-*-aix[56789].*)
7004     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7005     # commands to handle both 32-bit and 64-bit objects.  These flags are
7006     # harmless if we're using GNU nm or ar.
7007     extra_arflags_for_target=" -X32_64"
7008     extra_nmflags_for_target=" -B -X32_64"
7009     ;;
7010 esac
7011
7012 alphaieee_frag=/dev/null
7013 case $target in
7014   alpha*-*-*)
7015     # This just makes sure to use the -mieee option to build target libs.
7016     # This should probably be set individually by each library.
7017     alphaieee_frag="config/mt-alphaieee"
7018     ;;
7019 esac
7020
7021 # If --enable-target-optspace always use -Os instead of -O2 to build
7022 # the target libraries, similarly if it is not specified, use -Os
7023 # on selected platforms.
7024 ospace_frag=/dev/null
7025 case "${enable_target_optspace}:${target}" in
7026   yes:*)
7027     ospace_frag="config/mt-ospace"
7028     ;;
7029   :d30v-*)
7030     ospace_frag="config/mt-d30v"
7031     ;;
7032   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7033     ospace_frag="config/mt-ospace"
7034     ;;
7035   no:* | :*)
7036     ;;
7037   *)
7038     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7039     ;;
7040 esac
7041
7042 # Some systems (e.g., one of the i386-aix systems the gas testers are
7043 # using) don't handle "\$" correctly, so don't use it here.
7044 tooldir='${exec_prefix}'/${target_noncanonical}
7045 build_tooldir=${tooldir}
7046
7047 # Create a .gdbinit file which runs the one in srcdir
7048 # and tells GDB to look there for source files.
7049
7050 if test -r ${srcdir}/.gdbinit ; then
7051   case ${srcdir} in
7052     .) ;;
7053     *) cat > ./.gdbinit <<EOF
7054 # ${NO_EDIT}
7055 dir ${srcdir}
7056 dir .
7057 source ${srcdir}/.gdbinit
7058 EOF
7059     ;;
7060   esac
7061 fi
7062
7063 # Make sure that the compiler is able to generate an executable.  If it
7064 # can't, we are probably in trouble.  We don't care whether we can run the
7065 # executable--we might be using a cross compiler--we only care whether it
7066 # can be created.  At this point the main configure script has set CC.
7067 we_are_ok=no
7068 echo "int main () { return 0; }" > conftest.c
7069 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7070 if test $? = 0 ; then
7071   if test -s conftest || test -s conftest.exe ; then
7072     we_are_ok=yes
7073   fi
7074 fi
7075 case $we_are_ok in
7076   no)
7077     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7078     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7079     rm -f conftest*
7080     exit 1
7081     ;;
7082 esac
7083 rm -f conftest*
7084
7085 # Decide which environment variable is used to find dynamic libraries.
7086 case "${host}" in
7087   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7088   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7089   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7090   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7091 esac
7092
7093 # On systems where the dynamic library environment variable is PATH,
7094 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7095 # built executables to PATH.
7096 if test "$RPATH_ENVVAR" = PATH; then
7097   GCC_SHLIB_SUBDIR=/shlib
7098 else
7099   GCC_SHLIB_SUBDIR=
7100 fi
7101
7102 # Adjust the toplevel makefile according to whether bootstrap was selected.
7103 case $enable_bootstrap in
7104   yes)
7105     bootstrap_suffix=bootstrap
7106     BUILD_CONFIG=bootstrap-debug
7107     ;;
7108   no)
7109     bootstrap_suffix=no-bootstrap
7110     BUILD_CONFIG=
7111     ;;
7112 esac
7113
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7115 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7116
7117
7118 # Check whether --with-build-config was given.
7119 if test "${with_build_config+set}" = set; then :
7120   withval=$with_build_config; case $with_build_config in
7121    yes) with_build_config= ;;
7122    no) with_build_config= BUILD_CONFIG= ;;
7123    esac
7124 fi
7125
7126
7127 if test "x${with_build_config}" != x; then
7128   BUILD_CONFIG=$with_build_config
7129 else
7130   case $BUILD_CONFIG in
7131   bootstrap-debug)
7132     if echo "int f (void) { return 0; }" > conftest.c &&
7133        ${CC} -c conftest.c &&
7134        mv conftest.o conftest.o.g0 &&
7135        ${CC} -c -g conftest.c &&
7136        mv conftest.o conftest.o.g &&
7137        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7138       :
7139     else
7140       BUILD_CONFIG=
7141     fi
7142     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7143     ;;
7144   esac
7145 fi
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7147 $as_echo "$BUILD_CONFIG" >&6; }
7148
7149
7150 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7152 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7153 # Check whether --enable-vtable-verify was given.
7154 if test "${enable_vtable_verify+set}" = set; then :
7155   enableval=$enable_vtable_verify; case "$enableval" in
7156  yes) enable_vtable_verify=yes ;;
7157  no)  enable_vtable_verify=no ;;
7158  *)   enable_vtable_verify=no;;
7159  esac
7160 else
7161   enable_vtable_verify=no
7162 fi
7163
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7165 $as_echo "$enable_vtable_verify" >&6; }
7166
7167 # Record target_configdirs and the configure arguments for target and
7168 # build configuration in Makefile.
7169 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7170 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7171 bootstrap_fixincludes=no
7172
7173 # If we are building libgomp, bootstrap it.
7174 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7175   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7176 fi
7177
7178 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7179 # or bootstrap-ubsan, bootstrap it.
7180 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7181   case "$BUILD_CONFIG" in
7182     *bootstrap-asan* | *bootstrap-ubsan* )
7183       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7184       bootstrap_fixincludes=yes
7185       ;;
7186   esac
7187 fi
7188
7189 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7190 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7191    test "$enable_vtable_verify" != no; then
7192   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7193 fi
7194
7195 # Determine whether gdb needs tk/tcl or not.
7196 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7197 # and in that case we want gdb to be built without tk.  Ugh!
7198 # In fact I believe gdb is the *only* package directly dependent on tk,
7199 # so we should be able to put the 'maybe's in unconditionally and
7200 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7201 # 100% sure that that's safe though.
7202
7203 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7204 case "$enable_gdbtk" in
7205   no)
7206     GDB_TK="" ;;
7207   yes)
7208     GDB_TK="${gdb_tk}" ;;
7209   *)
7210     # Only add the dependency on gdbtk when GDBtk is part of the gdb
7211     # distro.  Eventually someone will fix this and move Insight, nee
7212     # gdbtk to a separate directory.
7213     if test -d ${srcdir}/gdb/gdbtk ; then
7214       GDB_TK="${gdb_tk}"
7215     else
7216       GDB_TK=""
7217     fi
7218     ;;
7219 esac
7220 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7221 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7222
7223 # Strip out unwanted targets.
7224
7225 # While at that, we remove Makefiles if we were started for recursive
7226 # configuration, so that the top-level Makefile reconfigures them,
7227 # like we used to do when configure itself was recursive.
7228
7229 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7230 # but now we're fixing up the Makefile ourselves with the additional
7231 # commands passed to AC_CONFIG_FILES.  Use separate variables
7232 # extrasub-{build,host,target} not because there is any reason to split
7233 # the substitutions up that way, but only to remain below the limit of
7234 # 99 commands in a script, for HP-UX sed.
7235
7236 # Do not nest @if/@endif or @unless/@endunless pairs, because
7237 # configure will not warn you at all.
7238
7239 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7240   yes:yes:*\ gold\ *:*,c++,*) ;;
7241   yes:yes:*\ gold\ *:*)
7242     as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7243     ;;
7244 esac
7245
7246 extrasub_build=
7247 for module in ${build_configdirs} ; do
7248   if test -z "${no_recursion}" \
7249      && test -f ${build_subdir}/${module}/Makefile; then
7250     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7251     rm -f ${build_subdir}/${module}/Makefile
7252   fi
7253   extrasub_build="$extrasub_build
7254 /^@if build-$module\$/d
7255 /^@endif build-$module\$/d
7256 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7257 /^@if build-$module-$bootstrap_suffix\$/d
7258 /^@endif build-$module-$bootstrap_suffix\$/d
7259 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7260 done
7261 extrasub_host=
7262 for module in ${configdirs} ; do
7263   if test -z "${no_recursion}"; then
7264     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7265       if test -f ${file}; then
7266         echo 1>&2 "*** removing ${file} to force reconfigure"
7267         rm -f ${file}
7268       fi
7269     done
7270   fi
7271   case ${module},${bootstrap_fixincludes} in
7272     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7273     *) host_bootstrap_suffix=$bootstrap_suffix ;;
7274   esac
7275   extrasub_host="$extrasub_host
7276 /^@if $module\$/d
7277 /^@endif $module\$/d
7278 /^@unless $module\$/,/^@endunless $module\$/d
7279 /^@if $module-$host_bootstrap_suffix\$/d
7280 /^@endif $module-$host_bootstrap_suffix\$/d
7281 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7282 done
7283 extrasub_target=
7284 for module in ${target_configdirs} ; do
7285   if test -z "${no_recursion}" \
7286      && test -f ${target_subdir}/${module}/Makefile; then
7287     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7288     rm -f ${target_subdir}/${module}/Makefile
7289   fi
7290
7291   # We only bootstrap target libraries listed in bootstrap_target_libs.
7292   case $bootstrap_target_libs in
7293     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7294     *) target_bootstrap_suffix=no-bootstrap ;;
7295   esac
7296
7297   extrasub_target="$extrasub_target
7298 /^@if target-$module\$/d
7299 /^@endif target-$module\$/d
7300 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7301 /^@if target-$module-$target_bootstrap_suffix\$/d
7302 /^@endif target-$module-$target_bootstrap_suffix\$/d
7303 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7304 done
7305
7306 # Do the final fixup along with target modules.
7307 extrasub_target="$extrasub_target
7308 /^@if /,/^@endif /d
7309 /^@unless /d
7310 /^@endunless /d"
7311
7312 # Create the serialization dependencies.  This uses a temporary file.
7313
7314 # Check whether --enable-serial-configure was given.
7315 if test "${enable_serial_configure+set}" = set; then :
7316   enableval=$enable_serial_configure;
7317 fi
7318
7319
7320 case ${enable_serial_configure} in
7321   yes)
7322     enable_serial_build_configure=yes
7323     enable_serial_host_configure=yes
7324     enable_serial_target_configure=yes
7325     ;;
7326 esac
7327
7328 # These force 'configure's to be done one at a time, to avoid problems
7329 # with contention over a shared config.cache.
7330 rm -f serdep.tmp
7331 echo '# serdep.tmp' > serdep.tmp
7332 olditem=
7333 test "x${enable_serial_build_configure}" = xyes &&
7334 for item in ${build_configdirs} ; do
7335   case ${olditem} in
7336     "") ;;
7337     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7338   esac
7339   olditem=${item}
7340 done
7341 olditem=
7342 test "x${enable_serial_host_configure}" = xyes &&
7343 for item in ${configdirs} ; do
7344   case ${olditem} in
7345     "") ;;
7346     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7347   esac
7348   olditem=${item}
7349 done
7350 olditem=
7351 test "x${enable_serial_target_configure}" = xyes &&
7352 for item in ${target_configdirs} ; do
7353   case ${olditem} in
7354     "") ;;
7355     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7356   esac
7357   olditem=${item}
7358 done
7359 serialization_dependencies=serdep.tmp
7360
7361
7362 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7363 # target, nonopt, and variable assignments.  These are the ones we
7364 # might not want to pass down to subconfigures.  The exception being
7365 # --cache-file=/dev/null, which is used to turn off the use of cache
7366 # files altogether, and which should be passed on to subconfigures.
7367 # Also strip program-prefix, program-suffix, and program-transform-name,
7368 # so that we can pass down a consistent program-transform-name.
7369 baseargs=
7370 tbaseargs=
7371 keep_next=no
7372 skip_next=no
7373 eval "set -- $ac_configure_args"
7374 for ac_arg
7375 do
7376   if test X"$skip_next" = X"yes"; then
7377     skip_next=no
7378     continue
7379   fi
7380   if test X"$keep_next" = X"yes"; then
7381     case $ac_arg in
7382       *\'*)
7383         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7384     esac
7385     baseargs="$baseargs '$ac_arg'"
7386     tbaseargs="$tbaseargs '$ac_arg'"
7387     keep_next=no
7388     continue
7389   fi
7390
7391   # Handle separated arguments.  Based on the logic generated by
7392   # autoconf 2.59.
7393   case $ac_arg in
7394     *=* | --config-cache | -C | -disable-* | --disable-* \
7395       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7396       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7397       | -with-* | --with-* | -without-* | --without-* | --x)
7398       separate_arg=no
7399       ;;
7400     -*)
7401       separate_arg=yes
7402       ;;
7403     *)
7404       separate_arg=no
7405       ;;
7406   esac
7407
7408   skip_targ=no
7409   case $ac_arg in
7410
7411   --with-* | --without-*)
7412     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7413
7414     case $libopt in
7415     *[-_]include)
7416       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7417       ;;
7418     *[-_]lib)
7419       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7420       ;;
7421     *)
7422       lib=$libopt
7423       ;;
7424     esac
7425
7426
7427     case $lib in
7428     mpc | mpfr | gmp | isl)
7429       # If we're processing --with-$lib, --with-$lib-include or
7430       # --with-$lib-lib, for one of the libs above, and target is
7431       # different from host, don't pass the current argument to any
7432       # target library's configure.
7433       if test x$is_cross_compiler = xyes; then
7434         skip_targ=yes
7435       fi
7436       ;;
7437     esac
7438     ;;
7439   esac
7440
7441   case "$ac_arg" in
7442     --cache-file=/dev/null | \
7443     -cache-file=/dev/null )
7444       # Handled here to avoid the test to skip args below.
7445       baseargs="$baseargs '$ac_arg'"
7446       tbaseargs="$tbaseargs '$ac_arg'"
7447       # Assert: $separate_arg should always be no.
7448       keep_next=$separate_arg
7449       ;;
7450     --no*)
7451       continue
7452       ;;
7453     --c* | \
7454     --sr* | \
7455     --ho* | \
7456     --bu* | \
7457     --t* | \
7458     --program-* | \
7459     -cache_file* | \
7460     -srcdir* | \
7461     -host* | \
7462     -build* | \
7463     -target* | \
7464     -program-prefix* | \
7465     -program-suffix* | \
7466     -program-transform-name* )
7467       skip_next=$separate_arg
7468       continue
7469       ;;
7470     -*)
7471       # An option.  Add it.
7472       case $ac_arg in
7473         *\'*)
7474           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7475       esac
7476       baseargs="$baseargs '$ac_arg'"
7477       if test X"$skip_targ" = Xno; then
7478         tbaseargs="$tbaseargs '$ac_arg'"
7479       fi
7480       keep_next=$separate_arg
7481       ;;
7482     *)
7483       # Either a variable assignment, or a nonopt (triplet).  Don't
7484       # pass it down; let the Makefile handle this.
7485       continue
7486       ;;
7487   esac
7488 done
7489 # Remove the initial space we just introduced and, as these will be
7490 # expanded by make, quote '$'.
7491 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7492
7493 # Add in --program-transform-name, after --program-prefix and
7494 # --program-suffix have been applied to it.  Autoconf has already
7495 # doubled dollar signs and backslashes in program_transform_name; we want
7496 # the backslashes un-doubled, and then the entire thing wrapped in single
7497 # quotes, because this will be expanded first by make and then by the shell.
7498 # Also, because we want to override the logic in subdir configure scripts to
7499 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7500 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7501 ${program_transform_name}
7502 EOF_SED
7503 gcc_transform_name=`cat conftestsed.out`
7504 rm -f conftestsed.out
7505 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7506 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7507 if test "$silent" = yes; then
7508   baseargs="$baseargs --silent"
7509   tbaseargs="$tbaseargs --silent"
7510 fi
7511 baseargs="$baseargs --disable-option-checking"
7512 tbaseargs="$tbaseargs --disable-option-checking"
7513
7514 # Record and document user additions to sub configure arguments.
7515
7516
7517
7518
7519 # For the build-side libraries, we just need to pretend we're native,
7520 # and not use the same cache file.  Multilibs are neither needed nor
7521 # desired.  We can't even use the same cache file for all build-side
7522 # libraries, as they're compiled differently; some with C, some with
7523 # C++ or with different feature-enabling options.
7524 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7525
7526 # For host modules, accept cache file option, or specification as blank.
7527 case "${cache_file}" in
7528 "") # empty
7529   cache_file_option="" ;;
7530 /* | [A-Za-z]:[\\/]* ) # absolute path
7531   cache_file_option="--cache-file=${cache_file}" ;;
7532 *) # relative path
7533   cache_file_option="--cache-file=../${cache_file}" ;;
7534 esac
7535
7536 # Host dirs don't like to share a cache file either, horribly enough.
7537 # This seems to be due to autoconf 2.5x stupidity.
7538 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7539
7540 target_configargs="$target_configargs ${tbaseargs}"
7541
7542 # Passing a --with-cross-host argument lets the target libraries know
7543 # whether they are being built with a cross-compiler or being built
7544 # native.  However, it would be better to use other mechanisms to make the
7545 # sorts of decisions they want to make on this basis.  Please consider
7546 # this option to be deprecated.  FIXME.
7547 if test x${is_cross_compiler} = xyes ; then
7548   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7549 fi
7550
7551 # Special user-friendly check for native x86_64-linux build, if
7552 # multilib is not explicitly enabled.
7553 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7554   x86_64-*linux*:yes:$build:$build:)
7555     # Make sure we have a development environment that handles 32-bit
7556     dev64=no
7557     echo "int main () { return 0; }" > conftest.c
7558     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7559     if test $? = 0 ; then
7560       if test -s conftest || test -s conftest.exe ; then
7561         dev64=yes
7562       fi
7563     fi
7564     rm -f conftest*
7565     if test x${dev64} != xyes ; then
7566       as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7567     fi
7568     ;;
7569 esac
7570
7571 # Default to --enable-multilib.
7572 if test x${enable_multilib} = x ; then
7573   target_configargs="--enable-multilib ${target_configargs}"
7574 fi
7575
7576 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7577 # changed from the earlier setting of with_newlib.
7578 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7579   target_configargs="--with-newlib ${target_configargs}"
7580 fi
7581
7582 # Different target subdirs use different values of certain variables
7583 # (notably CXX).  Worse, multilibs use *lots* of different values.
7584 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7585 # it doesn't automatically accept command-line overrides of them.
7586 # This means it's not safe for target subdirs to share a cache file,
7587 # which is disgusting, but there you have it.  Hopefully this can be
7588 # fixed in future.  It's still worthwhile to use a cache file for each
7589 # directory.  I think.
7590
7591 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7592 # We need to pass --target, as newer autoconf's requires consistency
7593 # for target_alias and gcc doesn't manage it consistently.
7594 target_configargs="--cache-file=./config.cache ${target_configargs}"
7595
7596 FLAGS_FOR_TARGET=
7597 case " $target_configdirs " in
7598  *" newlib "*)
7599   case " $target_configargs " in
7600   *" --with-newlib "*)
7601    case "$target" in
7602     *-cygwin*)
7603       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7604       ;;
7605    esac
7606
7607    # If we're not building GCC, don't discard standard headers.
7608    if test -d ${srcdir}/gcc; then
7609      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7610
7611      if test "${build}" != "${host}"; then
7612        # On Canadian crosses, CC_FOR_TARGET will have already been set
7613        # by `configure', so we won't have an opportunity to add -Bgcc/
7614        # to it.  This is right: we don't want to search that directory
7615        # for binaries, but we want the header files in there, so add
7616        # them explicitly.
7617        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7618
7619        # Someone might think of using the pre-installed headers on
7620        # Canadian crosses, in case the installed compiler is not fully
7621        # compatible with the compiler being built.  In this case, it
7622        # would be better to flag an error than risking having
7623        # incompatible object files being constructed.  We can't
7624        # guarantee that an error will be flagged, but let's hope the
7625        # compiler will do it, when presented with incompatible header
7626        # files.
7627      fi
7628    fi
7629
7630    case "${target}-${is_cross_compiler}" in
7631    i[3456789]86-*-linux*-no)
7632       # Here host == target, so we don't need to build gcc,
7633       # so we don't want to discard standard headers.
7634       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7635       ;;
7636    *)
7637       # If we're building newlib, use its generic headers last, but search
7638       # for any libc-related directories first (so make it the last -B
7639       # switch).
7640       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7641
7642       # If we're building libgloss, find the startup file, simulator library
7643       # and linker script.
7644       case " $target_configdirs " in
7645         *" libgloss "*)
7646         # Look for startup file, simulator library and maybe linker script.
7647         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7648         # Look for libnosys.a in case the target needs it.
7649         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7650         # Most targets have the linker script in the source directory.
7651         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7652         ;;
7653       esac
7654       ;;
7655    esac
7656    ;;
7657   esac
7658   ;;
7659 esac
7660
7661 case "$target" in
7662   x86_64-*mingw* | *-w64-mingw*)
7663   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7664   # however, use a symlink named 'mingw' in ${prefix} .
7665     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7666     ;;
7667   *-mingw*)
7668   # MinGW can't be handled as Cygwin above since it does not use newlib.
7669     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'
7670     ;;
7671 esac
7672
7673 # Allow the user to override the flags for
7674 # our build compiler if desired.
7675 if test x"${build}" = x"${host}" ; then
7676   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7677   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7678   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7679 fi
7680
7681 # On Canadian crosses, we'll be searching the right directories for
7682 # the previously-installed cross compiler, so don't bother to add
7683 # flags for directories within the install tree of the compiler
7684 # being built; programs in there won't even run.
7685 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7686   # Search for pre-installed headers if nothing else fits.
7687   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7688 fi
7689
7690 if test "x${use_gnu_ld}" = x &&
7691    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7692   # Arrange for us to find uninstalled linker scripts.
7693   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7694 fi
7695
7696 # Search for other target-specific linker scripts and such.
7697 case "${target}" in
7698   mep*)
7699     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7700     ;;
7701 esac
7702
7703 # Makefile fragments.
7704 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7705 do
7706   eval fragval=\$$frag
7707   if test $fragval != /dev/null; then
7708     eval $frag=${srcdir}/$fragval
7709   fi
7710 done
7711
7712
7713
7714
7715
7716 # Miscellanea: directories, flags, etc.
7717
7718
7719
7720
7721
7722
7723
7724
7725 # Build module lists & subconfigure args.
7726
7727
7728
7729 # Host module lists & subconfigure args.
7730
7731
7732
7733
7734 # Target module lists & subconfigure args.
7735
7736
7737
7738 # Build tools.
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756 # Generate default definitions for YACC, M4, LEX and other programs that run
7757 # on the build machine.  These are used if the Makefile can't locate these
7758 # programs in objdir.
7759 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7760
7761 for ac_prog in 'bison -y' byacc yacc
7762 do
7763   # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if ${ac_cv_prog_YACC+:} false; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   if test -n "$YACC"; then
7771   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776   IFS=$as_save_IFS
7777   test -z "$as_dir" && as_dir=.
7778     for ac_exec_ext in '' $ac_executable_extensions; do
7779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780     ac_cv_prog_YACC="$ac_prog"
7781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782     break 2
7783   fi
7784 done
7785   done
7786 IFS=$as_save_IFS
7787
7788 fi
7789 fi
7790 YACC=$ac_cv_prog_YACC
7791 if test -n "$YACC"; then
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7793 $as_echo "$YACC" >&6; }
7794 else
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799
7800   test -n "$YACC" && break
7801 done
7802 test -n "$YACC" || YACC="$MISSING bison -y"
7803
7804 case " $build_configdirs " in
7805   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7806 esac
7807
7808 for ac_prog in bison
7809 do
7810   # Extract the first word of "$ac_prog", so it can be a program name with args.
7811 set dummy $ac_prog; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if ${ac_cv_prog_BISON+:} false; then :
7815   $as_echo_n "(cached) " >&6
7816 else
7817   if test -n "$BISON"; then
7818   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823   IFS=$as_save_IFS
7824   test -z "$as_dir" && as_dir=.
7825     for ac_exec_ext in '' $ac_executable_extensions; do
7826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7827     ac_cv_prog_BISON="$ac_prog"
7828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829     break 2
7830   fi
7831 done
7832   done
7833 IFS=$as_save_IFS
7834
7835 fi
7836 fi
7837 BISON=$ac_cv_prog_BISON
7838 if test -n "$BISON"; then
7839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7840 $as_echo "$BISON" >&6; }
7841 else
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7844 fi
7845
7846
7847   test -n "$BISON" && break
7848 done
7849 test -n "$BISON" || BISON="$MISSING bison"
7850
7851 case " $build_configdirs " in
7852   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7853 esac
7854
7855 for ac_prog in gm4 gnum4 m4
7856 do
7857   # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if ${ac_cv_prog_M4+:} false; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   if test -n "$M4"; then
7865   ac_cv_prog_M4="$M4" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870   IFS=$as_save_IFS
7871   test -z "$as_dir" && as_dir=.
7872     for ac_exec_ext in '' $ac_executable_extensions; do
7873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874     ac_cv_prog_M4="$ac_prog"
7875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876     break 2
7877   fi
7878 done
7879   done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 M4=$ac_cv_prog_M4
7885 if test -n "$M4"; then
7886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7887 $as_echo "$M4" >&6; }
7888 else
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 fi
7892
7893
7894   test -n "$M4" && break
7895 done
7896 test -n "$M4" || M4="$MISSING m4"
7897
7898 case " $build_configdirs " in
7899   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7900 esac
7901
7902 for ac_prog in flex lex
7903 do
7904   # Extract the first word of "$ac_prog", so it can be a program name with args.
7905 set dummy $ac_prog; ac_word=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if ${ac_cv_prog_LEX+:} false; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   if test -n "$LEX"; then
7912   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7913 else
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7916 do
7917   IFS=$as_save_IFS
7918   test -z "$as_dir" && as_dir=.
7919     for ac_exec_ext in '' $ac_executable_extensions; do
7920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7921     ac_cv_prog_LEX="$ac_prog"
7922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923     break 2
7924   fi
7925 done
7926   done
7927 IFS=$as_save_IFS
7928
7929 fi
7930 fi
7931 LEX=$ac_cv_prog_LEX
7932 if test -n "$LEX"; then
7933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7934 $as_echo "$LEX" >&6; }
7935 else
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7938 fi
7939
7940
7941   test -n "$LEX" && break
7942 done
7943 test -n "$LEX" || LEX="$MISSING flex"
7944
7945 case " $build_configdirs " in
7946   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7947   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7948 esac
7949
7950 for ac_prog in flex
7951 do
7952   # Extract the first word of "$ac_prog", so it can be a program name with args.
7953 set dummy $ac_prog; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if ${ac_cv_prog_FLEX+:} false; then :
7957   $as_echo_n "(cached) " >&6
7958 else
7959   if test -n "$FLEX"; then
7960   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965   IFS=$as_save_IFS
7966   test -z "$as_dir" && as_dir=.
7967     for ac_exec_ext in '' $ac_executable_extensions; do
7968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969     ac_cv_prog_FLEX="$ac_prog"
7970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971     break 2
7972   fi
7973 done
7974   done
7975 IFS=$as_save_IFS
7976
7977 fi
7978 fi
7979 FLEX=$ac_cv_prog_FLEX
7980 if test -n "$FLEX"; then
7981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7982 $as_echo "$FLEX" >&6; }
7983 else
7984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7986 fi
7987
7988
7989   test -n "$FLEX" && break
7990 done
7991 test -n "$FLEX" || FLEX="$MISSING flex"
7992
7993 case " $build_configdirs " in
7994   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7995 esac
7996
7997 for ac_prog in makeinfo
7998 do
7999   # Extract the first word of "$ac_prog", so it can be a program name with args.
8000 set dummy $ac_prog; ac_word=$2
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002 $as_echo_n "checking for $ac_word... " >&6; }
8003 if ${ac_cv_prog_MAKEINFO+:} false; then :
8004   $as_echo_n "(cached) " >&6
8005 else
8006   if test -n "$MAKEINFO"; then
8007   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8008 else
8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 for as_dir in $PATH
8011 do
8012   IFS=$as_save_IFS
8013   test -z "$as_dir" && as_dir=.
8014     for ac_exec_ext in '' $ac_executable_extensions; do
8015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016     ac_cv_prog_MAKEINFO="$ac_prog"
8017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018     break 2
8019   fi
8020 done
8021   done
8022 IFS=$as_save_IFS
8023
8024 fi
8025 fi
8026 MAKEINFO=$ac_cv_prog_MAKEINFO
8027 if test -n "$MAKEINFO"; then
8028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8029 $as_echo "$MAKEINFO" >&6; }
8030 else
8031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032 $as_echo "no" >&6; }
8033 fi
8034
8035
8036   test -n "$MAKEINFO" && break
8037 done
8038 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8039
8040 case " $build_configdirs " in
8041   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8042   *)
8043
8044     # For an installed makeinfo, we require it to be from texinfo 4.7 or
8045     # higher, else we use the "missing" dummy.
8046     if ${MAKEINFO} --version \
8047        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8048       :
8049     else
8050       MAKEINFO="$MISSING makeinfo"
8051     fi
8052     ;;
8053
8054 esac
8055
8056 # FIXME: expect and dejagnu may become build tools?
8057
8058 for ac_prog in expect
8059 do
8060   # Extract the first word of "$ac_prog", so it can be a program name with args.
8061 set dummy $ac_prog; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_prog_EXPECT+:} false; then :
8065   $as_echo_n "(cached) " >&6
8066 else
8067   if test -n "$EXPECT"; then
8068   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073   IFS=$as_save_IFS
8074   test -z "$as_dir" && as_dir=.
8075     for ac_exec_ext in '' $ac_executable_extensions; do
8076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077     ac_cv_prog_EXPECT="$ac_prog"
8078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079     break 2
8080   fi
8081 done
8082   done
8083 IFS=$as_save_IFS
8084
8085 fi
8086 fi
8087 EXPECT=$ac_cv_prog_EXPECT
8088 if test -n "$EXPECT"; then
8089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8090 $as_echo "$EXPECT" >&6; }
8091 else
8092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095
8096
8097   test -n "$EXPECT" && break
8098 done
8099 test -n "$EXPECT" || EXPECT="expect"
8100
8101 case " $configdirs " in
8102   *" expect "*)
8103     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8104     ;;
8105 esac
8106
8107 for ac_prog in runtest
8108 do
8109   # Extract the first word of "$ac_prog", so it can be a program name with args.
8110 set dummy $ac_prog; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if ${ac_cv_prog_RUNTEST+:} false; then :
8114   $as_echo_n "(cached) " >&6
8115 else
8116   if test -n "$RUNTEST"; then
8117   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8118 else
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8121 do
8122   IFS=$as_save_IFS
8123   test -z "$as_dir" && as_dir=.
8124     for ac_exec_ext in '' $ac_executable_extensions; do
8125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126     ac_cv_prog_RUNTEST="$ac_prog"
8127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128     break 2
8129   fi
8130 done
8131   done
8132 IFS=$as_save_IFS
8133
8134 fi
8135 fi
8136 RUNTEST=$ac_cv_prog_RUNTEST
8137 if test -n "$RUNTEST"; then
8138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8139 $as_echo "$RUNTEST" >&6; }
8140 else
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8143 fi
8144
8145
8146   test -n "$RUNTEST" && break
8147 done
8148 test -n "$RUNTEST" || RUNTEST="runtest"
8149
8150 case " $configdirs " in
8151   *" dejagnu "*)
8152     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8153     ;;
8154 esac
8155
8156
8157 # Host tools.
8158 ncn_tool_prefix=
8159 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8160 ncn_target_tool_prefix=
8161 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8162
8163
8164
8165 if test -n "$AR"; then
8166   ac_cv_prog_AR=$AR
8167 elif test -n "$ac_cv_prog_AR"; then
8168   AR=$ac_cv_prog_AR
8169 fi
8170
8171 if test -n "$ac_cv_prog_AR"; then
8172   for ncn_progname in ar; do
8173     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8174 set dummy ${ncn_progname}; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if ${ac_cv_prog_AR+:} false; then :
8178   $as_echo_n "(cached) " >&6
8179 else
8180   if test -n "$AR"; then
8181   ac_cv_prog_AR="$AR" # Let the user override the test.
8182 else
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8185 do
8186   IFS=$as_save_IFS
8187   test -z "$as_dir" && as_dir=.
8188     for ac_exec_ext in '' $ac_executable_extensions; do
8189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190     ac_cv_prog_AR="${ncn_progname}"
8191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192     break 2
8193   fi
8194 done
8195   done
8196 IFS=$as_save_IFS
8197
8198 fi
8199 fi
8200 AR=$ac_cv_prog_AR
8201 if test -n "$AR"; then
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8203 $as_echo "$AR" >&6; }
8204 else
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8207 fi
8208
8209
8210   done
8211 fi
8212
8213 for ncn_progname in ar; do
8214   if test -n "$ncn_tool_prefix"; then
8215     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8216 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_prog_AR+:} false; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   if test -n "$AR"; then
8223   ac_cv_prog_AR="$AR" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228   IFS=$as_save_IFS
8229   test -z "$as_dir" && as_dir=.
8230     for ac_exec_ext in '' $ac_executable_extensions; do
8231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234     break 2
8235   fi
8236 done
8237   done
8238 IFS=$as_save_IFS
8239
8240 fi
8241 fi
8242 AR=$ac_cv_prog_AR
8243 if test -n "$AR"; then
8244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8245 $as_echo "$AR" >&6; }
8246 else
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8249 fi
8250
8251
8252   fi
8253   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8254     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8255 set dummy ${ncn_progname}; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if ${ac_cv_prog_AR+:} false; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   if test -n "$AR"; then
8262   ac_cv_prog_AR="$AR" # Let the user override the test.
8263 else
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8266 do
8267   IFS=$as_save_IFS
8268   test -z "$as_dir" && as_dir=.
8269     for ac_exec_ext in '' $ac_executable_extensions; do
8270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8271     ac_cv_prog_AR="${ncn_progname}"
8272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273     break 2
8274   fi
8275 done
8276   done
8277 IFS=$as_save_IFS
8278
8279 fi
8280 fi
8281 AR=$ac_cv_prog_AR
8282 if test -n "$AR"; then
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8284 $as_echo "$AR" >&6; }
8285 else
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8288 fi
8289
8290
8291   fi
8292   test -n "$ac_cv_prog_AR" && break
8293 done
8294
8295 if test -z "$ac_cv_prog_AR" ; then
8296   set dummy ar
8297   if test $build = $host ; then
8298     AR="$2"
8299   else
8300     AR="${ncn_tool_prefix}$2"
8301   fi
8302 fi
8303
8304
8305
8306 if test -n "$AS"; then
8307   ac_cv_prog_AS=$AS
8308 elif test -n "$ac_cv_prog_AS"; then
8309   AS=$ac_cv_prog_AS
8310 fi
8311
8312 if test -n "$ac_cv_prog_AS"; then
8313   for ncn_progname in as; do
8314     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8315 set dummy ${ncn_progname}; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if ${ac_cv_prog_AS+:} false; then :
8319   $as_echo_n "(cached) " >&6
8320 else
8321   if test -n "$AS"; then
8322   ac_cv_prog_AS="$AS" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327   IFS=$as_save_IFS
8328   test -z "$as_dir" && as_dir=.
8329     for ac_exec_ext in '' $ac_executable_extensions; do
8330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331     ac_cv_prog_AS="${ncn_progname}"
8332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333     break 2
8334   fi
8335 done
8336   done
8337 IFS=$as_save_IFS
8338
8339 fi
8340 fi
8341 AS=$ac_cv_prog_AS
8342 if test -n "$AS"; then
8343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8344 $as_echo "$AS" >&6; }
8345 else
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8348 fi
8349
8350
8351   done
8352 fi
8353
8354 for ncn_progname in as; do
8355   if test -n "$ncn_tool_prefix"; then
8356     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8357 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if ${ac_cv_prog_AS+:} false; then :
8361   $as_echo_n "(cached) " >&6
8362 else
8363   if test -n "$AS"; then
8364   ac_cv_prog_AS="$AS" # Let the user override the test.
8365 else
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8368 do
8369   IFS=$as_save_IFS
8370   test -z "$as_dir" && as_dir=.
8371     for ac_exec_ext in '' $ac_executable_extensions; do
8372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375     break 2
8376   fi
8377 done
8378   done
8379 IFS=$as_save_IFS
8380
8381 fi
8382 fi
8383 AS=$ac_cv_prog_AS
8384 if test -n "$AS"; then
8385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8386 $as_echo "$AS" >&6; }
8387 else
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8390 fi
8391
8392
8393   fi
8394   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8395     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8396 set dummy ${ncn_progname}; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if ${ac_cv_prog_AS+:} false; then :
8400   $as_echo_n "(cached) " >&6
8401 else
8402   if test -n "$AS"; then
8403   ac_cv_prog_AS="$AS" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8407 do
8408   IFS=$as_save_IFS
8409   test -z "$as_dir" && as_dir=.
8410     for ac_exec_ext in '' $ac_executable_extensions; do
8411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412     ac_cv_prog_AS="${ncn_progname}"
8413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414     break 2
8415   fi
8416 done
8417   done
8418 IFS=$as_save_IFS
8419
8420 fi
8421 fi
8422 AS=$ac_cv_prog_AS
8423 if test -n "$AS"; then
8424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8425 $as_echo "$AS" >&6; }
8426 else
8427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 fi
8430
8431
8432   fi
8433   test -n "$ac_cv_prog_AS" && break
8434 done
8435
8436 if test -z "$ac_cv_prog_AS" ; then
8437   set dummy as
8438   if test $build = $host ; then
8439     AS="$2"
8440   else
8441     AS="${ncn_tool_prefix}$2"
8442   fi
8443 fi
8444
8445
8446
8447 if test -n "$DLLTOOL"; then
8448   ac_cv_prog_DLLTOOL=$DLLTOOL
8449 elif test -n "$ac_cv_prog_DLLTOOL"; then
8450   DLLTOOL=$ac_cv_prog_DLLTOOL
8451 fi
8452
8453 if test -n "$ac_cv_prog_DLLTOOL"; then
8454   for ncn_progname in dlltool; do
8455     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8456 set dummy ${ncn_progname}; ac_word=$2
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458 $as_echo_n "checking for $ac_word... " >&6; }
8459 if ${ac_cv_prog_DLLTOOL+:} false; then :
8460   $as_echo_n "(cached) " >&6
8461 else
8462   if test -n "$DLLTOOL"; then
8463   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8464 else
8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 for as_dir in $PATH
8467 do
8468   IFS=$as_save_IFS
8469   test -z "$as_dir" && as_dir=.
8470     for ac_exec_ext in '' $ac_executable_extensions; do
8471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8472     ac_cv_prog_DLLTOOL="${ncn_progname}"
8473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474     break 2
8475   fi
8476 done
8477   done
8478 IFS=$as_save_IFS
8479
8480 fi
8481 fi
8482 DLLTOOL=$ac_cv_prog_DLLTOOL
8483 if test -n "$DLLTOOL"; then
8484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8485 $as_echo "$DLLTOOL" >&6; }
8486 else
8487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8489 fi
8490
8491
8492   done
8493 fi
8494
8495 for ncn_progname in dlltool; do
8496   if test -n "$ncn_tool_prefix"; then
8497     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8498 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if ${ac_cv_prog_DLLTOOL+:} false; then :
8502   $as_echo_n "(cached) " >&6
8503 else
8504   if test -n "$DLLTOOL"; then
8505   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8509 do
8510   IFS=$as_save_IFS
8511   test -z "$as_dir" && as_dir=.
8512     for ac_exec_ext in '' $ac_executable_extensions; do
8513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516     break 2
8517   fi
8518 done
8519   done
8520 IFS=$as_save_IFS
8521
8522 fi
8523 fi
8524 DLLTOOL=$ac_cv_prog_DLLTOOL
8525 if test -n "$DLLTOOL"; then
8526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8527 $as_echo "$DLLTOOL" >&6; }
8528 else
8529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8531 fi
8532
8533
8534   fi
8535   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8536     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8537 set dummy ${ncn_progname}; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if ${ac_cv_prog_DLLTOOL+:} false; then :
8541   $as_echo_n "(cached) " >&6
8542 else
8543   if test -n "$DLLTOOL"; then
8544   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8545 else
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8548 do
8549   IFS=$as_save_IFS
8550   test -z "$as_dir" && as_dir=.
8551     for ac_exec_ext in '' $ac_executable_extensions; do
8552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553     ac_cv_prog_DLLTOOL="${ncn_progname}"
8554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555     break 2
8556   fi
8557 done
8558   done
8559 IFS=$as_save_IFS
8560
8561 fi
8562 fi
8563 DLLTOOL=$ac_cv_prog_DLLTOOL
8564 if test -n "$DLLTOOL"; then
8565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8566 $as_echo "$DLLTOOL" >&6; }
8567 else
8568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8570 fi
8571
8572
8573   fi
8574   test -n "$ac_cv_prog_DLLTOOL" && break
8575 done
8576
8577 if test -z "$ac_cv_prog_DLLTOOL" ; then
8578   set dummy dlltool
8579   if test $build = $host ; then
8580     DLLTOOL="$2"
8581   else
8582     DLLTOOL="${ncn_tool_prefix}$2"
8583   fi
8584 fi
8585
8586
8587
8588 if test -n "$LD"; then
8589   ac_cv_prog_LD=$LD
8590 elif test -n "$ac_cv_prog_LD"; then
8591   LD=$ac_cv_prog_LD
8592 fi
8593
8594 if test -n "$ac_cv_prog_LD"; then
8595   for ncn_progname in ld; do
8596     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8597 set dummy ${ncn_progname}; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_prog_LD+:} false; then :
8601   $as_echo_n "(cached) " >&6
8602 else
8603   if test -n "$LD"; then
8604   ac_cv_prog_LD="$LD" # Let the user override the test.
8605 else
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8608 do
8609   IFS=$as_save_IFS
8610   test -z "$as_dir" && as_dir=.
8611     for ac_exec_ext in '' $ac_executable_extensions; do
8612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8613     ac_cv_prog_LD="${ncn_progname}"
8614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615     break 2
8616   fi
8617 done
8618   done
8619 IFS=$as_save_IFS
8620
8621 fi
8622 fi
8623 LD=$ac_cv_prog_LD
8624 if test -n "$LD"; then
8625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8626 $as_echo "$LD" >&6; }
8627 else
8628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8630 fi
8631
8632
8633   done
8634 fi
8635
8636 for ncn_progname in ld; do
8637   if test -n "$ncn_tool_prefix"; then
8638     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8639 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if ${ac_cv_prog_LD+:} false; then :
8643   $as_echo_n "(cached) " >&6
8644 else
8645   if test -n "$LD"; then
8646   ac_cv_prog_LD="$LD" # Let the user override the test.
8647 else
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $PATH
8650 do
8651   IFS=$as_save_IFS
8652   test -z "$as_dir" && as_dir=.
8653     for ac_exec_ext in '' $ac_executable_extensions; do
8654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657     break 2
8658   fi
8659 done
8660   done
8661 IFS=$as_save_IFS
8662
8663 fi
8664 fi
8665 LD=$ac_cv_prog_LD
8666 if test -n "$LD"; then
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8668 $as_echo "$LD" >&6; }
8669 else
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 fi
8673
8674
8675   fi
8676   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8677     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8678 set dummy ${ncn_progname}; ac_word=$2
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if ${ac_cv_prog_LD+:} false; then :
8682   $as_echo_n "(cached) " >&6
8683 else
8684   if test -n "$LD"; then
8685   ac_cv_prog_LD="$LD" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8689 do
8690   IFS=$as_save_IFS
8691   test -z "$as_dir" && as_dir=.
8692     for ac_exec_ext in '' $ac_executable_extensions; do
8693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8694     ac_cv_prog_LD="${ncn_progname}"
8695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696     break 2
8697   fi
8698 done
8699   done
8700 IFS=$as_save_IFS
8701
8702 fi
8703 fi
8704 LD=$ac_cv_prog_LD
8705 if test -n "$LD"; then
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8707 $as_echo "$LD" >&6; }
8708 else
8709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8711 fi
8712
8713
8714   fi
8715   test -n "$ac_cv_prog_LD" && break
8716 done
8717
8718 if test -z "$ac_cv_prog_LD" ; then
8719   set dummy ld
8720   if test $build = $host ; then
8721     LD="$2"
8722   else
8723     LD="${ncn_tool_prefix}$2"
8724   fi
8725 fi
8726
8727
8728
8729 if test -n "$LIPO"; then
8730   ac_cv_prog_LIPO=$LIPO
8731 elif test -n "$ac_cv_prog_LIPO"; then
8732   LIPO=$ac_cv_prog_LIPO
8733 fi
8734
8735 if test -n "$ac_cv_prog_LIPO"; then
8736   for ncn_progname in lipo; do
8737     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8738 set dummy ${ncn_progname}; ac_word=$2
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 $as_echo_n "checking for $ac_word... " >&6; }
8741 if ${ac_cv_prog_LIPO+:} false; then :
8742   $as_echo_n "(cached) " >&6
8743 else
8744   if test -n "$LIPO"; then
8745   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8746 else
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8749 do
8750   IFS=$as_save_IFS
8751   test -z "$as_dir" && as_dir=.
8752     for ac_exec_ext in '' $ac_executable_extensions; do
8753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754     ac_cv_prog_LIPO="${ncn_progname}"
8755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756     break 2
8757   fi
8758 done
8759   done
8760 IFS=$as_save_IFS
8761
8762 fi
8763 fi
8764 LIPO=$ac_cv_prog_LIPO
8765 if test -n "$LIPO"; then
8766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8767 $as_echo "$LIPO" >&6; }
8768 else
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8771 fi
8772
8773
8774   done
8775 fi
8776
8777 for ncn_progname in lipo; do
8778   if test -n "$ncn_tool_prefix"; then
8779     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8780 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if ${ac_cv_prog_LIPO+:} false; then :
8784   $as_echo_n "(cached) " >&6
8785 else
8786   if test -n "$LIPO"; then
8787   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8791 do
8792   IFS=$as_save_IFS
8793   test -z "$as_dir" && as_dir=.
8794     for ac_exec_ext in '' $ac_executable_extensions; do
8795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798     break 2
8799   fi
8800 done
8801   done
8802 IFS=$as_save_IFS
8803
8804 fi
8805 fi
8806 LIPO=$ac_cv_prog_LIPO
8807 if test -n "$LIPO"; then
8808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8809 $as_echo "$LIPO" >&6; }
8810 else
8811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8813 fi
8814
8815
8816   fi
8817   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8818     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8819 set dummy ${ncn_progname}; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_LIPO+:} false; then :
8823   $as_echo_n "(cached) " >&6
8824 else
8825   if test -n "$LIPO"; then
8826   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8827 else
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8830 do
8831   IFS=$as_save_IFS
8832   test -z "$as_dir" && as_dir=.
8833     for ac_exec_ext in '' $ac_executable_extensions; do
8834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835     ac_cv_prog_LIPO="${ncn_progname}"
8836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837     break 2
8838   fi
8839 done
8840   done
8841 IFS=$as_save_IFS
8842
8843 fi
8844 fi
8845 LIPO=$ac_cv_prog_LIPO
8846 if test -n "$LIPO"; then
8847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8848 $as_echo "$LIPO" >&6; }
8849 else
8850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8852 fi
8853
8854
8855   fi
8856   test -n "$ac_cv_prog_LIPO" && break
8857 done
8858
8859 if test -z "$ac_cv_prog_LIPO" ; then
8860   set dummy lipo
8861   if test $build = $host ; then
8862     LIPO="$2"
8863   else
8864     LIPO="${ncn_tool_prefix}$2"
8865   fi
8866 fi
8867
8868
8869
8870 if test -n "$NM"; then
8871   ac_cv_prog_NM=$NM
8872 elif test -n "$ac_cv_prog_NM"; then
8873   NM=$ac_cv_prog_NM
8874 fi
8875
8876 if test -n "$ac_cv_prog_NM"; then
8877   for ncn_progname in nm; do
8878     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8879 set dummy ${ncn_progname}; ac_word=$2
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 $as_echo_n "checking for $ac_word... " >&6; }
8882 if ${ac_cv_prog_NM+:} false; then :
8883   $as_echo_n "(cached) " >&6
8884 else
8885   if test -n "$NM"; then
8886   ac_cv_prog_NM="$NM" # Let the user override the test.
8887 else
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in $PATH
8890 do
8891   IFS=$as_save_IFS
8892   test -z "$as_dir" && as_dir=.
8893     for ac_exec_ext in '' $ac_executable_extensions; do
8894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8895     ac_cv_prog_NM="${ncn_progname}"
8896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897     break 2
8898   fi
8899 done
8900   done
8901 IFS=$as_save_IFS
8902
8903 fi
8904 fi
8905 NM=$ac_cv_prog_NM
8906 if test -n "$NM"; then
8907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8908 $as_echo "$NM" >&6; }
8909 else
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8912 fi
8913
8914
8915   done
8916 fi
8917
8918 for ncn_progname in nm; do
8919   if test -n "$ncn_tool_prefix"; then
8920     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8921 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923 $as_echo_n "checking for $ac_word... " >&6; }
8924 if ${ac_cv_prog_NM+:} false; then :
8925   $as_echo_n "(cached) " >&6
8926 else
8927   if test -n "$NM"; then
8928   ac_cv_prog_NM="$NM" # Let the user override the test.
8929 else
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931 for as_dir in $PATH
8932 do
8933   IFS=$as_save_IFS
8934   test -z "$as_dir" && as_dir=.
8935     for ac_exec_ext in '' $ac_executable_extensions; do
8936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8937     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939     break 2
8940   fi
8941 done
8942   done
8943 IFS=$as_save_IFS
8944
8945 fi
8946 fi
8947 NM=$ac_cv_prog_NM
8948 if test -n "$NM"; then
8949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8950 $as_echo "$NM" >&6; }
8951 else
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8954 fi
8955
8956
8957   fi
8958   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8959     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8960 set dummy ${ncn_progname}; ac_word=$2
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962 $as_echo_n "checking for $ac_word... " >&6; }
8963 if ${ac_cv_prog_NM+:} false; then :
8964   $as_echo_n "(cached) " >&6
8965 else
8966   if test -n "$NM"; then
8967   ac_cv_prog_NM="$NM" # Let the user override the test.
8968 else
8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970 for as_dir in $PATH
8971 do
8972   IFS=$as_save_IFS
8973   test -z "$as_dir" && as_dir=.
8974     for ac_exec_ext in '' $ac_executable_extensions; do
8975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976     ac_cv_prog_NM="${ncn_progname}"
8977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8978     break 2
8979   fi
8980 done
8981   done
8982 IFS=$as_save_IFS
8983
8984 fi
8985 fi
8986 NM=$ac_cv_prog_NM
8987 if test -n "$NM"; then
8988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8989 $as_echo "$NM" >&6; }
8990 else
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8993 fi
8994
8995
8996   fi
8997   test -n "$ac_cv_prog_NM" && break
8998 done
8999
9000 if test -z "$ac_cv_prog_NM" ; then
9001   set dummy nm
9002   if test $build = $host ; then
9003     NM="$2"
9004   else
9005     NM="${ncn_tool_prefix}$2"
9006   fi
9007 fi
9008
9009
9010
9011 if test -n "$RANLIB"; then
9012   ac_cv_prog_RANLIB=$RANLIB
9013 elif test -n "$ac_cv_prog_RANLIB"; then
9014   RANLIB=$ac_cv_prog_RANLIB
9015 fi
9016
9017 if test -n "$ac_cv_prog_RANLIB"; then
9018   for ncn_progname in ranlib; do
9019     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020 set dummy ${ncn_progname}; ac_word=$2
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 if ${ac_cv_prog_RANLIB+:} false; then :
9024   $as_echo_n "(cached) " >&6
9025 else
9026   if test -n "$RANLIB"; then
9027   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9028 else
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in $PATH
9031 do
9032   IFS=$as_save_IFS
9033   test -z "$as_dir" && as_dir=.
9034     for ac_exec_ext in '' $ac_executable_extensions; do
9035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9036     ac_cv_prog_RANLIB="${ncn_progname}"
9037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038     break 2
9039   fi
9040 done
9041   done
9042 IFS=$as_save_IFS
9043
9044 fi
9045 fi
9046 RANLIB=$ac_cv_prog_RANLIB
9047 if test -n "$RANLIB"; then
9048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9049 $as_echo "$RANLIB" >&6; }
9050 else
9051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9053 fi
9054
9055
9056   done
9057 fi
9058
9059 for ncn_progname in ranlib; do
9060   if test -n "$ncn_tool_prefix"; then
9061     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9062 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if ${ac_cv_prog_RANLIB+:} false; then :
9066   $as_echo_n "(cached) " >&6
9067 else
9068   if test -n "$RANLIB"; then
9069   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9070 else
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072 for as_dir in $PATH
9073 do
9074   IFS=$as_save_IFS
9075   test -z "$as_dir" && as_dir=.
9076     for ac_exec_ext in '' $ac_executable_extensions; do
9077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9078     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9080     break 2
9081   fi
9082 done
9083   done
9084 IFS=$as_save_IFS
9085
9086 fi
9087 fi
9088 RANLIB=$ac_cv_prog_RANLIB
9089 if test -n "$RANLIB"; then
9090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9091 $as_echo "$RANLIB" >&6; }
9092 else
9093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9095 fi
9096
9097
9098   fi
9099   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9100     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101 set dummy ${ncn_progname}; ac_word=$2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if ${ac_cv_prog_RANLIB+:} false; then :
9105   $as_echo_n "(cached) " >&6
9106 else
9107   if test -n "$RANLIB"; then
9108   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9109 else
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111 for as_dir in $PATH
9112 do
9113   IFS=$as_save_IFS
9114   test -z "$as_dir" && as_dir=.
9115     for ac_exec_ext in '' $ac_executable_extensions; do
9116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9117     ac_cv_prog_RANLIB="${ncn_progname}"
9118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9119     break 2
9120   fi
9121 done
9122   done
9123 IFS=$as_save_IFS
9124
9125 fi
9126 fi
9127 RANLIB=$ac_cv_prog_RANLIB
9128 if test -n "$RANLIB"; then
9129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9130 $as_echo "$RANLIB" >&6; }
9131 else
9132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 $as_echo "no" >&6; }
9134 fi
9135
9136
9137   fi
9138   test -n "$ac_cv_prog_RANLIB" && break
9139 done
9140
9141 if test -z "$ac_cv_prog_RANLIB" ; then
9142   RANLIB="true"
9143 fi
9144
9145
9146
9147 if test -n "$STRIP"; then
9148   ac_cv_prog_STRIP=$STRIP
9149 elif test -n "$ac_cv_prog_STRIP"; then
9150   STRIP=$ac_cv_prog_STRIP
9151 fi
9152
9153 if test -n "$ac_cv_prog_STRIP"; then
9154   for ncn_progname in strip; do
9155     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9156 set dummy ${ncn_progname}; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if ${ac_cv_prog_STRIP+:} false; then :
9160   $as_echo_n "(cached) " >&6
9161 else
9162   if test -n "$STRIP"; then
9163   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9167 do
9168   IFS=$as_save_IFS
9169   test -z "$as_dir" && as_dir=.
9170     for ac_exec_ext in '' $ac_executable_extensions; do
9171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9172     ac_cv_prog_STRIP="${ncn_progname}"
9173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174     break 2
9175   fi
9176 done
9177   done
9178 IFS=$as_save_IFS
9179
9180 fi
9181 fi
9182 STRIP=$ac_cv_prog_STRIP
9183 if test -n "$STRIP"; then
9184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9185 $as_echo "$STRIP" >&6; }
9186 else
9187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9189 fi
9190
9191
9192   done
9193 fi
9194
9195 for ncn_progname in strip; do
9196   if test -n "$ncn_tool_prefix"; then
9197     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9198 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200 $as_echo_n "checking for $ac_word... " >&6; }
9201 if ${ac_cv_prog_STRIP+:} false; then :
9202   $as_echo_n "(cached) " >&6
9203 else
9204   if test -n "$STRIP"; then
9205   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9206 else
9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 for as_dir in $PATH
9209 do
9210   IFS=$as_save_IFS
9211   test -z "$as_dir" && as_dir=.
9212     for ac_exec_ext in '' $ac_executable_extensions; do
9213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9214     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9216     break 2
9217   fi
9218 done
9219   done
9220 IFS=$as_save_IFS
9221
9222 fi
9223 fi
9224 STRIP=$ac_cv_prog_STRIP
9225 if test -n "$STRIP"; then
9226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9227 $as_echo "$STRIP" >&6; }
9228 else
9229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230 $as_echo "no" >&6; }
9231 fi
9232
9233
9234   fi
9235   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9236     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9237 set dummy ${ncn_progname}; ac_word=$2
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239 $as_echo_n "checking for $ac_word... " >&6; }
9240 if ${ac_cv_prog_STRIP+:} false; then :
9241   $as_echo_n "(cached) " >&6
9242 else
9243   if test -n "$STRIP"; then
9244   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9245 else
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247 for as_dir in $PATH
9248 do
9249   IFS=$as_save_IFS
9250   test -z "$as_dir" && as_dir=.
9251     for ac_exec_ext in '' $ac_executable_extensions; do
9252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253     ac_cv_prog_STRIP="${ncn_progname}"
9254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255     break 2
9256   fi
9257 done
9258   done
9259 IFS=$as_save_IFS
9260
9261 fi
9262 fi
9263 STRIP=$ac_cv_prog_STRIP
9264 if test -n "$STRIP"; then
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9266 $as_echo "$STRIP" >&6; }
9267 else
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9270 fi
9271
9272
9273   fi
9274   test -n "$ac_cv_prog_STRIP" && break
9275 done
9276
9277 if test -z "$ac_cv_prog_STRIP" ; then
9278   STRIP="true"
9279 fi
9280
9281
9282
9283 if test -n "$WINDRES"; then
9284   ac_cv_prog_WINDRES=$WINDRES
9285 elif test -n "$ac_cv_prog_WINDRES"; then
9286   WINDRES=$ac_cv_prog_WINDRES
9287 fi
9288
9289 if test -n "$ac_cv_prog_WINDRES"; then
9290   for ncn_progname in windres; do
9291     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9292 set dummy ${ncn_progname}; ac_word=$2
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294 $as_echo_n "checking for $ac_word... " >&6; }
9295 if ${ac_cv_prog_WINDRES+:} false; then :
9296   $as_echo_n "(cached) " >&6
9297 else
9298   if test -n "$WINDRES"; then
9299   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9300 else
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9303 do
9304   IFS=$as_save_IFS
9305   test -z "$as_dir" && as_dir=.
9306     for ac_exec_ext in '' $ac_executable_extensions; do
9307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9308     ac_cv_prog_WINDRES="${ncn_progname}"
9309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310     break 2
9311   fi
9312 done
9313   done
9314 IFS=$as_save_IFS
9315
9316 fi
9317 fi
9318 WINDRES=$ac_cv_prog_WINDRES
9319 if test -n "$WINDRES"; then
9320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9321 $as_echo "$WINDRES" >&6; }
9322 else
9323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324 $as_echo "no" >&6; }
9325 fi
9326
9327
9328   done
9329 fi
9330
9331 for ncn_progname in windres; do
9332   if test -n "$ncn_tool_prefix"; then
9333     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9334 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if ${ac_cv_prog_WINDRES+:} false; then :
9338   $as_echo_n "(cached) " >&6
9339 else
9340   if test -n "$WINDRES"; then
9341   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9342 else
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9345 do
9346   IFS=$as_save_IFS
9347   test -z "$as_dir" && as_dir=.
9348     for ac_exec_ext in '' $ac_executable_extensions; do
9349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352     break 2
9353   fi
9354 done
9355   done
9356 IFS=$as_save_IFS
9357
9358 fi
9359 fi
9360 WINDRES=$ac_cv_prog_WINDRES
9361 if test -n "$WINDRES"; then
9362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9363 $as_echo "$WINDRES" >&6; }
9364 else
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9367 fi
9368
9369
9370   fi
9371   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9372     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9373 set dummy ${ncn_progname}; ac_word=$2
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375 $as_echo_n "checking for $ac_word... " >&6; }
9376 if ${ac_cv_prog_WINDRES+:} false; then :
9377   $as_echo_n "(cached) " >&6
9378 else
9379   if test -n "$WINDRES"; then
9380   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9381 else
9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383 for as_dir in $PATH
9384 do
9385   IFS=$as_save_IFS
9386   test -z "$as_dir" && as_dir=.
9387     for ac_exec_ext in '' $ac_executable_extensions; do
9388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9389     ac_cv_prog_WINDRES="${ncn_progname}"
9390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391     break 2
9392   fi
9393 done
9394   done
9395 IFS=$as_save_IFS
9396
9397 fi
9398 fi
9399 WINDRES=$ac_cv_prog_WINDRES
9400 if test -n "$WINDRES"; then
9401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9402 $as_echo "$WINDRES" >&6; }
9403 else
9404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9406 fi
9407
9408
9409   fi
9410   test -n "$ac_cv_prog_WINDRES" && break
9411 done
9412
9413 if test -z "$ac_cv_prog_WINDRES" ; then
9414   set dummy windres
9415   if test $build = $host ; then
9416     WINDRES="$2"
9417   else
9418     WINDRES="${ncn_tool_prefix}$2"
9419   fi
9420 fi
9421
9422
9423
9424 if test -n "$WINDMC"; then
9425   ac_cv_prog_WINDMC=$WINDMC
9426 elif test -n "$ac_cv_prog_WINDMC"; then
9427   WINDMC=$ac_cv_prog_WINDMC
9428 fi
9429
9430 if test -n "$ac_cv_prog_WINDMC"; then
9431   for ncn_progname in windmc; do
9432     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9433 set dummy ${ncn_progname}; ac_word=$2
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435 $as_echo_n "checking for $ac_word... " >&6; }
9436 if ${ac_cv_prog_WINDMC+:} false; then :
9437   $as_echo_n "(cached) " >&6
9438 else
9439   if test -n "$WINDMC"; then
9440   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9441 else
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443 for as_dir in $PATH
9444 do
9445   IFS=$as_save_IFS
9446   test -z "$as_dir" && as_dir=.
9447     for ac_exec_ext in '' $ac_executable_extensions; do
9448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9449     ac_cv_prog_WINDMC="${ncn_progname}"
9450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451     break 2
9452   fi
9453 done
9454   done
9455 IFS=$as_save_IFS
9456
9457 fi
9458 fi
9459 WINDMC=$ac_cv_prog_WINDMC
9460 if test -n "$WINDMC"; then
9461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9462 $as_echo "$WINDMC" >&6; }
9463 else
9464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465 $as_echo "no" >&6; }
9466 fi
9467
9468
9469   done
9470 fi
9471
9472 for ncn_progname in windmc; do
9473   if test -n "$ncn_tool_prefix"; then
9474     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9475 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477 $as_echo_n "checking for $ac_word... " >&6; }
9478 if ${ac_cv_prog_WINDMC+:} false; then :
9479   $as_echo_n "(cached) " >&6
9480 else
9481   if test -n "$WINDMC"; then
9482   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9483 else
9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485 for as_dir in $PATH
9486 do
9487   IFS=$as_save_IFS
9488   test -z "$as_dir" && as_dir=.
9489     for ac_exec_ext in '' $ac_executable_extensions; do
9490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9491     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493     break 2
9494   fi
9495 done
9496   done
9497 IFS=$as_save_IFS
9498
9499 fi
9500 fi
9501 WINDMC=$ac_cv_prog_WINDMC
9502 if test -n "$WINDMC"; then
9503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9504 $as_echo "$WINDMC" >&6; }
9505 else
9506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9508 fi
9509
9510
9511   fi
9512   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9513     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9514 set dummy ${ncn_progname}; ac_word=$2
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516 $as_echo_n "checking for $ac_word... " >&6; }
9517 if ${ac_cv_prog_WINDMC+:} false; then :
9518   $as_echo_n "(cached) " >&6
9519 else
9520   if test -n "$WINDMC"; then
9521   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9522 else
9523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524 for as_dir in $PATH
9525 do
9526   IFS=$as_save_IFS
9527   test -z "$as_dir" && as_dir=.
9528     for ac_exec_ext in '' $ac_executable_extensions; do
9529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9530     ac_cv_prog_WINDMC="${ncn_progname}"
9531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532     break 2
9533   fi
9534 done
9535   done
9536 IFS=$as_save_IFS
9537
9538 fi
9539 fi
9540 WINDMC=$ac_cv_prog_WINDMC
9541 if test -n "$WINDMC"; then
9542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9543 $as_echo "$WINDMC" >&6; }
9544 else
9545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546 $as_echo "no" >&6; }
9547 fi
9548
9549
9550   fi
9551   test -n "$ac_cv_prog_WINDMC" && break
9552 done
9553
9554 if test -z "$ac_cv_prog_WINDMC" ; then
9555   set dummy windmc
9556   if test $build = $host ; then
9557     WINDMC="$2"
9558   else
9559     WINDMC="${ncn_tool_prefix}$2"
9560   fi
9561 fi
9562
9563
9564
9565 if test -n "$OBJCOPY"; then
9566   ac_cv_prog_OBJCOPY=$OBJCOPY
9567 elif test -n "$ac_cv_prog_OBJCOPY"; then
9568   OBJCOPY=$ac_cv_prog_OBJCOPY
9569 fi
9570
9571 if test -n "$ac_cv_prog_OBJCOPY"; then
9572   for ncn_progname in objcopy; do
9573     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9574 set dummy ${ncn_progname}; ac_word=$2
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576 $as_echo_n "checking for $ac_word... " >&6; }
9577 if ${ac_cv_prog_OBJCOPY+:} false; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580   if test -n "$OBJCOPY"; then
9581   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9582 else
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in $PATH
9585 do
9586   IFS=$as_save_IFS
9587   test -z "$as_dir" && as_dir=.
9588     for ac_exec_ext in '' $ac_executable_extensions; do
9589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9590     ac_cv_prog_OBJCOPY="${ncn_progname}"
9591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592     break 2
9593   fi
9594 done
9595   done
9596 IFS=$as_save_IFS
9597
9598 fi
9599 fi
9600 OBJCOPY=$ac_cv_prog_OBJCOPY
9601 if test -n "$OBJCOPY"; then
9602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9603 $as_echo "$OBJCOPY" >&6; }
9604 else
9605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606 $as_echo "no" >&6; }
9607 fi
9608
9609
9610   done
9611 fi
9612
9613 for ncn_progname in objcopy; do
9614   if test -n "$ncn_tool_prefix"; then
9615     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9616 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618 $as_echo_n "checking for $ac_word... " >&6; }
9619 if ${ac_cv_prog_OBJCOPY+:} false; then :
9620   $as_echo_n "(cached) " >&6
9621 else
9622   if test -n "$OBJCOPY"; then
9623   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9624 else
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9627 do
9628   IFS=$as_save_IFS
9629   test -z "$as_dir" && as_dir=.
9630     for ac_exec_ext in '' $ac_executable_extensions; do
9631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9632     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634     break 2
9635   fi
9636 done
9637   done
9638 IFS=$as_save_IFS
9639
9640 fi
9641 fi
9642 OBJCOPY=$ac_cv_prog_OBJCOPY
9643 if test -n "$OBJCOPY"; then
9644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9645 $as_echo "$OBJCOPY" >&6; }
9646 else
9647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648 $as_echo "no" >&6; }
9649 fi
9650
9651
9652   fi
9653   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9654     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9655 set dummy ${ncn_progname}; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if ${ac_cv_prog_OBJCOPY+:} false; then :
9659   $as_echo_n "(cached) " >&6
9660 else
9661   if test -n "$OBJCOPY"; then
9662   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9663 else
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665 for as_dir in $PATH
9666 do
9667   IFS=$as_save_IFS
9668   test -z "$as_dir" && as_dir=.
9669     for ac_exec_ext in '' $ac_executable_extensions; do
9670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9671     ac_cv_prog_OBJCOPY="${ncn_progname}"
9672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9673     break 2
9674   fi
9675 done
9676   done
9677 IFS=$as_save_IFS
9678
9679 fi
9680 fi
9681 OBJCOPY=$ac_cv_prog_OBJCOPY
9682 if test -n "$OBJCOPY"; then
9683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9684 $as_echo "$OBJCOPY" >&6; }
9685 else
9686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687 $as_echo "no" >&6; }
9688 fi
9689
9690
9691   fi
9692   test -n "$ac_cv_prog_OBJCOPY" && break
9693 done
9694
9695 if test -z "$ac_cv_prog_OBJCOPY" ; then
9696   set dummy objcopy
9697   if test $build = $host ; then
9698     OBJCOPY="$2"
9699   else
9700     OBJCOPY="${ncn_tool_prefix}$2"
9701   fi
9702 fi
9703
9704
9705
9706 if test -n "$OBJDUMP"; then
9707   ac_cv_prog_OBJDUMP=$OBJDUMP
9708 elif test -n "$ac_cv_prog_OBJDUMP"; then
9709   OBJDUMP=$ac_cv_prog_OBJDUMP
9710 fi
9711
9712 if test -n "$ac_cv_prog_OBJDUMP"; then
9713   for ncn_progname in objdump; do
9714     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9715 set dummy ${ncn_progname}; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if ${ac_cv_prog_OBJDUMP+:} false; then :
9719   $as_echo_n "(cached) " >&6
9720 else
9721   if test -n "$OBJDUMP"; then
9722   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9723 else
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 for as_dir in $PATH
9726 do
9727   IFS=$as_save_IFS
9728   test -z "$as_dir" && as_dir=.
9729     for ac_exec_ext in '' $ac_executable_extensions; do
9730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9731     ac_cv_prog_OBJDUMP="${ncn_progname}"
9732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733     break 2
9734   fi
9735 done
9736   done
9737 IFS=$as_save_IFS
9738
9739 fi
9740 fi
9741 OBJDUMP=$ac_cv_prog_OBJDUMP
9742 if test -n "$OBJDUMP"; then
9743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9744 $as_echo "$OBJDUMP" >&6; }
9745 else
9746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9748 fi
9749
9750
9751   done
9752 fi
9753
9754 for ncn_progname in objdump; do
9755   if test -n "$ncn_tool_prefix"; then
9756     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9757 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if ${ac_cv_prog_OBJDUMP+:} false; then :
9761   $as_echo_n "(cached) " >&6
9762 else
9763   if test -n "$OBJDUMP"; then
9764   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9765 else
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 for as_dir in $PATH
9768 do
9769   IFS=$as_save_IFS
9770   test -z "$as_dir" && as_dir=.
9771     for ac_exec_ext in '' $ac_executable_extensions; do
9772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9773     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775     break 2
9776   fi
9777 done
9778   done
9779 IFS=$as_save_IFS
9780
9781 fi
9782 fi
9783 OBJDUMP=$ac_cv_prog_OBJDUMP
9784 if test -n "$OBJDUMP"; then
9785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9786 $as_echo "$OBJDUMP" >&6; }
9787 else
9788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9790 fi
9791
9792
9793   fi
9794   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9795     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9796 set dummy ${ncn_progname}; ac_word=$2
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798 $as_echo_n "checking for $ac_word... " >&6; }
9799 if ${ac_cv_prog_OBJDUMP+:} false; then :
9800   $as_echo_n "(cached) " >&6
9801 else
9802   if test -n "$OBJDUMP"; then
9803   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9804 else
9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806 for as_dir in $PATH
9807 do
9808   IFS=$as_save_IFS
9809   test -z "$as_dir" && as_dir=.
9810     for ac_exec_ext in '' $ac_executable_extensions; do
9811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9812     ac_cv_prog_OBJDUMP="${ncn_progname}"
9813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9814     break 2
9815   fi
9816 done
9817   done
9818 IFS=$as_save_IFS
9819
9820 fi
9821 fi
9822 OBJDUMP=$ac_cv_prog_OBJDUMP
9823 if test -n "$OBJDUMP"; then
9824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9825 $as_echo "$OBJDUMP" >&6; }
9826 else
9827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9829 fi
9830
9831
9832   fi
9833   test -n "$ac_cv_prog_OBJDUMP" && break
9834 done
9835
9836 if test -z "$ac_cv_prog_OBJDUMP" ; then
9837   set dummy objdump
9838   if test $build = $host ; then
9839     OBJDUMP="$2"
9840   else
9841     OBJDUMP="${ncn_tool_prefix}$2"
9842   fi
9843 fi
9844
9845
9846
9847 if test -n "$READELF"; then
9848   ac_cv_prog_READELF=$READELF
9849 elif test -n "$ac_cv_prog_READELF"; then
9850   READELF=$ac_cv_prog_READELF
9851 fi
9852
9853 if test -n "$ac_cv_prog_READELF"; then
9854   for ncn_progname in readelf; do
9855     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9856 set dummy ${ncn_progname}; ac_word=$2
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if ${ac_cv_prog_READELF+:} false; then :
9860   $as_echo_n "(cached) " >&6
9861 else
9862   if test -n "$READELF"; then
9863   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9864 else
9865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866 for as_dir in $PATH
9867 do
9868   IFS=$as_save_IFS
9869   test -z "$as_dir" && as_dir=.
9870     for ac_exec_ext in '' $ac_executable_extensions; do
9871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9872     ac_cv_prog_READELF="${ncn_progname}"
9873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9874     break 2
9875   fi
9876 done
9877   done
9878 IFS=$as_save_IFS
9879
9880 fi
9881 fi
9882 READELF=$ac_cv_prog_READELF
9883 if test -n "$READELF"; then
9884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9885 $as_echo "$READELF" >&6; }
9886 else
9887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888 $as_echo "no" >&6; }
9889 fi
9890
9891
9892   done
9893 fi
9894
9895 for ncn_progname in readelf; do
9896   if test -n "$ncn_tool_prefix"; then
9897     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9898 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900 $as_echo_n "checking for $ac_word... " >&6; }
9901 if ${ac_cv_prog_READELF+:} false; then :
9902   $as_echo_n "(cached) " >&6
9903 else
9904   if test -n "$READELF"; then
9905   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9906 else
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908 for as_dir in $PATH
9909 do
9910   IFS=$as_save_IFS
9911   test -z "$as_dir" && as_dir=.
9912     for ac_exec_ext in '' $ac_executable_extensions; do
9913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9914     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9916     break 2
9917   fi
9918 done
9919   done
9920 IFS=$as_save_IFS
9921
9922 fi
9923 fi
9924 READELF=$ac_cv_prog_READELF
9925 if test -n "$READELF"; then
9926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9927 $as_echo "$READELF" >&6; }
9928 else
9929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9931 fi
9932
9933
9934   fi
9935   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9936     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9937 set dummy ${ncn_progname}; ac_word=$2
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939 $as_echo_n "checking for $ac_word... " >&6; }
9940 if ${ac_cv_prog_READELF+:} false; then :
9941   $as_echo_n "(cached) " >&6
9942 else
9943   if test -n "$READELF"; then
9944   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9945 else
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 for as_dir in $PATH
9948 do
9949   IFS=$as_save_IFS
9950   test -z "$as_dir" && as_dir=.
9951     for ac_exec_ext in '' $ac_executable_extensions; do
9952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9953     ac_cv_prog_READELF="${ncn_progname}"
9954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9955     break 2
9956   fi
9957 done
9958   done
9959 IFS=$as_save_IFS
9960
9961 fi
9962 fi
9963 READELF=$ac_cv_prog_READELF
9964 if test -n "$READELF"; then
9965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9966 $as_echo "$READELF" >&6; }
9967 else
9968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9970 fi
9971
9972
9973   fi
9974   test -n "$ac_cv_prog_READELF" && break
9975 done
9976
9977 if test -z "$ac_cv_prog_READELF" ; then
9978   set dummy readelf
9979   if test $build = $host ; then
9980     READELF="$2"
9981   else
9982     READELF="${ncn_tool_prefix}$2"
9983   fi
9984 fi
9985
9986
9987
9988
9989
9990
9991 # Target tools.
9992
9993 # Check whether --with-build-time-tools was given.
9994 if test "${with_build_time_tools+set}" = set; then :
9995   withval=$with_build_time_tools; case x"$withval" in
9996      x/*) ;;
9997      *)
9998        with_build_time_tools=
9999        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10000 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10001        ;;
10002    esac
10003 else
10004   with_build_time_tools=
10005 fi
10006
10007
10008
10009
10010 if test -n "$CC_FOR_TARGET"; then
10011   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10012 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10013   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10014 fi
10015
10016 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10017   for ncn_progname in cc gcc; do
10018     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10019 set dummy ${ncn_progname}; ac_word=$2
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10023   $as_echo_n "(cached) " >&6
10024 else
10025   if test -n "$CC_FOR_TARGET"; then
10026   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10027 else
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10030 do
10031   IFS=$as_save_IFS
10032   test -z "$as_dir" && as_dir=.
10033     for ac_exec_ext in '' $ac_executable_extensions; do
10034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10035     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037     break 2
10038   fi
10039 done
10040   done
10041 IFS=$as_save_IFS
10042
10043 fi
10044 fi
10045 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10046 if test -n "$CC_FOR_TARGET"; then
10047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10048 $as_echo "$CC_FOR_TARGET" >&6; }
10049 else
10050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10052 fi
10053
10054
10055   done
10056 fi
10057
10058 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10059   for ncn_progname in cc gcc; do
10060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10061 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10062     if test -x $with_build_time_tools/${ncn_progname}; then
10063       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10065 $as_echo "yes" >&6; }
10066       break
10067     else
10068       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10070     fi
10071   done
10072 fi
10073
10074 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10075   for ncn_progname in cc gcc; do
10076     if test -n "$ncn_target_tool_prefix"; then
10077       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10078 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10080 $as_echo_n "checking for $ac_word... " >&6; }
10081 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10082   $as_echo_n "(cached) " >&6
10083 else
10084   if test -n "$CC_FOR_TARGET"; then
10085   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10086 else
10087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088 for as_dir in $PATH
10089 do
10090   IFS=$as_save_IFS
10091   test -z "$as_dir" && as_dir=.
10092     for ac_exec_ext in '' $ac_executable_extensions; do
10093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10094     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10096     break 2
10097   fi
10098 done
10099   done
10100 IFS=$as_save_IFS
10101
10102 fi
10103 fi
10104 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10105 if test -n "$CC_FOR_TARGET"; then
10106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10107 $as_echo "$CC_FOR_TARGET" >&6; }
10108 else
10109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110 $as_echo "no" >&6; }
10111 fi
10112
10113
10114     fi
10115     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10116       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10117 set dummy ${ncn_progname}; ac_word=$2
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10119 $as_echo_n "checking for $ac_word... " >&6; }
10120 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10121   $as_echo_n "(cached) " >&6
10122 else
10123   if test -n "$CC_FOR_TARGET"; then
10124   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10125 else
10126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127 for as_dir in $PATH
10128 do
10129   IFS=$as_save_IFS
10130   test -z "$as_dir" && as_dir=.
10131     for ac_exec_ext in '' $ac_executable_extensions; do
10132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10133     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10135     break 2
10136   fi
10137 done
10138   done
10139 IFS=$as_save_IFS
10140
10141 fi
10142 fi
10143 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10144 if test -n "$CC_FOR_TARGET"; then
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10146 $as_echo "$CC_FOR_TARGET" >&6; }
10147 else
10148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149 $as_echo "no" >&6; }
10150 fi
10151
10152
10153     fi
10154     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10155   done
10156 fi
10157
10158 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10159   set dummy cc gcc
10160   if test $build = $target ; then
10161     CC_FOR_TARGET="$2"
10162   else
10163     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10164   fi
10165 else
10166   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10167 fi
10168
10169
10170
10171 if test -n "$CXX_FOR_TARGET"; then
10172   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10173 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10174   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10175 fi
10176
10177 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10178   for ncn_progname in c++ g++ cxx gxx; do
10179     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10180 set dummy ${ncn_progname}; ac_word=$2
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10182 $as_echo_n "checking for $ac_word... " >&6; }
10183 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10184   $as_echo_n "(cached) " >&6
10185 else
10186   if test -n "$CXX_FOR_TARGET"; then
10187   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10188 else
10189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190 for as_dir in $PATH
10191 do
10192   IFS=$as_save_IFS
10193   test -z "$as_dir" && as_dir=.
10194     for ac_exec_ext in '' $ac_executable_extensions; do
10195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10196     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10198     break 2
10199   fi
10200 done
10201   done
10202 IFS=$as_save_IFS
10203
10204 fi
10205 fi
10206 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10207 if test -n "$CXX_FOR_TARGET"; then
10208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10209 $as_echo "$CXX_FOR_TARGET" >&6; }
10210 else
10211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212 $as_echo "no" >&6; }
10213 fi
10214
10215
10216   done
10217 fi
10218
10219 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10220   for ncn_progname in c++ g++ cxx gxx; do
10221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10222 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10223     if test -x $with_build_time_tools/${ncn_progname}; then
10224       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10225       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10226 $as_echo "yes" >&6; }
10227       break
10228     else
10229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10231     fi
10232   done
10233 fi
10234
10235 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10236   for ncn_progname in c++ g++ cxx gxx; do
10237     if test -n "$ncn_target_tool_prefix"; then
10238       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10239 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10241 $as_echo_n "checking for $ac_word... " >&6; }
10242 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10243   $as_echo_n "(cached) " >&6
10244 else
10245   if test -n "$CXX_FOR_TARGET"; then
10246   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10247 else
10248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249 for as_dir in $PATH
10250 do
10251   IFS=$as_save_IFS
10252   test -z "$as_dir" && as_dir=.
10253     for ac_exec_ext in '' $ac_executable_extensions; do
10254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10255     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10257     break 2
10258   fi
10259 done
10260   done
10261 IFS=$as_save_IFS
10262
10263 fi
10264 fi
10265 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10266 if test -n "$CXX_FOR_TARGET"; then
10267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10268 $as_echo "$CXX_FOR_TARGET" >&6; }
10269 else
10270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 $as_echo "no" >&6; }
10272 fi
10273
10274
10275     fi
10276     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10277       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10278 set dummy ${ncn_progname}; ac_word=$2
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280 $as_echo_n "checking for $ac_word... " >&6; }
10281 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10282   $as_echo_n "(cached) " >&6
10283 else
10284   if test -n "$CXX_FOR_TARGET"; then
10285   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10286 else
10287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288 for as_dir in $PATH
10289 do
10290   IFS=$as_save_IFS
10291   test -z "$as_dir" && as_dir=.
10292     for ac_exec_ext in '' $ac_executable_extensions; do
10293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10294     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10296     break 2
10297   fi
10298 done
10299   done
10300 IFS=$as_save_IFS
10301
10302 fi
10303 fi
10304 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10305 if test -n "$CXX_FOR_TARGET"; then
10306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10307 $as_echo "$CXX_FOR_TARGET" >&6; }
10308 else
10309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10310 $as_echo "no" >&6; }
10311 fi
10312
10313
10314     fi
10315     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10316   done
10317 fi
10318
10319 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10320   set dummy c++ g++ cxx gxx
10321   if test $build = $target ; then
10322     CXX_FOR_TARGET="$2"
10323   else
10324     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10325   fi
10326 else
10327   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10328 fi
10329
10330
10331
10332 if test -n "$GCC_FOR_TARGET"; then
10333   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10334 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10335   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10336 fi
10337
10338 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10339   for ncn_progname in gcc; do
10340     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10341 set dummy ${ncn_progname}; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10345   $as_echo_n "(cached) " >&6
10346 else
10347   if test -n "$GCC_FOR_TARGET"; then
10348   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10349 else
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10352 do
10353   IFS=$as_save_IFS
10354   test -z "$as_dir" && as_dir=.
10355     for ac_exec_ext in '' $ac_executable_extensions; do
10356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10359     break 2
10360   fi
10361 done
10362   done
10363 IFS=$as_save_IFS
10364
10365 fi
10366 fi
10367 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10368 if test -n "$GCC_FOR_TARGET"; then
10369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10370 $as_echo "$GCC_FOR_TARGET" >&6; }
10371 else
10372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10374 fi
10375
10376
10377   done
10378 fi
10379
10380 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10381   for ncn_progname in gcc; do
10382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10383 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10384     if test -x $with_build_time_tools/${ncn_progname}; then
10385       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10386       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10387 $as_echo "yes" >&6; }
10388       break
10389     else
10390       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10392     fi
10393   done
10394 fi
10395
10396 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10397   for ncn_progname in gcc; do
10398     if test -n "$ncn_target_tool_prefix"; then
10399       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10400 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402 $as_echo_n "checking for $ac_word... " >&6; }
10403 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10404   $as_echo_n "(cached) " >&6
10405 else
10406   if test -n "$GCC_FOR_TARGET"; then
10407   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10408 else
10409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410 for as_dir in $PATH
10411 do
10412   IFS=$as_save_IFS
10413   test -z "$as_dir" && as_dir=.
10414     for ac_exec_ext in '' $ac_executable_extensions; do
10415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10418     break 2
10419   fi
10420 done
10421   done
10422 IFS=$as_save_IFS
10423
10424 fi
10425 fi
10426 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10427 if test -n "$GCC_FOR_TARGET"; then
10428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10429 $as_echo "$GCC_FOR_TARGET" >&6; }
10430 else
10431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432 $as_echo "no" >&6; }
10433 fi
10434
10435
10436     fi
10437     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10438       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10439 set dummy ${ncn_progname}; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10443   $as_echo_n "(cached) " >&6
10444 else
10445   if test -n "$GCC_FOR_TARGET"; then
10446   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10447 else
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in $PATH
10450 do
10451   IFS=$as_save_IFS
10452   test -z "$as_dir" && as_dir=.
10453     for ac_exec_ext in '' $ac_executable_extensions; do
10454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10457     break 2
10458   fi
10459 done
10460   done
10461 IFS=$as_save_IFS
10462
10463 fi
10464 fi
10465 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10466 if test -n "$GCC_FOR_TARGET"; then
10467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10468 $as_echo "$GCC_FOR_TARGET" >&6; }
10469 else
10470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10472 fi
10473
10474
10475     fi
10476     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10477   done
10478 fi
10479
10480 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10481   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10482 else
10483   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10484 fi
10485
10486
10487
10488 if test -n "$GFORTRAN_FOR_TARGET"; then
10489   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10490 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10491   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10492 fi
10493
10494 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10495   for ncn_progname in gfortran; do
10496     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10497 set dummy ${ncn_progname}; ac_word=$2
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499 $as_echo_n "checking for $ac_word... " >&6; }
10500 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10501   $as_echo_n "(cached) " >&6
10502 else
10503   if test -n "$GFORTRAN_FOR_TARGET"; then
10504   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10505 else
10506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507 for as_dir in $PATH
10508 do
10509   IFS=$as_save_IFS
10510   test -z "$as_dir" && as_dir=.
10511     for ac_exec_ext in '' $ac_executable_extensions; do
10512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10513     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10515     break 2
10516   fi
10517 done
10518   done
10519 IFS=$as_save_IFS
10520
10521 fi
10522 fi
10523 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10524 if test -n "$GFORTRAN_FOR_TARGET"; then
10525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10526 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10527 else
10528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10530 fi
10531
10532
10533   done
10534 fi
10535
10536 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10537   for ncn_progname in gfortran; do
10538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10539 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10540     if test -x $with_build_time_tools/${ncn_progname}; then
10541       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10543 $as_echo "yes" >&6; }
10544       break
10545     else
10546       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547 $as_echo "no" >&6; }
10548     fi
10549   done
10550 fi
10551
10552 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10553   for ncn_progname in gfortran; do
10554     if test -n "$ncn_target_tool_prefix"; then
10555       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10556 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558 $as_echo_n "checking for $ac_word... " >&6; }
10559 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10560   $as_echo_n "(cached) " >&6
10561 else
10562   if test -n "$GFORTRAN_FOR_TARGET"; then
10563   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10564 else
10565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566 for as_dir in $PATH
10567 do
10568   IFS=$as_save_IFS
10569   test -z "$as_dir" && as_dir=.
10570     for ac_exec_ext in '' $ac_executable_extensions; do
10571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10572     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10574     break 2
10575   fi
10576 done
10577   done
10578 IFS=$as_save_IFS
10579
10580 fi
10581 fi
10582 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10583 if test -n "$GFORTRAN_FOR_TARGET"; then
10584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10585 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10586 else
10587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10589 fi
10590
10591
10592     fi
10593     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10594       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10595 set dummy ${ncn_progname}; ac_word=$2
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597 $as_echo_n "checking for $ac_word... " >&6; }
10598 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10599   $as_echo_n "(cached) " >&6
10600 else
10601   if test -n "$GFORTRAN_FOR_TARGET"; then
10602   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10603 else
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in $PATH
10606 do
10607   IFS=$as_save_IFS
10608   test -z "$as_dir" && as_dir=.
10609     for ac_exec_ext in '' $ac_executable_extensions; do
10610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10611     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10613     break 2
10614   fi
10615 done
10616   done
10617 IFS=$as_save_IFS
10618
10619 fi
10620 fi
10621 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10622 if test -n "$GFORTRAN_FOR_TARGET"; then
10623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10624 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10625 else
10626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10628 fi
10629
10630
10631     fi
10632     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10633   done
10634 fi
10635
10636 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10637   set dummy gfortran
10638   if test $build = $target ; then
10639     GFORTRAN_FOR_TARGET="$2"
10640   else
10641     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10642   fi
10643 else
10644   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10645 fi
10646
10647
10648
10649 if test -n "$GOC_FOR_TARGET"; then
10650   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10651 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10652   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10653 fi
10654
10655 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10656   for ncn_progname in gccgo; do
10657     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10658 set dummy ${ncn_progname}; ac_word=$2
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10660 $as_echo_n "checking for $ac_word... " >&6; }
10661 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10662   $as_echo_n "(cached) " >&6
10663 else
10664   if test -n "$GOC_FOR_TARGET"; then
10665   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10666 else
10667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668 for as_dir in $PATH
10669 do
10670   IFS=$as_save_IFS
10671   test -z "$as_dir" && as_dir=.
10672     for ac_exec_ext in '' $ac_executable_extensions; do
10673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10674     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676     break 2
10677   fi
10678 done
10679   done
10680 IFS=$as_save_IFS
10681
10682 fi
10683 fi
10684 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10685 if test -n "$GOC_FOR_TARGET"; then
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10687 $as_echo "$GOC_FOR_TARGET" >&6; }
10688 else
10689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690 $as_echo "no" >&6; }
10691 fi
10692
10693
10694   done
10695 fi
10696
10697 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10698   for ncn_progname in gccgo; do
10699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10700 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10701     if test -x $with_build_time_tools/${ncn_progname}; then
10702       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10703       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10704 $as_echo "yes" >&6; }
10705       break
10706     else
10707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10709     fi
10710   done
10711 fi
10712
10713 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10714   for ncn_progname in gccgo; do
10715     if test -n "$ncn_target_tool_prefix"; then
10716       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10717 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10719 $as_echo_n "checking for $ac_word... " >&6; }
10720 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10721   $as_echo_n "(cached) " >&6
10722 else
10723   if test -n "$GOC_FOR_TARGET"; then
10724   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10725 else
10726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10727 for as_dir in $PATH
10728 do
10729   IFS=$as_save_IFS
10730   test -z "$as_dir" && as_dir=.
10731     for ac_exec_ext in '' $ac_executable_extensions; do
10732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10733     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10735     break 2
10736   fi
10737 done
10738   done
10739 IFS=$as_save_IFS
10740
10741 fi
10742 fi
10743 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10744 if test -n "$GOC_FOR_TARGET"; then
10745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10746 $as_echo "$GOC_FOR_TARGET" >&6; }
10747 else
10748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10750 fi
10751
10752
10753     fi
10754     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10755       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10756 set dummy ${ncn_progname}; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10760   $as_echo_n "(cached) " >&6
10761 else
10762   if test -n "$GOC_FOR_TARGET"; then
10763   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10764 else
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10767 do
10768   IFS=$as_save_IFS
10769   test -z "$as_dir" && as_dir=.
10770     for ac_exec_ext in '' $ac_executable_extensions; do
10771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10772     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774     break 2
10775   fi
10776 done
10777   done
10778 IFS=$as_save_IFS
10779
10780 fi
10781 fi
10782 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10783 if test -n "$GOC_FOR_TARGET"; then
10784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10785 $as_echo "$GOC_FOR_TARGET" >&6; }
10786 else
10787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10789 fi
10790
10791
10792     fi
10793     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10794   done
10795 fi
10796
10797 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10798   set dummy gccgo
10799   if test $build = $target ; then
10800     GOC_FOR_TARGET="$2"
10801   else
10802     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10803   fi
10804 else
10805   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10806 fi
10807
10808
10809
10810 if test -n "$GDC_FOR_TARGET"; then
10811   ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
10812 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10813   GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10814 fi
10815
10816 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10817   for ncn_progname in gdc; do
10818     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10819 set dummy ${ncn_progname}; ac_word=$2
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821 $as_echo_n "checking for $ac_word... " >&6; }
10822 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
10823   $as_echo_n "(cached) " >&6
10824 else
10825   if test -n "$GDC_FOR_TARGET"; then
10826   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10827 else
10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829 for as_dir in $PATH
10830 do
10831   IFS=$as_save_IFS
10832   test -z "$as_dir" && as_dir=.
10833     for ac_exec_ext in '' $ac_executable_extensions; do
10834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10835     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
10836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837     break 2
10838   fi
10839 done
10840   done
10841 IFS=$as_save_IFS
10842
10843 fi
10844 fi
10845 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10846 if test -n "$GDC_FOR_TARGET"; then
10847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
10848 $as_echo "$GDC_FOR_TARGET" >&6; }
10849 else
10850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10852 fi
10853
10854
10855   done
10856 fi
10857
10858 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10859   for ncn_progname in gdc; do
10860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10861 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10862     if test -x $with_build_time_tools/${ncn_progname}; then
10863       ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10864       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10865 $as_echo "yes" >&6; }
10866       break
10867     else
10868       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10870     fi
10871   done
10872 fi
10873
10874 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
10875   for ncn_progname in gdc; do
10876     if test -n "$ncn_target_tool_prefix"; then
10877       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10878 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10880 $as_echo_n "checking for $ac_word... " >&6; }
10881 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
10882   $as_echo_n "(cached) " >&6
10883 else
10884   if test -n "$GDC_FOR_TARGET"; then
10885   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10886 else
10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10889 do
10890   IFS=$as_save_IFS
10891   test -z "$as_dir" && as_dir=.
10892     for ac_exec_ext in '' $ac_executable_extensions; do
10893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10894     ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10896     break 2
10897   fi
10898 done
10899   done
10900 IFS=$as_save_IFS
10901
10902 fi
10903 fi
10904 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10905 if test -n "$GDC_FOR_TARGET"; then
10906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
10907 $as_echo "$GDC_FOR_TARGET" >&6; }
10908 else
10909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911 fi
10912
10913
10914     fi
10915     if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
10916       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10917 set dummy ${ncn_progname}; ac_word=$2
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10919 $as_echo_n "checking for $ac_word... " >&6; }
10920 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
10921   $as_echo_n "(cached) " >&6
10922 else
10923   if test -n "$GDC_FOR_TARGET"; then
10924   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10925 else
10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927 for as_dir in $PATH
10928 do
10929   IFS=$as_save_IFS
10930   test -z "$as_dir" && as_dir=.
10931     for ac_exec_ext in '' $ac_executable_extensions; do
10932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
10934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10935     break 2
10936   fi
10937 done
10938   done
10939 IFS=$as_save_IFS
10940
10941 fi
10942 fi
10943 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10944 if test -n "$GDC_FOR_TARGET"; then
10945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
10946 $as_echo "$GDC_FOR_TARGET" >&6; }
10947 else
10948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10950 fi
10951
10952
10953     fi
10954     test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
10955   done
10956 fi
10957
10958 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
10959   set dummy gdc
10960   if test $build = $target ; then
10961     GDC_FOR_TARGET="$2"
10962   else
10963     GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10964   fi
10965 else
10966   GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
10967 fi
10968
10969
10970
10971 cat > conftest.c << \EOF
10972 #ifdef __GNUC__
10973   gcc_yay;
10974 #endif
10975 EOF
10976 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10977   have_gcc_for_target=yes
10978 else
10979   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10980   have_gcc_for_target=no
10981 fi
10982 rm conftest.c
10983
10984
10985
10986
10987 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10988   if test -n "$with_build_time_tools"; then
10989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10990 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10991     if test -x $with_build_time_tools/ar; then
10992       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10993       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10994       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10995 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10996     else
10997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
10999     fi
11000   elif test $build != $host && test $have_gcc_for_target = yes; then
11001     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11002     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11003     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11004   fi
11005 fi
11006 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11007   # Extract the first word of "ar", so it can be a program name with args.
11008 set dummy ar; ac_word=$2
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010 $as_echo_n "checking for $ac_word... " >&6; }
11011 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11012   $as_echo_n "(cached) " >&6
11013 else
11014   case $AR_FOR_TARGET in
11015   [\\/]* | ?:[\\/]*)
11016   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11017   ;;
11018   *)
11019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020 for as_dir in $gcc_cv_tool_dirs
11021 do
11022   IFS=$as_save_IFS
11023   test -z "$as_dir" && as_dir=.
11024     for ac_exec_ext in '' $ac_executable_extensions; do
11025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11026     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11028     break 2
11029   fi
11030 done
11031   done
11032 IFS=$as_save_IFS
11033
11034   ;;
11035 esac
11036 fi
11037 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11038 if test -n "$AR_FOR_TARGET"; then
11039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11040 $as_echo "$AR_FOR_TARGET" >&6; }
11041 else
11042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11044 fi
11045
11046
11047 fi
11048 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11049
11050
11051 if test -n "$AR_FOR_TARGET"; then
11052   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11053 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11054   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11055 fi
11056
11057 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11058   for ncn_progname in ar; do
11059     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11060 set dummy ${ncn_progname}; ac_word=$2
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062 $as_echo_n "checking for $ac_word... " >&6; }
11063 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11064   $as_echo_n "(cached) " >&6
11065 else
11066   if test -n "$AR_FOR_TARGET"; then
11067   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11068 else
11069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070 for as_dir in $PATH
11071 do
11072   IFS=$as_save_IFS
11073   test -z "$as_dir" && as_dir=.
11074     for ac_exec_ext in '' $ac_executable_extensions; do
11075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11076     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11078     break 2
11079   fi
11080 done
11081   done
11082 IFS=$as_save_IFS
11083
11084 fi
11085 fi
11086 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11087 if test -n "$AR_FOR_TARGET"; then
11088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11089 $as_echo "$AR_FOR_TARGET" >&6; }
11090 else
11091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 $as_echo "no" >&6; }
11093 fi
11094
11095
11096   done
11097 fi
11098
11099 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11100   for ncn_progname in ar; do
11101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11102 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11103     if test -x $with_build_time_tools/${ncn_progname}; then
11104       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11105       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11106 $as_echo "yes" >&6; }
11107       break
11108     else
11109       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110 $as_echo "no" >&6; }
11111     fi
11112   done
11113 fi
11114
11115 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11116   for ncn_progname in ar; do
11117     if test -n "$ncn_target_tool_prefix"; then
11118       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11119 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11121 $as_echo_n "checking for $ac_word... " >&6; }
11122 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11123   $as_echo_n "(cached) " >&6
11124 else
11125   if test -n "$AR_FOR_TARGET"; then
11126   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11127 else
11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129 for as_dir in $PATH
11130 do
11131   IFS=$as_save_IFS
11132   test -z "$as_dir" && as_dir=.
11133     for ac_exec_ext in '' $ac_executable_extensions; do
11134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11135     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11137     break 2
11138   fi
11139 done
11140   done
11141 IFS=$as_save_IFS
11142
11143 fi
11144 fi
11145 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11146 if test -n "$AR_FOR_TARGET"; then
11147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11148 $as_echo "$AR_FOR_TARGET" >&6; }
11149 else
11150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11152 fi
11153
11154
11155     fi
11156     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11157       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11158 set dummy ${ncn_progname}; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11162   $as_echo_n "(cached) " >&6
11163 else
11164   if test -n "$AR_FOR_TARGET"; then
11165   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11166 else
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11169 do
11170   IFS=$as_save_IFS
11171   test -z "$as_dir" && as_dir=.
11172     for ac_exec_ext in '' $ac_executable_extensions; do
11173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11174     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176     break 2
11177   fi
11178 done
11179   done
11180 IFS=$as_save_IFS
11181
11182 fi
11183 fi
11184 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11185 if test -n "$AR_FOR_TARGET"; then
11186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11187 $as_echo "$AR_FOR_TARGET" >&6; }
11188 else
11189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11191 fi
11192
11193
11194     fi
11195     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11196   done
11197 fi
11198
11199 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11200   set dummy ar
11201   if test $build = $target ; then
11202     AR_FOR_TARGET="$2"
11203   else
11204     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11205   fi
11206 else
11207   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11208 fi
11209
11210 else
11211   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11212 fi
11213
11214
11215
11216
11217 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11218   if test -n "$with_build_time_tools"; then
11219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11220 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11221     if test -x $with_build_time_tools/as; then
11222       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11223       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11225 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11226     else
11227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11229     fi
11230   elif test $build != $host && test $have_gcc_for_target = yes; then
11231     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11232     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11233     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11234   fi
11235 fi
11236 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11237   # Extract the first word of "as", so it can be a program name with args.
11238 set dummy as; ac_word=$2
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11240 $as_echo_n "checking for $ac_word... " >&6; }
11241 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11242   $as_echo_n "(cached) " >&6
11243 else
11244   case $AS_FOR_TARGET in
11245   [\\/]* | ?:[\\/]*)
11246   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11247   ;;
11248   *)
11249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250 for as_dir in $gcc_cv_tool_dirs
11251 do
11252   IFS=$as_save_IFS
11253   test -z "$as_dir" && as_dir=.
11254     for ac_exec_ext in '' $ac_executable_extensions; do
11255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11256     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11258     break 2
11259   fi
11260 done
11261   done
11262 IFS=$as_save_IFS
11263
11264   ;;
11265 esac
11266 fi
11267 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11268 if test -n "$AS_FOR_TARGET"; then
11269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11270 $as_echo "$AS_FOR_TARGET" >&6; }
11271 else
11272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 fi
11275
11276
11277 fi
11278 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11279
11280
11281 if test -n "$AS_FOR_TARGET"; then
11282   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11283 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11284   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11285 fi
11286
11287 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11288   for ncn_progname in as; do
11289     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11290 set dummy ${ncn_progname}; ac_word=$2
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292 $as_echo_n "checking for $ac_word... " >&6; }
11293 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11294   $as_echo_n "(cached) " >&6
11295 else
11296   if test -n "$AS_FOR_TARGET"; then
11297   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11298 else
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11301 do
11302   IFS=$as_save_IFS
11303   test -z "$as_dir" && as_dir=.
11304     for ac_exec_ext in '' $ac_executable_extensions; do
11305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308     break 2
11309   fi
11310 done
11311   done
11312 IFS=$as_save_IFS
11313
11314 fi
11315 fi
11316 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11317 if test -n "$AS_FOR_TARGET"; then
11318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11319 $as_echo "$AS_FOR_TARGET" >&6; }
11320 else
11321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11323 fi
11324
11325
11326   done
11327 fi
11328
11329 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11330   for ncn_progname in as; do
11331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11332 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11333     if test -x $with_build_time_tools/${ncn_progname}; then
11334       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11335       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11336 $as_echo "yes" >&6; }
11337       break
11338     else
11339       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340 $as_echo "no" >&6; }
11341     fi
11342   done
11343 fi
11344
11345 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11346   for ncn_progname in as; do
11347     if test -n "$ncn_target_tool_prefix"; then
11348       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11349 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351 $as_echo_n "checking for $ac_word... " >&6; }
11352 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11353   $as_echo_n "(cached) " >&6
11354 else
11355   if test -n "$AS_FOR_TARGET"; then
11356   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11357 else
11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359 for as_dir in $PATH
11360 do
11361   IFS=$as_save_IFS
11362   test -z "$as_dir" && as_dir=.
11363     for ac_exec_ext in '' $ac_executable_extensions; do
11364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11365     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11367     break 2
11368   fi
11369 done
11370   done
11371 IFS=$as_save_IFS
11372
11373 fi
11374 fi
11375 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11376 if test -n "$AS_FOR_TARGET"; then
11377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11378 $as_echo "$AS_FOR_TARGET" >&6; }
11379 else
11380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11382 fi
11383
11384
11385     fi
11386     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11387       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11388 set dummy ${ncn_progname}; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11392   $as_echo_n "(cached) " >&6
11393 else
11394   if test -n "$AS_FOR_TARGET"; then
11395   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11396 else
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11399 do
11400   IFS=$as_save_IFS
11401   test -z "$as_dir" && as_dir=.
11402     for ac_exec_ext in '' $ac_executable_extensions; do
11403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11406     break 2
11407   fi
11408 done
11409   done
11410 IFS=$as_save_IFS
11411
11412 fi
11413 fi
11414 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11415 if test -n "$AS_FOR_TARGET"; then
11416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11417 $as_echo "$AS_FOR_TARGET" >&6; }
11418 else
11419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11421 fi
11422
11423
11424     fi
11425     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11426   done
11427 fi
11428
11429 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11430   set dummy as
11431   if test $build = $target ; then
11432     AS_FOR_TARGET="$2"
11433   else
11434     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11435   fi
11436 else
11437   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11438 fi
11439
11440 else
11441   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11442 fi
11443
11444
11445
11446
11447 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11448   if test -n "$with_build_time_tools"; then
11449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11450 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11451     if test -x $with_build_time_tools/dlltool; then
11452       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11453       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11454       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11455 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11456     else
11457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11459     fi
11460   elif test $build != $host && test $have_gcc_for_target = yes; then
11461     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11462     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11463     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11464   fi
11465 fi
11466 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11467   # Extract the first word of "dlltool", so it can be a program name with args.
11468 set dummy dlltool; ac_word=$2
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11470 $as_echo_n "checking for $ac_word... " >&6; }
11471 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11472   $as_echo_n "(cached) " >&6
11473 else
11474   case $DLLTOOL_FOR_TARGET in
11475   [\\/]* | ?:[\\/]*)
11476   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11477   ;;
11478   *)
11479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480 for as_dir in $gcc_cv_tool_dirs
11481 do
11482   IFS=$as_save_IFS
11483   test -z "$as_dir" && as_dir=.
11484     for ac_exec_ext in '' $ac_executable_extensions; do
11485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11486     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11488     break 2
11489   fi
11490 done
11491   done
11492 IFS=$as_save_IFS
11493
11494   ;;
11495 esac
11496 fi
11497 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11498 if test -n "$DLLTOOL_FOR_TARGET"; then
11499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11500 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11501 else
11502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11504 fi
11505
11506
11507 fi
11508 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11509
11510
11511 if test -n "$DLLTOOL_FOR_TARGET"; then
11512   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11513 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11514   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11515 fi
11516
11517 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11518   for ncn_progname in dlltool; do
11519     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11520 set dummy ${ncn_progname}; ac_word=$2
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522 $as_echo_n "checking for $ac_word... " >&6; }
11523 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11524   $as_echo_n "(cached) " >&6
11525 else
11526   if test -n "$DLLTOOL_FOR_TARGET"; then
11527   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11528 else
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11531 do
11532   IFS=$as_save_IFS
11533   test -z "$as_dir" && as_dir=.
11534     for ac_exec_ext in '' $ac_executable_extensions; do
11535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11536     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538     break 2
11539   fi
11540 done
11541   done
11542 IFS=$as_save_IFS
11543
11544 fi
11545 fi
11546 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11547 if test -n "$DLLTOOL_FOR_TARGET"; then
11548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11549 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11550 else
11551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11553 fi
11554
11555
11556   done
11557 fi
11558
11559 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11560   for ncn_progname in dlltool; do
11561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11562 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11563     if test -x $with_build_time_tools/${ncn_progname}; then
11564       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11565       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11566 $as_echo "yes" >&6; }
11567       break
11568     else
11569       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 $as_echo "no" >&6; }
11571     fi
11572   done
11573 fi
11574
11575 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11576   for ncn_progname in dlltool; do
11577     if test -n "$ncn_target_tool_prefix"; then
11578       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11579 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11581 $as_echo_n "checking for $ac_word... " >&6; }
11582 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11583   $as_echo_n "(cached) " >&6
11584 else
11585   if test -n "$DLLTOOL_FOR_TARGET"; then
11586   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11587 else
11588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589 for as_dir in $PATH
11590 do
11591   IFS=$as_save_IFS
11592   test -z "$as_dir" && as_dir=.
11593     for ac_exec_ext in '' $ac_executable_extensions; do
11594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11595     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11597     break 2
11598   fi
11599 done
11600   done
11601 IFS=$as_save_IFS
11602
11603 fi
11604 fi
11605 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11606 if test -n "$DLLTOOL_FOR_TARGET"; then
11607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11608 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11609 else
11610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 $as_echo "no" >&6; }
11612 fi
11613
11614
11615     fi
11616     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11617       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11618 set dummy ${ncn_progname}; ac_word=$2
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11620 $as_echo_n "checking for $ac_word... " >&6; }
11621 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11622   $as_echo_n "(cached) " >&6
11623 else
11624   if test -n "$DLLTOOL_FOR_TARGET"; then
11625   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11626 else
11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11629 do
11630   IFS=$as_save_IFS
11631   test -z "$as_dir" && as_dir=.
11632     for ac_exec_ext in '' $ac_executable_extensions; do
11633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11634     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11636     break 2
11637   fi
11638 done
11639   done
11640 IFS=$as_save_IFS
11641
11642 fi
11643 fi
11644 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11645 if test -n "$DLLTOOL_FOR_TARGET"; then
11646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11647 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11648 else
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11651 fi
11652
11653
11654     fi
11655     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11656   done
11657 fi
11658
11659 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11660   set dummy dlltool
11661   if test $build = $target ; then
11662     DLLTOOL_FOR_TARGET="$2"
11663   else
11664     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11665   fi
11666 else
11667   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11668 fi
11669
11670 else
11671   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11672 fi
11673
11674
11675
11676
11677 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11678   if test -n "$with_build_time_tools"; then
11679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11680 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11681     if test -x $with_build_time_tools/ld; then
11682       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11683       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11684       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11685 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11686     else
11687       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11689     fi
11690   elif test $build != $host && test $have_gcc_for_target = yes; then
11691     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11692     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11693     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11694   fi
11695 fi
11696 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11697   # Extract the first word of "ld", so it can be a program name with args.
11698 set dummy ld; ac_word=$2
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11702   $as_echo_n "(cached) " >&6
11703 else
11704   case $LD_FOR_TARGET in
11705   [\\/]* | ?:[\\/]*)
11706   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11707   ;;
11708   *)
11709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $gcc_cv_tool_dirs
11711 do
11712   IFS=$as_save_IFS
11713   test -z "$as_dir" && as_dir=.
11714     for ac_exec_ext in '' $ac_executable_extensions; do
11715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11716     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11718     break 2
11719   fi
11720 done
11721   done
11722 IFS=$as_save_IFS
11723
11724   ;;
11725 esac
11726 fi
11727 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11728 if test -n "$LD_FOR_TARGET"; then
11729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11730 $as_echo "$LD_FOR_TARGET" >&6; }
11731 else
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11734 fi
11735
11736
11737 fi
11738 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11739
11740
11741 if test -n "$LD_FOR_TARGET"; then
11742   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11743 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11744   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11745 fi
11746
11747 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11748   for ncn_progname in ld; do
11749     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11750 set dummy ${ncn_progname}; ac_word=$2
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752 $as_echo_n "checking for $ac_word... " >&6; }
11753 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11754   $as_echo_n "(cached) " >&6
11755 else
11756   if test -n "$LD_FOR_TARGET"; then
11757   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11758 else
11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $PATH
11761 do
11762   IFS=$as_save_IFS
11763   test -z "$as_dir" && as_dir=.
11764     for ac_exec_ext in '' $ac_executable_extensions; do
11765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11766     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11768     break 2
11769   fi
11770 done
11771   done
11772 IFS=$as_save_IFS
11773
11774 fi
11775 fi
11776 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11777 if test -n "$LD_FOR_TARGET"; then
11778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11779 $as_echo "$LD_FOR_TARGET" >&6; }
11780 else
11781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782 $as_echo "no" >&6; }
11783 fi
11784
11785
11786   done
11787 fi
11788
11789 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11790   for ncn_progname in ld; do
11791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11792 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11793     if test -x $with_build_time_tools/${ncn_progname}; then
11794       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11795       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11796 $as_echo "yes" >&6; }
11797       break
11798     else
11799       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11801     fi
11802   done
11803 fi
11804
11805 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11806   for ncn_progname in ld; do
11807     if test -n "$ncn_target_tool_prefix"; then
11808       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11809 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 $as_echo_n "checking for $ac_word... " >&6; }
11812 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11813   $as_echo_n "(cached) " >&6
11814 else
11815   if test -n "$LD_FOR_TARGET"; then
11816   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11817 else
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $PATH
11820 do
11821   IFS=$as_save_IFS
11822   test -z "$as_dir" && as_dir=.
11823     for ac_exec_ext in '' $ac_executable_extensions; do
11824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11825     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827     break 2
11828   fi
11829 done
11830   done
11831 IFS=$as_save_IFS
11832
11833 fi
11834 fi
11835 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11836 if test -n "$LD_FOR_TARGET"; then
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11838 $as_echo "$LD_FOR_TARGET" >&6; }
11839 else
11840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11842 fi
11843
11844
11845     fi
11846     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11847       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11848 set dummy ${ncn_progname}; ac_word=$2
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850 $as_echo_n "checking for $ac_word... " >&6; }
11851 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11852   $as_echo_n "(cached) " >&6
11853 else
11854   if test -n "$LD_FOR_TARGET"; then
11855   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11856 else
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11859 do
11860   IFS=$as_save_IFS
11861   test -z "$as_dir" && as_dir=.
11862     for ac_exec_ext in '' $ac_executable_extensions; do
11863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11864     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866     break 2
11867   fi
11868 done
11869   done
11870 IFS=$as_save_IFS
11871
11872 fi
11873 fi
11874 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11875 if test -n "$LD_FOR_TARGET"; then
11876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11877 $as_echo "$LD_FOR_TARGET" >&6; }
11878 else
11879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11881 fi
11882
11883
11884     fi
11885     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11886   done
11887 fi
11888
11889 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11890   set dummy ld
11891   if test $build = $target ; then
11892     LD_FOR_TARGET="$2"
11893   else
11894     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11895   fi
11896 else
11897   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11898 fi
11899
11900 else
11901   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11902 fi
11903
11904
11905
11906
11907 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11908   if test -n "$with_build_time_tools"; then
11909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11910 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11911     if test -x $with_build_time_tools/lipo; then
11912       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11913       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11914       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11915 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11916     else
11917       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11919     fi
11920   elif test $build != $host && test $have_gcc_for_target = yes; then
11921     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11922     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11923     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11924   fi
11925 fi
11926 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11927   # Extract the first word of "lipo", so it can be a program name with args.
11928 set dummy lipo; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
11932   $as_echo_n "(cached) " >&6
11933 else
11934   case $LIPO_FOR_TARGET in
11935   [\\/]* | ?:[\\/]*)
11936   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11937   ;;
11938   *)
11939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $gcc_cv_tool_dirs
11941 do
11942   IFS=$as_save_IFS
11943   test -z "$as_dir" && as_dir=.
11944     for ac_exec_ext in '' $ac_executable_extensions; do
11945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948     break 2
11949   fi
11950 done
11951   done
11952 IFS=$as_save_IFS
11953
11954   ;;
11955 esac
11956 fi
11957 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11958 if test -n "$LIPO_FOR_TARGET"; then
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11960 $as_echo "$LIPO_FOR_TARGET" >&6; }
11961 else
11962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11964 fi
11965
11966
11967 fi
11968 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11969
11970
11971 if test -n "$LIPO_FOR_TARGET"; then
11972   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11973 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11974   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11975 fi
11976
11977 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11978   for ncn_progname in lipo; do
11979     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11980 set dummy ${ncn_progname}; ac_word=$2
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11982 $as_echo_n "checking for $ac_word... " >&6; }
11983 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11984   $as_echo_n "(cached) " >&6
11985 else
11986   if test -n "$LIPO_FOR_TARGET"; then
11987   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11988 else
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11991 do
11992   IFS=$as_save_IFS
11993   test -z "$as_dir" && as_dir=.
11994     for ac_exec_ext in '' $ac_executable_extensions; do
11995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998     break 2
11999   fi
12000 done
12001   done
12002 IFS=$as_save_IFS
12003
12004 fi
12005 fi
12006 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12007 if test -n "$LIPO_FOR_TARGET"; then
12008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12009 $as_echo "$LIPO_FOR_TARGET" >&6; }
12010 else
12011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12013 fi
12014
12015
12016   done
12017 fi
12018
12019 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12020   for ncn_progname in lipo; do
12021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12022 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12023     if test -x $with_build_time_tools/${ncn_progname}; then
12024       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12025       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12026 $as_echo "yes" >&6; }
12027       break
12028     else
12029       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12031     fi
12032   done
12033 fi
12034
12035 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12036   for ncn_progname in lipo; do
12037     if test -n "$ncn_target_tool_prefix"; then
12038       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12039 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041 $as_echo_n "checking for $ac_word... " >&6; }
12042 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12043   $as_echo_n "(cached) " >&6
12044 else
12045   if test -n "$LIPO_FOR_TARGET"; then
12046   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12047 else
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $PATH
12050 do
12051   IFS=$as_save_IFS
12052   test -z "$as_dir" && as_dir=.
12053     for ac_exec_ext in '' $ac_executable_extensions; do
12054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12057     break 2
12058   fi
12059 done
12060   done
12061 IFS=$as_save_IFS
12062
12063 fi
12064 fi
12065 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12066 if test -n "$LIPO_FOR_TARGET"; then
12067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12068 $as_echo "$LIPO_FOR_TARGET" >&6; }
12069 else
12070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072 fi
12073
12074
12075     fi
12076     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12077       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12078 set dummy ${ncn_progname}; ac_word=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12082   $as_echo_n "(cached) " >&6
12083 else
12084   if test -n "$LIPO_FOR_TARGET"; then
12085   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12086 else
12087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088 for as_dir in $PATH
12089 do
12090   IFS=$as_save_IFS
12091   test -z "$as_dir" && as_dir=.
12092     for ac_exec_ext in '' $ac_executable_extensions; do
12093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12094     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12096     break 2
12097   fi
12098 done
12099   done
12100 IFS=$as_save_IFS
12101
12102 fi
12103 fi
12104 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12105 if test -n "$LIPO_FOR_TARGET"; then
12106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12107 $as_echo "$LIPO_FOR_TARGET" >&6; }
12108 else
12109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12111 fi
12112
12113
12114     fi
12115     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12116   done
12117 fi
12118
12119 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12120   set dummy lipo
12121   if test $build = $target ; then
12122     LIPO_FOR_TARGET="$2"
12123   else
12124     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12125   fi
12126 else
12127   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12128 fi
12129
12130 else
12131   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12132 fi
12133
12134
12135
12136
12137 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12138   if test -n "$with_build_time_tools"; then
12139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12140 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12141     if test -x $with_build_time_tools/nm; then
12142       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12143       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12145 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12146     else
12147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148 $as_echo "no" >&6; }
12149     fi
12150   elif test $build != $host && test $have_gcc_for_target = yes; then
12151     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12152     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12153     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12154   fi
12155 fi
12156 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12157   # Extract the first word of "nm", so it can be a program name with args.
12158 set dummy nm; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12162   $as_echo_n "(cached) " >&6
12163 else
12164   case $NM_FOR_TARGET in
12165   [\\/]* | ?:[\\/]*)
12166   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12167   ;;
12168   *)
12169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $gcc_cv_tool_dirs
12171 do
12172   IFS=$as_save_IFS
12173   test -z "$as_dir" && as_dir=.
12174     for ac_exec_ext in '' $ac_executable_extensions; do
12175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12176     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178     break 2
12179   fi
12180 done
12181   done
12182 IFS=$as_save_IFS
12183
12184   ;;
12185 esac
12186 fi
12187 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12188 if test -n "$NM_FOR_TARGET"; then
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12190 $as_echo "$NM_FOR_TARGET" >&6; }
12191 else
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12194 fi
12195
12196
12197 fi
12198 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12199
12200
12201 if test -n "$NM_FOR_TARGET"; then
12202   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12203 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12204   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12205 fi
12206
12207 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12208   for ncn_progname in nm; do
12209     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12210 set dummy ${ncn_progname}; ac_word=$2
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212 $as_echo_n "checking for $ac_word... " >&6; }
12213 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12214   $as_echo_n "(cached) " >&6
12215 else
12216   if test -n "$NM_FOR_TARGET"; then
12217   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12218 else
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12221 do
12222   IFS=$as_save_IFS
12223   test -z "$as_dir" && as_dir=.
12224     for ac_exec_ext in '' $ac_executable_extensions; do
12225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228     break 2
12229   fi
12230 done
12231   done
12232 IFS=$as_save_IFS
12233
12234 fi
12235 fi
12236 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12237 if test -n "$NM_FOR_TARGET"; then
12238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12239 $as_echo "$NM_FOR_TARGET" >&6; }
12240 else
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; }
12243 fi
12244
12245
12246   done
12247 fi
12248
12249 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12250   for ncn_progname in nm; do
12251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12252 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12253     if test -x $with_build_time_tools/${ncn_progname}; then
12254       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12255       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12256 $as_echo "yes" >&6; }
12257       break
12258     else
12259       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12261     fi
12262   done
12263 fi
12264
12265 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12266   for ncn_progname in nm; do
12267     if test -n "$ncn_target_tool_prefix"; then
12268       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12269 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271 $as_echo_n "checking for $ac_word... " >&6; }
12272 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12273   $as_echo_n "(cached) " >&6
12274 else
12275   if test -n "$NM_FOR_TARGET"; then
12276   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12277 else
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12280 do
12281   IFS=$as_save_IFS
12282   test -z "$as_dir" && as_dir=.
12283     for ac_exec_ext in '' $ac_executable_extensions; do
12284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12287     break 2
12288   fi
12289 done
12290   done
12291 IFS=$as_save_IFS
12292
12293 fi
12294 fi
12295 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12296 if test -n "$NM_FOR_TARGET"; then
12297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12298 $as_echo "$NM_FOR_TARGET" >&6; }
12299 else
12300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301 $as_echo "no" >&6; }
12302 fi
12303
12304
12305     fi
12306     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12307       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12308 set dummy ${ncn_progname}; ac_word=$2
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310 $as_echo_n "checking for $ac_word... " >&6; }
12311 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12312   $as_echo_n "(cached) " >&6
12313 else
12314   if test -n "$NM_FOR_TARGET"; then
12315   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12316 else
12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12319 do
12320   IFS=$as_save_IFS
12321   test -z "$as_dir" && as_dir=.
12322     for ac_exec_ext in '' $ac_executable_extensions; do
12323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12324     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12326     break 2
12327   fi
12328 done
12329   done
12330 IFS=$as_save_IFS
12331
12332 fi
12333 fi
12334 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12335 if test -n "$NM_FOR_TARGET"; then
12336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12337 $as_echo "$NM_FOR_TARGET" >&6; }
12338 else
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12341 fi
12342
12343
12344     fi
12345     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12346   done
12347 fi
12348
12349 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12350   set dummy nm
12351   if test $build = $target ; then
12352     NM_FOR_TARGET="$2"
12353   else
12354     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12355   fi
12356 else
12357   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12358 fi
12359
12360 else
12361   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12362 fi
12363
12364
12365
12366
12367 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12368   if test -n "$with_build_time_tools"; then
12369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12370 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12371     if test -x $with_build_time_tools/objcopy; then
12372       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12373       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12374       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12375 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12376     else
12377       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12379     fi
12380   elif test $build != $host && test $have_gcc_for_target = yes; then
12381     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12382     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12383     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12384   fi
12385 fi
12386 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12387   # Extract the first word of "objcopy", so it can be a program name with args.
12388 set dummy objcopy; ac_word=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390 $as_echo_n "checking for $ac_word... " >&6; }
12391 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12392   $as_echo_n "(cached) " >&6
12393 else
12394   case $OBJCOPY_FOR_TARGET in
12395   [\\/]* | ?:[\\/]*)
12396   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12397   ;;
12398   *)
12399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $gcc_cv_tool_dirs
12401 do
12402   IFS=$as_save_IFS
12403   test -z "$as_dir" && as_dir=.
12404     for ac_exec_ext in '' $ac_executable_extensions; do
12405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408     break 2
12409   fi
12410 done
12411   done
12412 IFS=$as_save_IFS
12413
12414   ;;
12415 esac
12416 fi
12417 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12418 if test -n "$OBJCOPY_FOR_TARGET"; then
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12420 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12421 else
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 fi
12425
12426
12427 fi
12428 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12429
12430
12431 if test -n "$OBJCOPY_FOR_TARGET"; then
12432   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12433 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12434   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12435 fi
12436
12437 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12438   for ncn_progname in objcopy; do
12439     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12440 set dummy ${ncn_progname}; ac_word=$2
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442 $as_echo_n "checking for $ac_word... " >&6; }
12443 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12444   $as_echo_n "(cached) " >&6
12445 else
12446   if test -n "$OBJCOPY_FOR_TARGET"; then
12447   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12448 else
12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12451 do
12452   IFS=$as_save_IFS
12453   test -z "$as_dir" && as_dir=.
12454     for ac_exec_ext in '' $ac_executable_extensions; do
12455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12456     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458     break 2
12459   fi
12460 done
12461   done
12462 IFS=$as_save_IFS
12463
12464 fi
12465 fi
12466 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12467 if test -n "$OBJCOPY_FOR_TARGET"; then
12468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12469 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12470 else
12471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12473 fi
12474
12475
12476   done
12477 fi
12478
12479 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12480   for ncn_progname in objcopy; do
12481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12482 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12483     if test -x $with_build_time_tools/${ncn_progname}; then
12484       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12485       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12486 $as_echo "yes" >&6; }
12487       break
12488     else
12489       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; }
12491     fi
12492   done
12493 fi
12494
12495 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12496   for ncn_progname in objcopy; do
12497     if test -n "$ncn_target_tool_prefix"; then
12498       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12499 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501 $as_echo_n "checking for $ac_word... " >&6; }
12502 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12503   $as_echo_n "(cached) " >&6
12504 else
12505   if test -n "$OBJCOPY_FOR_TARGET"; then
12506   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12507 else
12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509 for as_dir in $PATH
12510 do
12511   IFS=$as_save_IFS
12512   test -z "$as_dir" && as_dir=.
12513     for ac_exec_ext in '' $ac_executable_extensions; do
12514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12515     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12517     break 2
12518   fi
12519 done
12520   done
12521 IFS=$as_save_IFS
12522
12523 fi
12524 fi
12525 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12526 if test -n "$OBJCOPY_FOR_TARGET"; then
12527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12528 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12529 else
12530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12532 fi
12533
12534
12535     fi
12536     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12537       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12538 set dummy ${ncn_progname}; ac_word=$2
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12540 $as_echo_n "checking for $ac_word... " >&6; }
12541 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12542   $as_echo_n "(cached) " >&6
12543 else
12544   if test -n "$OBJCOPY_FOR_TARGET"; then
12545   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12546 else
12547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548 for as_dir in $PATH
12549 do
12550   IFS=$as_save_IFS
12551   test -z "$as_dir" && as_dir=.
12552     for ac_exec_ext in '' $ac_executable_extensions; do
12553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12554     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12556     break 2
12557   fi
12558 done
12559   done
12560 IFS=$as_save_IFS
12561
12562 fi
12563 fi
12564 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12565 if test -n "$OBJCOPY_FOR_TARGET"; then
12566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12567 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12568 else
12569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12571 fi
12572
12573
12574     fi
12575     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12576   done
12577 fi
12578
12579 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12580   set dummy objcopy
12581   if test $build = $target ; then
12582     OBJCOPY_FOR_TARGET="$2"
12583   else
12584     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12585   fi
12586 else
12587   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12588 fi
12589
12590 else
12591   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12592 fi
12593
12594
12595
12596
12597 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12598   if test -n "$with_build_time_tools"; then
12599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12600 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12601     if test -x $with_build_time_tools/objdump; then
12602       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12603       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12604       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12605 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12606     else
12607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12609     fi
12610   elif test $build != $host && test $have_gcc_for_target = yes; then
12611     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12612     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12613     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12614   fi
12615 fi
12616 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12617   # Extract the first word of "objdump", so it can be a program name with args.
12618 set dummy objdump; ac_word=$2
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620 $as_echo_n "checking for $ac_word... " >&6; }
12621 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12622   $as_echo_n "(cached) " >&6
12623 else
12624   case $OBJDUMP_FOR_TARGET in
12625   [\\/]* | ?:[\\/]*)
12626   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12627   ;;
12628   *)
12629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $gcc_cv_tool_dirs
12631 do
12632   IFS=$as_save_IFS
12633   test -z "$as_dir" && as_dir=.
12634     for ac_exec_ext in '' $ac_executable_extensions; do
12635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638     break 2
12639   fi
12640 done
12641   done
12642 IFS=$as_save_IFS
12643
12644   ;;
12645 esac
12646 fi
12647 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12648 if test -n "$OBJDUMP_FOR_TARGET"; then
12649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12650 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12651 else
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12654 fi
12655
12656
12657 fi
12658 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12659
12660
12661 if test -n "$OBJDUMP_FOR_TARGET"; then
12662   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12663 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12664   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12665 fi
12666
12667 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12668   for ncn_progname in objdump; do
12669     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12670 set dummy ${ncn_progname}; ac_word=$2
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12672 $as_echo_n "checking for $ac_word... " >&6; }
12673 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12674   $as_echo_n "(cached) " >&6
12675 else
12676   if test -n "$OBJDUMP_FOR_TARGET"; then
12677   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12678 else
12679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in $PATH
12681 do
12682   IFS=$as_save_IFS
12683   test -z "$as_dir" && as_dir=.
12684     for ac_exec_ext in '' $ac_executable_extensions; do
12685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12686     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12688     break 2
12689   fi
12690 done
12691   done
12692 IFS=$as_save_IFS
12693
12694 fi
12695 fi
12696 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12697 if test -n "$OBJDUMP_FOR_TARGET"; then
12698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12699 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12700 else
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702 $as_echo "no" >&6; }
12703 fi
12704
12705
12706   done
12707 fi
12708
12709 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12710   for ncn_progname in objdump; do
12711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12712 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12713     if test -x $with_build_time_tools/${ncn_progname}; then
12714       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12715       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12716 $as_echo "yes" >&6; }
12717       break
12718     else
12719       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12721     fi
12722   done
12723 fi
12724
12725 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12726   for ncn_progname in objdump; do
12727     if test -n "$ncn_target_tool_prefix"; then
12728       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12729 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12733   $as_echo_n "(cached) " >&6
12734 else
12735   if test -n "$OBJDUMP_FOR_TARGET"; then
12736   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12737 else
12738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739 for as_dir in $PATH
12740 do
12741   IFS=$as_save_IFS
12742   test -z "$as_dir" && as_dir=.
12743     for ac_exec_ext in '' $ac_executable_extensions; do
12744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12745     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12747     break 2
12748   fi
12749 done
12750   done
12751 IFS=$as_save_IFS
12752
12753 fi
12754 fi
12755 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12756 if test -n "$OBJDUMP_FOR_TARGET"; then
12757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12758 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12759 else
12760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12762 fi
12763
12764
12765     fi
12766     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12767       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12768 set dummy ${ncn_progname}; ac_word=$2
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770 $as_echo_n "checking for $ac_word... " >&6; }
12771 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12772   $as_echo_n "(cached) " >&6
12773 else
12774   if test -n "$OBJDUMP_FOR_TARGET"; then
12775   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12776 else
12777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778 for as_dir in $PATH
12779 do
12780   IFS=$as_save_IFS
12781   test -z "$as_dir" && as_dir=.
12782     for ac_exec_ext in '' $ac_executable_extensions; do
12783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12784     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12786     break 2
12787   fi
12788 done
12789   done
12790 IFS=$as_save_IFS
12791
12792 fi
12793 fi
12794 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12795 if test -n "$OBJDUMP_FOR_TARGET"; then
12796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12797 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12798 else
12799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12801 fi
12802
12803
12804     fi
12805     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12806   done
12807 fi
12808
12809 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12810   set dummy objdump
12811   if test $build = $target ; then
12812     OBJDUMP_FOR_TARGET="$2"
12813   else
12814     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12815   fi
12816 else
12817   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12818 fi
12819
12820 else
12821   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12822 fi
12823
12824
12825
12826
12827 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12828   if test -n "$with_build_time_tools"; then
12829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12830 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12831     if test -x $with_build_time_tools/ranlib; then
12832       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12833       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12834       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12835 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12836     else
12837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12839     fi
12840   elif test $build != $host && test $have_gcc_for_target = yes; then
12841     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12842     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12843     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12844   fi
12845 fi
12846 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12847   # Extract the first word of "ranlib", so it can be a program name with args.
12848 set dummy ranlib; ac_word=$2
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850 $as_echo_n "checking for $ac_word... " >&6; }
12851 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
12852   $as_echo_n "(cached) " >&6
12853 else
12854   case $RANLIB_FOR_TARGET in
12855   [\\/]* | ?:[\\/]*)
12856   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12857   ;;
12858   *)
12859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $gcc_cv_tool_dirs
12861 do
12862   IFS=$as_save_IFS
12863   test -z "$as_dir" && as_dir=.
12864     for ac_exec_ext in '' $ac_executable_extensions; do
12865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12866     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868     break 2
12869   fi
12870 done
12871   done
12872 IFS=$as_save_IFS
12873
12874   ;;
12875 esac
12876 fi
12877 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12878 if test -n "$RANLIB_FOR_TARGET"; then
12879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12880 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12881 else
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12884 fi
12885
12886
12887 fi
12888 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12889
12890
12891 if test -n "$RANLIB_FOR_TARGET"; then
12892   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12893 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12894   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12895 fi
12896
12897 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12898   for ncn_progname in ranlib; do
12899     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12900 set dummy ${ncn_progname}; ac_word=$2
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12902 $as_echo_n "checking for $ac_word... " >&6; }
12903 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12904   $as_echo_n "(cached) " >&6
12905 else
12906   if test -n "$RANLIB_FOR_TARGET"; then
12907   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12908 else
12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 for as_dir in $PATH
12911 do
12912   IFS=$as_save_IFS
12913   test -z "$as_dir" && as_dir=.
12914     for ac_exec_ext in '' $ac_executable_extensions; do
12915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12916     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12918     break 2
12919   fi
12920 done
12921   done
12922 IFS=$as_save_IFS
12923
12924 fi
12925 fi
12926 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12927 if test -n "$RANLIB_FOR_TARGET"; then
12928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12929 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12930 else
12931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12933 fi
12934
12935
12936   done
12937 fi
12938
12939 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12940   for ncn_progname in ranlib; do
12941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12942 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12943     if test -x $with_build_time_tools/${ncn_progname}; then
12944       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12945       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12946 $as_echo "yes" >&6; }
12947       break
12948     else
12949       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950 $as_echo "no" >&6; }
12951     fi
12952   done
12953 fi
12954
12955 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12956   for ncn_progname in ranlib; do
12957     if test -n "$ncn_target_tool_prefix"; then
12958       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12959 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12963   $as_echo_n "(cached) " >&6
12964 else
12965   if test -n "$RANLIB_FOR_TARGET"; then
12966   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12967 else
12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969 for as_dir in $PATH
12970 do
12971   IFS=$as_save_IFS
12972   test -z "$as_dir" && as_dir=.
12973     for ac_exec_ext in '' $ac_executable_extensions; do
12974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12975     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12977     break 2
12978   fi
12979 done
12980   done
12981 IFS=$as_save_IFS
12982
12983 fi
12984 fi
12985 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12986 if test -n "$RANLIB_FOR_TARGET"; then
12987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12988 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12989 else
12990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 $as_echo "no" >&6; }
12992 fi
12993
12994
12995     fi
12996     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12997       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12998 set dummy ${ncn_progname}; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13002   $as_echo_n "(cached) " >&6
13003 else
13004   if test -n "$RANLIB_FOR_TARGET"; then
13005   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13006 else
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13009 do
13010   IFS=$as_save_IFS
13011   test -z "$as_dir" && as_dir=.
13012     for ac_exec_ext in '' $ac_executable_extensions; do
13013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13014     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016     break 2
13017   fi
13018 done
13019   done
13020 IFS=$as_save_IFS
13021
13022 fi
13023 fi
13024 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13025 if test -n "$RANLIB_FOR_TARGET"; then
13026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13027 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13028 else
13029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13031 fi
13032
13033
13034     fi
13035     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13036   done
13037 fi
13038
13039 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13040   set dummy ranlib
13041   if test $build = $target ; then
13042     RANLIB_FOR_TARGET="$2"
13043   else
13044     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13045   fi
13046 else
13047   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13048 fi
13049
13050 else
13051   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13052 fi
13053
13054
13055
13056
13057 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13058   if test -n "$with_build_time_tools"; then
13059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13060 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13061     if test -x $with_build_time_tools/readelf; then
13062       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13063       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13065 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13066     else
13067       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13069     fi
13070   elif test $build != $host && test $have_gcc_for_target = yes; then
13071     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13072     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13073     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13074   fi
13075 fi
13076 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13077   # Extract the first word of "readelf", so it can be a program name with args.
13078 set dummy readelf; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13082   $as_echo_n "(cached) " >&6
13083 else
13084   case $READELF_FOR_TARGET in
13085   [\\/]* | ?:[\\/]*)
13086   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13087   ;;
13088   *)
13089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090 for as_dir in $gcc_cv_tool_dirs
13091 do
13092   IFS=$as_save_IFS
13093   test -z "$as_dir" && as_dir=.
13094     for ac_exec_ext in '' $ac_executable_extensions; do
13095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13096     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098     break 2
13099   fi
13100 done
13101   done
13102 IFS=$as_save_IFS
13103
13104   ;;
13105 esac
13106 fi
13107 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13108 if test -n "$READELF_FOR_TARGET"; then
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13110 $as_echo "$READELF_FOR_TARGET" >&6; }
13111 else
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13114 fi
13115
13116
13117 fi
13118 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13119
13120
13121 if test -n "$READELF_FOR_TARGET"; then
13122   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13123 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13124   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13125 fi
13126
13127 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13128   for ncn_progname in readelf; do
13129     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13130 set dummy ${ncn_progname}; ac_word=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13134   $as_echo_n "(cached) " >&6
13135 else
13136   if test -n "$READELF_FOR_TARGET"; then
13137   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13138 else
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13141 do
13142   IFS=$as_save_IFS
13143   test -z "$as_dir" && as_dir=.
13144     for ac_exec_ext in '' $ac_executable_extensions; do
13145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13146     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148     break 2
13149   fi
13150 done
13151   done
13152 IFS=$as_save_IFS
13153
13154 fi
13155 fi
13156 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13157 if test -n "$READELF_FOR_TARGET"; then
13158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13159 $as_echo "$READELF_FOR_TARGET" >&6; }
13160 else
13161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13163 fi
13164
13165
13166   done
13167 fi
13168
13169 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13170   for ncn_progname in readelf; do
13171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13172 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13173     if test -x $with_build_time_tools/${ncn_progname}; then
13174       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13175       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13176 $as_echo "yes" >&6; }
13177       break
13178     else
13179       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13181     fi
13182   done
13183 fi
13184
13185 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13186   for ncn_progname in readelf; do
13187     if test -n "$ncn_target_tool_prefix"; then
13188       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13189 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13193   $as_echo_n "(cached) " >&6
13194 else
13195   if test -n "$READELF_FOR_TARGET"; then
13196   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13197 else
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $PATH
13200 do
13201   IFS=$as_save_IFS
13202   test -z "$as_dir" && as_dir=.
13203     for ac_exec_ext in '' $ac_executable_extensions; do
13204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13205     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13207     break 2
13208   fi
13209 done
13210   done
13211 IFS=$as_save_IFS
13212
13213 fi
13214 fi
13215 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13216 if test -n "$READELF_FOR_TARGET"; then
13217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13218 $as_echo "$READELF_FOR_TARGET" >&6; }
13219 else
13220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13222 fi
13223
13224
13225     fi
13226     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13227       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13228 set dummy ${ncn_progname}; ac_word=$2
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13230 $as_echo_n "checking for $ac_word... " >&6; }
13231 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13232   $as_echo_n "(cached) " >&6
13233 else
13234   if test -n "$READELF_FOR_TARGET"; then
13235   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13236 else
13237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13239 do
13240   IFS=$as_save_IFS
13241   test -z "$as_dir" && as_dir=.
13242     for ac_exec_ext in '' $ac_executable_extensions; do
13243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13244     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13246     break 2
13247   fi
13248 done
13249   done
13250 IFS=$as_save_IFS
13251
13252 fi
13253 fi
13254 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13255 if test -n "$READELF_FOR_TARGET"; then
13256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13257 $as_echo "$READELF_FOR_TARGET" >&6; }
13258 else
13259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13261 fi
13262
13263
13264     fi
13265     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13266   done
13267 fi
13268
13269 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13270   set dummy readelf
13271   if test $build = $target ; then
13272     READELF_FOR_TARGET="$2"
13273   else
13274     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13275   fi
13276 else
13277   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13278 fi
13279
13280 else
13281   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13282 fi
13283
13284
13285
13286
13287 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13288   if test -n "$with_build_time_tools"; then
13289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13290 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13291     if test -x $with_build_time_tools/strip; then
13292       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13293       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13295 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13296     else
13297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13299     fi
13300   elif test $build != $host && test $have_gcc_for_target = yes; then
13301     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13302     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13303     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13304   fi
13305 fi
13306 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13307   # Extract the first word of "strip", so it can be a program name with args.
13308 set dummy strip; ac_word=$2
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13310 $as_echo_n "checking for $ac_word... " >&6; }
13311 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13312   $as_echo_n "(cached) " >&6
13313 else
13314   case $STRIP_FOR_TARGET in
13315   [\\/]* | ?:[\\/]*)
13316   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13317   ;;
13318   *)
13319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320 for as_dir in $gcc_cv_tool_dirs
13321 do
13322   IFS=$as_save_IFS
13323   test -z "$as_dir" && as_dir=.
13324     for ac_exec_ext in '' $ac_executable_extensions; do
13325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13326     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13328     break 2
13329   fi
13330 done
13331   done
13332 IFS=$as_save_IFS
13333
13334   ;;
13335 esac
13336 fi
13337 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13338 if test -n "$STRIP_FOR_TARGET"; then
13339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13340 $as_echo "$STRIP_FOR_TARGET" >&6; }
13341 else
13342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13344 fi
13345
13346
13347 fi
13348 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13349
13350
13351 if test -n "$STRIP_FOR_TARGET"; then
13352   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13353 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13354   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13355 fi
13356
13357 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13358   for ncn_progname in strip; do
13359     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13360 set dummy ${ncn_progname}; ac_word=$2
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13362 $as_echo_n "checking for $ac_word... " >&6; }
13363 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13364   $as_echo_n "(cached) " >&6
13365 else
13366   if test -n "$STRIP_FOR_TARGET"; then
13367   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13368 else
13369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13370 for as_dir in $PATH
13371 do
13372   IFS=$as_save_IFS
13373   test -z "$as_dir" && as_dir=.
13374     for ac_exec_ext in '' $ac_executable_extensions; do
13375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13376     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13378     break 2
13379   fi
13380 done
13381   done
13382 IFS=$as_save_IFS
13383
13384 fi
13385 fi
13386 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13387 if test -n "$STRIP_FOR_TARGET"; then
13388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13389 $as_echo "$STRIP_FOR_TARGET" >&6; }
13390 else
13391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13392 $as_echo "no" >&6; }
13393 fi
13394
13395
13396   done
13397 fi
13398
13399 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13400   for ncn_progname in strip; do
13401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13402 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13403     if test -x $with_build_time_tools/${ncn_progname}; then
13404       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13405       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13406 $as_echo "yes" >&6; }
13407       break
13408     else
13409       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13411     fi
13412   done
13413 fi
13414
13415 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13416   for ncn_progname in strip; do
13417     if test -n "$ncn_target_tool_prefix"; then
13418       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13419 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13423   $as_echo_n "(cached) " >&6
13424 else
13425   if test -n "$STRIP_FOR_TARGET"; then
13426   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13427 else
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13430 do
13431   IFS=$as_save_IFS
13432   test -z "$as_dir" && as_dir=.
13433     for ac_exec_ext in '' $ac_executable_extensions; do
13434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13435     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437     break 2
13438   fi
13439 done
13440   done
13441 IFS=$as_save_IFS
13442
13443 fi
13444 fi
13445 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13446 if test -n "$STRIP_FOR_TARGET"; then
13447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13448 $as_echo "$STRIP_FOR_TARGET" >&6; }
13449 else
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13452 fi
13453
13454
13455     fi
13456     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13457       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13458 set dummy ${ncn_progname}; ac_word=$2
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13460 $as_echo_n "checking for $ac_word... " >&6; }
13461 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13462   $as_echo_n "(cached) " >&6
13463 else
13464   if test -n "$STRIP_FOR_TARGET"; then
13465   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13466 else
13467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468 for as_dir in $PATH
13469 do
13470   IFS=$as_save_IFS
13471   test -z "$as_dir" && as_dir=.
13472     for ac_exec_ext in '' $ac_executable_extensions; do
13473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13474     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13476     break 2
13477   fi
13478 done
13479   done
13480 IFS=$as_save_IFS
13481
13482 fi
13483 fi
13484 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13485 if test -n "$STRIP_FOR_TARGET"; then
13486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13487 $as_echo "$STRIP_FOR_TARGET" >&6; }
13488 else
13489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490 $as_echo "no" >&6; }
13491 fi
13492
13493
13494     fi
13495     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13496   done
13497 fi
13498
13499 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13500   set dummy strip
13501   if test $build = $target ; then
13502     STRIP_FOR_TARGET="$2"
13503   else
13504     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13505   fi
13506 else
13507   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13508 fi
13509
13510 else
13511   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13512 fi
13513
13514
13515
13516
13517 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13518   if test -n "$with_build_time_tools"; then
13519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13520 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13521     if test -x $with_build_time_tools/windres; then
13522       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13523       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13524       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13525 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13526     else
13527       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528 $as_echo "no" >&6; }
13529     fi
13530   elif test $build != $host && test $have_gcc_for_target = yes; then
13531     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13532     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13533     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13534   fi
13535 fi
13536 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13537   # Extract the first word of "windres", so it can be a program name with args.
13538 set dummy windres; ac_word=$2
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13540 $as_echo_n "checking for $ac_word... " >&6; }
13541 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13542   $as_echo_n "(cached) " >&6
13543 else
13544   case $WINDRES_FOR_TARGET in
13545   [\\/]* | ?:[\\/]*)
13546   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13547   ;;
13548   *)
13549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550 for as_dir in $gcc_cv_tool_dirs
13551 do
13552   IFS=$as_save_IFS
13553   test -z "$as_dir" && as_dir=.
13554     for ac_exec_ext in '' $ac_executable_extensions; do
13555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13556     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13558     break 2
13559   fi
13560 done
13561   done
13562 IFS=$as_save_IFS
13563
13564   ;;
13565 esac
13566 fi
13567 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13568 if test -n "$WINDRES_FOR_TARGET"; then
13569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13570 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13571 else
13572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 $as_echo "no" >&6; }
13574 fi
13575
13576
13577 fi
13578 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13579
13580
13581 if test -n "$WINDRES_FOR_TARGET"; then
13582   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13583 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13584   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13585 fi
13586
13587 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13588   for ncn_progname in windres; do
13589     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13590 set dummy ${ncn_progname}; ac_word=$2
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592 $as_echo_n "checking for $ac_word... " >&6; }
13593 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13594   $as_echo_n "(cached) " >&6
13595 else
13596   if test -n "$WINDRES_FOR_TARGET"; then
13597   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13598 else
13599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600 for as_dir in $PATH
13601 do
13602   IFS=$as_save_IFS
13603   test -z "$as_dir" && as_dir=.
13604     for ac_exec_ext in '' $ac_executable_extensions; do
13605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13606     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13608     break 2
13609   fi
13610 done
13611   done
13612 IFS=$as_save_IFS
13613
13614 fi
13615 fi
13616 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13617 if test -n "$WINDRES_FOR_TARGET"; then
13618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13619 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13620 else
13621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13623 fi
13624
13625
13626   done
13627 fi
13628
13629 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13630   for ncn_progname in windres; do
13631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13632 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13633     if test -x $with_build_time_tools/${ncn_progname}; then
13634       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636 $as_echo "yes" >&6; }
13637       break
13638     else
13639       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 $as_echo "no" >&6; }
13641     fi
13642   done
13643 fi
13644
13645 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13646   for ncn_progname in windres; do
13647     if test -n "$ncn_target_tool_prefix"; then
13648       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13649 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651 $as_echo_n "checking for $ac_word... " >&6; }
13652 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13653   $as_echo_n "(cached) " >&6
13654 else
13655   if test -n "$WINDRES_FOR_TARGET"; then
13656   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13657 else
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13660 do
13661   IFS=$as_save_IFS
13662   test -z "$as_dir" && as_dir=.
13663     for ac_exec_ext in '' $ac_executable_extensions; do
13664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13665     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13667     break 2
13668   fi
13669 done
13670   done
13671 IFS=$as_save_IFS
13672
13673 fi
13674 fi
13675 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13676 if test -n "$WINDRES_FOR_TARGET"; then
13677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13678 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13679 else
13680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681 $as_echo "no" >&6; }
13682 fi
13683
13684
13685     fi
13686     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13687       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13688 set dummy ${ncn_progname}; ac_word=$2
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13690 $as_echo_n "checking for $ac_word... " >&6; }
13691 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13692   $as_echo_n "(cached) " >&6
13693 else
13694   if test -n "$WINDRES_FOR_TARGET"; then
13695   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13696 else
13697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13698 for as_dir in $PATH
13699 do
13700   IFS=$as_save_IFS
13701   test -z "$as_dir" && as_dir=.
13702     for ac_exec_ext in '' $ac_executable_extensions; do
13703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13704     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13706     break 2
13707   fi
13708 done
13709   done
13710 IFS=$as_save_IFS
13711
13712 fi
13713 fi
13714 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13715 if test -n "$WINDRES_FOR_TARGET"; then
13716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13717 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13718 else
13719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13721 fi
13722
13723
13724     fi
13725     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13726   done
13727 fi
13728
13729 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13730   set dummy windres
13731   if test $build = $target ; then
13732     WINDRES_FOR_TARGET="$2"
13733   else
13734     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13735   fi
13736 else
13737   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13738 fi
13739
13740 else
13741   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13742 fi
13743
13744
13745
13746
13747 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13748   if test -n "$with_build_time_tools"; then
13749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13750 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13751     if test -x $with_build_time_tools/windmc; then
13752       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13753       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13754       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13755 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13756     else
13757       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13758 $as_echo "no" >&6; }
13759     fi
13760   elif test $build != $host && test $have_gcc_for_target = yes; then
13761     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13762     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13763     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13764   fi
13765 fi
13766 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13767   # Extract the first word of "windmc", so it can be a program name with args.
13768 set dummy windmc; ac_word=$2
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13770 $as_echo_n "checking for $ac_word... " >&6; }
13771 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13772   $as_echo_n "(cached) " >&6
13773 else
13774   case $WINDMC_FOR_TARGET in
13775   [\\/]* | ?:[\\/]*)
13776   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13777   ;;
13778   *)
13779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $gcc_cv_tool_dirs
13781 do
13782   IFS=$as_save_IFS
13783   test -z "$as_dir" && as_dir=.
13784     for ac_exec_ext in '' $ac_executable_extensions; do
13785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13786     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13788     break 2
13789   fi
13790 done
13791   done
13792 IFS=$as_save_IFS
13793
13794   ;;
13795 esac
13796 fi
13797 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13798 if test -n "$WINDMC_FOR_TARGET"; then
13799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13800 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13801 else
13802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13804 fi
13805
13806
13807 fi
13808 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13809
13810
13811 if test -n "$WINDMC_FOR_TARGET"; then
13812   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13813 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13814   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13815 fi
13816
13817 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13818   for ncn_progname in windmc; do
13819     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13820 set dummy ${ncn_progname}; ac_word=$2
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13822 $as_echo_n "checking for $ac_word... " >&6; }
13823 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13824   $as_echo_n "(cached) " >&6
13825 else
13826   if test -n "$WINDMC_FOR_TARGET"; then
13827   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13828 else
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13831 do
13832   IFS=$as_save_IFS
13833   test -z "$as_dir" && as_dir=.
13834     for ac_exec_ext in '' $ac_executable_extensions; do
13835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13836     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13838     break 2
13839   fi
13840 done
13841   done
13842 IFS=$as_save_IFS
13843
13844 fi
13845 fi
13846 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13847 if test -n "$WINDMC_FOR_TARGET"; then
13848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13849 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13850 else
13851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13853 fi
13854
13855
13856   done
13857 fi
13858
13859 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13860   for ncn_progname in windmc; do
13861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13862 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13863     if test -x $with_build_time_tools/${ncn_progname}; then
13864       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13865       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13866 $as_echo "yes" >&6; }
13867       break
13868     else
13869       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870 $as_echo "no" >&6; }
13871     fi
13872   done
13873 fi
13874
13875 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13876   for ncn_progname in windmc; do
13877     if test -n "$ncn_target_tool_prefix"; then
13878       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13879 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13881 $as_echo_n "checking for $ac_word... " >&6; }
13882 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13883   $as_echo_n "(cached) " >&6
13884 else
13885   if test -n "$WINDMC_FOR_TARGET"; then
13886   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13887 else
13888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889 for as_dir in $PATH
13890 do
13891   IFS=$as_save_IFS
13892   test -z "$as_dir" && as_dir=.
13893     for ac_exec_ext in '' $ac_executable_extensions; do
13894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13895     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13897     break 2
13898   fi
13899 done
13900   done
13901 IFS=$as_save_IFS
13902
13903 fi
13904 fi
13905 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13906 if test -n "$WINDMC_FOR_TARGET"; then
13907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13908 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13909 else
13910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911 $as_echo "no" >&6; }
13912 fi
13913
13914
13915     fi
13916     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13917       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13918 set dummy ${ncn_progname}; ac_word=$2
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920 $as_echo_n "checking for $ac_word... " >&6; }
13921 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13922   $as_echo_n "(cached) " >&6
13923 else
13924   if test -n "$WINDMC_FOR_TARGET"; then
13925   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13926 else
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13929 do
13930   IFS=$as_save_IFS
13931   test -z "$as_dir" && as_dir=.
13932     for ac_exec_ext in '' $ac_executable_extensions; do
13933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13934     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13936     break 2
13937   fi
13938 done
13939   done
13940 IFS=$as_save_IFS
13941
13942 fi
13943 fi
13944 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13945 if test -n "$WINDMC_FOR_TARGET"; then
13946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13947 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13948 else
13949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950 $as_echo "no" >&6; }
13951 fi
13952
13953
13954     fi
13955     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13956   done
13957 fi
13958
13959 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13960   set dummy windmc
13961   if test $build = $target ; then
13962     WINDMC_FOR_TARGET="$2"
13963   else
13964     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13965   fi
13966 else
13967   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13968 fi
13969
13970 else
13971   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13972 fi
13973
13974
13975 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13976
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13978 $as_echo_n "checking where to find the target ar... " >&6; }
13979 if test "x${build}" != "x${host}" ; then
13980   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13981     # We already found the complete path
13982     ac_dir=`dirname $AR_FOR_TARGET`
13983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13984 $as_echo "pre-installed in $ac_dir" >&6; }
13985   else
13986     # Canadian cross, just use what we found
13987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13988 $as_echo "pre-installed" >&6; }
13989   fi
13990 else
13991   ok=yes
13992   case " ${configdirs} " in
13993     *" binutils "*) ;;
13994     *) ok=no ;;
13995   esac
13996
13997   if test $ok = yes; then
13998     # An in-tree tool is available and we can use it
13999     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14001 $as_echo "just compiled" >&6; }
14002   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14003     # We already found the complete path
14004     ac_dir=`dirname $AR_FOR_TARGET`
14005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14006 $as_echo "pre-installed in $ac_dir" >&6; }
14007   elif test "x$target" = "x$host"; then
14008     # We can use an host tool
14009     AR_FOR_TARGET='$(AR)'
14010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14011 $as_echo "host tool" >&6; }
14012   else
14013     # We need a cross tool
14014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14015 $as_echo "pre-installed" >&6; }
14016   fi
14017 fi
14018
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14020 $as_echo_n "checking where to find the target as... " >&6; }
14021 if test "x${build}" != "x${host}" ; then
14022   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14023     # We already found the complete path
14024     ac_dir=`dirname $AS_FOR_TARGET`
14025     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14026 $as_echo "pre-installed in $ac_dir" >&6; }
14027   else
14028     # Canadian cross, just use what we found
14029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14030 $as_echo "pre-installed" >&6; }
14031   fi
14032 else
14033   ok=yes
14034   case " ${configdirs} " in
14035     *" gas "*) ;;
14036     *) ok=no ;;
14037   esac
14038
14039   if test $ok = yes; then
14040     # An in-tree tool is available and we can use it
14041     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14043 $as_echo "just compiled" >&6; }
14044   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14045     # We already found the complete path
14046     ac_dir=`dirname $AS_FOR_TARGET`
14047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14048 $as_echo "pre-installed in $ac_dir" >&6; }
14049   elif test "x$target" = "x$host"; then
14050     # We can use an host tool
14051     AS_FOR_TARGET='$(AS)'
14052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14053 $as_echo "host tool" >&6; }
14054   else
14055     # We need a cross tool
14056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14057 $as_echo "pre-installed" >&6; }
14058   fi
14059 fi
14060
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14062 $as_echo_n "checking where to find the target cc... " >&6; }
14063 if test "x${build}" != "x${host}" ; then
14064   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14065     # We already found the complete path
14066     ac_dir=`dirname $CC_FOR_TARGET`
14067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14068 $as_echo "pre-installed in $ac_dir" >&6; }
14069   else
14070     # Canadian cross, just use what we found
14071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14072 $as_echo "pre-installed" >&6; }
14073   fi
14074 else
14075   ok=yes
14076   case " ${configdirs} " in
14077     *" gcc "*) ;;
14078     *) ok=no ;;
14079   esac
14080
14081   if test $ok = yes; then
14082     # An in-tree tool is available and we can use it
14083     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14085 $as_echo "just compiled" >&6; }
14086   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14087     # We already found the complete path
14088     ac_dir=`dirname $CC_FOR_TARGET`
14089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14090 $as_echo "pre-installed in $ac_dir" >&6; }
14091   elif test "x$target" = "x$host"; then
14092     # We can use an host tool
14093     CC_FOR_TARGET='$(CC)'
14094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14095 $as_echo "host tool" >&6; }
14096   else
14097     # We need a cross tool
14098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14099 $as_echo "pre-installed" >&6; }
14100   fi
14101 fi
14102
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14104 $as_echo_n "checking where to find the target c++... " >&6; }
14105 if test "x${build}" != "x${host}" ; then
14106   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14107     # We already found the complete path
14108     ac_dir=`dirname $CXX_FOR_TARGET`
14109     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14110 $as_echo "pre-installed in $ac_dir" >&6; }
14111   else
14112     # Canadian cross, just use what we found
14113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14114 $as_echo "pre-installed" >&6; }
14115   fi
14116 else
14117   ok=yes
14118   case " ${configdirs} " in
14119     *" gcc "*) ;;
14120     *) ok=no ;;
14121   esac
14122   case ,${enable_languages}, in
14123     *,c++,*) ;;
14124     *) ok=no ;;
14125   esac
14126   if test $ok = yes; then
14127     # An in-tree tool is available and we can use it
14128     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14130 $as_echo "just compiled" >&6; }
14131   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14132     # We already found the complete path
14133     ac_dir=`dirname $CXX_FOR_TARGET`
14134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14135 $as_echo "pre-installed in $ac_dir" >&6; }
14136   elif test "x$target" = "x$host"; then
14137     # We can use an host tool
14138     CXX_FOR_TARGET='$(CXX)'
14139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14140 $as_echo "host tool" >&6; }
14141   else
14142     # We need a cross tool
14143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14144 $as_echo "pre-installed" >&6; }
14145   fi
14146 fi
14147
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14149 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14150 if test "x${build}" != "x${host}" ; then
14151   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14152     # We already found the complete path
14153     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14155 $as_echo "pre-installed in $ac_dir" >&6; }
14156   else
14157     # Canadian cross, just use what we found
14158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14159 $as_echo "pre-installed" >&6; }
14160   fi
14161 else
14162   ok=yes
14163   case " ${configdirs} " in
14164     *" gcc "*) ;;
14165     *) ok=no ;;
14166   esac
14167   case ,${enable_languages}, in
14168     *,c++,*) ;;
14169     *) ok=no ;;
14170   esac
14171   if test $ok = yes; then
14172     # An in-tree tool is available and we can use it
14173     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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14175 $as_echo "just compiled" >&6; }
14176   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14177     # We already found the complete path
14178     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14180 $as_echo "pre-installed in $ac_dir" >&6; }
14181   elif test "x$target" = "x$host"; then
14182     # We can use an host tool
14183     RAW_CXX_FOR_TARGET='$(CXX)'
14184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14185 $as_echo "host tool" >&6; }
14186   else
14187     # We need a cross tool
14188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189 $as_echo "pre-installed" >&6; }
14190   fi
14191 fi
14192
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14194 $as_echo_n "checking where to find the target dlltool... " >&6; }
14195 if test "x${build}" != "x${host}" ; then
14196   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14197     # We already found the complete path
14198     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14200 $as_echo "pre-installed in $ac_dir" >&6; }
14201   else
14202     # Canadian cross, just use what we found
14203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14204 $as_echo "pre-installed" >&6; }
14205   fi
14206 else
14207   ok=yes
14208   case " ${configdirs} " in
14209     *" binutils "*) ;;
14210     *) ok=no ;;
14211   esac
14212
14213   if test $ok = yes; then
14214     # An in-tree tool is available and we can use it
14215     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14217 $as_echo "just compiled" >&6; }
14218   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14219     # We already found the complete path
14220     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14222 $as_echo "pre-installed in $ac_dir" >&6; }
14223   elif test "x$target" = "x$host"; then
14224     # We can use an host tool
14225     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14227 $as_echo "host tool" >&6; }
14228   else
14229     # We need a cross tool
14230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231 $as_echo "pre-installed" >&6; }
14232   fi
14233 fi
14234
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14236 $as_echo_n "checking where to find the target gcc... " >&6; }
14237 if test "x${build}" != "x${host}" ; then
14238   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14239     # We already found the complete path
14240     ac_dir=`dirname $GCC_FOR_TARGET`
14241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14242 $as_echo "pre-installed in $ac_dir" >&6; }
14243   else
14244     # Canadian cross, just use what we found
14245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14246 $as_echo "pre-installed" >&6; }
14247   fi
14248 else
14249   ok=yes
14250   case " ${configdirs} " in
14251     *" gcc "*) ;;
14252     *) ok=no ;;
14253   esac
14254
14255   if test $ok = yes; then
14256     # An in-tree tool is available and we can use it
14257     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14259 $as_echo "just compiled" >&6; }
14260   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14261     # We already found the complete path
14262     ac_dir=`dirname $GCC_FOR_TARGET`
14263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14264 $as_echo "pre-installed in $ac_dir" >&6; }
14265   elif test "x$target" = "x$host"; then
14266     # We can use an host tool
14267     GCC_FOR_TARGET='$()'
14268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14269 $as_echo "host tool" >&6; }
14270   else
14271     # We need a cross tool
14272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14273 $as_echo "pre-installed" >&6; }
14274   fi
14275 fi
14276
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14278 $as_echo_n "checking where to find the target gfortran... " >&6; }
14279 if test "x${build}" != "x${host}" ; then
14280   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14281     # We already found the complete path
14282     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14284 $as_echo "pre-installed in $ac_dir" >&6; }
14285   else
14286     # Canadian cross, just use what we found
14287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14288 $as_echo "pre-installed" >&6; }
14289   fi
14290 else
14291   ok=yes
14292   case " ${configdirs} " in
14293     *" gcc "*) ;;
14294     *) ok=no ;;
14295   esac
14296   case ,${enable_languages}, in
14297     *,fortran,*) ;;
14298     *) ok=no ;;
14299   esac
14300   if test $ok = yes; then
14301     # An in-tree tool is available and we can use it
14302     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14304 $as_echo "just compiled" >&6; }
14305   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14306     # We already found the complete path
14307     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14309 $as_echo "pre-installed in $ac_dir" >&6; }
14310   elif test "x$target" = "x$host"; then
14311     # We can use an host tool
14312     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14314 $as_echo "host tool" >&6; }
14315   else
14316     # We need a cross tool
14317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14318 $as_echo "pre-installed" >&6; }
14319   fi
14320 fi
14321
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14323 $as_echo_n "checking where to find the target gccgo... " >&6; }
14324 if test "x${build}" != "x${host}" ; then
14325   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14326     # We already found the complete path
14327     ac_dir=`dirname $GOC_FOR_TARGET`
14328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14329 $as_echo "pre-installed in $ac_dir" >&6; }
14330   else
14331     # Canadian cross, just use what we found
14332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14333 $as_echo "pre-installed" >&6; }
14334   fi
14335 else
14336   ok=yes
14337   case " ${configdirs} " in
14338     *" gcc "*) ;;
14339     *) ok=no ;;
14340   esac
14341   case ,${enable_languages}, in
14342     *,go,*) ;;
14343     *) ok=no ;;
14344   esac
14345   if test $ok = yes; then
14346     # An in-tree tool is available and we can use it
14347     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14349 $as_echo "just compiled" >&6; }
14350   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14351     # We already found the complete path
14352     ac_dir=`dirname $GOC_FOR_TARGET`
14353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14354 $as_echo "pre-installed in $ac_dir" >&6; }
14355   elif test "x$target" = "x$host"; then
14356     # We can use an host tool
14357     GOC_FOR_TARGET='$(GOC)'
14358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14359 $as_echo "host tool" >&6; }
14360   else
14361     # We need a cross tool
14362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14363 $as_echo "pre-installed" >&6; }
14364   fi
14365 fi
14366
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14368 $as_echo_n "checking where to find the target gdc... " >&6; }
14369 if test "x${build}" != "x${host}" ; then
14370   if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14371     # We already found the complete path
14372     ac_dir=`dirname $GDC_FOR_TARGET`
14373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14374 $as_echo "pre-installed in $ac_dir" >&6; }
14375   else
14376     # Canadian cross, just use what we found
14377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14378 $as_echo "pre-installed" >&6; }
14379   fi
14380 else
14381   ok=yes
14382   case " ${configdirs} " in
14383     *" gcc "*) ;;
14384     *) ok=no ;;
14385   esac
14386   case ,${enable_languages}, in
14387     *,d,*) ;;
14388     *) ok=no ;;
14389   esac
14390   if test $ok = yes; then
14391     # An in-tree tool is available and we can use it
14392     GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14394 $as_echo "just compiled" >&6; }
14395   elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14396     # We already found the complete path
14397     ac_dir=`dirname $GDC_FOR_TARGET`
14398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14399 $as_echo "pre-installed in $ac_dir" >&6; }
14400   elif test "x$target" = "x$host"; then
14401     # We can use an host tool
14402     GDC_FOR_TARGET='$(GDC)'
14403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14404 $as_echo "host tool" >&6; }
14405   else
14406     # We need a cross tool
14407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14408 $as_echo "pre-installed" >&6; }
14409   fi
14410 fi
14411
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14413 $as_echo_n "checking where to find the target ld... " >&6; }
14414 if test "x${build}" != "x${host}" ; then
14415   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14416     # We already found the complete path
14417     ac_dir=`dirname $LD_FOR_TARGET`
14418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14419 $as_echo "pre-installed in $ac_dir" >&6; }
14420   else
14421     # Canadian cross, just use what we found
14422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14423 $as_echo "pre-installed" >&6; }
14424   fi
14425 else
14426   ok=yes
14427   case " ${configdirs} " in
14428     *" ld "*) ;;
14429     *) ok=no ;;
14430   esac
14431
14432   if test $ok = yes; then
14433     # An in-tree tool is available and we can use it
14434     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14436 $as_echo "just compiled" >&6; }
14437   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14438     # We already found the complete path
14439     ac_dir=`dirname $LD_FOR_TARGET`
14440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14441 $as_echo "pre-installed in $ac_dir" >&6; }
14442   elif test "x$target" = "x$host"; then
14443     # We can use an host tool
14444     LD_FOR_TARGET='$(LD)'
14445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14446 $as_echo "host tool" >&6; }
14447   else
14448     # We need a cross tool
14449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14450 $as_echo "pre-installed" >&6; }
14451   fi
14452 fi
14453
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14455 $as_echo_n "checking where to find the target lipo... " >&6; }
14456 if test "x${build}" != "x${host}" ; then
14457   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14458     # We already found the complete path
14459     ac_dir=`dirname $LIPO_FOR_TARGET`
14460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14461 $as_echo "pre-installed in $ac_dir" >&6; }
14462   else
14463     # Canadian cross, just use what we found
14464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14465 $as_echo "pre-installed" >&6; }
14466   fi
14467 else
14468   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14469     # We already found the complete path
14470     ac_dir=`dirname $LIPO_FOR_TARGET`
14471     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14472 $as_echo "pre-installed in $ac_dir" >&6; }
14473   elif test "x$target" = "x$host"; then
14474     # We can use an host tool
14475     LIPO_FOR_TARGET='$(LIPO)'
14476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14477 $as_echo "host tool" >&6; }
14478   else
14479     # We need a cross tool
14480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14481 $as_echo "pre-installed" >&6; }
14482   fi
14483 fi
14484
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14486 $as_echo_n "checking where to find the target nm... " >&6; }
14487 if test "x${build}" != "x${host}" ; then
14488   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14489     # We already found the complete path
14490     ac_dir=`dirname $NM_FOR_TARGET`
14491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14492 $as_echo "pre-installed in $ac_dir" >&6; }
14493   else
14494     # Canadian cross, just use what we found
14495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14496 $as_echo "pre-installed" >&6; }
14497   fi
14498 else
14499   ok=yes
14500   case " ${configdirs} " in
14501     *" binutils "*) ;;
14502     *) ok=no ;;
14503   esac
14504
14505   if test $ok = yes; then
14506     # An in-tree tool is available and we can use it
14507     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14509 $as_echo "just compiled" >&6; }
14510   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14511     # We already found the complete path
14512     ac_dir=`dirname $NM_FOR_TARGET`
14513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14514 $as_echo "pre-installed in $ac_dir" >&6; }
14515   elif test "x$target" = "x$host"; then
14516     # We can use an host tool
14517     NM_FOR_TARGET='$(NM)'
14518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14519 $as_echo "host tool" >&6; }
14520   else
14521     # We need a cross tool
14522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14523 $as_echo "pre-installed" >&6; }
14524   fi
14525 fi
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14528 $as_echo_n "checking where to find the target objcopy... " >&6; }
14529 if test "x${build}" != "x${host}" ; then
14530   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14531     # We already found the complete path
14532     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14534 $as_echo "pre-installed in $ac_dir" >&6; }
14535   else
14536     # Canadian cross, just use what we found
14537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14538 $as_echo "pre-installed" >&6; }
14539   fi
14540 else
14541   ok=yes
14542   case " ${configdirs} " in
14543     *" binutils "*) ;;
14544     *) ok=no ;;
14545   esac
14546
14547   if test $ok = yes; then
14548     # An in-tree tool is available and we can use it
14549     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14551 $as_echo "just compiled" >&6; }
14552   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14553     # We already found the complete path
14554     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14556 $as_echo "pre-installed in $ac_dir" >&6; }
14557   elif test "x$target" = "x$host"; then
14558     # We can use an host tool
14559     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14561 $as_echo "host tool" >&6; }
14562   else
14563     # We need a cross tool
14564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14565 $as_echo "pre-installed" >&6; }
14566   fi
14567 fi
14568
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14570 $as_echo_n "checking where to find the target objdump... " >&6; }
14571 if test "x${build}" != "x${host}" ; then
14572   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14573     # We already found the complete path
14574     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14576 $as_echo "pre-installed in $ac_dir" >&6; }
14577   else
14578     # Canadian cross, just use what we found
14579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14580 $as_echo "pre-installed" >&6; }
14581   fi
14582 else
14583   ok=yes
14584   case " ${configdirs} " in
14585     *" binutils "*) ;;
14586     *) ok=no ;;
14587   esac
14588
14589   if test $ok = yes; then
14590     # An in-tree tool is available and we can use it
14591     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14593 $as_echo "just compiled" >&6; }
14594   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14595     # We already found the complete path
14596     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14598 $as_echo "pre-installed in $ac_dir" >&6; }
14599   elif test "x$target" = "x$host"; then
14600     # We can use an host tool
14601     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14603 $as_echo "host tool" >&6; }
14604   else
14605     # We need a cross tool
14606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14607 $as_echo "pre-installed" >&6; }
14608   fi
14609 fi
14610
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14612 $as_echo_n "checking where to find the target ranlib... " >&6; }
14613 if test "x${build}" != "x${host}" ; then
14614   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14615     # We already found the complete path
14616     ac_dir=`dirname $RANLIB_FOR_TARGET`
14617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14618 $as_echo "pre-installed in $ac_dir" >&6; }
14619   else
14620     # Canadian cross, just use what we found
14621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14622 $as_echo "pre-installed" >&6; }
14623   fi
14624 else
14625   ok=yes
14626   case " ${configdirs} " in
14627     *" binutils "*) ;;
14628     *) ok=no ;;
14629   esac
14630
14631   if test $ok = yes; then
14632     # An in-tree tool is available and we can use it
14633     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14635 $as_echo "just compiled" >&6; }
14636   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14637     # We already found the complete path
14638     ac_dir=`dirname $RANLIB_FOR_TARGET`
14639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14640 $as_echo "pre-installed in $ac_dir" >&6; }
14641   elif test "x$target" = "x$host"; then
14642     # We can use an host tool
14643     RANLIB_FOR_TARGET='$(RANLIB)'
14644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14645 $as_echo "host tool" >&6; }
14646   else
14647     # We need a cross tool
14648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14649 $as_echo "pre-installed" >&6; }
14650   fi
14651 fi
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14654 $as_echo_n "checking where to find the target readelf... " >&6; }
14655 if test "x${build}" != "x${host}" ; then
14656   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14657     # We already found the complete path
14658     ac_dir=`dirname $READELF_FOR_TARGET`
14659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14660 $as_echo "pre-installed in $ac_dir" >&6; }
14661   else
14662     # Canadian cross, just use what we found
14663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14664 $as_echo "pre-installed" >&6; }
14665   fi
14666 else
14667   ok=yes
14668   case " ${configdirs} " in
14669     *" binutils "*) ;;
14670     *) ok=no ;;
14671   esac
14672
14673   if test $ok = yes; then
14674     # An in-tree tool is available and we can use it
14675     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14677 $as_echo "just compiled" >&6; }
14678   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14679     # We already found the complete path
14680     ac_dir=`dirname $READELF_FOR_TARGET`
14681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14682 $as_echo "pre-installed in $ac_dir" >&6; }
14683   elif test "x$target" = "x$host"; then
14684     # We can use an host tool
14685     READELF_FOR_TARGET='$(READELF)'
14686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14687 $as_echo "host tool" >&6; }
14688   else
14689     # We need a cross tool
14690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14691 $as_echo "pre-installed" >&6; }
14692   fi
14693 fi
14694
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14696 $as_echo_n "checking where to find the target strip... " >&6; }
14697 if test "x${build}" != "x${host}" ; then
14698   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14699     # We already found the complete path
14700     ac_dir=`dirname $STRIP_FOR_TARGET`
14701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14702 $as_echo "pre-installed in $ac_dir" >&6; }
14703   else
14704     # Canadian cross, just use what we found
14705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14706 $as_echo "pre-installed" >&6; }
14707   fi
14708 else
14709   ok=yes
14710   case " ${configdirs} " in
14711     *" binutils "*) ;;
14712     *) ok=no ;;
14713   esac
14714
14715   if test $ok = yes; then
14716     # An in-tree tool is available and we can use it
14717     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14719 $as_echo "just compiled" >&6; }
14720   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14721     # We already found the complete path
14722     ac_dir=`dirname $STRIP_FOR_TARGET`
14723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14724 $as_echo "pre-installed in $ac_dir" >&6; }
14725   elif test "x$target" = "x$host"; then
14726     # We can use an host tool
14727     STRIP_FOR_TARGET='$(STRIP)'
14728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14729 $as_echo "host tool" >&6; }
14730   else
14731     # We need a cross tool
14732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14733 $as_echo "pre-installed" >&6; }
14734   fi
14735 fi
14736
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14738 $as_echo_n "checking where to find the target windres... " >&6; }
14739 if test "x${build}" != "x${host}" ; then
14740   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14741     # We already found the complete path
14742     ac_dir=`dirname $WINDRES_FOR_TARGET`
14743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14744 $as_echo "pre-installed in $ac_dir" >&6; }
14745   else
14746     # Canadian cross, just use what we found
14747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14748 $as_echo "pre-installed" >&6; }
14749   fi
14750 else
14751   ok=yes
14752   case " ${configdirs} " in
14753     *" binutils "*) ;;
14754     *) ok=no ;;
14755   esac
14756
14757   if test $ok = yes; then
14758     # An in-tree tool is available and we can use it
14759     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14761 $as_echo "just compiled" >&6; }
14762   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14763     # We already found the complete path
14764     ac_dir=`dirname $WINDRES_FOR_TARGET`
14765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14766 $as_echo "pre-installed in $ac_dir" >&6; }
14767   elif test "x$target" = "x$host"; then
14768     # We can use an host tool
14769     WINDRES_FOR_TARGET='$(WINDRES)'
14770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14771 $as_echo "host tool" >&6; }
14772   else
14773     # We need a cross tool
14774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14775 $as_echo "pre-installed" >&6; }
14776   fi
14777 fi
14778
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14780 $as_echo_n "checking where to find the target windmc... " >&6; }
14781 if test "x${build}" != "x${host}" ; then
14782   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14783     # We already found the complete path
14784     ac_dir=`dirname $WINDMC_FOR_TARGET`
14785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14786 $as_echo "pre-installed in $ac_dir" >&6; }
14787   else
14788     # Canadian cross, just use what we found
14789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14790 $as_echo "pre-installed" >&6; }
14791   fi
14792 else
14793   ok=yes
14794   case " ${configdirs} " in
14795     *" binutils "*) ;;
14796     *) ok=no ;;
14797   esac
14798
14799   if test $ok = yes; then
14800     # An in-tree tool is available and we can use it
14801     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14803 $as_echo "just compiled" >&6; }
14804   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14805     # We already found the complete path
14806     ac_dir=`dirname $WINDMC_FOR_TARGET`
14807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14808 $as_echo "pre-installed in $ac_dir" >&6; }
14809   elif test "x$target" = "x$host"; then
14810     # We can use an host tool
14811     WINDMC_FOR_TARGET='$(WINDMC)'
14812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14813 $as_echo "host tool" >&6; }
14814   else
14815     # We need a cross tool
14816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14817 $as_echo "pre-installed" >&6; }
14818   fi
14819 fi
14820
14821
14822
14823
14824
14825 # Certain tools may need extra flags.
14826 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14827 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14828 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14829
14830 # When building target libraries, except in a Canadian cross, we use
14831 # the same toolchain as the compiler we just built.
14832 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14833 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14834 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14835 if test $host = $build; then
14836   case " $configdirs " in
14837     *" gcc "*)
14838       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14839       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14840       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14841       ;;
14842   esac
14843 fi
14844
14845
14846
14847
14848
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14850 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14851 # Check whether --enable-maintainer-mode was given.
14852 if test "${enable_maintainer_mode+set}" = set; then :
14853   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14854 else
14855   USE_MAINTAINER_MODE=no
14856 fi
14857
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14859 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14860
14861
14862 if test "$USE_MAINTAINER_MODE" = yes; then
14863   MAINTAINER_MODE_TRUE=
14864   MAINTAINER_MODE_FALSE='#'
14865 else
14866   MAINTAINER_MODE_TRUE='#'
14867   MAINTAINER_MODE_FALSE=
14868 fi
14869 MAINT=$MAINTAINER_MODE_TRUE
14870
14871 # ---------------------
14872 # GCC bootstrap support
14873 # ---------------------
14874
14875 # Stage specific cflags for build.
14876 stage1_cflags="-g"
14877 case $build in
14878   vax-*-*)
14879     case ${GCC} in
14880       yes) stage1_cflags="-g -Wa,-J" ;;
14881       *) stage1_cflags="-g -J" ;;
14882     esac ;;
14883 esac
14884
14885
14886
14887 # Enable --enable-checking in stage1 of the compiler.
14888 # Check whether --enable-stage1-checking was given.
14889 if test "${enable_stage1_checking+set}" = set; then :
14890   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14891 else
14892   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14893   # For --disable-checking or implicit --enable-checking=release, avoid
14894   # setting --enable-checking=gc in the default stage1 checking for LTO
14895   # bootstraps.  See PR62077.
14896   case $BUILD_CONFIG in
14897     *lto*)
14898       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14899     *)
14900       stage1_checking=--enable-checking=yes,types;;
14901   esac
14902   if test "x$enable_checking" = x && \
14903      test -d ${srcdir}/gcc && \
14904      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14905     stage1_checking=--enable-checking=yes,types,extra
14906   fi
14907 else
14908   stage1_checking=--enable-checking=$enable_checking,types
14909 fi
14910 fi
14911
14912
14913
14914 # Enable -Werror in bootstrap stage2 and later.
14915 # Check whether --enable-werror was given.
14916 if test "${enable_werror+set}" = set; then :
14917   enableval=$enable_werror;
14918 case ${enable_werror} in
14919   yes) stage2_werror_flag="--enable-werror-always" ;;
14920   *) stage2_werror_flag="" ;;
14921 esac
14922
14923 else
14924
14925 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14926   case $BUILD_CONFIG in
14927   bootstrap-debug)
14928       stage2_werror_flag="--enable-werror-always" ;;
14929   "")
14930       stage2_werror_flag="--enable-werror-always" ;;
14931   esac
14932 fi
14933
14934 fi
14935
14936
14937
14938
14939 # Specify what files to not compare during bootstrap.
14940
14941 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14942 case "$target" in
14943   hppa*64*-*-hpux*) ;;
14944   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14945   powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14946 esac
14947
14948
14949 ac_config_files="$ac_config_files Makefile"
14950
14951 cat >confcache <<\_ACEOF
14952 # This file is a shell script that caches the results of configure
14953 # tests run on this system so they can be shared between configure
14954 # scripts and configure runs, see configure's option --config-cache.
14955 # It is not useful on other systems.  If it contains results you don't
14956 # want to keep, you may remove or edit it.
14957 #
14958 # config.status only pays attention to the cache file if you give it
14959 # the --recheck option to rerun configure.
14960 #
14961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14963 # following values.
14964
14965 _ACEOF
14966
14967 # The following way of writing the cache mishandles newlines in values,
14968 # but we know of no workaround that is simple, portable, and efficient.
14969 # So, we kill variables containing newlines.
14970 # Ultrix sh set writes to stderr and can't be redirected directly,
14971 # and sets the high bit in the cache file unless we assign to the vars.
14972 (
14973   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14974     eval ac_val=\$$ac_var
14975     case $ac_val in #(
14976     *${as_nl}*)
14977       case $ac_var in #(
14978       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14980       esac
14981       case $ac_var in #(
14982       _ | IFS | as_nl) ;; #(
14983       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14984       *) { eval $ac_var=; unset $ac_var;} ;;
14985       esac ;;
14986     esac
14987   done
14988
14989   (set) 2>&1 |
14990     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14991     *${as_nl}ac_space=\ *)
14992       # `set' does not quote correctly, so add quotes: double-quote
14993       # substitution turns \\\\ into \\, and sed turns \\ into \.
14994       sed -n \
14995         "s/'/'\\\\''/g;
14996           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14997       ;; #(
14998     *)
14999       # `set' quotes correctly as required by POSIX, so do not add quotes.
15000       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15001       ;;
15002     esac |
15003     sort
15004 ) |
15005   sed '
15006      /^ac_cv_env_/b end
15007      t clear
15008      :clear
15009      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15010      t end
15011      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15012      :end' >>confcache
15013 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15014   if test -w "$cache_file"; then
15015     if test "x$cache_file" != "x/dev/null"; then
15016       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15017 $as_echo "$as_me: updating cache $cache_file" >&6;}
15018       if test ! -f "$cache_file" || test -h "$cache_file"; then
15019         cat confcache >"$cache_file"
15020       else
15021         case $cache_file in #(
15022         */* | ?:*)
15023           mv -f confcache "$cache_file"$$ &&
15024           mv -f "$cache_file"$$ "$cache_file" ;; #(
15025         *)
15026           mv -f confcache "$cache_file" ;;
15027         esac
15028       fi
15029     fi
15030   else
15031     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15032 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15033   fi
15034 fi
15035 rm -f confcache
15036
15037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15038 # Let make expand exec_prefix.
15039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15040
15041 # Transform confdefs.h into DEFS.
15042 # Protect against shell expansion while executing Makefile rules.
15043 # Protect against Makefile macro expansion.
15044 #
15045 # If the first sed substitution is executed (which looks for macros that
15046 # take arguments), then branch to the quote section.  Otherwise,
15047 # look for a macro that doesn't take arguments.
15048 ac_script='
15049 :mline
15050 /\\$/{
15051  N
15052  s,\\\n,,
15053  b mline
15054 }
15055 t clear
15056 :clear
15057 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15058 t quote
15059 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15060 t quote
15061 b any
15062 :quote
15063 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15064 s/\[/\\&/g
15065 s/\]/\\&/g
15066 s/\$/$$/g
15067 H
15068 :any
15069 ${
15070         g
15071         s/^\n//
15072         s/\n/ /g
15073         p
15074 }
15075 '
15076 DEFS=`sed -n "$ac_script" confdefs.h`
15077
15078
15079 ac_libobjs=
15080 ac_ltlibobjs=
15081 U=
15082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15083   # 1. Remove the extension, and $U if already installed.
15084   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15085   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15086   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15087   #    will be set to the directory where LIBOBJS objects are built.
15088   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15089   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15090 done
15091 LIBOBJS=$ac_libobjs
15092
15093 LTLIBOBJS=$ac_ltlibobjs
15094
15095
15096
15097 : "${CONFIG_STATUS=./config.status}"
15098 ac_write_fail=0
15099 ac_clean_files_save=$ac_clean_files
15100 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15102 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15103 as_write_fail=0
15104 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15105 #! $SHELL
15106 # Generated by $as_me.
15107 # Run this file to recreate the current configuration.
15108 # Compiler output produced by configure, useful for debugging
15109 # configure, is in config.log if it exists.
15110
15111 debug=false
15112 ac_cs_recheck=false
15113 ac_cs_silent=false
15114
15115 SHELL=\${CONFIG_SHELL-$SHELL}
15116 export SHELL
15117 _ASEOF
15118 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15119 ## -------------------- ##
15120 ## M4sh Initialization. ##
15121 ## -------------------- ##
15122
15123 # Be more Bourne compatible
15124 DUALCASE=1; export DUALCASE # for MKS sh
15125 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15126   emulate sh
15127   NULLCMD=:
15128   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15129   # is contrary to our usage.  Disable this feature.
15130   alias -g '${1+"$@"}'='"$@"'
15131   setopt NO_GLOB_SUBST
15132 else
15133   case `(set -o) 2>/dev/null` in #(
15134   *posix*) :
15135     set -o posix ;; #(
15136   *) :
15137      ;;
15138 esac
15139 fi
15140
15141
15142 as_nl='
15143 '
15144 export as_nl
15145 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15146 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15147 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15148 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15149 # Prefer a ksh shell builtin over an external printf program on Solaris,
15150 # but without wasting forks for bash or zsh.
15151 if test -z "$BASH_VERSION$ZSH_VERSION" \
15152     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15153   as_echo='print -r --'
15154   as_echo_n='print -rn --'
15155 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15156   as_echo='printf %s\n'
15157   as_echo_n='printf %s'
15158 else
15159   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15160     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15161     as_echo_n='/usr/ucb/echo -n'
15162   else
15163     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15164     as_echo_n_body='eval
15165       arg=$1;
15166       case $arg in #(
15167       *"$as_nl"*)
15168         expr "X$arg" : "X\\(.*\\)$as_nl";
15169         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15170       esac;
15171       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15172     '
15173     export as_echo_n_body
15174     as_echo_n='sh -c $as_echo_n_body as_echo'
15175   fi
15176   export as_echo_body
15177   as_echo='sh -c $as_echo_body as_echo'
15178 fi
15179
15180 # The user is always right.
15181 if test "${PATH_SEPARATOR+set}" != set; then
15182   PATH_SEPARATOR=:
15183   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15184     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15185       PATH_SEPARATOR=';'
15186   }
15187 fi
15188
15189
15190 # IFS
15191 # We need space, tab and new line, in precisely that order.  Quoting is
15192 # there to prevent editors from complaining about space-tab.
15193 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15194 # splitting by setting IFS to empty value.)
15195 IFS=" ""        $as_nl"
15196
15197 # Find who we are.  Look in the path if we contain no directory separator.
15198 as_myself=
15199 case $0 in #((
15200   *[\\/]* ) as_myself=$0 ;;
15201   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202 for as_dir in $PATH
15203 do
15204   IFS=$as_save_IFS
15205   test -z "$as_dir" && as_dir=.
15206     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15207   done
15208 IFS=$as_save_IFS
15209
15210      ;;
15211 esac
15212 # We did not find ourselves, most probably we were run as `sh COMMAND'
15213 # in which case we are not to be found in the path.
15214 if test "x$as_myself" = x; then
15215   as_myself=$0
15216 fi
15217 if test ! -f "$as_myself"; then
15218   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15219   exit 1
15220 fi
15221
15222 # Unset variables that we do not need and which cause bugs (e.g. in
15223 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15224 # suppresses any "Segmentation fault" message there.  '((' could
15225 # trigger a bug in pdksh 5.2.14.
15226 for as_var in BASH_ENV ENV MAIL MAILPATH
15227 do eval test x\${$as_var+set} = xset \
15228   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15229 done
15230 PS1='$ '
15231 PS2='> '
15232 PS4='+ '
15233
15234 # NLS nuisances.
15235 LC_ALL=C
15236 export LC_ALL
15237 LANGUAGE=C
15238 export LANGUAGE
15239
15240 # CDPATH.
15241 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15242
15243
15244 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15245 # ----------------------------------------
15246 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15247 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15248 # script with STATUS, using 1 if that was 0.
15249 as_fn_error ()
15250 {
15251   as_status=$1; test $as_status -eq 0 && as_status=1
15252   if test "$4"; then
15253     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15254     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15255   fi
15256   $as_echo "$as_me: error: $2" >&2
15257   as_fn_exit $as_status
15258 } # as_fn_error
15259
15260
15261 # as_fn_set_status STATUS
15262 # -----------------------
15263 # Set $? to STATUS, without forking.
15264 as_fn_set_status ()
15265 {
15266   return $1
15267 } # as_fn_set_status
15268
15269 # as_fn_exit STATUS
15270 # -----------------
15271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15272 as_fn_exit ()
15273 {
15274   set +e
15275   as_fn_set_status $1
15276   exit $1
15277 } # as_fn_exit
15278
15279 # as_fn_unset VAR
15280 # ---------------
15281 # Portably unset VAR.
15282 as_fn_unset ()
15283 {
15284   { eval $1=; unset $1;}
15285 }
15286 as_unset=as_fn_unset
15287 # as_fn_append VAR VALUE
15288 # ----------------------
15289 # Append the text in VALUE to the end of the definition contained in VAR. Take
15290 # advantage of any shell optimizations that allow amortized linear growth over
15291 # repeated appends, instead of the typical quadratic growth present in naive
15292 # implementations.
15293 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15294   eval 'as_fn_append ()
15295   {
15296     eval $1+=\$2
15297   }'
15298 else
15299   as_fn_append ()
15300   {
15301     eval $1=\$$1\$2
15302   }
15303 fi # as_fn_append
15304
15305 # as_fn_arith ARG...
15306 # ------------------
15307 # Perform arithmetic evaluation on the ARGs, and store the result in the
15308 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15309 # must be portable across $(()) and expr.
15310 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15311   eval 'as_fn_arith ()
15312   {
15313     as_val=$(( $* ))
15314   }'
15315 else
15316   as_fn_arith ()
15317   {
15318     as_val=`expr "$@" || test $? -eq 1`
15319   }
15320 fi # as_fn_arith
15321
15322
15323 if expr a : '\(a\)' >/dev/null 2>&1 &&
15324    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15325   as_expr=expr
15326 else
15327   as_expr=false
15328 fi
15329
15330 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15331   as_basename=basename
15332 else
15333   as_basename=false
15334 fi
15335
15336 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15337   as_dirname=dirname
15338 else
15339   as_dirname=false
15340 fi
15341
15342 as_me=`$as_basename -- "$0" ||
15343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15344          X"$0" : 'X\(//\)$' \| \
15345          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15346 $as_echo X/"$0" |
15347     sed '/^.*\/\([^/][^/]*\)\/*$/{
15348             s//\1/
15349             q
15350           }
15351           /^X\/\(\/\/\)$/{
15352             s//\1/
15353             q
15354           }
15355           /^X\/\(\/\).*/{
15356             s//\1/
15357             q
15358           }
15359           s/.*/./; q'`
15360
15361 # Avoid depending upon Character Ranges.
15362 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15363 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15364 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15365 as_cr_digits='0123456789'
15366 as_cr_alnum=$as_cr_Letters$as_cr_digits
15367
15368 ECHO_C= ECHO_N= ECHO_T=
15369 case `echo -n x` in #(((((
15370 -n*)
15371   case `echo 'xy\c'` in
15372   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15373   xy)  ECHO_C='\c';;
15374   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15375        ECHO_T=' ';;
15376   esac;;
15377 *)
15378   ECHO_N='-n';;
15379 esac
15380
15381 rm -f conf$$ conf$$.exe conf$$.file
15382 if test -d conf$$.dir; then
15383   rm -f conf$$.dir/conf$$.file
15384 else
15385   rm -f conf$$.dir
15386   mkdir conf$$.dir 2>/dev/null
15387 fi
15388 if (echo >conf$$.file) 2>/dev/null; then
15389   if ln -s conf$$.file conf$$ 2>/dev/null; then
15390     as_ln_s='ln -s'
15391     # ... but there are two gotchas:
15392     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15393     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15394     # In both cases, we have to default to `cp -pR'.
15395     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15396       as_ln_s='cp -pR'
15397   elif ln conf$$.file conf$$ 2>/dev/null; then
15398     as_ln_s=ln
15399   else
15400     as_ln_s='cp -pR'
15401   fi
15402 else
15403   as_ln_s='cp -pR'
15404 fi
15405 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15406 rmdir conf$$.dir 2>/dev/null
15407
15408
15409 # as_fn_mkdir_p
15410 # -------------
15411 # Create "$as_dir" as a directory, including parents if necessary.
15412 as_fn_mkdir_p ()
15413 {
15414
15415   case $as_dir in #(
15416   -*) as_dir=./$as_dir;;
15417   esac
15418   test -d "$as_dir" || eval $as_mkdir_p || {
15419     as_dirs=
15420     while :; do
15421       case $as_dir in #(
15422       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15423       *) as_qdir=$as_dir;;
15424       esac
15425       as_dirs="'$as_qdir' $as_dirs"
15426       as_dir=`$as_dirname -- "$as_dir" ||
15427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15428          X"$as_dir" : 'X\(//\)[^/]' \| \
15429          X"$as_dir" : 'X\(//\)$' \| \
15430          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15431 $as_echo X"$as_dir" |
15432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15433             s//\1/
15434             q
15435           }
15436           /^X\(\/\/\)[^/].*/{
15437             s//\1/
15438             q
15439           }
15440           /^X\(\/\/\)$/{
15441             s//\1/
15442             q
15443           }
15444           /^X\(\/\).*/{
15445             s//\1/
15446             q
15447           }
15448           s/.*/./; q'`
15449       test -d "$as_dir" && break
15450     done
15451     test -z "$as_dirs" || eval "mkdir $as_dirs"
15452   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15453
15454
15455 } # as_fn_mkdir_p
15456 if mkdir -p . 2>/dev/null; then
15457   as_mkdir_p='mkdir -p "$as_dir"'
15458 else
15459   test -d ./-p && rmdir ./-p
15460   as_mkdir_p=false
15461 fi
15462
15463
15464 # as_fn_executable_p FILE
15465 # -----------------------
15466 # Test if FILE is an executable regular file.
15467 as_fn_executable_p ()
15468 {
15469   test -f "$1" && test -x "$1"
15470 } # as_fn_executable_p
15471 as_test_x='test -x'
15472 as_executable_p=as_fn_executable_p
15473
15474 # Sed expression to map a string onto a valid CPP name.
15475 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15476
15477 # Sed expression to map a string onto a valid variable name.
15478 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15479
15480
15481 exec 6>&1
15482 ## ----------------------------------- ##
15483 ## Main body of $CONFIG_STATUS script. ##
15484 ## ----------------------------------- ##
15485 _ASEOF
15486 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15487
15488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15489 # Save the log message, to keep $0 and so on meaningful, and to
15490 # report actual input values of CONFIG_FILES etc. instead of their
15491 # values after options handling.
15492 ac_log="
15493 This file was extended by $as_me, which was
15494 generated by GNU Autoconf 2.69.  Invocation command line was
15495
15496   CONFIG_FILES    = $CONFIG_FILES
15497   CONFIG_HEADERS  = $CONFIG_HEADERS
15498   CONFIG_LINKS    = $CONFIG_LINKS
15499   CONFIG_COMMANDS = $CONFIG_COMMANDS
15500   $ $0 $@
15501
15502 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15503 "
15504
15505 _ACEOF
15506
15507 case $ac_config_files in *"
15508 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15509 esac
15510
15511
15512
15513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15514 # Files that config.status was made for.
15515 config_files="$ac_config_files"
15516
15517 _ACEOF
15518
15519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15520 ac_cs_usage="\
15521 \`$as_me' instantiates files and other configuration actions
15522 from templates according to the current configuration.  Unless the files
15523 and actions are specified as TAGs, all are instantiated by default.
15524
15525 Usage: $0 [OPTION]... [TAG]...
15526
15527   -h, --help       print this help, then exit
15528   -V, --version    print version number and configuration settings, then exit
15529       --config     print configuration, then exit
15530   -q, --quiet, --silent
15531                    do not print progress messages
15532   -d, --debug      don't remove temporary files
15533       --recheck    update $as_me by reconfiguring in the same conditions
15534       --file=FILE[:TEMPLATE]
15535                    instantiate the configuration file FILE
15536
15537 Configuration files:
15538 $config_files
15539
15540 Report bugs to the package provider."
15541
15542 _ACEOF
15543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15544 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15545 ac_cs_version="\\
15546 config.status
15547 configured by $0, generated by GNU Autoconf 2.69,
15548   with options \\"\$ac_cs_config\\"
15549
15550 Copyright (C) 2012 Free Software Foundation, Inc.
15551 This config.status script is free software; the Free Software Foundation
15552 gives unlimited permission to copy, distribute and modify it."
15553
15554 ac_pwd='$ac_pwd'
15555 srcdir='$srcdir'
15556 INSTALL='$INSTALL'
15557 AWK='$AWK'
15558 test -n "\$AWK" || AWK=awk
15559 _ACEOF
15560
15561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15562 # The default lists apply if the user does not specify any file.
15563 ac_need_defaults=:
15564 while test $# != 0
15565 do
15566   case $1 in
15567   --*=?*)
15568     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15569     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15570     ac_shift=:
15571     ;;
15572   --*=)
15573     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15574     ac_optarg=
15575     ac_shift=:
15576     ;;
15577   *)
15578     ac_option=$1
15579     ac_optarg=$2
15580     ac_shift=shift
15581     ;;
15582   esac
15583
15584   case $ac_option in
15585   # Handling of the options.
15586   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15587     ac_cs_recheck=: ;;
15588   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15589     $as_echo "$ac_cs_version"; exit ;;
15590   --config | --confi | --conf | --con | --co | --c )
15591     $as_echo "$ac_cs_config"; exit ;;
15592   --debug | --debu | --deb | --de | --d | -d )
15593     debug=: ;;
15594   --file | --fil | --fi | --f )
15595     $ac_shift
15596     case $ac_optarg in
15597     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15598     '') as_fn_error $? "missing file argument" ;;
15599     esac
15600     as_fn_append CONFIG_FILES " '$ac_optarg'"
15601     ac_need_defaults=false;;
15602   --he | --h |  --help | --hel | -h )
15603     $as_echo "$ac_cs_usage"; exit ;;
15604   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15605   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15606     ac_cs_silent=: ;;
15607
15608   # This is an error.
15609   -*) as_fn_error $? "unrecognized option: \`$1'
15610 Try \`$0 --help' for more information." ;;
15611
15612   *) as_fn_append ac_config_targets " $1"
15613      ac_need_defaults=false ;;
15614
15615   esac
15616   shift
15617 done
15618
15619 ac_configure_extra_args=
15620
15621 if $ac_cs_silent; then
15622   exec 6>/dev/null
15623   ac_configure_extra_args="$ac_configure_extra_args --silent"
15624 fi
15625
15626 _ACEOF
15627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15628 if \$ac_cs_recheck; then
15629   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15630   shift
15631   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15632   CONFIG_SHELL='$SHELL'
15633   export CONFIG_SHELL
15634   exec "\$@"
15635 fi
15636
15637 _ACEOF
15638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639 exec 5>>config.log
15640 {
15641   echo
15642   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15643 ## Running $as_me. ##
15644 _ASBOX
15645   $as_echo "$ac_log"
15646 } >&5
15647
15648 _ACEOF
15649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15650 #
15651 # INIT-COMMANDS
15652 #
15653 extrasub_build="$extrasub_build"
15654    extrasub_host="$extrasub_host"
15655    extrasub_target="$extrasub_target"
15656
15657 _ACEOF
15658
15659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15660
15661 # Handling of arguments.
15662 for ac_config_target in $ac_config_targets
15663 do
15664   case $ac_config_target in
15665     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15666
15667   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15668   esac
15669 done
15670
15671
15672 # If the user did not use the arguments to specify the items to instantiate,
15673 # then the envvar interface is used.  Set only those that are not.
15674 # We use the long form for the default assignment because of an extremely
15675 # bizarre bug on SunOS 4.1.3.
15676 if $ac_need_defaults; then
15677   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15678 fi
15679
15680 # Have a temporary directory for convenience.  Make it in the build tree
15681 # simply because there is no reason against having it here, and in addition,
15682 # creating and moving files from /tmp can sometimes cause problems.
15683 # Hook for its removal unless debugging.
15684 # Note that there is a small window in which the directory will not be cleaned:
15685 # after its creation but before its name has been assigned to `$tmp'.
15686 $debug ||
15687 {
15688   tmp= ac_tmp=
15689   trap 'exit_status=$?
15690   : "${ac_tmp:=$tmp}"
15691   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15692 ' 0
15693   trap 'as_fn_exit 1' 1 2 13 15
15694 }
15695 # Create a (secure) tmp directory for tmp files.
15696
15697 {
15698   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15699   test -d "$tmp"
15700 }  ||
15701 {
15702   tmp=./conf$$-$RANDOM
15703   (umask 077 && mkdir "$tmp")
15704 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15705 ac_tmp=$tmp
15706
15707 # Set up the scripts for CONFIG_FILES section.
15708 # No need to generate them if there are no CONFIG_FILES.
15709 # This happens for instance with `./config.status config.h'.
15710 if test -n "$CONFIG_FILES"; then
15711
15712 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15713   ac_cs_awk_getline=:
15714   ac_cs_awk_pipe_init=
15715   ac_cs_awk_read_file='
15716       while ((getline aline < (F[key])) > 0)
15717         print(aline)
15718       close(F[key])'
15719   ac_cs_awk_pipe_fini=
15720 else
15721   ac_cs_awk_getline=false
15722   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15723   ac_cs_awk_read_file='
15724       print "|#_!!_#|"
15725       print "cat " F[key] " &&"
15726       '$ac_cs_awk_pipe_init
15727   # The final `:' finishes the AND list.
15728   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15729 fi
15730 ac_cr=`echo X | tr X '\015'`
15731 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15732 # But we know of no other shell where ac_cr would be empty at this
15733 # point, so we can use a bashism as a fallback.
15734 if test "x$ac_cr" = x; then
15735   eval ac_cr=\$\'\\r\'
15736 fi
15737 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15738 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15739   ac_cs_awk_cr='\\r'
15740 else
15741   ac_cs_awk_cr=$ac_cr
15742 fi
15743
15744 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15745 _ACEOF
15746
15747 # Create commands to substitute file output variables.
15748 {
15749   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15750   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15751   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15752   echo "_ACAWK" &&
15753   echo "_ACEOF"
15754 } >conf$$files.sh &&
15755 . ./conf$$files.sh ||
15756   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15757 rm -f conf$$files.sh
15758
15759 {
15760   echo "cat >conf$$subs.awk <<_ACEOF" &&
15761   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15762   echo "_ACEOF"
15763 } >conf$$subs.sh ||
15764   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15765 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15766 ac_delim='%!_!# '
15767 for ac_last_try in false false false false false :; do
15768   . ./conf$$subs.sh ||
15769     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15770
15771   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15772   if test $ac_delim_n = $ac_delim_num; then
15773     break
15774   elif $ac_last_try; then
15775     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15776   else
15777     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15778   fi
15779 done
15780 rm -f conf$$subs.sh
15781
15782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15783 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15784 _ACEOF
15785 sed -n '
15786 h
15787 s/^/S["/; s/!.*/"]=/
15788 p
15789 g
15790 s/^[^!]*!//
15791 :repl
15792 t repl
15793 s/'"$ac_delim"'$//
15794 t delim
15795 :nl
15796 h
15797 s/\(.\{148\}\)..*/\1/
15798 t more1
15799 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15800 p
15801 n
15802 b repl
15803 :more1
15804 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15805 p
15806 g
15807 s/.\{148\}//
15808 t nl
15809 :delim
15810 h
15811 s/\(.\{148\}\)..*/\1/
15812 t more2
15813 s/["\\]/\\&/g; s/^/"/; s/$/"/
15814 p
15815 b
15816 :more2
15817 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15818 p
15819 g
15820 s/.\{148\}//
15821 t delim
15822 ' <conf$$subs.awk | sed '
15823 /^[^""]/{
15824   N
15825   s/\n//
15826 }
15827 ' >>$CONFIG_STATUS || ac_write_fail=1
15828 rm -f conf$$subs.awk
15829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15830 _ACAWK
15831 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15832   for (key in S) S_is_set[key] = 1
15833   FS = "\a"
15834   \$ac_cs_awk_pipe_init
15835 }
15836 {
15837   line = $ 0
15838   nfields = split(line, field, "@")
15839   substed = 0
15840   len = length(field[1])
15841   for (i = 2; i < nfields; i++) {
15842     key = field[i]
15843     keylen = length(key)
15844     if (S_is_set[key]) {
15845       value = S[key]
15846       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15847       len += length(value) + length(field[++i])
15848       substed = 1
15849     } else
15850       len += 1 + keylen
15851   }
15852   if (nfields == 3 && !substed) {
15853     key = field[2]
15854     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15855       \$ac_cs_awk_read_file
15856       next
15857     }
15858   }
15859   print line
15860 }
15861 \$ac_cs_awk_pipe_fini
15862 _ACAWK
15863 _ACEOF
15864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15865 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15866   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15867 else
15868   cat
15869 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15870   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15871 _ACEOF
15872
15873 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15874 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15875 # trailing colons and then remove the whole line if VPATH becomes empty
15876 # (actually we leave an empty line to preserve line numbers).
15877 if test "x$srcdir" = x.; then
15878   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15879 h
15880 s///
15881 s/^/:/
15882 s/[      ]*$/:/
15883 s/:\$(srcdir):/:/g
15884 s/:\${srcdir}:/:/g
15885 s/:@srcdir@:/:/g
15886 s/^:*//
15887 s/:*$//
15888 x
15889 s/\(=[   ]*\).*/\1/
15890 G
15891 s/\n//
15892 s/^[^=]*=[       ]*$//
15893 }'
15894 fi
15895
15896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15897 fi # test -n "$CONFIG_FILES"
15898
15899
15900 eval set X "  :F $CONFIG_FILES      "
15901 shift
15902 for ac_tag
15903 do
15904   case $ac_tag in
15905   :[FHLC]) ac_mode=$ac_tag; continue;;
15906   esac
15907   case $ac_mode$ac_tag in
15908   :[FHL]*:*);;
15909   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15910   :[FH]-) ac_tag=-:-;;
15911   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15912   esac
15913   ac_save_IFS=$IFS
15914   IFS=:
15915   set x $ac_tag
15916   IFS=$ac_save_IFS
15917   shift
15918   ac_file=$1
15919   shift
15920
15921   case $ac_mode in
15922   :L) ac_source=$1;;
15923   :[FH])
15924     ac_file_inputs=
15925     for ac_f
15926     do
15927       case $ac_f in
15928       -) ac_f="$ac_tmp/stdin";;
15929       *) # Look for the file first in the build tree, then in the source tree
15930          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15931          # because $ac_f cannot contain `:'.
15932          test -f "$ac_f" ||
15933            case $ac_f in
15934            [\\/$]*) false;;
15935            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15936            esac ||
15937            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15938       esac
15939       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15940       as_fn_append ac_file_inputs " '$ac_f'"
15941     done
15942
15943     # Let's still pretend it is `configure' which instantiates (i.e., don't
15944     # use $as_me), people would be surprised to read:
15945     #    /* config.h.  Generated by config.status.  */
15946     configure_input='Generated from '`
15947           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15948         `' by configure.'
15949     if test x"$ac_file" != x-; then
15950       configure_input="$ac_file.  $configure_input"
15951       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15952 $as_echo "$as_me: creating $ac_file" >&6;}
15953     fi
15954     # Neutralize special characters interpreted by sed in replacement strings.
15955     case $configure_input in #(
15956     *\&* | *\|* | *\\* )
15957        ac_sed_conf_input=`$as_echo "$configure_input" |
15958        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15959     *) ac_sed_conf_input=$configure_input;;
15960     esac
15961
15962     case $ac_tag in
15963     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15964       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15965     esac
15966     ;;
15967   esac
15968
15969   ac_dir=`$as_dirname -- "$ac_file" ||
15970 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15971          X"$ac_file" : 'X\(//\)[^/]' \| \
15972          X"$ac_file" : 'X\(//\)$' \| \
15973          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15974 $as_echo X"$ac_file" |
15975     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15976             s//\1/
15977             q
15978           }
15979           /^X\(\/\/\)[^/].*/{
15980             s//\1/
15981             q
15982           }
15983           /^X\(\/\/\)$/{
15984             s//\1/
15985             q
15986           }
15987           /^X\(\/\).*/{
15988             s//\1/
15989             q
15990           }
15991           s/.*/./; q'`
15992   as_dir="$ac_dir"; as_fn_mkdir_p
15993   ac_builddir=.
15994
15995 case "$ac_dir" in
15996 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15997 *)
15998   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15999   # A ".." for each directory in $ac_dir_suffix.
16000   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16001   case $ac_top_builddir_sub in
16002   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16003   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16004   esac ;;
16005 esac
16006 ac_abs_top_builddir=$ac_pwd
16007 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16008 # for backward compatibility:
16009 ac_top_builddir=$ac_top_build_prefix
16010
16011 case $srcdir in
16012   .)  # We are building in place.
16013     ac_srcdir=.
16014     ac_top_srcdir=$ac_top_builddir_sub
16015     ac_abs_top_srcdir=$ac_pwd ;;
16016   [\\/]* | ?:[\\/]* )  # Absolute name.
16017     ac_srcdir=$srcdir$ac_dir_suffix;
16018     ac_top_srcdir=$srcdir
16019     ac_abs_top_srcdir=$srcdir ;;
16020   *) # Relative name.
16021     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16022     ac_top_srcdir=$ac_top_build_prefix$srcdir
16023     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16024 esac
16025 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16026
16027
16028   case $ac_mode in
16029   :F)
16030   #
16031   # CONFIG_FILE
16032   #
16033
16034   case $INSTALL in
16035   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16036   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16037   esac
16038 _ACEOF
16039
16040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16041 # If the template does not know about datarootdir, expand it.
16042 # FIXME: This hack should be removed a few years after 2.60.
16043 ac_datarootdir_hack=; ac_datarootdir_seen=
16044 ac_sed_dataroot='
16045 /datarootdir/ {
16046   p
16047   q
16048 }
16049 /@datadir@/p
16050 /@docdir@/p
16051 /@infodir@/p
16052 /@localedir@/p
16053 /@mandir@/p'
16054 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16055 *datarootdir*) ac_datarootdir_seen=yes;;
16056 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16057   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16058 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16059 _ACEOF
16060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16061   ac_datarootdir_hack='
16062   s&@datadir@&$datadir&g
16063   s&@docdir@&$docdir&g
16064   s&@infodir@&$infodir&g
16065   s&@localedir@&$localedir&g
16066   s&@mandir@&$mandir&g
16067   s&\\\${datarootdir}&$datarootdir&g' ;;
16068 esac
16069 _ACEOF
16070
16071 # Neutralize VPATH when `$srcdir' = `.'.
16072 # Shell code in configure.ac might set extrasub.
16073 # FIXME: do we really want to maintain this feature?
16074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16075 ac_sed_extra="$ac_vpsub
16076 $extrasub
16077 _ACEOF
16078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16079 :t
16080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16081 s|@configure_input@|$ac_sed_conf_input|;t t
16082 s&@top_builddir@&$ac_top_builddir_sub&;t t
16083 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16084 s&@srcdir@&$ac_srcdir&;t t
16085 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16086 s&@top_srcdir@&$ac_top_srcdir&;t t
16087 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16088 s&@builddir@&$ac_builddir&;t t
16089 s&@abs_builddir@&$ac_abs_builddir&;t t
16090 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16091 s&@INSTALL@&$ac_INSTALL&;t t
16092 $ac_datarootdir_hack
16093 "
16094 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16095 if $ac_cs_awk_getline; then
16096   $AWK -f "$ac_tmp/subs.awk"
16097 else
16098   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16099 fi \
16100   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16101
16102 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16103   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16104   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16105       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16106   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16107 which seems to be undefined.  Please make sure it is defined" >&5
16108 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16109 which seems to be undefined.  Please make sure it is defined" >&2;}
16110
16111   rm -f "$ac_tmp/stdin"
16112   case $ac_file in
16113   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16114   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16115   esac \
16116   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16117  ;;
16118
16119
16120
16121   esac
16122
16123
16124   case $ac_file$ac_mode in
16125     "Makefile":F) sed "$extrasub_build" Makefile |
16126    sed "$extrasub_host" |
16127    sed "$extrasub_target" > mf$$
16128    mv -f mf$$ Makefile ;;
16129
16130   esac
16131 done # for ac_tag
16132
16133
16134 as_fn_exit 0
16135 _ACEOF
16136 ac_clean_files=$ac_clean_files_save
16137
16138 test $ac_write_fail = 0 ||
16139   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16140
16141
16142 # configure is writing to config.log, and then calls config.status.
16143 # config.status does its own redirection, appending to config.log.
16144 # Unfortunately, on DOS this fails, as config.log is still kept open
16145 # by configure, so config.status won't be able to write to it; its
16146 # output is simply discarded.  So we exec the FD to /dev/null,
16147 # effectively closing config.log, so it can be properly (re)opened and
16148 # appended to by config.status.  When coming back to configure, we
16149 # need to make the FD available again.
16150 if test "$no_create" != yes; then
16151   ac_cs_success=:
16152   ac_config_status_args=
16153   test "$silent" = yes &&
16154     ac_config_status_args="$ac_config_status_args --quiet"
16155   exec 5>/dev/null
16156   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16157   exec 5>>config.log
16158   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16159   # would make configure fail if this is the last instruction.
16160   $ac_cs_success || as_fn_exit 1
16161 fi
16162 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16163   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16164 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16165 fi
16166