sim: leverage gnulib
[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 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DLLTOOL_FOR_TARGET
613 AS_FOR_TARGET
614 AR_FOR_TARGET
615 GDC_FOR_TARGET
616 GOC_FOR_TARGET
617 GFORTRAN_FOR_TARGET
618 GCC_FOR_TARGET
619 CXX_FOR_TARGET
620 CC_FOR_TARGET
621 READELF
622 OTOOL
623 OBJDUMP
624 OBJCOPY
625 WINDMC
626 WINDRES
627 STRIP
628 RANLIB
629 NM
630 LIPO
631 LD
632 DLLTOOL
633 AS
634 AR
635 RUNTEST
636 EXPECT
637 MAKEINFO
638 FLEX
639 LEX
640 M4
641 BISON
642 YACC
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GDC_FOR_BUILD
650 GOC_FOR_BUILD
651 GFORTRAN_FOR_BUILD
652 DLLTOOL_FOR_BUILD
653 CXX_FOR_BUILD
654 CXXFLAGS_FOR_BUILD
655 CFLAGS_FOR_BUILD
656 CC_FOR_BUILD
657 AS_FOR_BUILD
658 AR_FOR_BUILD
659 target_configdirs
660 configdirs
661 build_configdirs
662 INSTALL_GDB_TK
663 GDB_TK
664 CONFIGURE_GDB_TK
665 build_tooldir
666 tooldir
667 GCC_SHLIB_SUBDIR
668 RPATH_ENVVAR
669 target_configargs
670 host_configargs
671 build_configargs
672 BUILD_CONFIG
673 LDFLAGS_FOR_TARGET
674 CXXFLAGS_FOR_TARGET
675 CFLAGS_FOR_TARGET
676 DEBUG_PREFIX_CFLAGS_FOR_TARGET
677 SYSROOT_CFLAGS_FOR_TARGET
678 get_gcc_base_ver
679 extra_host_zlib_configure_flags
680 extra_host_libiberty_configure_flags
681 stage1_languages
682 host_shared
683 extra_linker_plugin_flags
684 extra_linker_plugin_configure_flags
685 islinc
686 isllibs
687 poststage1_ldflags
688 poststage1_libs
689 stage1_ldflags
690 stage1_libs
691 extra_isl_gmp_configure_flags
692 extra_mpc_mpfr_configure_flags
693 extra_mpc_gmp_configure_flags
694 extra_mpfr_configure_flags
695 gmpinc
696 gmplibs
697 HAVE_CXX11_FOR_BUILD
698 HAVE_CXX11
699 do_compare
700 GNATMAKE
701 GNATBIND
702 ac_ct_CXX
703 CXXFLAGS
704 CXX
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 extra_liboffloadmic_configure_flags
713 target_subdir
714 host_subdir
715 build_subdir
716 build_libsubdir
717 AWK
718 SED
719 LN_S
720 LN
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 target_noncanonical
733 host_noncanonical
734 build_noncanonical
735 build_os
736 build_vendor
737 build_cpu
738 build
739 TOPLEVEL_CONFIGURE_ARGUMENTS
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files='serialization_dependencies
779 host_makefile_frag
780 target_makefile_frag
781 alphaieee_frag
782 ospace_frag'
783 ac_user_opts='
784 enable_option_checking
785 with_build_libsubdir
786 with_system_zlib
787 enable_as_accelerator_for
788 enable_offload_targets
789 enable_offload_defaulted
790 enable_gold
791 enable_ld
792 enable_compressed_debug_sections
793 enable_libquadmath
794 enable_libquadmath_support
795 enable_libada
796 enable_libssp
797 enable_libstdcxx
798 enable_liboffloadmic
799 enable_bootstrap
800 with_mpc
801 with_mpc_include
802 with_mpc_lib
803 with_mpfr_dir
804 with_mpfr
805 with_mpfr_include
806 with_mpfr_lib
807 with_gmp_dir
808 with_gmp
809 with_gmp_include
810 with_gmp_lib
811 with_stage1_libs
812 with_static_standard_libraries
813 with_stage1_ldflags
814 with_boot_libs
815 with_boot_ldflags
816 with_isl
817 with_isl_include
818 with_isl_lib
819 enable_isl_version_check
820 enable_lto
821 enable_linker_plugin_configure_flags
822 enable_linker_plugin_flags
823 enable_host_shared
824 enable_stage1_languages
825 enable_objc_gc
826 with_target_bdw_gc
827 with_target_bdw_gc_include
828 with_target_bdw_gc_lib
829 with_gcc_major_version_only
830 with_build_sysroot
831 with_debug_prefix_map
832 with_build_config
833 enable_vtable_verify
834 enable_serial_configure
835 with_build_time_tools
836 enable_maintainer_mode
837 enable_stage1_checking
838 enable_werror
839 '
840       ac_precious_vars='build_alias
841 host_alias
842 target_alias
843 CC
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
848 CXX
849 CXXFLAGS
850 CCC
851 build_configargs
852 host_configargs
853 target_configargs
854 AR
855 AS
856 DLLTOOL
857 LD
858 LIPO
859 NM
860 RANLIB
861 STRIP
862 WINDRES
863 WINDMC
864 OBJCOPY
865 OBJDUMP
866 OTOOL
867 READELF
868 CC_FOR_TARGET
869 CXX_FOR_TARGET
870 GCC_FOR_TARGET
871 GFORTRAN_FOR_TARGET
872 GOC_FOR_TARGET
873 GDC_FOR_TARGET
874 AR_FOR_TARGET
875 AS_FOR_TARGET
876 DLLTOOL_FOR_TARGET
877 LD_FOR_TARGET
878 LIPO_FOR_TARGET
879 NM_FOR_TARGET
880 OBJCOPY_FOR_TARGET
881 OBJDUMP_FOR_TARGET
882 OTOOL_FOR_TARGET
883 RANLIB_FOR_TARGET
884 READELF_FOR_TARGET
885 STRIP_FOR_TARGET
886 WINDRES_FOR_TARGET
887 WINDMC_FOR_TARGET'
888
889
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 ac_unrecognized_opts=
894 ac_unrecognized_sep=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
911
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
937
938 ac_prev=
939 ac_dashdash=
940 for ac_option
941 do
942   # If the previous option needs an argument, assign it.
943   if test -n "$ac_prev"; then
944     eval $ac_prev=\$ac_option
945     ac_prev=
946     continue
947   fi
948
949   case $ac_option in
950   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951   *=)   ac_optarg= ;;
952   *)    ac_optarg=yes ;;
953   esac
954
955   # Accept the important Cygnus configure options, so we can diagnose typos.
956
957   case $ac_dashdash$ac_option in
958   --)
959     ac_dashdash=yes ;;
960
961   -bindir | --bindir | --bindi | --bind | --bin | --bi)
962     ac_prev=bindir ;;
963   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964     bindir=$ac_optarg ;;
965
966   -build | --build | --buil | --bui | --bu)
967     ac_prev=build_alias ;;
968   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969     build_alias=$ac_optarg ;;
970
971   -cache-file | --cache-file | --cache-fil | --cache-fi \
972   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973     ac_prev=cache_file ;;
974   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976     cache_file=$ac_optarg ;;
977
978   --config-cache | -C)
979     cache_file=config.cache ;;
980
981   -datadir | --datadir | --datadi | --datad)
982     ac_prev=datadir ;;
983   -datadir=* | --datadir=* | --datadi=* | --datad=*)
984     datadir=$ac_optarg ;;
985
986   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987   | --dataroo | --dataro | --datar)
988     ac_prev=datarootdir ;;
989   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991     datarootdir=$ac_optarg ;;
992
993   -disable-* | --disable-*)
994     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995     # Reject names that are not valid shell variable names.
996     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997       as_fn_error $? "invalid feature name: $ac_useropt"
998     ac_useropt_orig=$ac_useropt
999     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000     case $ac_user_opts in
1001       *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005          ac_unrecognized_sep=', ';;
1006     esac
1007     eval enable_$ac_useropt=no ;;
1008
1009   -docdir | --docdir | --docdi | --doc | --do)
1010     ac_prev=docdir ;;
1011   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012     docdir=$ac_optarg ;;
1013
1014   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015     ac_prev=dvidir ;;
1016   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017     dvidir=$ac_optarg ;;
1018
1019   -enable-* | --enable-*)
1020     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021     # Reject names that are not valid shell variable names.
1022     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023       as_fn_error $? "invalid feature name: $ac_useropt"
1024     ac_useropt_orig=$ac_useropt
1025     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026     case $ac_user_opts in
1027       *"
1028 "enable_$ac_useropt"
1029 "*) ;;
1030       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031          ac_unrecognized_sep=', ';;
1032     esac
1033     eval enable_$ac_useropt=\$ac_optarg ;;
1034
1035   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037   | --exec | --exe | --ex)
1038     ac_prev=exec_prefix ;;
1039   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041   | --exec=* | --exe=* | --ex=*)
1042     exec_prefix=$ac_optarg ;;
1043
1044   -gas | --gas | --ga | --g)
1045     # Obsolete; use --with-gas.
1046     with_gas=yes ;;
1047
1048   -help | --help | --hel | --he | -h)
1049     ac_init_help=long ;;
1050   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051     ac_init_help=recursive ;;
1052   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053     ac_init_help=short ;;
1054
1055   -host | --host | --hos | --ho)
1056     ac_prev=host_alias ;;
1057   -host=* | --host=* | --hos=* | --ho=*)
1058     host_alias=$ac_optarg ;;
1059
1060   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061     ac_prev=htmldir ;;
1062   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063   | --ht=*)
1064     htmldir=$ac_optarg ;;
1065
1066   -includedir | --includedir | --includedi | --included | --include \
1067   | --includ | --inclu | --incl | --inc)
1068     ac_prev=includedir ;;
1069   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070   | --includ=* | --inclu=* | --incl=* | --inc=*)
1071     includedir=$ac_optarg ;;
1072
1073   -infodir | --infodir | --infodi | --infod | --info | --inf)
1074     ac_prev=infodir ;;
1075   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076     infodir=$ac_optarg ;;
1077
1078   -libdir | --libdir | --libdi | --libd)
1079     ac_prev=libdir ;;
1080   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081     libdir=$ac_optarg ;;
1082
1083   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084   | --libexe | --libex | --libe)
1085     ac_prev=libexecdir ;;
1086   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087   | --libexe=* | --libex=* | --libe=*)
1088     libexecdir=$ac_optarg ;;
1089
1090   -localedir | --localedir | --localedi | --localed | --locale)
1091     ac_prev=localedir ;;
1092   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093     localedir=$ac_optarg ;;
1094
1095   -localstatedir | --localstatedir | --localstatedi | --localstated \
1096   | --localstate | --localstat | --localsta | --localst | --locals)
1097     ac_prev=localstatedir ;;
1098   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100     localstatedir=$ac_optarg ;;
1101
1102   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103     ac_prev=mandir ;;
1104   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105     mandir=$ac_optarg ;;
1106
1107   -nfp | --nfp | --nf)
1108     # Obsolete; use --without-fp.
1109     with_fp=no ;;
1110
1111   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112   | --no-cr | --no-c | -n)
1113     no_create=yes ;;
1114
1115   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117     no_recursion=yes ;;
1118
1119   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121   | --oldin | --oldi | --old | --ol | --o)
1122     ac_prev=oldincludedir ;;
1123   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126     oldincludedir=$ac_optarg ;;
1127
1128   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129     ac_prev=prefix ;;
1130   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131     prefix=$ac_optarg ;;
1132
1133   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134   | --program-pre | --program-pr | --program-p)
1135     ac_prev=program_prefix ;;
1136   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138     program_prefix=$ac_optarg ;;
1139
1140   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141   | --program-suf | --program-su | --program-s)
1142     ac_prev=program_suffix ;;
1143   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145     program_suffix=$ac_optarg ;;
1146
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     ac_prev=program_transform_name ;;
1155   -program-transform-name=* | --program-transform-name=* \
1156   | --program-transform-nam=* | --program-transform-na=* \
1157   | --program-transform-n=* | --program-transform-=* \
1158   | --program-transform=* | --program-transfor=* \
1159   | --program-transfo=* | --program-transf=* \
1160   | --program-trans=* | --program-tran=* \
1161   | --progr-tra=* | --program-tr=* | --program-t=*)
1162     program_transform_name=$ac_optarg ;;
1163
1164   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165     ac_prev=pdfdir ;;
1166   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167     pdfdir=$ac_optarg ;;
1168
1169   -psdir | --psdir | --psdi | --psd | --ps)
1170     ac_prev=psdir ;;
1171   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172     psdir=$ac_optarg ;;
1173
1174   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175   | -silent | --silent | --silen | --sile | --sil)
1176     silent=yes ;;
1177
1178   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179     ac_prev=sbindir ;;
1180   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181   | --sbi=* | --sb=*)
1182     sbindir=$ac_optarg ;;
1183
1184   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186   | --sharedst | --shareds | --shared | --share | --shar \
1187   | --sha | --sh)
1188     ac_prev=sharedstatedir ;;
1189   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192   | --sha=* | --sh=*)
1193     sharedstatedir=$ac_optarg ;;
1194
1195   -site | --site | --sit)
1196     ac_prev=site ;;
1197   -site=* | --site=* | --sit=*)
1198     site=$ac_optarg ;;
1199
1200   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201     ac_prev=srcdir ;;
1202   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203     srcdir=$ac_optarg ;;
1204
1205   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206   | --syscon | --sysco | --sysc | --sys | --sy)
1207     ac_prev=sysconfdir ;;
1208   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210     sysconfdir=$ac_optarg ;;
1211
1212   -target | --target | --targe | --targ | --tar | --ta | --t)
1213     ac_prev=target_alias ;;
1214   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215     target_alias=$ac_optarg ;;
1216
1217   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218     verbose=yes ;;
1219
1220   -version | --version | --versio | --versi | --vers | -V)
1221     ac_init_version=: ;;
1222
1223   -with-* | --with-*)
1224     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225     # Reject names that are not valid shell variable names.
1226     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227       as_fn_error $? "invalid package name: $ac_useropt"
1228     ac_useropt_orig=$ac_useropt
1229     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230     case $ac_user_opts in
1231       *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235          ac_unrecognized_sep=', ';;
1236     esac
1237     eval with_$ac_useropt=\$ac_optarg ;;
1238
1239   -without-* | --without-*)
1240     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241     # Reject names that are not valid shell variable names.
1242     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243       as_fn_error $? "invalid package name: $ac_useropt"
1244     ac_useropt_orig=$ac_useropt
1245     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246     case $ac_user_opts in
1247       *"
1248 "with_$ac_useropt"
1249 "*) ;;
1250       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251          ac_unrecognized_sep=', ';;
1252     esac
1253     eval with_$ac_useropt=no ;;
1254
1255   --x)
1256     # Obsolete; use --with-x.
1257     with_x=yes ;;
1258
1259   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260   | --x-incl | --x-inc | --x-in | --x-i)
1261     ac_prev=x_includes ;;
1262   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264     x_includes=$ac_optarg ;;
1265
1266   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268     ac_prev=x_libraries ;;
1269   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271     x_libraries=$ac_optarg ;;
1272
1273   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274 Try \`$0 --help' for more information"
1275     ;;
1276
1277   *=*)
1278     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279     # Reject names that are not valid shell variable names.
1280     case $ac_envvar in #(
1281       '' | [0-9]* | *[!_$as_cr_alnum]* )
1282       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1283     esac
1284     eval $ac_envvar=\$ac_optarg
1285     export $ac_envvar ;;
1286
1287   *)
1288     # FIXME: should be removed in autoconf 3.0.
1289     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1293     ;;
1294
1295   esac
1296 done
1297
1298 if test -n "$ac_prev"; then
1299   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300   as_fn_error $? "missing argument to $ac_option"
1301 fi
1302
1303 if test -n "$ac_unrecognized_opts"; then
1304   case $enable_option_checking in
1305     no) ;;
1306     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1307     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308   esac
1309 fi
1310
1311 # Check all directory arguments for consistency.
1312 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313                 datadir sysconfdir sharedstatedir localstatedir includedir \
1314                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315                 libdir localedir mandir
1316 do
1317   eval ac_val=\$$ac_var
1318   # Remove trailing slashes.
1319   case $ac_val in
1320     */ )
1321       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322       eval $ac_var=\$ac_val;;
1323   esac
1324   # Be sure to have absolute directory names.
1325   case $ac_val in
1326     [\\/$]* | ?:[\\/]* )  continue;;
1327     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328   esac
1329   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1330 done
1331
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1338
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341   if test "x$build_alias" = x; then
1342     cross_compiling=maybe
1343   elif test "x$build_alias" != "x$host_alias"; then
1344     cross_compiling=yes
1345   fi
1346 fi
1347
1348 ac_tool_prefix=
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351 test "$silent" = yes && exec 6>/dev/null
1352
1353
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357   as_fn_error $? "working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359   as_fn_error $? "pwd does not report name of working directory"
1360
1361
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364   ac_srcdir_defaulted=yes
1365   # Try the directory containing this script, then the parent directory.
1366   ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368          X"$as_myself" : 'X\(//\)[^/]' \| \
1369          X"$as_myself" : 'X\(//\)$' \| \
1370          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\/\)[^/].*/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\/\)$/{
1381             s//\1/
1382             q
1383           }
1384           /^X\(\/\).*/{
1385             s//\1/
1386             q
1387           }
1388           s/.*/./; q'`
1389   srcdir=$ac_confdir
1390   if test ! -r "$srcdir/$ac_unique_file"; then
1391     srcdir=..
1392   fi
1393 else
1394   ac_srcdir_defaulted=no
1395 fi
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399 fi
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403         pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406   srcdir=.
1407 fi
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 case $srcdir in
1415   *" "*)
1416     as_fn_error $? "path to source, $srcdir, contains spaces"
1417     ;;
1418 esac
1419 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1420
1421 for ac_var in $ac_precious_vars; do
1422   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423   eval ac_env_${ac_var}_value=\$${ac_var}
1424   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1427
1428 #
1429 # Report the --help message.
1430 #
1431 if test "$ac_init_help" = "long"; then
1432   # Omit some internal or obsolete options to make the list less imposing.
1433   # This message is too long to be a string in the A/UX 3.1 sh.
1434   cat <<_ACEOF
1435 \`configure' configures this package to adapt to many kinds of systems.
1436
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE.  See below for descriptions of some of the useful variables.
1441
1442 Defaults for the options are specified in brackets.
1443
1444 Configuration:
1445   -h, --help              display this help and exit
1446       --help=short        display options specific to this package
1447       --help=recursive    display the short help of all the included packages
1448   -V, --version           display version information and exit
1449   -q, --quiet, --silent   do not print \`checking ...' messages
1450       --cache-file=FILE   cache test results in FILE [disabled]
1451   -C, --config-cache      alias for \`--cache-file=config.cache'
1452   -n, --no-create         do not create output files
1453       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1454
1455 Installation directories:
1456   --prefix=PREFIX         install architecture-independent files in PREFIX
1457                           [$ac_default_prefix]
1458   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1459                           [PREFIX]
1460
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1465
1466 For better control, use the options below.
1467
1468 Fine tuning of the installation directories:
1469   --bindir=DIR            user executables [EPREFIX/bin]
1470   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1471   --libexecdir=DIR        program executables [EPREFIX/libexec]
1472   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1473   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1474   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1475   --libdir=DIR            object code libraries [EPREFIX/lib]
1476   --includedir=DIR        C header files [PREFIX/include]
1477   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1478   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1479   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1480   --infodir=DIR           info documentation [DATAROOTDIR/info]
1481   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1482   --mandir=DIR            man documentation [DATAROOTDIR/man]
1483   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1484   --htmldir=DIR           html documentation [DOCDIR]
1485   --dvidir=DIR            dvi documentation [DOCDIR]
1486   --pdfdir=DIR            pdf documentation [DOCDIR]
1487   --psdir=DIR             ps documentation [DOCDIR]
1488 _ACEOF
1489
1490   cat <<\_ACEOF
1491
1492 Program names:
1493   --program-prefix=PREFIX            prepend PREFIX to installed program names
1494   --program-suffix=SUFFIX            append SUFFIX to installed program names
1495   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1496
1497 System types:
1498   --build=BUILD     configure for building on BUILD [guessed]
1499   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1500   --target=TARGET   configure for building compilers for TARGET [HOST]
1501 _ACEOF
1502 fi
1503
1504 if test -n "$ac_init_help"; then
1505
1506   cat <<\_ACEOF
1507
1508 Optional Features:
1509   --disable-option-checking  ignore unrecognized --enable/--with options
1510   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1511   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1512   --enable-as-accelerator-for=ARG
1513                           build as offload target compiler. Specify offload
1514                           host triple by ARG
1515   --enable-offload-targets=LIST
1516                           enable offloading to devices from comma-separated
1517                           LIST of TARGET[=DIR]. Use optional path to find
1518                           offload target compiler during the build
1519   --enable-offload-defaulted
1520                 If enabled, configured but not installed offload compilers and
1521                 libgomp plugins are silently ignored.  Useful for distribution
1522                 compilers where those are in separate optional packages.
1523
1524   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1525   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1526   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1527                           Enable compressed debug sections for gas, gold or ld
1528                           by default
1529   --disable-libquadmath   do not build libquadmath directory
1530   --disable-libquadmath-support
1531                           disable libquadmath support for Fortran
1532   --enable-libada         build libada directory
1533   --enable-libssp         build libssp directory
1534   --disable-libstdcxx     do not build libstdc++-v3 directory
1535   --enable-liboffloadmic=ARG
1536                           build liboffloadmic [ARG={no,host,target}]
1537   --enable-bootstrap      enable bootstrapping [yes if native build]
1538   --disable-isl-version-check
1539                           disable check for isl version
1540   --enable-lto            enable link time optimization support
1541   --enable-linker-plugin-configure-flags=FLAGS
1542                           additional flags for configuring linker plugins
1543                           [none]
1544   --enable-linker-plugin-flags=FLAGS
1545                           additional flags for configuring and building linker
1546                           plugins [none]
1547   --enable-host-shared    build host code as shared libraries
1548   --enable-stage1-languages[=all]
1549                           choose additional languages to build during stage1.
1550                           Mostly useful for compiler development
1551   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1552                           Objective-C runtime
1553   --enable-vtable-verify  Enable vtable verification feature
1554   --enable-serial-[{host,target,build}-]configure
1555                           force sequential configuration of sub-packages for
1556                           the host, target or build machine, or all
1557                           sub-packages
1558   --enable-maintainer-mode
1559                           enable make rules and dependencies not useful (and
1560                           sometimes confusing) to the casual installer
1561   --enable-stage1-checking[=all]
1562                           choose additional checking for stage1 of the
1563                           compiler
1564   --enable-werror         enable -Werror in bootstrap stage2 and later
1565
1566 Optional Packages:
1567   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1568   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1569   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1570   --with-system-zlib      use installed libz
1571   --with-mpc=PATH         specify prefix directory for installed MPC package.
1572                           Equivalent to --with-mpc-include=PATH/include plus
1573                           --with-mpc-lib=PATH/lib
1574   --with-mpc-include=PATH specify directory for installed MPC include files
1575   --with-mpc-lib=PATH     specify directory for the installed MPC library
1576   --with-mpfr-dir=PATH    this option has been REMOVED
1577   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1578                           Equivalent to --with-mpfr-include=PATH/include plus
1579                           --with-mpfr-lib=PATH/lib
1580   --with-mpfr-include=PATH
1581                           specify directory for installed MPFR include files
1582   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1583   --with-gmp-dir=PATH     this option has been REMOVED
1584   --with-gmp=PATH         specify prefix directory for the installed GMP
1585                           package. Equivalent to
1586                           --with-gmp-include=PATH/include plus
1587                           --with-gmp-lib=PATH/lib
1588   --with-gmp-include=PATH specify directory for installed GMP include files
1589   --with-gmp-lib=PATH     specify directory for the installed GMP library
1590   --with-stage1-libs=LIBS libraries for stage1
1591   --with-static-standard-libraries
1592                           use -static-libstdc++ and -static-libgcc
1593                           (default=auto)
1594   --with-stage1-ldflags=FLAGS
1595                           linker flags for stage1
1596   --with-boot-libs=LIBS   libraries for stage2 and later
1597   --with-boot-ldflags=FLAGS
1598                           linker flags for stage2 and later
1599   --with-isl=PATH         Specify prefix directory for the installed isl
1600                           package. Equivalent to
1601                           --with-isl-include=PATH/include plus
1602                           --with-isl-lib=PATH/lib
1603   --with-isl-include=PATH Specify directory for installed isl include files
1604   --with-isl-lib=PATH     Specify the directory for the installed isl library
1605   --with-target-bdw-gc=PATHLIST
1606                           specify prefix directory for installed bdw-gc
1607                           package. Equivalent to
1608                           --with-target-bdw-gc-include=PATH/include plus
1609                           --with-target-bdw-gc-lib=PATH/lib
1610   --with-target-bdw-gc-include=PATHLIST
1611                           specify directories for installed bdw-gc include
1612                           files
1613   --with-target-bdw-gc-lib=PATHLIST
1614                           specify directories for installed bdw-gc library
1615   --with-gcc-major-version-only
1616                           use only GCC major number in filesystem paths
1617   --with-build-sysroot=SYSROOT
1618                           use sysroot as the system root during the build
1619   --with-debug-prefix-map='A=B C=D ...'
1620                           map A to B, C to D ... in debug information
1621   --with-build-config='NAME NAME2...'
1622                           use config/NAME.mk build configuration
1623   --with-build-time-tools=PATH
1624                           use given path to find target tools during the build
1625
1626 Some influential environment variables:
1627   CC          C compiler command
1628   CFLAGS      C compiler flags
1629   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1630               nonstandard directory <lib dir>
1631   LIBS        libraries to pass to the linker, e.g. -l<library>
1632   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633               you have headers in a nonstandard directory <include dir>
1634   CXX         C++ compiler command
1635   CXXFLAGS    C++ compiler flags
1636   build_configargs
1637               additional configure arguments for build directories
1638   host_configargs
1639               additional configure arguments for host directories
1640   target_configargs
1641               additional configure arguments for target directories
1642   AR          AR for the host
1643   AS          AS for the host
1644   DLLTOOL     DLLTOOL for the host
1645   LD          LD for the host
1646   LIPO        LIPO for the host
1647   NM          NM for the host
1648   RANLIB      RANLIB for the host
1649   STRIP       STRIP for the host
1650   WINDRES     WINDRES for the host
1651   WINDMC      WINDMC for the host
1652   OBJCOPY     OBJCOPY for the host
1653   OBJDUMP     OBJDUMP for the host
1654   OTOOL       OTOOL for the host
1655   READELF     READELF for the host
1656   CC_FOR_TARGET
1657               CC for the target
1658   CXX_FOR_TARGET
1659               CXX for the target
1660   GCC_FOR_TARGET
1661               GCC for the target
1662   GFORTRAN_FOR_TARGET
1663               GFORTRAN for the target
1664   GOC_FOR_TARGET
1665               GOC for the target
1666   GDC_FOR_TARGET
1667               GDC for the target
1668   AR_FOR_TARGET
1669               AR for the target
1670   AS_FOR_TARGET
1671               AS for the target
1672   DLLTOOL_FOR_TARGET
1673               DLLTOOL for the target
1674   LD_FOR_TARGET
1675               LD for the target
1676   LIPO_FOR_TARGET
1677               LIPO for the target
1678   NM_FOR_TARGET
1679               NM for the target
1680   OBJCOPY_FOR_TARGET
1681               OBJCOPY for the target
1682   OBJDUMP_FOR_TARGET
1683               OBJDUMP for the target
1684   OTOOL_FOR_TARGET
1685               OTOOL for the target
1686   RANLIB_FOR_TARGET
1687               RANLIB for the target
1688   READELF_FOR_TARGET
1689               READELF for the target
1690   STRIP_FOR_TARGET
1691               STRIP for the target
1692   WINDRES_FOR_TARGET
1693               WINDRES for the target
1694   WINDMC_FOR_TARGET
1695               WINDMC for the target
1696
1697 Use these variables to override the choices made by `configure' or to help
1698 it to find libraries and programs with nonstandard names/locations.
1699
1700 Report bugs to the package provider.
1701 _ACEOF
1702 ac_status=$?
1703 fi
1704
1705 if test "$ac_init_help" = "recursive"; then
1706   # If there are subdirs, report their specific --help.
1707   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1708     test -d "$ac_dir" ||
1709       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710       continue
1711     ac_builddir=.
1712
1713 case "$ac_dir" in
1714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *)
1716   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1717   # A ".." for each directory in $ac_dir_suffix.
1718   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1719   case $ac_top_builddir_sub in
1720   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1722   esac ;;
1723 esac
1724 ac_abs_top_builddir=$ac_pwd
1725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1726 # for backward compatibility:
1727 ac_top_builddir=$ac_top_build_prefix
1728
1729 case $srcdir in
1730   .)  # We are building in place.
1731     ac_srcdir=.
1732     ac_top_srcdir=$ac_top_builddir_sub
1733     ac_abs_top_srcdir=$ac_pwd ;;
1734   [\\/]* | ?:[\\/]* )  # Absolute name.
1735     ac_srcdir=$srcdir$ac_dir_suffix;
1736     ac_top_srcdir=$srcdir
1737     ac_abs_top_srcdir=$srcdir ;;
1738   *) # Relative name.
1739     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740     ac_top_srcdir=$ac_top_build_prefix$srcdir
1741     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1742 esac
1743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1744
1745     cd "$ac_dir" || { ac_status=$?; continue; }
1746     # Check for guested configure.
1747     if test -f "$ac_srcdir/configure.gnu"; then
1748       echo &&
1749       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750     elif test -f "$ac_srcdir/configure"; then
1751       echo &&
1752       $SHELL "$ac_srcdir/configure" --help=recursive
1753     else
1754       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1755     fi || ac_status=$?
1756     cd "$ac_pwd" || { ac_status=$?; break; }
1757   done
1758 fi
1759
1760 test -n "$ac_init_help" && exit $ac_status
1761 if $ac_init_version; then
1762   cat <<\_ACEOF
1763 configure
1764 generated by GNU Autoconf 2.69
1765
1766 Copyright (C) 2012 Free Software Foundation, Inc.
1767 This configure script is free software; the Free Software Foundation
1768 gives unlimited permission to copy, distribute and modify it.
1769 _ACEOF
1770   exit
1771 fi
1772
1773 ## ------------------------ ##
1774 ## Autoconf initialization. ##
1775 ## ------------------------ ##
1776
1777 # ac_fn_c_try_compile LINENO
1778 # --------------------------
1779 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_compile ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   rm -f conftest.$ac_objext
1784   if { { ac_try="$ac_compile"
1785 case "(($ac_try" in
1786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787   *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791   (eval "$ac_compile") 2>conftest.err
1792   ac_status=$?
1793   if test -s conftest.err; then
1794     grep -v '^ *+' conftest.err >conftest.er1
1795     cat conftest.er1 >&5
1796     mv -f conftest.er1 conftest.err
1797   fi
1798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799   test $ac_status = 0; } && {
1800          test -z "$ac_c_werror_flag" ||
1801          test ! -s conftest.err
1802        } && test -s conftest.$ac_objext; then :
1803   ac_retval=0
1804 else
1805   $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808         ac_retval=1
1809 fi
1810   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811   as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_compile
1814
1815 # ac_fn_cxx_try_compile LINENO
1816 # ----------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_cxx_try_compile ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   rm -f conftest.$ac_objext
1822   if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825   *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829   (eval "$ac_compile") 2>conftest.err
1830   ac_status=$?
1831   if test -s conftest.err; then
1832     grep -v '^ *+' conftest.err >conftest.er1
1833     cat conftest.er1 >&5
1834     mv -f conftest.er1 conftest.err
1835   fi
1836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837   test $ac_status = 0; } && {
1838          test -z "$ac_cxx_werror_flag" ||
1839          test ! -s conftest.err
1840        } && test -s conftest.$ac_objext; then :
1841   ac_retval=0
1842 else
1843   $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1845
1846         ac_retval=1
1847 fi
1848   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849   as_fn_set_status $ac_retval
1850
1851 } # ac_fn_cxx_try_compile
1852
1853 # ac_fn_cxx_try_link LINENO
1854 # -------------------------
1855 # Try to link conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_link ()
1857 {
1858   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859   rm -f conftest.$ac_objext conftest$ac_exeext
1860   if { { ac_try="$ac_link"
1861 case "(($ac_try" in
1862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863   *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867   (eval "$ac_link") 2>conftest.err
1868   ac_status=$?
1869   if test -s conftest.err; then
1870     grep -v '^ *+' conftest.err >conftest.er1
1871     cat conftest.er1 >&5
1872     mv -f conftest.er1 conftest.err
1873   fi
1874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875   test $ac_status = 0; } && {
1876          test -z "$ac_cxx_werror_flag" ||
1877          test ! -s conftest.err
1878        } && test -s conftest$ac_exeext && {
1879          test "$cross_compiling" = yes ||
1880          test -x conftest$ac_exeext
1881        }; then :
1882   ac_retval=0
1883 else
1884   $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887         ac_retval=1
1888 fi
1889   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891   # interfere with the next link command; also delete a directory that is
1892   # left behind by Apple's compiler.  We do this before executing the actions.
1893   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895   as_fn_set_status $ac_retval
1896
1897 } # ac_fn_cxx_try_link
1898
1899 # ac_fn_c_try_link LINENO
1900 # -----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded.
1902 ac_fn_c_try_link ()
1903 {
1904   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905   rm -f conftest.$ac_objext conftest$ac_exeext
1906   if { { ac_try="$ac_link"
1907 case "(($ac_try" in
1908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909   *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913   (eval "$ac_link") 2>conftest.err
1914   ac_status=$?
1915   if test -s conftest.err; then
1916     grep -v '^ *+' conftest.err >conftest.er1
1917     cat conftest.er1 >&5
1918     mv -f conftest.er1 conftest.err
1919   fi
1920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921   test $ac_status = 0; } && {
1922          test -z "$ac_c_werror_flag" ||
1923          test ! -s conftest.err
1924        } && test -s conftest$ac_exeext && {
1925          test "$cross_compiling" = yes ||
1926          test -x conftest$ac_exeext
1927        }; then :
1928   ac_retval=0
1929 else
1930   $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933         ac_retval=1
1934 fi
1935   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937   # interfere with the next link command; also delete a directory that is
1938   # left behind by Apple's compiler.  We do this before executing the actions.
1939   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941   as_fn_set_status $ac_retval
1942
1943 } # ac_fn_c_try_link
1944 cat >config.log <<_ACEOF
1945 This file contains any messages produced by compilers while
1946 running configure, to aid debugging if configure makes a mistake.
1947
1948 It was created by $as_me, which was
1949 generated by GNU Autoconf 2.69.  Invocation command line was
1950
1951   $ $0 $@
1952
1953 _ACEOF
1954 exec 5>>config.log
1955 {
1956 cat <<_ASUNAME
1957 ## --------- ##
1958 ## Platform. ##
1959 ## --------- ##
1960
1961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1966
1967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1969
1970 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1971 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1973 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1974 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1975 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1976 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1977
1978 _ASUNAME
1979
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983   IFS=$as_save_IFS
1984   test -z "$as_dir" && as_dir=.
1985     $as_echo "PATH: $as_dir"
1986   done
1987 IFS=$as_save_IFS
1988
1989 } >&5
1990
1991 cat >&5 <<_ACEOF
1992
1993
1994 ## ----------- ##
1995 ## Core tests. ##
1996 ## ----------- ##
1997
1998 _ACEOF
1999
2000
2001 # Keep a trace of the command line.
2002 # Strip out --no-create and --no-recursion so they do not pile up.
2003 # Strip out --silent because we don't want to record it for future runs.
2004 # Also quote any args containing shell meta-characters.
2005 # Make two passes to allow for proper duplicate-argument suppression.
2006 ac_configure_args=
2007 ac_configure_args0=
2008 ac_configure_args1=
2009 ac_must_keep_next=false
2010 for ac_pass in 1 2
2011 do
2012   for ac_arg
2013   do
2014     case $ac_arg in
2015     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2016     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2017     | -silent | --silent | --silen | --sile | --sil)
2018       continue ;;
2019     *\'*)
2020       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2021     esac
2022     case $ac_pass in
2023     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2024     2)
2025       as_fn_append ac_configure_args1 " '$ac_arg'"
2026       if test $ac_must_keep_next = true; then
2027         ac_must_keep_next=false # Got value, back to normal.
2028       else
2029         case $ac_arg in
2030           *=* | --config-cache | -C | -disable-* | --disable-* \
2031           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2032           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2033           | -with-* | --with-* | -without-* | --without-* | --x)
2034             case "$ac_configure_args0 " in
2035               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2036             esac
2037             ;;
2038           -* ) ac_must_keep_next=true ;;
2039         esac
2040       fi
2041       as_fn_append ac_configure_args " '$ac_arg'"
2042       ;;
2043     esac
2044   done
2045 done
2046 { ac_configure_args0=; unset ac_configure_args0;}
2047 { ac_configure_args1=; unset ac_configure_args1;}
2048
2049 # When interrupted or exit'd, cleanup temporary files, and complete
2050 # config.log.  We remove comments because anyway the quotes in there
2051 # would cause problems or look ugly.
2052 # WARNING: Use '\'' to represent an apostrophe within the trap.
2053 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2054 trap 'exit_status=$?
2055   # Save into config.log some information that might help in debugging.
2056   {
2057     echo
2058
2059     $as_echo "## ---------------- ##
2060 ## Cache variables. ##
2061 ## ---------------- ##"
2062     echo
2063     # The following way of writing the cache mishandles newlines in values,
2064 (
2065   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066     eval ac_val=\$$ac_var
2067     case $ac_val in #(
2068     *${as_nl}*)
2069       case $ac_var in #(
2070       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072       esac
2073       case $ac_var in #(
2074       _ | IFS | as_nl) ;; #(
2075       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076       *) { eval $ac_var=; unset $ac_var;} ;;
2077       esac ;;
2078     esac
2079   done
2080   (set) 2>&1 |
2081     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082     *${as_nl}ac_space=\ *)
2083       sed -n \
2084         "s/'\''/'\''\\\\'\'''\''/g;
2085           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086       ;; #(
2087     *)
2088       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2089       ;;
2090     esac |
2091     sort
2092 )
2093     echo
2094
2095     $as_echo "## ----------------- ##
2096 ## Output variables. ##
2097 ## ----------------- ##"
2098     echo
2099     for ac_var in $ac_subst_vars
2100     do
2101       eval ac_val=\$$ac_var
2102       case $ac_val in
2103       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104       esac
2105       $as_echo "$ac_var='\''$ac_val'\''"
2106     done | sort
2107     echo
2108
2109     if test -n "$ac_subst_files"; then
2110       $as_echo "## ------------------- ##
2111 ## File substitutions. ##
2112 ## ------------------- ##"
2113       echo
2114       for ac_var in $ac_subst_files
2115       do
2116         eval ac_val=\$$ac_var
2117         case $ac_val in
2118         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119         esac
2120         $as_echo "$ac_var='\''$ac_val'\''"
2121       done | sort
2122       echo
2123     fi
2124
2125     if test -s confdefs.h; then
2126       $as_echo "## ----------- ##
2127 ## confdefs.h. ##
2128 ## ----------- ##"
2129       echo
2130       cat confdefs.h
2131       echo
2132     fi
2133     test "$ac_signal" != 0 &&
2134       $as_echo "$as_me: caught signal $ac_signal"
2135     $as_echo "$as_me: exit $exit_status"
2136   } >&5
2137   rm -f core *.core core.conftest.* &&
2138     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2139     exit $exit_status
2140 ' 0
2141 for ac_signal in 1 2 13 15; do
2142   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2143 done
2144 ac_signal=0
2145
2146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2147 rm -f -r conftest* confdefs.h
2148
2149 $as_echo "/* confdefs.h */" > confdefs.h
2150
2151 # Predefined preprocessor variables.
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_NAME "$PACKAGE_NAME"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2163 _ACEOF
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_STRING "$PACKAGE_STRING"
2167 _ACEOF
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_URL "$PACKAGE_URL"
2175 _ACEOF
2176
2177
2178 # Let the site file select an alternate cache file if it wants to.
2179 # Prefer an explicitly selected file to automatically selected ones.
2180 ac_site_file1=NONE
2181 ac_site_file2=NONE
2182 if test -n "$CONFIG_SITE"; then
2183   # We do not want a PATH search for config.site.
2184   case $CONFIG_SITE in #((
2185     -*)  ac_site_file1=./$CONFIG_SITE;;
2186     */*) ac_site_file1=$CONFIG_SITE;;
2187     *)   ac_site_file1=./$CONFIG_SITE;;
2188   esac
2189 elif test "x$prefix" != xNONE; then
2190   ac_site_file1=$prefix/share/config.site
2191   ac_site_file2=$prefix/etc/config.site
2192 else
2193   ac_site_file1=$ac_default_prefix/share/config.site
2194   ac_site_file2=$ac_default_prefix/etc/config.site
2195 fi
2196 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2197 do
2198   test "x$ac_site_file" = xNONE && continue
2199   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2200     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2201 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2202     sed 's/^/| /' "$ac_site_file" >&5
2203     . "$ac_site_file" \
2204       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 as_fn_error $? "failed to load site script $ac_site_file
2207 See \`config.log' for more details" "$LINENO" 5; }
2208   fi
2209 done
2210
2211 if test -r "$cache_file"; then
2212   # Some versions of bash will fail to source /dev/null (special files
2213   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2214   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2215     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2216 $as_echo "$as_me: loading cache $cache_file" >&6;}
2217     case $cache_file in
2218       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2219       *)                      . "./$cache_file";;
2220     esac
2221   fi
2222 else
2223   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2224 $as_echo "$as_me: creating cache $cache_file" >&6;}
2225   >$cache_file
2226 fi
2227
2228 # Check that the precious variables saved in the cache have kept the same
2229 # value.
2230 ac_cache_corrupted=false
2231 for ac_var in $ac_precious_vars; do
2232   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2233   eval ac_new_set=\$ac_env_${ac_var}_set
2234   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2235   eval ac_new_val=\$ac_env_${ac_var}_value
2236   case $ac_old_set,$ac_new_set in
2237     set,)
2238       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2239 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2240       ac_cache_corrupted=: ;;
2241     ,set)
2242       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2243 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2244       ac_cache_corrupted=: ;;
2245     ,);;
2246     *)
2247       if test "x$ac_old_val" != "x$ac_new_val"; then
2248         # differences in whitespace do not lead to failure.
2249         ac_old_val_w=`echo x $ac_old_val`
2250         ac_new_val_w=`echo x $ac_new_val`
2251         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2252           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2253 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2254           ac_cache_corrupted=:
2255         else
2256           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2257 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2258           eval $ac_var=\$ac_old_val
2259         fi
2260         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2261 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2262         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2263 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2264       fi;;
2265   esac
2266   # Pass precious variables to config.status.
2267   if test "$ac_new_set" = set; then
2268     case $ac_new_val in
2269     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2270     *) ac_arg=$ac_var=$ac_new_val ;;
2271     esac
2272     case " $ac_configure_args " in
2273       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2274       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2275     esac
2276   fi
2277 done
2278 if $ac_cache_corrupted; then
2279   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2282 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2283   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2284 fi
2285 ## -------------------- ##
2286 ## Main body of script. ##
2287 ## -------------------- ##
2288
2289 ac_ext=c
2290 ac_cpp='$CPP $CPPFLAGS'
2291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2294
2295
2296
2297
2298
2299
2300
2301
2302 progname=$0
2303 # if PWD already has a value, it is probably wrong.
2304 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2305
2306 # Export original configure arguments for use by sub-configures.
2307 # Quote arguments with shell meta charatcers.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS=
2309 set -- "$progname" "$@"
2310 for ac_arg
2311 do
2312   case "$ac_arg" in
2313   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2314     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2315     # if the argument is of the form -foo=baz, quote the baz part only
2316     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2317   *) ;;
2318   esac
2319   # Add the quoted argument to the list.
2320   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2321 done
2322 if test "$silent" = yes; then
2323   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2324 fi
2325 # Remove the initial space we just introduced and, as these will be
2326 # expanded by make, quote '$'.
2327 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2328
2329
2330 # Find the build, host, and target systems.
2331 ac_aux_dir=
2332 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2333   if test -f "$ac_dir/install-sh"; then
2334     ac_aux_dir=$ac_dir
2335     ac_install_sh="$ac_aux_dir/install-sh -c"
2336     break
2337   elif test -f "$ac_dir/install.sh"; then
2338     ac_aux_dir=$ac_dir
2339     ac_install_sh="$ac_aux_dir/install.sh -c"
2340     break
2341   elif test -f "$ac_dir/shtool"; then
2342     ac_aux_dir=$ac_dir
2343     ac_install_sh="$ac_aux_dir/shtool install -c"
2344     break
2345   fi
2346 done
2347 if test -z "$ac_aux_dir"; then
2348   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2349 fi
2350
2351 # These three variables are undocumented and unsupported,
2352 # and are intended to be withdrawn in a future Autoconf release.
2353 # They can cause serious problems if a builder's source tree is in a directory
2354 # whose full name contains unusual characters.
2355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2357 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2358
2359
2360 # Make sure we can run config.sub.
2361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2362   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2363
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2365 $as_echo_n "checking build system type... " >&6; }
2366 if ${ac_cv_build+:} false; then :
2367   $as_echo_n "(cached) " >&6
2368 else
2369   ac_build_alias=$build_alias
2370 test "x$ac_build_alias" = x &&
2371   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2372 test "x$ac_build_alias" = x &&
2373   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2374 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2375   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2376
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2379 $as_echo "$ac_cv_build" >&6; }
2380 case $ac_cv_build in
2381 *-*-*) ;;
2382 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2383 esac
2384 build=$ac_cv_build
2385 ac_save_IFS=$IFS; IFS='-'
2386 set x $ac_cv_build
2387 shift
2388 build_cpu=$1
2389 build_vendor=$2
2390 shift; shift
2391 # Remember, the first character of IFS is used to create $*,
2392 # except with old shells:
2393 build_os=$*
2394 IFS=$ac_save_IFS
2395 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2396
2397
2398  case ${build_alias} in
2399   "") build_noncanonical=${build} ;;
2400   *) build_noncanonical=${build_alias} ;;
2401 esac
2402
2403
2404
2405  case ${host_alias} in
2406   "") host_noncanonical=${build_noncanonical} ;;
2407   *) host_noncanonical=${host_alias} ;;
2408 esac
2409
2410
2411
2412  case ${target_alias} in
2413   "") target_noncanonical=${host_noncanonical} ;;
2414   *) target_noncanonical=${target_alias} ;;
2415 esac
2416
2417
2418
2419
2420 test "$host_noncanonical" = "$target_noncanonical" &&
2421   test "$program_prefix$program_suffix$program_transform_name" = \
2422     NONENONEs,x,x, &&
2423   program_transform_name=s,y,y,
2424
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2426 $as_echo_n "checking host system type... " >&6; }
2427 if ${ac_cv_host+:} false; then :
2428   $as_echo_n "(cached) " >&6
2429 else
2430   if test "x$host_alias" = x; then
2431   ac_cv_host=$ac_cv_build
2432 else
2433   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2434     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2435 fi
2436
2437 fi
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2439 $as_echo "$ac_cv_host" >&6; }
2440 case $ac_cv_host in
2441 *-*-*) ;;
2442 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2443 esac
2444 host=$ac_cv_host
2445 ac_save_IFS=$IFS; IFS='-'
2446 set x $ac_cv_host
2447 shift
2448 host_cpu=$1
2449 host_vendor=$2
2450 shift; shift
2451 # Remember, the first character of IFS is used to create $*,
2452 # except with old shells:
2453 host_os=$*
2454 IFS=$ac_save_IFS
2455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2456
2457
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2459 $as_echo_n "checking target system type... " >&6; }
2460 if ${ac_cv_target+:} false; then :
2461   $as_echo_n "(cached) " >&6
2462 else
2463   if test "x$target_alias" = x; then
2464   ac_cv_target=$ac_cv_host
2465 else
2466   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2467     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2468 fi
2469
2470 fi
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2472 $as_echo "$ac_cv_target" >&6; }
2473 case $ac_cv_target in
2474 *-*-*) ;;
2475 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2476 esac
2477 target=$ac_cv_target
2478 ac_save_IFS=$IFS; IFS='-'
2479 set x $ac_cv_target
2480 shift
2481 target_cpu=$1
2482 target_vendor=$2
2483 shift; shift
2484 # Remember, the first character of IFS is used to create $*,
2485 # except with old shells:
2486 target_os=$*
2487 IFS=$ac_save_IFS
2488 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2489
2490
2491 # The aliases save the names the user supplied, while $host etc.
2492 # will get canonicalized.
2493 test -n "$target_alias" &&
2494   test "$program_prefix$program_suffix$program_transform_name" = \
2495     NONENONEs,x,x, &&
2496   program_prefix=${target_alias}-
2497
2498 test "$program_prefix" != NONE &&
2499   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2500 # Use a double $ so make ignores it.
2501 test "$program_suffix" != NONE &&
2502   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2503 # Double any \ or $.
2504 # By default was `s,x,x', remove it if useless.
2505 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2506 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2507
2508
2509
2510 # Get 'install' or 'install-sh' and its variants.
2511 # Find a good install program.  We prefer a C program (faster),
2512 # so one script is as good as another.  But avoid the broken or
2513 # incompatible versions:
2514 # SysV /etc/install, /usr/sbin/install
2515 # SunOS /usr/etc/install
2516 # IRIX /sbin/install
2517 # AIX /bin/install
2518 # AmigaOS /C/install, which installs bootblocks on floppy discs
2519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 # OS/2's system install, which has a completely different semantic
2523 # ./install, which can be erroneously created by make from ./install.sh.
2524 # Reject install programs that cannot install multiple files.
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2527 if test -z "$INSTALL"; then
2528 if ${ac_cv_path_install+:} false; then :
2529   $as_echo_n "(cached) " >&6
2530 else
2531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534   IFS=$as_save_IFS
2535   test -z "$as_dir" && as_dir=.
2536     # Account for people who put trailing slashes in PATH elements.
2537 case $as_dir/ in #((
2538   ./ | .// | /[cC]/* | \
2539   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2540   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2541   /usr/ucb/* ) ;;
2542   *)
2543     # OSF1 and SCO ODT 3.0 have their own names for install.
2544     # Don't use installbsd from OSF since it installs stuff as root
2545     # by default.
2546     for ac_prog in ginstall scoinst install; do
2547       for ac_exec_ext in '' $ac_executable_extensions; do
2548         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2549           if test $ac_prog = install &&
2550             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551             # AIX install.  It has an incompatible calling convention.
2552             :
2553           elif test $ac_prog = install &&
2554             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555             # program-specific install script used by HP pwplus--don't use.
2556             :
2557           else
2558             rm -rf conftest.one conftest.two conftest.dir
2559             echo one > conftest.one
2560             echo two > conftest.two
2561             mkdir conftest.dir
2562             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2563               test -s conftest.one && test -s conftest.two &&
2564               test -s conftest.dir/conftest.one &&
2565               test -s conftest.dir/conftest.two
2566             then
2567               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2568               break 3
2569             fi
2570           fi
2571         fi
2572       done
2573     done
2574     ;;
2575 esac
2576
2577   done
2578 IFS=$as_save_IFS
2579
2580 rm -rf conftest.one conftest.two conftest.dir
2581
2582 fi
2583   if test "${ac_cv_path_install+set}" = set; then
2584     INSTALL=$ac_cv_path_install
2585   else
2586     # As a last resort, use the slow shell script.  Don't cache a
2587     # value for INSTALL within a source directory, because that will
2588     # break other packages using the cache if that directory is
2589     # removed, or if the value is a relative name.
2590     INSTALL=$ac_install_sh
2591   fi
2592 fi
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2594 $as_echo "$INSTALL" >&6; }
2595
2596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2597 # It thinks the first close brace ends the variable substitution.
2598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2599
2600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2601
2602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2603
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2605 $as_echo_n "checking whether ln works... " >&6; }
2606 if ${acx_cv_prog_LN+:} false; then :
2607   $as_echo_n "(cached) " >&6
2608 else
2609   rm -f conftestdata_t
2610 echo >conftestdata_f
2611 if ln conftestdata_f conftestdata_t 2>/dev/null
2612 then
2613   acx_cv_prog_LN=ln
2614 else
2615   acx_cv_prog_LN=no
2616 fi
2617 rm -f conftestdata_f conftestdata_t
2618
2619 fi
2620 if test $acx_cv_prog_LN = no; then
2621   LN="cp"
2622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2623 $as_echo "no, using $LN" >&6; }
2624 else
2625   LN="$acx_cv_prog_LN"
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2628 fi
2629
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2631 $as_echo_n "checking whether ln -s works... " >&6; }
2632 LN_S=$as_ln_s
2633 if test "$LN_S" = "ln -s"; then
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636 else
2637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2638 $as_echo "no, using $LN_S" >&6; }
2639 fi
2640
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2642 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2643 if ${ac_cv_path_SED+:} false; then :
2644   $as_echo_n "(cached) " >&6
2645 else
2646             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2647      for ac_i in 1 2 3 4 5 6 7; do
2648        ac_script="$ac_script$as_nl$ac_script"
2649      done
2650      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2651      { ac_script=; unset ac_script;}
2652      if test -z "$SED"; then
2653   ac_path_SED_found=false
2654   # Loop through the user's path and test for each of PROGNAME-LIST
2655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658   IFS=$as_save_IFS
2659   test -z "$as_dir" && as_dir=.
2660     for ac_prog in sed gsed; do
2661     for ac_exec_ext in '' $ac_executable_extensions; do
2662       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2663       as_fn_executable_p "$ac_path_SED" || continue
2664 # Check for GNU ac_path_SED and select it if it is found.
2665   # Check for GNU $ac_path_SED
2666 case `"$ac_path_SED" --version 2>&1` in
2667 *GNU*)
2668   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2669 *)
2670   ac_count=0
2671   $as_echo_n 0123456789 >"conftest.in"
2672   while :
2673   do
2674     cat "conftest.in" "conftest.in" >"conftest.tmp"
2675     mv "conftest.tmp" "conftest.in"
2676     cp "conftest.in" "conftest.nl"
2677     $as_echo '' >> "conftest.nl"
2678     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2679     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2680     as_fn_arith $ac_count + 1 && ac_count=$as_val
2681     if test $ac_count -gt ${ac_path_SED_max-0}; then
2682       # Best one so far, save it but keep looking for a better one
2683       ac_cv_path_SED="$ac_path_SED"
2684       ac_path_SED_max=$ac_count
2685     fi
2686     # 10*(2^10) chars as input seems more than enough
2687     test $ac_count -gt 10 && break
2688   done
2689   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2690 esac
2691
2692       $ac_path_SED_found && break 3
2693     done
2694   done
2695   done
2696 IFS=$as_save_IFS
2697   if test -z "$ac_cv_path_SED"; then
2698     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2699   fi
2700 else
2701   ac_cv_path_SED=$SED
2702 fi
2703
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2706 $as_echo "$ac_cv_path_SED" >&6; }
2707  SED="$ac_cv_path_SED"
2708   rm -f conftest.sed
2709
2710 for ac_prog in gawk mawk nawk awk
2711 do
2712   # Extract the first word of "$ac_prog", so it can be a program name with args.
2713 set dummy $ac_prog; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_AWK+:} false; then :
2717   $as_echo_n "(cached) " >&6
2718 else
2719   if test -n "$AWK"; then
2720   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725   IFS=$as_save_IFS
2726   test -z "$as_dir" && as_dir=.
2727     for ac_exec_ext in '' $ac_executable_extensions; do
2728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729     ac_cv_prog_AWK="$ac_prog"
2730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731     break 2
2732   fi
2733 done
2734   done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 AWK=$ac_cv_prog_AWK
2740 if test -n "$AWK"; then
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2742 $as_echo "$AWK" >&6; }
2743 else
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749   test -n "$AWK" && break
2750 done
2751
2752
2753 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2754
2755 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2756 # a relative path.
2757 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2758   INSTALL="${srcpwd}/install-sh -c"
2759 fi
2760
2761 # Set srcdir to "." if that's what it is.
2762 # This is important for multilib support.
2763 pwd=`${PWDCMD-pwd}`
2764 if test "${pwd}" = "${srcpwd}" ; then
2765   srcdir=.
2766 fi
2767
2768 topsrcdir=$srcpwd
2769
2770 extra_host_args=
2771
2772 ### To add a new directory to the tree, first choose whether it is a target
2773 ### or a host dependent tool.  Then put it into the appropriate list
2774 ### (library or tools, host or target), doing a dependency sort.
2775
2776 # Subdirs will be configured in the order listed in build_configdirs,
2777 # configdirs, or target_configdirs; see the serialization section below.
2778
2779 # Dependency sorting is only needed when *configuration* must be done in
2780 # a particular order.  In all cases a dependency should be specified in
2781 # the Makefile, whether or not it's implicitly specified here.
2782
2783 # Double entries in build_configdirs, configdirs, or target_configdirs may
2784 # cause circular dependencies and break everything horribly.
2785
2786 # these library is used by various programs built for the build
2787 # environment
2788 #
2789 build_libs="build-libiberty build-libcpp"
2790
2791 # these tools are built for the build environment
2792 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2793
2794 # these libraries are used by various programs built for the host environment
2795 #f
2796 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2797
2798 # these tools are built for the host environment
2799 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2800 # know that we are building the simulator.
2801 # binutils, gas and ld appear in that order because it makes sense to run
2802 # "make check" in that particular order.
2803 # If --enable-gold is used, "gold" may replace "ld".
2804 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2805
2806 # these libraries are built for the target environment, and are built after
2807 # the host libraries and the host tools (which may be a cross compiler)
2808 # Note that libiberty is not a target library.
2809 target_libraries="target-libgcc \
2810                 target-libbacktrace \
2811                 target-libgloss \
2812                 target-newlib \
2813                 target-libgomp \
2814                 target-liboffloadmic \
2815                 target-libatomic \
2816                 target-libitm \
2817                 target-libstdc++-v3 \
2818                 target-libsanitizer \
2819                 target-libvtv \
2820                 target-libssp \
2821                 target-libquadmath \
2822                 target-libgfortran \
2823                 target-libffi \
2824                 target-libobjc \
2825                 target-libada \
2826                 target-libgo \
2827                 target-libphobos \
2828                 target-zlib"
2829
2830 # these tools are built using the target libraries, and are intended to
2831 # run only in the target environment
2832 #
2833 # note: any program that *uses* libraries that are in the "target_libraries"
2834 # list belongs in this list.
2835 #
2836 target_tools="target-rda"
2837
2838 ################################################################################
2839
2840 ## All tools belong in one of the four categories, and are assigned above
2841 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2842 ## is important because configure will choke if they ever get through.
2843 ## ${configdirs} is directories we build using the host tools.
2844 ## ${target_configdirs} is directories we build using the target tools.
2845 configdirs=`echo ${host_libs} ${host_tools}`
2846 target_configdirs=`echo ${target_libraries} ${target_tools}`
2847 build_configdirs=`echo ${build_libs} ${build_tools}`
2848
2849
2850
2851 ################################################################################
2852
2853 srcname="gnu development package"
2854
2855 # This gets set non-empty for some net releases of packages.
2856 appdirs=""
2857
2858 # Define is_cross_compiler to save on calls to 'test'.
2859 is_cross_compiler=
2860 if test x"${host}" = x"${target}" ; then
2861   is_cross_compiler=no
2862 else
2863   is_cross_compiler=yes
2864 fi
2865
2866 # Find the build and target subdir names.
2867
2868 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2869 # have matching libraries, they should use host libraries: Makefile.tpl
2870 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2871 # However, they still use the build modules, because the corresponding
2872 # host modules (e.g. bison) are only built for the host when bootstrap
2873 # finishes. So:
2874 # - build_subdir is where we find build modules, and never changes.
2875 # - build_libsubdir is where we find build libraries, and can be overridden.
2876
2877 # Prefix 'build-' so this never conflicts with target_subdir.
2878 build_subdir="build-${build_noncanonical}"
2879
2880 # Check whether --with-build-libsubdir was given.
2881 if test "${with_build_libsubdir+set}" = set; then :
2882   withval=$with_build_libsubdir; build_libsubdir="$withval"
2883 else
2884   build_libsubdir="$build_subdir"
2885 fi
2886
2887 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2888 if ( test $srcdir = . && test -d gcc ) \
2889    || test -d $srcdir/../host-${host_noncanonical}; then
2890   host_subdir="host-${host_noncanonical}"
2891 else
2892   host_subdir=.
2893 fi
2894 # No prefix.
2895 target_subdir=${target_noncanonical}
2896
2897 # Be sure to cover against remnants of an in-tree build.
2898 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2899   as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2900 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2901 fi
2902
2903 # Skipdirs are removed silently.
2904 skipdirs=
2905 # Noconfigdirs are removed loudly.
2906 noconfigdirs=""
2907
2908 use_gnu_ld=
2909 # Make sure we don't let GNU ld be added if we didn't want it.
2910 if test x$with_gnu_ld = xno ; then
2911   use_gnu_ld=no
2912   noconfigdirs="$noconfigdirs ld gold"
2913 fi
2914
2915 use_gnu_as=
2916 # Make sure we don't let GNU as be added if we didn't want it.
2917 if test x$with_gnu_as = xno ; then
2918   use_gnu_as=no
2919   noconfigdirs="$noconfigdirs gas"
2920 fi
2921
2922 use_included_zlib=
2923
2924 # Check whether --with-system-zlib was given.
2925 if test "${with_system_zlib+set}" = set; then :
2926   withval=$with_system_zlib;
2927 fi
2928
2929 # Make sure we don't let ZLIB be added if we didn't want it.
2930 if test x$with_system_zlib = xyes ; then
2931   use_included_zlib=no
2932   noconfigdirs="$noconfigdirs zlib"
2933 fi
2934
2935 # some tools are so dependent upon X11 that if we're not building with X,
2936 # it's not even worth trying to configure, much less build, that tool.
2937
2938 case ${with_x} in
2939   yes | "") ;; # the default value for this tree is that X11 is available
2940   no)
2941     skipdirs="${skipdirs} tk itcl libgui"
2942     # We won't be able to build gdbtk without X.
2943     enable_gdbtk=no
2944     ;;
2945   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2946 esac
2947
2948 # Some are only suitable for cross toolchains.
2949 # Remove these if host=target.
2950 cross_only="target-libgloss target-newlib target-opcodes"
2951
2952 case $is_cross_compiler in
2953   no) skipdirs="${skipdirs} ${cross_only}" ;;
2954 esac
2955
2956 # If both --with-headers and --with-libs are specified, default to
2957 # --without-newlib.
2958 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2959    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2960   if test x"${with_newlib}" = x ; then
2961     with_newlib=no
2962   fi
2963 fi
2964
2965 # Recognize --with-newlib/--without-newlib.
2966 case ${with_newlib} in
2967   no) skipdirs="${skipdirs} target-newlib" ;;
2968   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2969 esac
2970
2971 # Check whether --enable-as-accelerator-for was given.
2972 if test "${enable_as_accelerator_for+set}" = set; then :
2973   enableval=$enable_as_accelerator_for;
2974 fi
2975
2976
2977 # Check whether --enable-offload-targets was given.
2978 if test "${enable_offload_targets+set}" = set; then :
2979   enableval=$enable_offload_targets;
2980   if test x"$enable_offload_targets" = x; then
2981     as_fn_error $? "no offload targets specified" "$LINENO" 5
2982   fi
2983
2984 else
2985   enable_offload_targets=
2986 fi
2987
2988
2989 # Check whether --enable-offload-defaulted was given.
2990 if test "${enable_offload_defaulted+set}" = set; then :
2991   enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
2992 else
2993   enable_offload_defaulted=
2994 fi
2995
2996
2997 # Handle --enable-gold, --enable-ld.
2998 # --disable-gold [--enable-ld]
2999 #     Build only ld.  Default option.
3000 # --enable-gold [--enable-ld]
3001 #     Build both gold and ld.  Install gold as "ld.gold", install ld
3002 #     as "ld.bfd" and "ld".
3003 # --enable-gold=default [--enable-ld]
3004 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
3005 #     install ld as "ld.bfd".
3006 # --enable-gold[=default] --disable-ld
3007 #     Build only gold, which is then installed as both "ld.gold" and "ld".
3008 # --enable-gold --enable-ld=default
3009 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
3010 #     and ld.bfd).
3011 #     In other words, ld is default
3012 # --enable-gold=default --enable-ld=default
3013 #     Error.
3014
3015 default_ld=
3016 # Check whether --enable-gold was given.
3017 if test "${enable_gold+set}" = set; then :
3018   enableval=$enable_gold; ENABLE_GOLD=$enableval
3019 else
3020   ENABLE_GOLD=no
3021 fi
3022
3023 case "${ENABLE_GOLD}" in
3024   yes|default)
3025     # Check for ELF target.
3026     is_elf=no
3027     case "${target}" in
3028       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3029       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3030       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3031       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3032         case "${target}" in
3033           *-*-linux*aout* | *-*-linux*oldld*)
3034             ;;
3035           *)
3036             is_elf=yes
3037             ;;
3038         esac
3039     esac
3040
3041     if test "$is_elf" = "yes"; then
3042       # Check for target supported by gold.
3043       case "${target}" in
3044         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3045         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3046           configdirs="$configdirs gold"
3047           if test x${ENABLE_GOLD} = xdefault; then
3048             default_ld=gold
3049           fi
3050           ENABLE_GOLD=yes
3051           ;;
3052       esac
3053     fi
3054     ;;
3055   no)
3056     ;;
3057   *)
3058     as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3059     ;;
3060 esac
3061
3062 # Check whether --enable-ld was given.
3063 if test "${enable_ld+set}" = set; then :
3064   enableval=$enable_ld; ENABLE_LD=$enableval
3065 else
3066   ENABLE_LD=yes
3067 fi
3068
3069
3070 case "${ENABLE_LD}" in
3071   default)
3072     if test x${default_ld} != x; then
3073       as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3074     fi
3075     ;;
3076   yes)
3077     ;;
3078   no)
3079     if test x${ENABLE_GOLD} != xyes; then
3080       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3081 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3082     fi
3083     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3084     ;;
3085   *)
3086     as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3087     ;;
3088 esac
3089
3090 # PR gas/19109
3091 # Decide the default method for compressing debug sections.
3092 # Provide a configure time option to override our default.
3093 # Check whether --enable-compressed_debug_sections was given.
3094 if test "${enable_compressed_debug_sections+set}" = set; then :
3095   enableval=$enable_compressed_debug_sections;
3096   if test x"$enable_compressed_debug_sections" = xyes; then
3097     as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3098   fi
3099
3100 else
3101   enable_compressed_debug_sections=
3102 fi
3103
3104
3105 # Configure extra directories which are host specific
3106
3107 case "${host}" in
3108   *-cygwin*)
3109     configdirs="$configdirs libtermcap" ;;
3110 esac
3111
3112 # A target can indicate whether a language isn't supported for some reason.
3113 # Only spaces may be used in this macro; not newlines or tabs.
3114 unsupported_languages=
3115
3116 # Remove more programs from consideration, based on the host or
3117 # target this usually means that a port of the program doesn't
3118 # exist yet.
3119
3120 case "${host}" in
3121   i[3456789]86-*-msdosdjgpp*)
3122     noconfigdirs="$noconfigdirs tcl tk itcl"
3123     ;;
3124 esac
3125
3126
3127 # Check whether --enable-libquadmath was given.
3128 if test "${enable_libquadmath+set}" = set; then :
3129   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3130 else
3131   ENABLE_LIBQUADMATH=yes
3132 fi
3133
3134 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3135   noconfigdirs="$noconfigdirs target-libquadmath"
3136 fi
3137
3138
3139 # Check whether --enable-libquadmath-support was given.
3140 if test "${enable_libquadmath_support+set}" = set; then :
3141   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3142 else
3143   ENABLE_LIBQUADMATH_SUPPORT=yes
3144 fi
3145
3146 enable_libquadmath_support=
3147 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3148   enable_libquadmath_support=no
3149 fi
3150
3151
3152 # Check whether --enable-libada was given.
3153 if test "${enable_libada+set}" = set; then :
3154   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3155 else
3156   ENABLE_LIBADA=yes
3157 fi
3158
3159 if test "${ENABLE_LIBADA}" != "yes" ; then
3160   noconfigdirs="$noconfigdirs gnattools"
3161 fi
3162
3163 # Check whether --enable-libssp was given.
3164 if test "${enable_libssp+set}" = set; then :
3165   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3166 else
3167   ENABLE_LIBSSP=yes
3168 fi
3169
3170
3171 # Check whether --enable-libstdcxx was given.
3172 if test "${enable_libstdcxx+set}" = set; then :
3173   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3174 else
3175   ENABLE_LIBSTDCXX=default
3176 fi
3177
3178 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3179   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3180 fi
3181
3182 # If this is accelerator compiler and its target is intelmic we enable
3183 # target liboffloadmic by default.  If this is compiler with offloading
3184 # for intelmic we enable host liboffloadmic by default.  Otherwise
3185 # liboffloadmic is disabled by default.
3186 # Check whether --enable-liboffloadmic was given.
3187 if test "${enable_liboffloadmic+set}" = set; then :
3188   enableval=$enable_liboffloadmic; case "$enableval" in
3189   no | host | target)
3190     enable_liboffloadmic=$enableval ;;
3191   *)
3192     as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3193 esac
3194 else
3195   if test x"$enable_as_accelerator_for" != x; then
3196   case "${target}" in
3197     *-intelmic-* | *-intelmicemul-*)
3198       enable_liboffloadmic=target
3199       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3200       ;;
3201     *)
3202       enable_liboffloadmic=no
3203       ;;
3204   esac
3205 else
3206   case "${enable_offload_targets}" in
3207     *-intelmic-* | *-intelmicemul-*)
3208       enable_liboffloadmic=host
3209       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3210       ;;
3211     *)
3212       enable_liboffloadmic=no
3213       ;;
3214     esac
3215 fi
3216 fi
3217
3218
3219
3220 # Enable libgomp by default on hosted POSIX systems, and a few others.
3221 if test x$enable_libgomp = x ; then
3222     case "${target}" in
3223     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3224         ;;
3225     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3226         ;;
3227     *-*-solaris2* | *-*-hpux11*)
3228         ;;
3229     *-*-darwin* | *-*-aix*)
3230         ;;
3231     nvptx*-*-* | amdgcn*-*-*)
3232         ;;
3233     *)
3234         noconfigdirs="$noconfigdirs target-libgomp"
3235         ;;
3236     esac
3237 fi
3238
3239 # Disable libatomic on unsupported systems.
3240 if test -d ${srcdir}/libatomic; then
3241     if test x$enable_libatomic = x; then
3242         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3243 $as_echo_n "checking for libatomic support... " >&6; }
3244         if (srcdir=${srcdir}/libatomic; \
3245                 . ${srcdir}/configure.tgt; \
3246                 test -n "$UNSUPPORTED")
3247         then
3248             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250             noconfigdirs="$noconfigdirs target-libatomic"
3251         else
3252             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253 $as_echo "yes" >&6; }
3254         fi
3255     fi
3256 fi
3257
3258 # Disable liboffloadmic on unsupported systems.
3259 if test -d ${srcdir}/liboffloadmic; then
3260     if test x$enable_liboffloadmic != xno; then
3261         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3262 $as_echo_n "checking for liboffloadmic support... " >&6; }
3263         if (srcdir=${srcdir}/liboffloadmic; \
3264                 . ${srcdir}/configure.tgt; \
3265                 test -n "$UNSUPPORTED")
3266         then
3267             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269             noconfigdirs="$noconfigdirs target-liboffloadmic"
3270         else
3271             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3272 $as_echo "yes" >&6; }
3273         fi
3274     fi
3275 fi
3276
3277 # Disable libitm on unsupported systems.
3278 if test -d ${srcdir}/libitm; then
3279     if test x$enable_libitm = x; then
3280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3281 $as_echo_n "checking for libitm support... " >&6; }
3282         if (srcdir=${srcdir}/libitm; \
3283                 . ${srcdir}/configure.tgt; \
3284                 test -n "$UNSUPPORTED")
3285         then
3286             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288             noconfigdirs="$noconfigdirs target-libitm"
3289         else
3290             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3292         fi
3293     fi
3294 fi
3295
3296 # Disable libsanitizer on unsupported systems.
3297 if test -d ${srcdir}/libsanitizer; then
3298     if test x$enable_libsanitizer = x; then
3299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3300 $as_echo_n "checking for libsanitizer support... " >&6; }
3301         if (srcdir=${srcdir}/libsanitizer; \
3302                 . ${srcdir}/configure.tgt; \
3303                 test -n "$UNSUPPORTED")
3304         then
3305             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307             noconfigdirs="$noconfigdirs target-libsanitizer"
3308         else
3309             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3311         fi
3312     fi
3313 fi
3314
3315 # Disable libvtv on unsupported systems.
3316 if test -d ${srcdir}/libvtv; then
3317     if test x$enable_libvtv = x; then
3318         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3319 $as_echo_n "checking for libvtv support... " >&6; }
3320         if (srcdir=${srcdir}/libvtv; \
3321                 . ${srcdir}/configure.tgt; \
3322                 test "$VTV_SUPPORTED" != "yes")
3323         then
3324             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326             noconfigdirs="$noconfigdirs target-libvtv"
3327         else
3328             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329 $as_echo "yes" >&6; }
3330         fi
3331     fi
3332 fi
3333
3334 # Disable libquadmath for some systems.
3335 case "${target}" in
3336   avr-*-*)
3337     noconfigdirs="$noconfigdirs target-libquadmath"
3338     ;;
3339   # libquadmath is unused on AIX and libquadmath build process use of
3340   # LD_LIBRARY_PATH can break AIX bootstrap.
3341   powerpc-*-aix* | rs6000-*-aix*)
3342     noconfigdirs="$noconfigdirs target-libquadmath"
3343     ;;
3344 esac
3345
3346 # Disable libssp for some systems.
3347 case "${target}" in
3348   avr-*-*)
3349     # No hosted I/O support.
3350     noconfigdirs="$noconfigdirs target-libssp"
3351     ;;
3352   bpf-*-*)
3353     noconfigdirs="$noconfigdirs target-libssp"
3354     ;;
3355   powerpc-*-aix* | rs6000-*-aix*)
3356     noconfigdirs="$noconfigdirs target-libssp"
3357     ;;
3358   pru-*-*)
3359     # No hosted I/O support.
3360     noconfigdirs="$noconfigdirs target-libssp"
3361     ;;
3362   rl78-*-*)
3363     # libssp uses a misaligned load to trigger a fault, but the RL78
3364     # doesn't fault for those - instead, it gives a build-time error
3365     # for explicit misaligned loads.
3366     noconfigdirs="$noconfigdirs target-libssp"
3367     ;;
3368   visium-*-*)
3369     # No hosted I/O support.
3370     noconfigdirs="$noconfigdirs target-libssp"
3371     ;;
3372 esac
3373
3374 # Disable libstdc++-v3 for some systems.
3375 # Allow user to override this if they pass --enable-libstdc++-v3
3376 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3377   case "${target}" in
3378     *-*-vxworks*)
3379       # VxWorks uses the Dinkumware C++ library.
3380       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3381       ;;
3382     amdgcn*-*-*)
3383       # Not ported/fails to build when using newlib.
3384       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3385       ;;
3386     arm*-wince-pe*)
3387       # the C++ libraries don't build on top of CE's C libraries
3388       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389       ;;
3390     avr-*-*)
3391       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3392       ;;
3393     bpf-*-*)
3394       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395       ;;
3396     ft32-*-*)
3397       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3398       ;;
3399   esac
3400 fi
3401
3402 # Disable C++ on systems where it is known to not work.
3403 # For testing, you can override this with --enable-languages=c++.
3404 case ,${enable_languages}, in
3405   *,c++,*)
3406     ;;
3407   *)
3408       case "${target}" in
3409         bpf-*-*)
3410           unsupported_languages="$unsupported_languages c++"
3411           ;;
3412       esac
3413       ;;
3414 esac
3415
3416 # Disable Objc on systems where it is known to not work.
3417 # For testing, you can override this with --enable-languages=objc.
3418 case ,${enable_languages}, in
3419   *,objc,*)
3420     ;;
3421   *)
3422       case "${target}" in
3423         bpf-*-*)
3424           unsupported_languages="$unsupported_languages objc"
3425           ;;
3426       esac
3427       ;;
3428 esac
3429
3430 # Disable D on systems where it is known to not work.
3431 # For testing, you can override this with --enable-languages=d.
3432 case ,${enable_languages}, in
3433   *,d,*)
3434     ;;
3435   *)
3436     case "${target}" in
3437       bpf-*-*)
3438         unsupported_languages="$unsupported_languages d"
3439         ;;
3440     esac
3441     ;;
3442 esac
3443
3444 # Disable libphobos on unsupported systems.
3445 # For testing, you can override this with --enable-libphobos.
3446 if test -d ${srcdir}/libphobos; then
3447     if test x$enable_libphobos = x; then
3448         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3449 $as_echo_n "checking for libphobos support... " >&6; }
3450         if (srcdir=${srcdir}/libphobos; \
3451                 . ${srcdir}/configure.tgt; \
3452                 test "$LIBPHOBOS_SUPPORTED" != "yes")
3453         then
3454             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3456             noconfigdirs="$noconfigdirs target-libphobos"
3457         else
3458             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3460         fi
3461     fi
3462 fi
3463
3464 # Disable Fortran for some systems.
3465 case "${target}" in
3466   mmix-*-*)
3467     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3468     unsupported_languages="$unsupported_languages fortran"
3469     ;;
3470   bpf-*-*)
3471     unsupported_languages="$unsupported_languages fortran"
3472     ;;
3473 esac
3474
3475 # Disable libffi for some systems.
3476 case "${target}" in
3477   powerpc-*-darwin*)
3478     ;;
3479   i[3456789]86-*-darwin*)
3480     ;;
3481   x86_64-*-darwin[912]*)
3482     ;;
3483   *-*-darwin*)
3484     noconfigdirs="$noconfigdirs target-libffi"
3485     ;;
3486   *-*-netware*)
3487     noconfigdirs="$noconfigdirs target-libffi"
3488     ;;
3489   *-*-phoenix*)
3490     noconfigdirs="$noconfigdirs target-libffi"
3491     ;;
3492   *-*-rtems*)
3493     noconfigdirs="$noconfigdirs target-libffi"
3494     ;;
3495   *-*-tpf*)
3496     noconfigdirs="$noconfigdirs target-libffi"
3497     ;;
3498   *-*-uclinux*)
3499     noconfigdirs="$noconfigdirs target-libffi"
3500     ;;
3501   *-*-vxworks*)
3502     noconfigdirs="$noconfigdirs target-libffi"
3503     ;;
3504   aarch64*-*-freebsd*)
3505     noconfigdirs="$noconfigdirs target-libffi"
3506     ;;
3507   alpha*-*-*vms*)
3508     noconfigdirs="$noconfigdirs target-libffi"
3509     ;;
3510   arm*-*-freebsd*)
3511     noconfigdirs="$noconfigdirs target-libffi"
3512     ;;
3513   arm-wince-pe)
3514     noconfigdirs="$noconfigdirs target-libffi"
3515     ;;
3516   arm*-*-symbianelf*)
3517     noconfigdirs="$noconfigdirs target-libffi"
3518     ;;
3519   bpf-*-*)
3520     noconfigdirs="$noconfigdirs target-libffi"
3521     ;;
3522   cris-*-* | crisv32-*-*)
3523     case "${target}" in
3524       *-*-linux*)
3525         ;;
3526       *) # See PR46792 regarding target-libffi.
3527         noconfigdirs="$noconfigdirs target-libffi";;
3528     esac
3529     ;;
3530   hppa*64*-*-hpux*)
3531     noconfigdirs="$noconfigdirs target-libffi"
3532     ;;
3533   hppa*-hp-hpux11*)
3534     ;;
3535   hppa*-*-hpux*)
3536     noconfigdirs="$noconfigdirs target-libffi"
3537     ;;
3538   ia64*-*-*vms*)
3539     noconfigdirs="$noconfigdirs target-libffi"
3540     ;;
3541   i[3456789]86-w64-mingw*)
3542     noconfigdirs="$noconfigdirs target-libffi"
3543     ;;
3544   i[3456789]86-*-mingw*)
3545     noconfigdirs="$noconfigdirs target-libffi"
3546     ;;
3547   x86_64-*-mingw*)
3548     noconfigdirs="$noconfigdirs target-libffi"
3549     ;;
3550   mmix-*-*)
3551     noconfigdirs="$noconfigdirs target-libffi"
3552     ;;
3553   powerpc-*-aix*)
3554     ;;
3555   rs6000-*-aix*)
3556     ;;
3557   ft32-*-*)
3558     noconfigdirs="$noconfigdirs target-libffi"
3559     ;;
3560   *-*-lynxos*)
3561     noconfigdirs="$noconfigdirs target-libffi"
3562     ;;
3563 esac
3564
3565 # Disable the go frontend on systems where it is known to not work. Please keep
3566 # this in sync with contrib/config-list.mk.
3567 case "${target}" in
3568 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3569     unsupported_languages="$unsupported_languages go"
3570     ;;
3571 esac
3572
3573 # Only allow gdbserver on some systems.
3574 if test -d ${srcdir}/gdbserver; then
3575     if test x$enable_gdbserver = x; then
3576         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3577 $as_echo_n "checking for gdbserver support... " >&6; }
3578         if (srcdir=${srcdir}/gdbserver; \
3579                 . ${srcdir}/configure.srv; \
3580                 test -n "$UNSUPPORTED")
3581         then
3582             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584             noconfigdirs="$noconfigdirs gdbserver"
3585         else
3586             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3587 $as_echo "yes" >&6; }
3588         fi
3589     fi
3590 fi
3591
3592 # Disable libgo for some systems where it is known to not work.
3593 # For testing, you can easily override this with --enable-libgo.
3594 if test x$enable_libgo = x; then
3595     case "${target}" in
3596     *-*-darwin*)
3597         # PR 46986
3598         noconfigdirs="$noconfigdirs target-libgo"
3599         ;;
3600     *-*-cygwin* | *-*-mingw*)
3601         noconfigdirs="$noconfigdirs target-libgo"
3602         ;;
3603     bpf-*-*)
3604         noconfigdirs="$noconfigdirs target-libgo"
3605         ;;
3606     esac
3607 fi
3608
3609 # Default libgloss CPU subdirectory.
3610 libgloss_dir="$target_cpu"
3611
3612 case "${target}" in
3613   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3614     libgloss_dir=wince
3615     ;;
3616   aarch64*-*-* )
3617     libgloss_dir=aarch64
3618     ;;
3619   arm*-*-*)
3620     libgloss_dir=arm
3621     ;;
3622   cris-*-* | crisv32-*-*)
3623     libgloss_dir=cris
3624     ;;
3625   hppa*-*-*)
3626     libgloss_dir=pa
3627     ;;
3628   i[3456789]86-*-*)
3629     libgloss_dir=i386
3630     ;;
3631   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3632     libgloss_dir=m68hc11
3633     ;;
3634   m68*-*-* | fido-*-*)
3635     libgloss_dir=m68k
3636     ;;
3637   mips*-*-*)
3638     libgloss_dir=mips
3639     ;;
3640   powerpc*-*-*)
3641     libgloss_dir=rs6000
3642     ;;
3643   pru-*-*)
3644     libgloss_dir=pru
3645     ;;
3646   sparc*-*-*)
3647     libgloss_dir=sparc
3648     ;;
3649 esac
3650
3651 # Disable newlib and libgloss for various target OSes.
3652 case "${target}" in
3653   alpha*-dec-osf*)
3654     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655     ;;
3656   i[3456789]86-*-linux*)
3657     # This section makes it possible to build newlib natively on linux.
3658     # If we are using a cross compiler then don't configure newlib.
3659     if test x${is_cross_compiler} != xno ; then
3660       noconfigdirs="$noconfigdirs target-newlib"
3661     fi
3662     noconfigdirs="$noconfigdirs target-libgloss"
3663     # If we are not using a cross compiler, do configure newlib.
3664     # Note however, that newlib will only be configured in this situation
3665     # if the --with-newlib option has been given, because otherwise
3666     # 'target-newlib' will appear in skipdirs.
3667     ;;
3668   i[3456789]86-*-rdos*)
3669     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670     ;;
3671   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3672     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673     ;;
3674   sparc-*-sunos4*)
3675     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676     ;;
3677   bpf-*-*)
3678     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679     ;;
3680   *-*-aix*)
3681     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682     ;;
3683   *-*-beos*)
3684     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685     ;;
3686   *-*-chorusos)
3687     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688     ;;
3689   *-*-dragonfly*)
3690     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691     ;;
3692   *-*-freebsd*)
3693     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694     ;;
3695   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3696     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697     ;;
3698   *-*-lynxos*)
3699     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700     ;;
3701   *-*-mingw*)
3702     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3703     ;;
3704   *-*-netbsd*)
3705     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3706     ;;
3707   *-*-netware*)
3708     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3709     ;;
3710   *-*-tpf*)
3711     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3712     ;;
3713   *-*-uclinux*)
3714     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3715     ;;
3716   *-*-vxworks*)
3717     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718     ;;
3719 esac
3720
3721 case "${target}" in
3722   *-*-chorusos)
3723     ;;
3724   aarch64-*-darwin*)
3725     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3726     noconfigdirs="$noconfigdirs sim target-rda"
3727     ;;
3728   amdgcn*-*-*)
3729     ;;
3730   arm-*-darwin*)
3731     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3732     noconfigdirs="$noconfigdirs sim target-rda"
3733     ;;
3734   powerpc-*-darwin*)
3735     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3736     noconfigdirs="$noconfigdirs sim target-rda"
3737     ;;
3738   i[3456789]86-*-darwin*)
3739     noconfigdirs="$noconfigdirs ld gprof"
3740     noconfigdirs="$noconfigdirs sim target-rda"
3741     ;;
3742   x86_64-*-darwin[912]*)
3743     noconfigdirs="$noconfigdirs ld gas gprof"
3744     noconfigdirs="$noconfigdirs sim target-rda"
3745     ;;
3746   *-*-darwin*)
3747     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3748     noconfigdirs="$noconfigdirs sim target-rda"
3749     ;;
3750   *-*-dragonfly*)
3751     ;;
3752   *-*-freebsd*)
3753     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3754         && ! test -d ${srcdir}/gmp \
3755         && test -f /usr/local/include/gmp.h; then
3756       with_gmp=/usr/local
3757     fi
3758     ;;
3759   *-*-kaos*)
3760     # Remove unsupported stuff on all kaOS configurations.
3761     noconfigdirs="$noconfigdirs target-libgloss"
3762     ;;
3763   *-*-netbsd*)
3764     ;;
3765   *-*-netware*)
3766     ;;
3767   *-*-phoenix*)
3768     noconfigdirs="$noconfigdirs target-libgloss"
3769     ;;
3770   *-*-rtems*)
3771     noconfigdirs="$noconfigdirs target-libgloss"
3772     ;;
3773     # The tpf target doesn't support gdb yet.
3774   *-*-tpf*)
3775     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3776     ;;
3777   *-*-uclinux*)
3778     noconfigdirs="$noconfigdirs target-rda"
3779     ;;
3780   *-*-vxworks*)
3781     ;;
3782   alpha*-dec-osf*)
3783     # ld works, but does not support shared libraries.
3784     # gas doesn't generate exception information.
3785     noconfigdirs="$noconfigdirs gas ld"
3786     ;;
3787   alpha*-*-*vms*)
3788     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3789     ;;
3790   alpha*-*-*)
3791     # newlib is not 64 bit ready
3792     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3793     ;;
3794   bpf-*-*)
3795     noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3796     ;;
3797   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3798     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3799     ;;
3800   arc*-*-*)
3801     noconfigdirs="$noconfigdirs sim"
3802     ;;
3803   arm-*-pe*)
3804     noconfigdirs="$noconfigdirs target-libgloss"
3805     ;;
3806   arm-*-riscix*)
3807     noconfigdirs="$noconfigdirs ld target-libgloss"
3808     ;;
3809   avr-*-*)
3810     if test x${with_avrlibc} != xno; then
3811       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3812     fi
3813     ;;
3814   c4x-*-* | tic4x-*-*)
3815     noconfigdirs="$noconfigdirs target-libgloss"
3816     ;;
3817   tic54x-*-*)
3818     noconfigdirs="$noconfigdirs target-libgloss gdb"
3819     ;;
3820   d10v-*-*)
3821     noconfigdirs="$noconfigdirs target-libgloss"
3822     ;;
3823   d30v-*-*)
3824     noconfigdirs="$noconfigdirs gdb"
3825     ;;
3826   fr30-*-elf*)
3827     noconfigdirs="$noconfigdirs gdb"
3828     ;;
3829   ft32-*-*)
3830     noconfigdirs="$noconfigdirs target-rda gprof"
3831     ;;
3832   moxie-*-*)
3833     noconfigdirs="$noconfigdirs"
3834     ;;
3835   h8300*-*-*)
3836     noconfigdirs="$noconfigdirs target-libgloss"
3837     ;;
3838   h8500-*-*)
3839     noconfigdirs="$noconfigdirs target-libgloss"
3840     ;;
3841   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3842     ;;
3843   hppa*64*-*-hpux*)
3844     noconfigdirs="$noconfigdirs gdb"
3845     ;;
3846   hppa*-*-hpux11*)
3847     noconfigdirs="$noconfigdirs gdb ld"
3848     ;;
3849   hppa*64*-*-linux*)
3850     ;;
3851   hppa*-*-linux*)
3852     ;;
3853   hppa*-*-*elf* | \
3854   hppa*-*-lites* | \
3855   hppa*-*-openbsd* | \
3856   hppa*64*-*-*)
3857     ;;
3858   hppa*-*-pro*)
3859     ;;
3860   hppa*-*-*)
3861     noconfigdirs="$noconfigdirs ld"
3862     ;;
3863   i960-*-*)
3864     noconfigdirs="$noconfigdirs gdb"
3865     ;;
3866   ia64*-*-elf*)
3867     # No gdb support yet.
3868     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3869     ;;
3870   ia64*-**-hpux*)
3871     # No ld support yet.
3872     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3873     ;;
3874   ia64*-*-*vms*)
3875     # No ld support yet.
3876     noconfigdirs="$noconfigdirs libgui itcl ld"
3877     ;;
3878   i[3456789]86-w64-mingw*)
3879     ;;
3880   i[3456789]86-*-mingw*)
3881     target_configdirs="$target_configdirs target-winsup"
3882     ;;
3883   *-*-cygwin*)
3884     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3885     noconfigdirs="$noconfigdirs target-libgloss"
3886     # always build newlib if winsup directory is present.
3887     if test -d "$srcdir/winsup/cygwin"; then
3888       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3889     elif test -d "$srcdir/newlib"; then
3890       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3891     fi
3892     ;;
3893   i[3456789]86-*-pe)
3894     noconfigdirs="$noconfigdirs target-libgloss"
3895     ;;
3896   i[3456789]86-*-sco3.2v5*)
3897     # The linker does not yet know about weak symbols in COFF,
3898     # and is not configured to handle mixed ELF and COFF.
3899     noconfigdirs="$noconfigdirs ld target-libgloss"
3900     ;;
3901   i[3456789]86-*-sco*)
3902     noconfigdirs="$noconfigdirs gprof target-libgloss"
3903     ;;
3904   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3905     noconfigdirs="$noconfigdirs target-libgloss"
3906     ;;
3907   i[3456789]86-*-sysv4*)
3908     noconfigdirs="$noconfigdirs target-libgloss"
3909     ;;
3910   i[3456789]86-*-beos*)
3911     noconfigdirs="$noconfigdirs gdb"
3912     ;;
3913   i[3456789]86-*-rdos*)
3914     noconfigdirs="$noconfigdirs gdb"
3915     ;;
3916   mmix-*-*)
3917     noconfigdirs="$noconfigdirs gdb"
3918     ;;
3919   mt-*-*)
3920     noconfigdirs="$noconfigdirs sim"
3921     ;;
3922   nfp-*-*)
3923     noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3924     noconfigdirs="$noconfigdirs $target_libraries"
3925     ;;
3926   pdp11-*-*)
3927     noconfigdirs="$noconfigdirs gdb gprof"
3928     ;;
3929   powerpc-*-aix*)
3930     # copied from rs6000-*-* entry
3931     noconfigdirs="$noconfigdirs gprof"
3932     ;;
3933   powerpc*-*-winnt* | powerpc*-*-pe*)
3934     target_configdirs="$target_configdirs target-winsup"
3935     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3936     # always build newlib.
3937     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3938     ;;
3939     # This is temporary until we can link against shared libraries
3940   powerpcle-*-solaris*)
3941     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3942     ;;
3943   powerpc-*-beos*)
3944     noconfigdirs="$noconfigdirs gdb"
3945     ;;
3946   rs6000-*-lynxos*)
3947     noconfigdirs="$noconfigdirs gprof"
3948     ;;
3949   rs6000-*-aix*)
3950     noconfigdirs="$noconfigdirs gprof"
3951     ;;
3952   rs6000-*-*)
3953     noconfigdirs="$noconfigdirs gprof"
3954     ;;
3955   m68k-apollo-*)
3956     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3957     ;;
3958   microblaze*)
3959     noconfigdirs="$noconfigdirs gprof"
3960     ;;
3961   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3962     if test x$with_newlib = xyes; then
3963       noconfigdirs="$noconfigdirs gprof"
3964     fi
3965     ;;
3966   mips*-*-irix5*)
3967     noconfigdirs="$noconfigdirs gprof target-libgloss"
3968     ;;
3969   mips*-*-irix6*)
3970     noconfigdirs="$noconfigdirs gprof target-libgloss"
3971     ;;
3972   mips*-*-bsd*)
3973     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3974     ;;
3975   mips*-*-linux*)
3976     ;;
3977   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3978   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3979     noconfigdirs="$noconfigdirs ld gas gprof"
3980     ;;
3981   mips*-*-*)
3982     noconfigdirs="$noconfigdirs gprof"
3983     ;;
3984   nvptx*-*-*)
3985     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3986     ;;
3987   sh-*-*)
3988     case "${target}" in
3989       sh*-*-elf)
3990          ;;
3991       *)
3992          noconfigdirs="$noconfigdirs target-libgloss" ;;
3993     esac
3994     ;;
3995   sparc-*-sunos4*)
3996     if test x${is_cross_compiler} = xno ; then
3997            use_gnu_ld=no
3998     fi
3999     ;;
4000   tic6x-*-*)
4001     noconfigdirs="$noconfigdirs sim"
4002     ;;
4003   tilepro*-*-* | tilegx*-*-*)
4004     noconfigdirs="$noconfigdirs sim"
4005     ;;
4006   v810-*-*)
4007     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4008     ;;
4009   vax-*-*)
4010     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4011     ;;
4012   wasm32-*-*)
4013     noconfigdirs="$noconfigdirs ld"
4014     ;;
4015 esac
4016
4017 # If we aren't building newlib, then don't build libgloss, since libgloss
4018 # depends upon some newlib header files.
4019 case "${noconfigdirs}" in
4020   *target-libgloss*) ;;
4021   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4022 esac
4023
4024 # Work in distributions that contain no compiler tools, like Autoconf.
4025 host_makefile_frag=/dev/null
4026 if test -d ${srcdir}/config ; then
4027 case "${host}" in
4028   i[3456789]86-*-msdosdjgpp*)
4029     host_makefile_frag="config/mh-djgpp"
4030     ;;
4031   *-cygwin*)
4032
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4034 $as_echo_n "checking to see if cat works as expected... " >&6; }
4035 echo a >cygwin-cat-check
4036 if test `cat cygwin-cat-check` = a ; then
4037   rm cygwin-cat-check
4038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4039 $as_echo "yes" >&6; }
4040 else
4041   rm cygwin-cat-check
4042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043 $as_echo "no" >&6; }
4044   as_fn_error $? "The cat command does not ignore carriage return characters.
4045   Please either mount the build directory in binary mode or run the following
4046   commands before running any configure script:
4047 set -o igncr
4048 export SHELLOPTS
4049   " "$LINENO" 5
4050 fi
4051
4052     host_makefile_frag="config/mh-cygwin"
4053     ;;
4054   *-mingw*)
4055     host_makefile_frag="config/mh-mingw"
4056     ;;
4057   alpha*-linux*)
4058     host_makefile_frag="config/mh-alpha-linux"
4059     ;;
4060   hppa*-hp-hpux10*)
4061     host_makefile_frag="config/mh-pa-hpux10"
4062     ;;
4063   hppa*-hp-hpux*)
4064     host_makefile_frag="config/mh-pa"
4065     ;;
4066   hppa*-*)
4067     host_makefile_frag="config/mh-pa"
4068     ;;
4069   *-*-darwin*)
4070     host_makefile_frag="config/mh-darwin"
4071     ;;
4072   powerpc-*-aix*)
4073     host_makefile_frag="config/mh-ppc-aix"
4074     ;;
4075   rs6000-*-aix*)
4076     host_makefile_frag="config/mh-ppc-aix"
4077     ;;
4078 esac
4079 fi
4080
4081 if test "${build}" != "${host}" ; then
4082   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4083   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4084   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4085   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4086   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4087   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4088   GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4089   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4090   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4091   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4092   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4093   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4094   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4095 else
4096   AR_FOR_BUILD="\$(AR)"
4097   AS_FOR_BUILD="\$(AS)"
4098   CC_FOR_BUILD="\$(CC)"
4099   CXX_FOR_BUILD="\$(CXX)"
4100   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4101   GOC_FOR_BUILD="\$(GOC)"
4102   GDC_FOR_BUILD="\$(GDC)"
4103   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4104   LD_FOR_BUILD="\$(LD)"
4105   NM_FOR_BUILD="\$(NM)"
4106   RANLIB_FOR_BUILD="\$(RANLIB)"
4107   WINDRES_FOR_BUILD="\$(WINDRES)"
4108   WINDMC_FOR_BUILD="\$(WINDMC)"
4109 fi
4110
4111 ac_ext=c
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116 if test -n "$ac_tool_prefix"; then
4117   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if ${ac_cv_prog_CC+:} false; then :
4122   $as_echo_n "(cached) " >&6
4123 else
4124   if test -n "$CC"; then
4125   ac_cv_prog_CC="$CC" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132     for ac_exec_ext in '' $ac_executable_extensions; do
4133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139   done
4140 IFS=$as_save_IFS
4141
4142 fi
4143 fi
4144 CC=$ac_cv_prog_CC
4145 if test -n "$CC"; then
4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4147 $as_echo "$CC" >&6; }
4148 else
4149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4151 fi
4152
4153
4154 fi
4155 if test -z "$ac_cv_prog_CC"; then
4156   ac_ct_CC=$CC
4157   # Extract the first word of "gcc", so it can be a program name with args.
4158 set dummy gcc; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4162   $as_echo_n "(cached) " >&6
4163 else
4164   if test -n "$ac_ct_CC"; then
4165   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172     for ac_exec_ext in '' $ac_executable_extensions; do
4173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174     ac_cv_prog_ac_ct_CC="gcc"
4175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176     break 2
4177   fi
4178 done
4179   done
4180 IFS=$as_save_IFS
4181
4182 fi
4183 fi
4184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4185 if test -n "$ac_ct_CC"; then
4186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4187 $as_echo "$ac_ct_CC" >&6; }
4188 else
4189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4191 fi
4192
4193   if test "x$ac_ct_CC" = x; then
4194     CC=""
4195   else
4196     case $cross_compiling:$ac_tool_warned in
4197 yes:)
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4200 ac_tool_warned=yes ;;
4201 esac
4202     CC=$ac_ct_CC
4203   fi
4204 else
4205   CC="$ac_cv_prog_CC"
4206 fi
4207
4208 if test -z "$CC"; then
4209           if test -n "$ac_tool_prefix"; then
4210     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4211 set dummy ${ac_tool_prefix}cc; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if ${ac_cv_prog_CC+:} false; then :
4215   $as_echo_n "(cached) " >&6
4216 else
4217   if test -n "$CC"; then
4218   ac_cv_prog_CC="$CC" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4222 do
4223   IFS=$as_save_IFS
4224   test -z "$as_dir" && as_dir=.
4225     for ac_exec_ext in '' $ac_executable_extensions; do
4226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227     ac_cv_prog_CC="${ac_tool_prefix}cc"
4228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229     break 2
4230   fi
4231 done
4232   done
4233 IFS=$as_save_IFS
4234
4235 fi
4236 fi
4237 CC=$ac_cv_prog_CC
4238 if test -n "$CC"; then
4239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4240 $as_echo "$CC" >&6; }
4241 else
4242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4244 fi
4245
4246
4247   fi
4248 fi
4249 if test -z "$CC"; then
4250   # Extract the first word of "cc", so it can be a program name with args.
4251 set dummy cc; ac_word=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_CC+:} false; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   if test -n "$CC"; then
4258   ac_cv_prog_CC="$CC" # Let the user override the test.
4259 else
4260   ac_prog_rejected=no
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264   IFS=$as_save_IFS
4265   test -z "$as_dir" && as_dir=.
4266     for ac_exec_ext in '' $ac_executable_extensions; do
4267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4268     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4269        ac_prog_rejected=yes
4270        continue
4271      fi
4272     ac_cv_prog_CC="cc"
4273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277   done
4278 IFS=$as_save_IFS
4279
4280 if test $ac_prog_rejected = yes; then
4281   # We found a bogon in the path, so make sure we never use it.
4282   set dummy $ac_cv_prog_CC
4283   shift
4284   if test $# != 0; then
4285     # We chose a different compiler from the bogus one.
4286     # However, it has the same basename, so the bogon will be chosen
4287     # first if we set CC to just the basename; use the full file name.
4288     shift
4289     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4290   fi
4291 fi
4292 fi
4293 fi
4294 CC=$ac_cv_prog_CC
4295 if test -n "$CC"; then
4296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4297 $as_echo "$CC" >&6; }
4298 else
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302
4303
4304 fi
4305 if test -z "$CC"; then
4306   if test -n "$ac_tool_prefix"; then
4307   for ac_prog in cl.exe
4308   do
4309     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_CC+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   if test -n "$CC"; then
4317   ac_cv_prog_CC="$CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324     for ac_exec_ext in '' $ac_executable_extensions; do
4325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331   done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 CC=$ac_cv_prog_CC
4337 if test -n "$CC"; then
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4339 $as_echo "$CC" >&6; }
4340 else
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4343 fi
4344
4345
4346     test -n "$CC" && break
4347   done
4348 fi
4349 if test -z "$CC"; then
4350   ac_ct_CC=$CC
4351   for ac_prog in cl.exe
4352 do
4353   # Extract the first word of "$ac_prog", so it can be a program name with args.
4354 set dummy $ac_prog; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4358   $as_echo_n "(cached) " >&6
4359 else
4360   if test -n "$ac_ct_CC"; then
4361   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368     for ac_exec_ext in '' $ac_executable_extensions; do
4369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370     ac_cv_prog_ac_ct_CC="$ac_prog"
4371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375   done
4376 IFS=$as_save_IFS
4377
4378 fi
4379 fi
4380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4381 if test -n "$ac_ct_CC"; then
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4383 $as_echo "$ac_ct_CC" >&6; }
4384 else
4385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 fi
4388
4389
4390   test -n "$ac_ct_CC" && break
4391 done
4392
4393   if test "x$ac_ct_CC" = x; then
4394     CC=""
4395   else
4396     case $cross_compiling:$ac_tool_warned in
4397 yes:)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400 ac_tool_warned=yes ;;
4401 esac
4402     CC=$ac_ct_CC
4403   fi
4404 fi
4405
4406 fi
4407
4408
4409 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error $? "no acceptable C compiler found in \$PATH
4412 See \`config.log' for more details" "$LINENO" 5; }
4413
4414 # Provide some information about the compiler.
4415 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4416 set X $ac_compile
4417 ac_compiler=$2
4418 for ac_option in --version -v -V -qversion; do
4419   { { ac_try="$ac_compiler $ac_option >&5"
4420 case "(($ac_try" in
4421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422   *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4427   ac_status=$?
4428   if test -s conftest.err; then
4429     sed '10a\
4430 ... rest of stderr output deleted ...
4431          10q' conftest.err >conftest.er1
4432     cat conftest.er1 >&5
4433   fi
4434   rm -f conftest.er1 conftest.err
4435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436   test $ac_status = 0; }
4437 done
4438
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h.  */
4441
4442 int
4443 main ()
4444 {
4445
4446   ;
4447   return 0;
4448 }
4449 _ACEOF
4450 ac_clean_files_save=$ac_clean_files
4451 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4452 # Try to create an executable without -o first, disregard a.out.
4453 # It will help us diagnose broken compilers, and finding out an intuition
4454 # of exeext.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4456 $as_echo_n "checking whether the C compiler works... " >&6; }
4457 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4458
4459 # The possible output files:
4460 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4461
4462 ac_rmfiles=
4463 for ac_file in $ac_files
4464 do
4465   case $ac_file in
4466     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4467     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4468   esac
4469 done
4470 rm -f $ac_rmfiles
4471
4472 if { { ac_try="$ac_link_default"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479   (eval "$ac_link_default") 2>&5
4480   ac_status=$?
4481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482   test $ac_status = 0; }; then :
4483   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4484 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4485 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4486 # so that the user can short-circuit this test for compilers unknown to
4487 # Autoconf.
4488 for ac_file in $ac_files ''
4489 do
4490   test -f "$ac_file" || continue
4491   case $ac_file in
4492     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4493         ;;
4494     [ab].out )
4495         # We found the default executable, but exeext='' is most
4496         # certainly right.
4497         break;;
4498     *.* )
4499         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4500         then :; else
4501            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4502         fi
4503         # We set ac_cv_exeext here because the later test for it is not
4504         # safe: cross compilers may not add the suffix if given an `-o'
4505         # argument, so we may need to know it at that point already.
4506         # Even if this section looks crufty: it has the advantage of
4507         # actually working.
4508         break;;
4509     * )
4510         break;;
4511   esac
4512 done
4513 test "$ac_cv_exeext" = no && ac_cv_exeext=
4514
4515 else
4516   ac_file=''
4517 fi
4518 if test -z "$ac_file"; then :
4519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4521 $as_echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4526 as_fn_error 77 "C compiler cannot create executables
4527 See \`config.log' for more details" "$LINENO" 5; }
4528 else
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4530 $as_echo "yes" >&6; }
4531 fi
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4533 $as_echo_n "checking for C compiler default output file name... " >&6; }
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4535 $as_echo "$ac_file" >&6; }
4536 ac_exeext=$ac_cv_exeext
4537
4538 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4539 ac_clean_files=$ac_clean_files_save
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4541 $as_echo_n "checking for suffix of executables... " >&6; }
4542 if { { ac_try="$ac_link"
4543 case "(($ac_try" in
4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545   *) ac_try_echo=$ac_try;;
4546 esac
4547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4548 $as_echo "$ac_try_echo"; } >&5
4549   (eval "$ac_link") 2>&5
4550   ac_status=$?
4551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4552   test $ac_status = 0; }; then :
4553   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4554 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4555 # work properly (i.e., refer to `conftest.exe'), while it won't with
4556 # `rm'.
4557 for ac_file in conftest.exe conftest conftest.*; do
4558   test -f "$ac_file" || continue
4559   case $ac_file in
4560     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4561     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4562           break;;
4563     * ) break;;
4564   esac
4565 done
4566 else
4567   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4569 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4570 See \`config.log' for more details" "$LINENO" 5; }
4571 fi
4572 rm -f conftest conftest$ac_cv_exeext
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4574 $as_echo "$ac_cv_exeext" >&6; }
4575
4576 rm -f conftest.$ac_ext
4577 EXEEXT=$ac_cv_exeext
4578 ac_exeext=$EXEEXT
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h.  */
4581 #include <stdio.h>
4582 int
4583 main ()
4584 {
4585 FILE *f = fopen ("conftest.out", "w");
4586  return ferror (f) || fclose (f) != 0;
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 ac_clean_files="$ac_clean_files conftest.out"
4593 # Check that the compiler produces executables we can run.  If not, either
4594 # the compiler is broken, or we cross compile.
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4596 $as_echo_n "checking whether we are cross compiling... " >&6; }
4597 if test "$cross_compiling" != yes; then
4598   { { ac_try="$ac_link"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4604 $as_echo "$ac_try_echo"; } >&5
4605   (eval "$ac_link") 2>&5
4606   ac_status=$?
4607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4608   test $ac_status = 0; }
4609   if { ac_try='./conftest$ac_cv_exeext'
4610   { { case "(($ac_try" in
4611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612   *) ac_try_echo=$ac_try;;
4613 esac
4614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615 $as_echo "$ac_try_echo"; } >&5
4616   (eval "$ac_try") 2>&5
4617   ac_status=$?
4618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619   test $ac_status = 0; }; }; then
4620     cross_compiling=no
4621   else
4622     if test "$cross_compiling" = maybe; then
4623         cross_compiling=yes
4624     else
4625         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4627 as_fn_error $? "cannot run C compiled programs.
4628 If you meant to cross compile, use \`--host'.
4629 See \`config.log' for more details" "$LINENO" 5; }
4630     fi
4631   fi
4632 fi
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4634 $as_echo "$cross_compiling" >&6; }
4635
4636 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4637 ac_clean_files=$ac_clean_files_save
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4639 $as_echo_n "checking for suffix of object files... " >&6; }
4640 if ${ac_cv_objext+:} false; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h.  */
4645
4646 int
4647 main ()
4648 {
4649
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.o conftest.obj
4655 if { { ac_try="$ac_compile"
4656 case "(($ac_try" in
4657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658   *) ac_try_echo=$ac_try;;
4659 esac
4660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4661 $as_echo "$ac_try_echo"; } >&5
4662   (eval "$ac_compile") 2>&5
4663   ac_status=$?
4664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4665   test $ac_status = 0; }; then :
4666   for ac_file in conftest.o conftest.obj conftest.*; do
4667   test -f "$ac_file" || continue;
4668   case $ac_file in
4669     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4670     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4671        break;;
4672   esac
4673 done
4674 else
4675   $as_echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 as_fn_error $? "cannot compute suffix of object files: cannot compile
4681 See \`config.log' for more details" "$LINENO" 5; }
4682 fi
4683 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4684 fi
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4686 $as_echo "$ac_cv_objext" >&6; }
4687 OBJEXT=$ac_cv_objext
4688 ac_objext=$OBJEXT
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4690 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4691 if ${ac_cv_c_compiler_gnu+:} false; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h.  */
4696
4697 int
4698 main ()
4699 {
4700 #ifndef __GNUC__
4701        choke me
4702 #endif
4703
4704   ;
4705   return 0;
4706 }
4707 _ACEOF
4708 if ac_fn_c_try_compile "$LINENO"; then :
4709   ac_compiler_gnu=yes
4710 else
4711   ac_compiler_gnu=no
4712 fi
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4715
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4718 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4719 if test $ac_compiler_gnu = yes; then
4720   GCC=yes
4721 else
4722   GCC=
4723 fi
4724 ac_test_CFLAGS=${CFLAGS+set}
4725 ac_save_CFLAGS=$CFLAGS
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4727 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4728 if ${ac_cv_prog_cc_g+:} false; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   ac_save_c_werror_flag=$ac_c_werror_flag
4732    ac_c_werror_flag=yes
4733    ac_cv_prog_cc_g=no
4734    CFLAGS="-g"
4735    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h.  */
4737
4738 int
4739 main ()
4740 {
4741
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 if ac_fn_c_try_compile "$LINENO"; then :
4747   ac_cv_prog_cc_g=yes
4748 else
4749   CFLAGS=""
4750       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h.  */
4752
4753 int
4754 main ()
4755 {
4756
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762
4763 else
4764   ac_c_werror_flag=$ac_save_c_werror_flag
4765          CFLAGS="-g"
4766          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h.  */
4768
4769 int
4770 main ()
4771 {
4772
4773   ;
4774   return 0;
4775 }
4776 _ACEOF
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778   ac_cv_prog_cc_g=yes
4779 fi
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 fi
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 fi
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785    ac_c_werror_flag=$ac_save_c_werror_flag
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4788 $as_echo "$ac_cv_prog_cc_g" >&6; }
4789 if test "$ac_test_CFLAGS" = set; then
4790   CFLAGS=$ac_save_CFLAGS
4791 elif test $ac_cv_prog_cc_g = yes; then
4792   if test "$GCC" = yes; then
4793     CFLAGS="-g -O2"
4794   else
4795     CFLAGS="-g"
4796   fi
4797 else
4798   if test "$GCC" = yes; then
4799     CFLAGS="-O2"
4800   else
4801     CFLAGS=
4802   fi
4803 fi
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4805 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4806 if ${ac_cv_prog_cc_c89+:} false; then :
4807   $as_echo_n "(cached) " >&6
4808 else
4809   ac_cv_prog_cc_c89=no
4810 ac_save_CC=$CC
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h.  */
4813 #include <stdarg.h>
4814 #include <stdio.h>
4815 struct stat;
4816 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4817 struct buf { int x; };
4818 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4819 static char *e (p, i)
4820      char **p;
4821      int i;
4822 {
4823   return p[i];
4824 }
4825 static char *f (char * (*g) (char **, int), char **p, ...)
4826 {
4827   char *s;
4828   va_list v;
4829   va_start (v,p);
4830   s = g (p, va_arg (v,int));
4831   va_end (v);
4832   return s;
4833 }
4834
4835 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4836    function prototypes and stuff, but not '\xHH' hex character constants.
4837    These don't provoke an error unfortunately, instead are silently treated
4838    as 'x'.  The following induces an error, until -std is added to get
4839    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4840    array size at least.  It's necessary to write '\x00'==0 to get something
4841    that's true only with -std.  */
4842 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4843
4844 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4845    inside strings and character constants.  */
4846 #define FOO(x) 'x'
4847 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4848
4849 int test (int i, double x);
4850 struct s1 {int (*f) (int a);};
4851 struct s2 {int (*f) (double a);};
4852 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4853 int argc;
4854 char **argv;
4855 int
4856 main ()
4857 {
4858 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4859   ;
4860   return 0;
4861 }
4862 _ACEOF
4863 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4864         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4865 do
4866   CC="$ac_save_CC $ac_arg"
4867   if ac_fn_c_try_compile "$LINENO"; then :
4868   ac_cv_prog_cc_c89=$ac_arg
4869 fi
4870 rm -f core conftest.err conftest.$ac_objext
4871   test "x$ac_cv_prog_cc_c89" != "xno" && break
4872 done
4873 rm -f conftest.$ac_ext
4874 CC=$ac_save_CC
4875
4876 fi
4877 # AC_CACHE_VAL
4878 case "x$ac_cv_prog_cc_c89" in
4879   x)
4880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4881 $as_echo "none needed" >&6; } ;;
4882   xno)
4883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4884 $as_echo "unsupported" >&6; } ;;
4885   *)
4886     CC="$CC $ac_cv_prog_cc_c89"
4887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4888 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4889 esac
4890 if test "x$ac_cv_prog_cc_c89" != xno; then :
4891
4892 fi
4893
4894 ac_ext=c
4895 ac_cpp='$CPP $CPPFLAGS'
4896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4899
4900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4901 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4902 if ${ac_cv_prog_cc_c99+:} false; then :
4903   $as_echo_n "(cached) " >&6
4904 else
4905   ac_cv_prog_cc_c99=no
4906 ac_save_CC=$CC
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h.  */
4909 #include <stdarg.h>
4910 #include <stdbool.h>
4911 #include <stdlib.h>
4912 #include <wchar.h>
4913 #include <stdio.h>
4914
4915 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4916 #define debug(...) fprintf (stderr, __VA_ARGS__)
4917 #define showlist(...) puts (#__VA_ARGS__)
4918 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4919 static void
4920 test_varargs_macros (void)
4921 {
4922   int x = 1234;
4923   int y = 5678;
4924   debug ("Flag");
4925   debug ("X = %d\n", x);
4926   showlist (The first, second, and third items.);
4927   report (x>y, "x is %d but y is %d", x, y);
4928 }
4929
4930 // Check long long types.
4931 #define BIG64 18446744073709551615ull
4932 #define BIG32 4294967295ul
4933 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4934 #if !BIG_OK
4935   your preprocessor is broken;
4936 #endif
4937 #if BIG_OK
4938 #else
4939   your preprocessor is broken;
4940 #endif
4941 static long long int bignum = -9223372036854775807LL;
4942 static unsigned long long int ubignum = BIG64;
4943
4944 struct incomplete_array
4945 {
4946   int datasize;
4947   double data[];
4948 };
4949
4950 struct named_init {
4951   int number;
4952   const wchar_t *name;
4953   double average;
4954 };
4955
4956 typedef const char *ccp;
4957
4958 static inline int
4959 test_restrict (ccp restrict text)
4960 {
4961   // See if C++-style comments work.
4962   // Iterate through items via the restricted pointer.
4963   // Also check for declarations in for loops.
4964   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4965     continue;
4966   return 0;
4967 }
4968
4969 // Check varargs and va_copy.
4970 static void
4971 test_varargs (const char *format, ...)
4972 {
4973   va_list args;
4974   va_start (args, format);
4975   va_list args_copy;
4976   va_copy (args_copy, args);
4977
4978   const char *str;
4979   int number;
4980   float fnumber;
4981
4982   while (*format)
4983     {
4984       switch (*format++)
4985         {
4986         case 's': // string
4987           str = va_arg (args_copy, const char *);
4988           break;
4989         case 'd': // int
4990           number = va_arg (args_copy, int);
4991           break;
4992         case 'f': // float
4993           fnumber = va_arg (args_copy, double);
4994           break;
4995         default:
4996           break;
4997         }
4998     }
4999   va_end (args_copy);
5000   va_end (args);
5001 }
5002
5003 int
5004 main ()
5005 {
5006
5007   // Check bool.
5008   _Bool success = false;
5009
5010   // Check restrict.
5011   if (test_restrict ("String literal") == 0)
5012     success = true;
5013   char *restrict newvar = "Another string";
5014
5015   // Check varargs.
5016   test_varargs ("s, d' f .", "string", 65, 34.234);
5017   test_varargs_macros ();
5018
5019   // Check flexible array members.
5020   struct incomplete_array *ia =
5021     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5022   ia->datasize = 10;
5023   for (int i = 0; i < ia->datasize; ++i)
5024     ia->data[i] = i * 1.234;
5025
5026   // Check named initializers.
5027   struct named_init ni = {
5028     .number = 34,
5029     .name = L"Test wide string",
5030     .average = 543.34343,
5031   };
5032
5033   ni.number = 58;
5034
5035   int dynamic_array[ni.number];
5036   dynamic_array[ni.number - 1] = 543;
5037
5038   // work around unused variable warnings
5039   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5040           || dynamic_array[ni.number - 1] != 543);
5041
5042   ;
5043   return 0;
5044 }
5045 _ACEOF
5046 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5047 do
5048   CC="$ac_save_CC $ac_arg"
5049   if ac_fn_c_try_compile "$LINENO"; then :
5050   ac_cv_prog_cc_c99=$ac_arg
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext
5053   test "x$ac_cv_prog_cc_c99" != "xno" && break
5054 done
5055 rm -f conftest.$ac_ext
5056 CC=$ac_save_CC
5057
5058 fi
5059 # AC_CACHE_VAL
5060 case "x$ac_cv_prog_cc_c99" in
5061   x)
5062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5063 $as_echo "none needed" >&6; } ;;
5064   xno)
5065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5066 $as_echo "unsupported" >&6; } ;;
5067   *)
5068     CC="$CC $ac_cv_prog_cc_c99"
5069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5070 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5071 esac
5072 if test "x$ac_cv_prog_cc_c99" != xno; then :
5073
5074 fi
5075
5076
5077 ac_ext=cpp
5078 ac_cpp='$CXXCPP $CPPFLAGS'
5079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5082 if test -z "$CXX"; then
5083   if test -n "$CCC"; then
5084     CXX=$CCC
5085   else
5086     if test -n "$ac_tool_prefix"; then
5087   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5088   do
5089     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_CXX+:} false; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096   if test -n "$CXX"; then
5097   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102   IFS=$as_save_IFS
5103   test -z "$as_dir" && as_dir=.
5104     for ac_exec_ext in '' $ac_executable_extensions; do
5105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108     break 2
5109   fi
5110 done
5111   done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 CXX=$ac_cv_prog_CXX
5117 if test -n "$CXX"; then
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5119 $as_echo "$CXX" >&6; }
5120 else
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124
5125
5126     test -n "$CXX" && break
5127   done
5128 fi
5129 if test -z "$CXX"; then
5130   ac_ct_CXX=$CXX
5131   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5132 do
5133   # Extract the first word of "$ac_prog", so it can be a program name with args.
5134 set dummy $ac_prog; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5138   $as_echo_n "(cached) " >&6
5139 else
5140   if test -n "$ac_ct_CXX"; then
5141   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148     for ac_exec_ext in '' $ac_executable_extensions; do
5149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150     ac_cv_prog_ac_ct_CXX="$ac_prog"
5151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152     break 2
5153   fi
5154 done
5155   done
5156 IFS=$as_save_IFS
5157
5158 fi
5159 fi
5160 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5161 if test -n "$ac_ct_CXX"; then
5162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5163 $as_echo "$ac_ct_CXX" >&6; }
5164 else
5165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5167 fi
5168
5169
5170   test -n "$ac_ct_CXX" && break
5171 done
5172
5173   if test "x$ac_ct_CXX" = x; then
5174     CXX="g++"
5175   else
5176     case $cross_compiling:$ac_tool_warned in
5177 yes:)
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned=yes ;;
5181 esac
5182     CXX=$ac_ct_CXX
5183   fi
5184 fi
5185
5186   fi
5187 fi
5188 # Provide some information about the compiler.
5189 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5190 set X $ac_compile
5191 ac_compiler=$2
5192 for ac_option in --version -v -V -qversion; do
5193   { { ac_try="$ac_compiler $ac_option >&5"
5194 case "(($ac_try" in
5195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196   *) ac_try_echo=$ac_try;;
5197 esac
5198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5199 $as_echo "$ac_try_echo"; } >&5
5200   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5201   ac_status=$?
5202   if test -s conftest.err; then
5203     sed '10a\
5204 ... rest of stderr output deleted ...
5205          10q' conftest.err >conftest.er1
5206     cat conftest.er1 >&5
5207   fi
5208   rm -f conftest.er1 conftest.err
5209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5210   test $ac_status = 0; }
5211 done
5212
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5214 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5215 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5216   $as_echo_n "(cached) " >&6
5217 else
5218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h.  */
5220
5221 int
5222 main ()
5223 {
5224 #ifndef __GNUC__
5225        choke me
5226 #endif
5227
5228   ;
5229   return 0;
5230 }
5231 _ACEOF
5232 if ac_fn_cxx_try_compile "$LINENO"; then :
5233   ac_compiler_gnu=yes
5234 else
5235   ac_compiler_gnu=no
5236 fi
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5239
5240 fi
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5242 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5243 if test $ac_compiler_gnu = yes; then
5244   GXX=yes
5245 else
5246   GXX=
5247 fi
5248 ac_test_CXXFLAGS=${CXXFLAGS+set}
5249 ac_save_CXXFLAGS=$CXXFLAGS
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5251 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5252 if ${ac_cv_prog_cxx_g+:} false; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5256    ac_cxx_werror_flag=yes
5257    ac_cv_prog_cxx_g=no
5258    CXXFLAGS="-g"
5259    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h.  */
5261
5262 int
5263 main ()
5264 {
5265
5266   ;
5267   return 0;
5268 }
5269 _ACEOF
5270 if ac_fn_cxx_try_compile "$LINENO"; then :
5271   ac_cv_prog_cxx_g=yes
5272 else
5273   CXXFLAGS=""
5274       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h.  */
5276
5277 int
5278 main ()
5279 {
5280
5281   ;
5282   return 0;
5283 }
5284 _ACEOF
5285 if ac_fn_cxx_try_compile "$LINENO"; then :
5286
5287 else
5288   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5289          CXXFLAGS="-g"
5290          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h.  */
5292
5293 int
5294 main ()
5295 {
5296
5297   ;
5298   return 0;
5299 }
5300 _ACEOF
5301 if ac_fn_cxx_try_compile "$LINENO"; then :
5302   ac_cv_prog_cxx_g=yes
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5310 fi
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5312 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5313 if test "$ac_test_CXXFLAGS" = set; then
5314   CXXFLAGS=$ac_save_CXXFLAGS
5315 elif test $ac_cv_prog_cxx_g = yes; then
5316   if test "$GXX" = yes; then
5317     CXXFLAGS="-g -O2"
5318   else
5319     CXXFLAGS="-g"
5320   fi
5321 else
5322   if test "$GXX" = yes; then
5323     CXXFLAGS="-O2"
5324   else
5325     CXXFLAGS=
5326   fi
5327 fi
5328 ac_ext=c
5329 ac_cpp='$CPP $CPPFLAGS'
5330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333
5334
5335 # We must set the default linker to the linker used by gcc for the correct
5336 # operation of libtool.  If LD is not defined and we are using gcc, try to
5337 # set the LD default to the ld used by gcc.
5338 if test -z "$LD"; then
5339   if test "$GCC" = yes; then
5340     case $build in
5341     *-*-mingw*)
5342       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5343     *)
5344       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5345     esac
5346     case $gcc_prog_ld in
5347     # Accept absolute paths.
5348     [\\/]* | [A-Za-z]:[\\/]*)
5349       LD="$gcc_prog_ld" ;;
5350     esac
5351   fi
5352 fi
5353
5354 # Check whether -static-libstdc++ -static-libgcc is supported.
5355 have_static_libs=no
5356 if test "$GCC" = yes; then
5357   saved_LDFLAGS="$LDFLAGS"
5358
5359   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5361 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5362   ac_ext=cpp
5363 ac_cpp='$CXXCPP $CPPFLAGS'
5364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5367
5368
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h.  */
5371
5372 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5373 #error -static-libstdc++ not implemented
5374 #endif
5375 int main() {}
5376 _ACEOF
5377 if ac_fn_cxx_try_link "$LINENO"; then :
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5379 $as_echo "yes" >&6; }; have_static_libs=yes
5380 else
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384 rm -f core conftest.err conftest.$ac_objext \
5385     conftest$ac_exeext conftest.$ac_ext
5386   ac_ext=c
5387 ac_cpp='$CPP $CPPFLAGS'
5388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391
5392
5393   LDFLAGS="$saved_LDFLAGS"
5394 fi
5395
5396
5397
5398
5399 if test -n "$ac_tool_prefix"; then
5400   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5401 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_prog_GNATBIND+:} false; then :
5405   $as_echo_n "(cached) " >&6
5406 else
5407   if test -n "$GNATBIND"; then
5408   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413   IFS=$as_save_IFS
5414   test -z "$as_dir" && as_dir=.
5415     for ac_exec_ext in '' $ac_executable_extensions; do
5416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419     break 2
5420   fi
5421 done
5422   done
5423 IFS=$as_save_IFS
5424
5425 fi
5426 fi
5427 GNATBIND=$ac_cv_prog_GNATBIND
5428 if test -n "$GNATBIND"; then
5429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5430 $as_echo "$GNATBIND" >&6; }
5431 else
5432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5434 fi
5435
5436
5437 fi
5438 if test -z "$ac_cv_prog_GNATBIND"; then
5439   ac_ct_GNATBIND=$GNATBIND
5440   # Extract the first word of "gnatbind", so it can be a program name with args.
5441 set dummy gnatbind; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5445   $as_echo_n "(cached) " >&6
5446 else
5447   if test -n "$ac_ct_GNATBIND"; then
5448   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5449 else
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453   IFS=$as_save_IFS
5454   test -z "$as_dir" && as_dir=.
5455     for ac_exec_ext in '' $ac_executable_extensions; do
5456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459     break 2
5460   fi
5461 done
5462   done
5463 IFS=$as_save_IFS
5464
5465 fi
5466 fi
5467 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5468 if test -n "$ac_ct_GNATBIND"; then
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5470 $as_echo "$ac_ct_GNATBIND" >&6; }
5471 else
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5474 fi
5475
5476   if test "x$ac_ct_GNATBIND" = x; then
5477     GNATBIND="no"
5478   else
5479     case $cross_compiling:$ac_tool_warned in
5480 yes:)
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5483 ac_tool_warned=yes ;;
5484 esac
5485     GNATBIND=$ac_ct_GNATBIND
5486   fi
5487 else
5488   GNATBIND="$ac_cv_prog_GNATBIND"
5489 fi
5490
5491 if test -n "$ac_tool_prefix"; then
5492   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5493 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_GNATMAKE+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   if test -n "$GNATMAKE"; then
5500   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505   IFS=$as_save_IFS
5506   test -z "$as_dir" && as_dir=.
5507     for ac_exec_ext in '' $ac_executable_extensions; do
5508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511     break 2
5512   fi
5513 done
5514   done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 GNATMAKE=$ac_cv_prog_GNATMAKE
5520 if test -n "$GNATMAKE"; then
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5522 $as_echo "$GNATMAKE" >&6; }
5523 else
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528
5529 fi
5530 if test -z "$ac_cv_prog_GNATMAKE"; then
5531   ac_ct_GNATMAKE=$GNATMAKE
5532   # Extract the first word of "gnatmake", so it can be a program name with args.
5533 set dummy gnatmake; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5537   $as_echo_n "(cached) " >&6
5538 else
5539   if test -n "$ac_ct_GNATMAKE"; then
5540   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545   IFS=$as_save_IFS
5546   test -z "$as_dir" && as_dir=.
5547     for ac_exec_ext in '' $ac_executable_extensions; do
5548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551     break 2
5552   fi
5553 done
5554   done
5555 IFS=$as_save_IFS
5556
5557 fi
5558 fi
5559 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5560 if test -n "$ac_ct_GNATMAKE"; then
5561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5562 $as_echo "$ac_ct_GNATMAKE" >&6; }
5563 else
5564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566 fi
5567
5568   if test "x$ac_ct_GNATMAKE" = x; then
5569     GNATMAKE="no"
5570   else
5571     case $cross_compiling:$ac_tool_warned in
5572 yes:)
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5575 ac_tool_warned=yes ;;
5576 esac
5577     GNATMAKE=$ac_ct_GNATMAKE
5578   fi
5579 else
5580   GNATMAKE="$ac_cv_prog_GNATMAKE"
5581 fi
5582
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5584 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5585 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588   cat >conftest.adb <<EOF
5589 procedure conftest is begin null; end conftest;
5590 EOF
5591 acx_cv_cc_gcc_supports_ada=no
5592 # There is a bug in old released versions of GCC which causes the
5593 # driver to exit successfully when the appropriate language module
5594 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5595 # Therefore we must check for the error message as well as an
5596 # unsuccessful exit.
5597 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5598 # given a .adb file, but produce no object file.  So we must check
5599 # if an object file was really produced to guard against this.
5600 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5601 if test x"$errors" = x && test -f conftest.$ac_objext; then
5602   acx_cv_cc_gcc_supports_ada=yes
5603 fi
5604 rm -f conftest.*
5605 fi
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5607 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5608
5609 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5610   have_gnat=yes
5611 else
5612   have_gnat=no
5613 fi
5614
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5616 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5617 if ${gcc_cv_prog_cmp_skip+:} false; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620    echo abfoo >t1
5621   echo cdfoo >t2
5622   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5623   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5624     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5625       :
5626     else
5627       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5628     fi
5629   fi
5630   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5631     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5632       :
5633     else
5634       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5635     fi
5636   fi
5637   rm t1 t2
5638
5639 fi
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5641 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5642 do_compare="$gcc_cv_prog_cmp_skip"
5643
5644
5645
5646 # Check whether --enable-bootstrap was given.
5647 if test "${enable_bootstrap+set}" = set; then :
5648   enableval=$enable_bootstrap;
5649 else
5650   enable_bootstrap=default
5651 fi
5652
5653
5654 # Issue errors and warnings for invalid/strange bootstrap combinations.
5655 if test -r $srcdir/gcc/configure; then
5656   have_compiler=yes
5657 else
5658   have_compiler=no
5659 fi
5660
5661 case "$have_compiler:$host:$target:$enable_bootstrap" in
5662   *:*:*:no) ;;
5663
5664   # Default behavior.  Enable bootstrap if we have a compiler
5665   # and we are in a native configuration.
5666   yes:$build:$build:default)
5667     enable_bootstrap=yes ;;
5668
5669   *:*:*:default)
5670     enable_bootstrap=no ;;
5671
5672   # We have a compiler and we are in a native configuration, bootstrap is ok
5673   yes:$build:$build:yes)
5674     ;;
5675
5676   # Other configurations, but we have a compiler.  Assume the user knows
5677   # what he's doing.
5678   yes:*:*:yes)
5679     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5680 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5681     ;;
5682
5683   # No compiler: if they passed --enable-bootstrap explicitly, fail
5684   no:*:*:yes)
5685     as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5686
5687   # Fail if wrong command line
5688   *)
5689     as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5690     ;;
5691 esac
5692
5693 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5694 # C++11 compiler can still start the bootstrap.  Otherwise, if building GCC,
5695 # require C++11 (or higher).
5696 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5697   CXX="$CXX -std=c++11"
5698 elif test "$have_compiler" = yes; then
5699     ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5700   ac_ext=cpp
5701 ac_cpp='$CXXCPP $CPPFLAGS'
5702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5705   ac_success=no
5706
5707       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5708 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5709 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5710   $as_echo_n "(cached) " >&6
5711 else
5712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h.  */
5714
5715
5716 // If the compiler admits that it is not ready for C++11, why torture it?
5717 // Hopefully, this will speed up the test.
5718
5719 #ifndef __cplusplus
5720
5721 #error "This is not a C++ compiler"
5722
5723 #elif __cplusplus < 201103L
5724
5725 #error "This is not a C++11 compiler"
5726
5727 #else
5728
5729 namespace cxx11
5730 {
5731
5732   namespace test_static_assert
5733   {
5734
5735     template <typename T>
5736     struct check
5737     {
5738       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5739     };
5740
5741   }
5742
5743   namespace test_final_override
5744   {
5745
5746     struct Base
5747     {
5748       virtual ~Base() {}
5749       virtual void f() {}
5750     };
5751
5752     struct Derived : public Base
5753     {
5754       virtual ~Derived() override {}
5755       virtual void f() override {}
5756     };
5757
5758   }
5759
5760   namespace test_double_right_angle_brackets
5761   {
5762
5763     template < typename T >
5764     struct check {};
5765
5766     typedef check<void> single_type;
5767     typedef check<check<void>> double_type;
5768     typedef check<check<check<void>>> triple_type;
5769     typedef check<check<check<check<void>>>> quadruple_type;
5770
5771   }
5772
5773   namespace test_decltype
5774   {
5775
5776     int
5777     f()
5778     {
5779       int a = 1;
5780       decltype(a) b = 2;
5781       return a + b;
5782     }
5783
5784   }
5785
5786   namespace test_type_deduction
5787   {
5788
5789     template < typename T1, typename T2 >
5790     struct is_same
5791     {
5792       static const bool value = false;
5793     };
5794
5795     template < typename T >
5796     struct is_same<T, T>
5797     {
5798       static const bool value = true;
5799     };
5800
5801     template < typename T1, typename T2 >
5802     auto
5803     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5804     {
5805       return a1 + a2;
5806     }
5807
5808     int
5809     test(const int c, volatile int v)
5810     {
5811       static_assert(is_same<int, decltype(0)>::value == true, "");
5812       static_assert(is_same<int, decltype(c)>::value == false, "");
5813       static_assert(is_same<int, decltype(v)>::value == false, "");
5814       auto ac = c;
5815       auto av = v;
5816       auto sumi = ac + av + 'x';
5817       auto sumf = ac + av + 1.0;
5818       static_assert(is_same<int, decltype(ac)>::value == true, "");
5819       static_assert(is_same<int, decltype(av)>::value == true, "");
5820       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5821       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5822       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5823       return (sumf > 0.0) ? sumi : add(c, v);
5824     }
5825
5826   }
5827
5828   namespace test_noexcept
5829   {
5830
5831     int f() { return 0; }
5832     int g() noexcept { return 0; }
5833
5834     static_assert(noexcept(f()) == false, "");
5835     static_assert(noexcept(g()) == true, "");
5836
5837   }
5838
5839   namespace test_constexpr
5840   {
5841
5842     template < typename CharT >
5843     unsigned long constexpr
5844     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5845     {
5846       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5847     }
5848
5849     template < typename CharT >
5850     unsigned long constexpr
5851     strlen_c(const CharT *const s) noexcept
5852     {
5853       return strlen_c_r(s, 0UL);
5854     }
5855
5856     static_assert(strlen_c("") == 0UL, "");
5857     static_assert(strlen_c("1") == 1UL, "");
5858     static_assert(strlen_c("example") == 7UL, "");
5859     static_assert(strlen_c("another\0example") == 7UL, "");
5860
5861   }
5862
5863   namespace test_rvalue_references
5864   {
5865
5866     template < int N >
5867     struct answer
5868     {
5869       static constexpr int value = N;
5870     };
5871
5872     answer<1> f(int&)       { return answer<1>(); }
5873     answer<2> f(const int&) { return answer<2>(); }
5874     answer<3> f(int&&)      { return answer<3>(); }
5875
5876     void
5877     test()
5878     {
5879       int i = 0;
5880       const int c = 0;
5881       static_assert(decltype(f(i))::value == 1, "");
5882       static_assert(decltype(f(c))::value == 2, "");
5883       static_assert(decltype(f(0))::value == 3, "");
5884     }
5885
5886   }
5887
5888   namespace test_uniform_initialization
5889   {
5890
5891     struct test
5892     {
5893       static const int zero {};
5894       static const int one {1};
5895     };
5896
5897     static_assert(test::zero == 0, "");
5898     static_assert(test::one == 1, "");
5899
5900   }
5901
5902   namespace test_lambdas
5903   {
5904
5905     void
5906     test1()
5907     {
5908       auto lambda1 = [](){};
5909       auto lambda2 = lambda1;
5910       lambda1();
5911       lambda2();
5912     }
5913
5914     int
5915     test2()
5916     {
5917       auto a = [](int i, int j){ return i + j; }(1, 2);
5918       auto b = []() -> int { return '0'; }();
5919       auto c = [=](){ return a + b; }();
5920       auto d = [&](){ return c; }();
5921       auto e = [a, &b](int x) mutable {
5922         const auto identity = [](int y){ return y; };
5923         for (auto i = 0; i < a; ++i)
5924           a += b--;
5925         return x + identity(a + b);
5926       }(0);
5927       return a + b + c + d + e;
5928     }
5929
5930     int
5931     test3()
5932     {
5933       const auto nullary = [](){ return 0; };
5934       const auto unary = [](int x){ return x; };
5935       using nullary_t = decltype(nullary);
5936       using unary_t = decltype(unary);
5937       const auto higher1st = [](nullary_t f){ return f(); };
5938       const auto higher2nd = [unary](nullary_t f1){
5939         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5940       };
5941       return higher1st(nullary) + higher2nd(nullary)(unary);
5942     }
5943
5944   }
5945
5946   namespace test_variadic_templates
5947   {
5948
5949     template <int...>
5950     struct sum;
5951
5952     template <int N0, int... N1toN>
5953     struct sum<N0, N1toN...>
5954     {
5955       static constexpr auto value = N0 + sum<N1toN...>::value;
5956     };
5957
5958     template <>
5959     struct sum<>
5960     {
5961       static constexpr auto value = 0;
5962     };
5963
5964     static_assert(sum<>::value == 0, "");
5965     static_assert(sum<1>::value == 1, "");
5966     static_assert(sum<23>::value == 23, "");
5967     static_assert(sum<1, 2>::value == 3, "");
5968     static_assert(sum<5, 5, 11>::value == 21, "");
5969     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5970
5971   }
5972
5973   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5974   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5975   // because of this.
5976   namespace test_template_alias_sfinae
5977   {
5978
5979     struct foo {};
5980
5981     template<typename T>
5982     using member = typename T::member_type;
5983
5984     template<typename T>
5985     void func(...) {}
5986
5987     template<typename T>
5988     void func(member<T>*) {}
5989
5990     void test();
5991
5992     void test() { func<foo>(0); }
5993
5994   }
5995
5996 }  // namespace cxx11
5997
5998 #endif  // __cplusplus >= 201103L
5999
6000
6001
6002 _ACEOF
6003 if ac_fn_cxx_try_compile "$LINENO"; then :
6004   ax_cv_cxx_compile_cxx11=yes
6005 else
6006   ax_cv_cxx_compile_cxx11=no
6007 fi
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 fi
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6011 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6012     if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6013       ac_success=yes
6014     fi
6015
6016     if test x$ac_success = xno; then
6017     for alternative in ${ax_cxx_compile_alternatives}; do
6018       switch="-std=gnu++${alternative}"
6019       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6020       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6021 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6022 if eval \${$cachevar+:} false; then :
6023   $as_echo_n "(cached) " >&6
6024 else
6025   ac_save_CXX="$CXX"
6026          CXX="$CXX $switch"
6027          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h.  */
6029
6030
6031 // If the compiler admits that it is not ready for C++11, why torture it?
6032 // Hopefully, this will speed up the test.
6033
6034 #ifndef __cplusplus
6035
6036 #error "This is not a C++ compiler"
6037
6038 #elif __cplusplus < 201103L
6039
6040 #error "This is not a C++11 compiler"
6041
6042 #else
6043
6044 namespace cxx11
6045 {
6046
6047   namespace test_static_assert
6048   {
6049
6050     template <typename T>
6051     struct check
6052     {
6053       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6054     };
6055
6056   }
6057
6058   namespace test_final_override
6059   {
6060
6061     struct Base
6062     {
6063       virtual ~Base() {}
6064       virtual void f() {}
6065     };
6066
6067     struct Derived : public Base
6068     {
6069       virtual ~Derived() override {}
6070       virtual void f() override {}
6071     };
6072
6073   }
6074
6075   namespace test_double_right_angle_brackets
6076   {
6077
6078     template < typename T >
6079     struct check {};
6080
6081     typedef check<void> single_type;
6082     typedef check<check<void>> double_type;
6083     typedef check<check<check<void>>> triple_type;
6084     typedef check<check<check<check<void>>>> quadruple_type;
6085
6086   }
6087
6088   namespace test_decltype
6089   {
6090
6091     int
6092     f()
6093     {
6094       int a = 1;
6095       decltype(a) b = 2;
6096       return a + b;
6097     }
6098
6099   }
6100
6101   namespace test_type_deduction
6102   {
6103
6104     template < typename T1, typename T2 >
6105     struct is_same
6106     {
6107       static const bool value = false;
6108     };
6109
6110     template < typename T >
6111     struct is_same<T, T>
6112     {
6113       static const bool value = true;
6114     };
6115
6116     template < typename T1, typename T2 >
6117     auto
6118     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6119     {
6120       return a1 + a2;
6121     }
6122
6123     int
6124     test(const int c, volatile int v)
6125     {
6126       static_assert(is_same<int, decltype(0)>::value == true, "");
6127       static_assert(is_same<int, decltype(c)>::value == false, "");
6128       static_assert(is_same<int, decltype(v)>::value == false, "");
6129       auto ac = c;
6130       auto av = v;
6131       auto sumi = ac + av + 'x';
6132       auto sumf = ac + av + 1.0;
6133       static_assert(is_same<int, decltype(ac)>::value == true, "");
6134       static_assert(is_same<int, decltype(av)>::value == true, "");
6135       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6136       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6137       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6138       return (sumf > 0.0) ? sumi : add(c, v);
6139     }
6140
6141   }
6142
6143   namespace test_noexcept
6144   {
6145
6146     int f() { return 0; }
6147     int g() noexcept { return 0; }
6148
6149     static_assert(noexcept(f()) == false, "");
6150     static_assert(noexcept(g()) == true, "");
6151
6152   }
6153
6154   namespace test_constexpr
6155   {
6156
6157     template < typename CharT >
6158     unsigned long constexpr
6159     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6160     {
6161       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6162     }
6163
6164     template < typename CharT >
6165     unsigned long constexpr
6166     strlen_c(const CharT *const s) noexcept
6167     {
6168       return strlen_c_r(s, 0UL);
6169     }
6170
6171     static_assert(strlen_c("") == 0UL, "");
6172     static_assert(strlen_c("1") == 1UL, "");
6173     static_assert(strlen_c("example") == 7UL, "");
6174     static_assert(strlen_c("another\0example") == 7UL, "");
6175
6176   }
6177
6178   namespace test_rvalue_references
6179   {
6180
6181     template < int N >
6182     struct answer
6183     {
6184       static constexpr int value = N;
6185     };
6186
6187     answer<1> f(int&)       { return answer<1>(); }
6188     answer<2> f(const int&) { return answer<2>(); }
6189     answer<3> f(int&&)      { return answer<3>(); }
6190
6191     void
6192     test()
6193     {
6194       int i = 0;
6195       const int c = 0;
6196       static_assert(decltype(f(i))::value == 1, "");
6197       static_assert(decltype(f(c))::value == 2, "");
6198       static_assert(decltype(f(0))::value == 3, "");
6199     }
6200
6201   }
6202
6203   namespace test_uniform_initialization
6204   {
6205
6206     struct test
6207     {
6208       static const int zero {};
6209       static const int one {1};
6210     };
6211
6212     static_assert(test::zero == 0, "");
6213     static_assert(test::one == 1, "");
6214
6215   }
6216
6217   namespace test_lambdas
6218   {
6219
6220     void
6221     test1()
6222     {
6223       auto lambda1 = [](){};
6224       auto lambda2 = lambda1;
6225       lambda1();
6226       lambda2();
6227     }
6228
6229     int
6230     test2()
6231     {
6232       auto a = [](int i, int j){ return i + j; }(1, 2);
6233       auto b = []() -> int { return '0'; }();
6234       auto c = [=](){ return a + b; }();
6235       auto d = [&](){ return c; }();
6236       auto e = [a, &b](int x) mutable {
6237         const auto identity = [](int y){ return y; };
6238         for (auto i = 0; i < a; ++i)
6239           a += b--;
6240         return x + identity(a + b);
6241       }(0);
6242       return a + b + c + d + e;
6243     }
6244
6245     int
6246     test3()
6247     {
6248       const auto nullary = [](){ return 0; };
6249       const auto unary = [](int x){ return x; };
6250       using nullary_t = decltype(nullary);
6251       using unary_t = decltype(unary);
6252       const auto higher1st = [](nullary_t f){ return f(); };
6253       const auto higher2nd = [unary](nullary_t f1){
6254         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6255       };
6256       return higher1st(nullary) + higher2nd(nullary)(unary);
6257     }
6258
6259   }
6260
6261   namespace test_variadic_templates
6262   {
6263
6264     template <int...>
6265     struct sum;
6266
6267     template <int N0, int... N1toN>
6268     struct sum<N0, N1toN...>
6269     {
6270       static constexpr auto value = N0 + sum<N1toN...>::value;
6271     };
6272
6273     template <>
6274     struct sum<>
6275     {
6276       static constexpr auto value = 0;
6277     };
6278
6279     static_assert(sum<>::value == 0, "");
6280     static_assert(sum<1>::value == 1, "");
6281     static_assert(sum<23>::value == 23, "");
6282     static_assert(sum<1, 2>::value == 3, "");
6283     static_assert(sum<5, 5, 11>::value == 21, "");
6284     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6285
6286   }
6287
6288   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6289   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6290   // because of this.
6291   namespace test_template_alias_sfinae
6292   {
6293
6294     struct foo {};
6295
6296     template<typename T>
6297     using member = typename T::member_type;
6298
6299     template<typename T>
6300     void func(...) {}
6301
6302     template<typename T>
6303     void func(member<T>*) {}
6304
6305     void test();
6306
6307     void test() { func<foo>(0); }
6308
6309   }
6310
6311 }  // namespace cxx11
6312
6313 #endif  // __cplusplus >= 201103L
6314
6315
6316
6317 _ACEOF
6318 if ac_fn_cxx_try_compile "$LINENO"; then :
6319   eval $cachevar=yes
6320 else
6321   eval $cachevar=no
6322 fi
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324          CXX="$ac_save_CXX"
6325 fi
6326 eval ac_res=\$$cachevar
6327                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6328 $as_echo "$ac_res" >&6; }
6329       if eval test x\$$cachevar = xyes; then
6330         CXX="$CXX $switch"
6331         if test -n "$CXXCPP" ; then
6332           CXXCPP="$CXXCPP $switch"
6333         fi
6334         ac_success=yes
6335         break
6336       fi
6337     done
6338   fi
6339
6340     if test x$ac_success = xno; then
6341                 for alternative in ${ax_cxx_compile_alternatives}; do
6342       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6343         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6344         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6345 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6346 if eval \${$cachevar+:} false; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   ac_save_CXX="$CXX"
6350            CXX="$CXX $switch"
6351            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h.  */
6353
6354
6355 // If the compiler admits that it is not ready for C++11, why torture it?
6356 // Hopefully, this will speed up the test.
6357
6358 #ifndef __cplusplus
6359
6360 #error "This is not a C++ compiler"
6361
6362 #elif __cplusplus < 201103L
6363
6364 #error "This is not a C++11 compiler"
6365
6366 #else
6367
6368 namespace cxx11
6369 {
6370
6371   namespace test_static_assert
6372   {
6373
6374     template <typename T>
6375     struct check
6376     {
6377       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6378     };
6379
6380   }
6381
6382   namespace test_final_override
6383   {
6384
6385     struct Base
6386     {
6387       virtual ~Base() {}
6388       virtual void f() {}
6389     };
6390
6391     struct Derived : public Base
6392     {
6393       virtual ~Derived() override {}
6394       virtual void f() override {}
6395     };
6396
6397   }
6398
6399   namespace test_double_right_angle_brackets
6400   {
6401
6402     template < typename T >
6403     struct check {};
6404
6405     typedef check<void> single_type;
6406     typedef check<check<void>> double_type;
6407     typedef check<check<check<void>>> triple_type;
6408     typedef check<check<check<check<void>>>> quadruple_type;
6409
6410   }
6411
6412   namespace test_decltype
6413   {
6414
6415     int
6416     f()
6417     {
6418       int a = 1;
6419       decltype(a) b = 2;
6420       return a + b;
6421     }
6422
6423   }
6424
6425   namespace test_type_deduction
6426   {
6427
6428     template < typename T1, typename T2 >
6429     struct is_same
6430     {
6431       static const bool value = false;
6432     };
6433
6434     template < typename T >
6435     struct is_same<T, T>
6436     {
6437       static const bool value = true;
6438     };
6439
6440     template < typename T1, typename T2 >
6441     auto
6442     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6443     {
6444       return a1 + a2;
6445     }
6446
6447     int
6448     test(const int c, volatile int v)
6449     {
6450       static_assert(is_same<int, decltype(0)>::value == true, "");
6451       static_assert(is_same<int, decltype(c)>::value == false, "");
6452       static_assert(is_same<int, decltype(v)>::value == false, "");
6453       auto ac = c;
6454       auto av = v;
6455       auto sumi = ac + av + 'x';
6456       auto sumf = ac + av + 1.0;
6457       static_assert(is_same<int, decltype(ac)>::value == true, "");
6458       static_assert(is_same<int, decltype(av)>::value == true, "");
6459       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6460       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6461       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6462       return (sumf > 0.0) ? sumi : add(c, v);
6463     }
6464
6465   }
6466
6467   namespace test_noexcept
6468   {
6469
6470     int f() { return 0; }
6471     int g() noexcept { return 0; }
6472
6473     static_assert(noexcept(f()) == false, "");
6474     static_assert(noexcept(g()) == true, "");
6475
6476   }
6477
6478   namespace test_constexpr
6479   {
6480
6481     template < typename CharT >
6482     unsigned long constexpr
6483     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6484     {
6485       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6486     }
6487
6488     template < typename CharT >
6489     unsigned long constexpr
6490     strlen_c(const CharT *const s) noexcept
6491     {
6492       return strlen_c_r(s, 0UL);
6493     }
6494
6495     static_assert(strlen_c("") == 0UL, "");
6496     static_assert(strlen_c("1") == 1UL, "");
6497     static_assert(strlen_c("example") == 7UL, "");
6498     static_assert(strlen_c("another\0example") == 7UL, "");
6499
6500   }
6501
6502   namespace test_rvalue_references
6503   {
6504
6505     template < int N >
6506     struct answer
6507     {
6508       static constexpr int value = N;
6509     };
6510
6511     answer<1> f(int&)       { return answer<1>(); }
6512     answer<2> f(const int&) { return answer<2>(); }
6513     answer<3> f(int&&)      { return answer<3>(); }
6514
6515     void
6516     test()
6517     {
6518       int i = 0;
6519       const int c = 0;
6520       static_assert(decltype(f(i))::value == 1, "");
6521       static_assert(decltype(f(c))::value == 2, "");
6522       static_assert(decltype(f(0))::value == 3, "");
6523     }
6524
6525   }
6526
6527   namespace test_uniform_initialization
6528   {
6529
6530     struct test
6531     {
6532       static const int zero {};
6533       static const int one {1};
6534     };
6535
6536     static_assert(test::zero == 0, "");
6537     static_assert(test::one == 1, "");
6538
6539   }
6540
6541   namespace test_lambdas
6542   {
6543
6544     void
6545     test1()
6546     {
6547       auto lambda1 = [](){};
6548       auto lambda2 = lambda1;
6549       lambda1();
6550       lambda2();
6551     }
6552
6553     int
6554     test2()
6555     {
6556       auto a = [](int i, int j){ return i + j; }(1, 2);
6557       auto b = []() -> int { return '0'; }();
6558       auto c = [=](){ return a + b; }();
6559       auto d = [&](){ return c; }();
6560       auto e = [a, &b](int x) mutable {
6561         const auto identity = [](int y){ return y; };
6562         for (auto i = 0; i < a; ++i)
6563           a += b--;
6564         return x + identity(a + b);
6565       }(0);
6566       return a + b + c + d + e;
6567     }
6568
6569     int
6570     test3()
6571     {
6572       const auto nullary = [](){ return 0; };
6573       const auto unary = [](int x){ return x; };
6574       using nullary_t = decltype(nullary);
6575       using unary_t = decltype(unary);
6576       const auto higher1st = [](nullary_t f){ return f(); };
6577       const auto higher2nd = [unary](nullary_t f1){
6578         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6579       };
6580       return higher1st(nullary) + higher2nd(nullary)(unary);
6581     }
6582
6583   }
6584
6585   namespace test_variadic_templates
6586   {
6587
6588     template <int...>
6589     struct sum;
6590
6591     template <int N0, int... N1toN>
6592     struct sum<N0, N1toN...>
6593     {
6594       static constexpr auto value = N0 + sum<N1toN...>::value;
6595     };
6596
6597     template <>
6598     struct sum<>
6599     {
6600       static constexpr auto value = 0;
6601     };
6602
6603     static_assert(sum<>::value == 0, "");
6604     static_assert(sum<1>::value == 1, "");
6605     static_assert(sum<23>::value == 23, "");
6606     static_assert(sum<1, 2>::value == 3, "");
6607     static_assert(sum<5, 5, 11>::value == 21, "");
6608     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6609
6610   }
6611
6612   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6613   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6614   // because of this.
6615   namespace test_template_alias_sfinae
6616   {
6617
6618     struct foo {};
6619
6620     template<typename T>
6621     using member = typename T::member_type;
6622
6623     template<typename T>
6624     void func(...) {}
6625
6626     template<typename T>
6627     void func(member<T>*) {}
6628
6629     void test();
6630
6631     void test() { func<foo>(0); }
6632
6633   }
6634
6635 }  // namespace cxx11
6636
6637 #endif  // __cplusplus >= 201103L
6638
6639
6640
6641 _ACEOF
6642 if ac_fn_cxx_try_compile "$LINENO"; then :
6643   eval $cachevar=yes
6644 else
6645   eval $cachevar=no
6646 fi
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648            CXX="$ac_save_CXX"
6649 fi
6650 eval ac_res=\$$cachevar
6651                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6652 $as_echo "$ac_res" >&6; }
6653         if eval test x\$$cachevar = xyes; then
6654           CXX="$CXX $switch"
6655           if test -n "$CXXCPP" ; then
6656             CXXCPP="$CXXCPP $switch"
6657           fi
6658           ac_success=yes
6659           break
6660         fi
6661       done
6662       if test x$ac_success = xyes; then
6663         break
6664       fi
6665     done
6666   fi
6667
6668   ac_ext=c
6669 ac_cpp='$CPP $CPPFLAGS'
6670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6673
6674   if test x$ax_cxx_compile_cxx11_required = xtrue; then
6675     if test x$ac_success = xno; then
6676       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6677     fi
6678   fi
6679   if test x$ac_success = xno; then
6680     HAVE_CXX11=0
6681     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6682 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6683   else
6684     HAVE_CXX11=1
6685
6686 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6687
6688   fi
6689
6690
6691
6692   if test "${build}" != "${host}"; then
6693       ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
6694   ac_ext=cpp
6695 ac_cpp='$CXXCPP $CPPFLAGS'
6696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6699   ac_success=no
6700       ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6701     ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6702     ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6703     CXX="$CXX_FOR_BUILD"
6704     CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6705     CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6706       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6707 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6708 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6709   $as_echo_n "(cached) " >&6
6710 else
6711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h.  */
6713
6714
6715 // If the compiler admits that it is not ready for C++11, why torture it?
6716 // Hopefully, this will speed up the test.
6717
6718 #ifndef __cplusplus
6719
6720 #error "This is not a C++ compiler"
6721
6722 #elif __cplusplus < 201103L
6723
6724 #error "This is not a C++11 compiler"
6725
6726 #else
6727
6728 namespace cxx11
6729 {
6730
6731   namespace test_static_assert
6732   {
6733
6734     template <typename T>
6735     struct check
6736     {
6737       static_assert(sizeof(int) <= sizeof(T), "not big enough");
6738     };
6739
6740   }
6741
6742   namespace test_final_override
6743   {
6744
6745     struct Base
6746     {
6747       virtual ~Base() {}
6748       virtual void f() {}
6749     };
6750
6751     struct Derived : public Base
6752     {
6753       virtual ~Derived() override {}
6754       virtual void f() override {}
6755     };
6756
6757   }
6758
6759   namespace test_double_right_angle_brackets
6760   {
6761
6762     template < typename T >
6763     struct check {};
6764
6765     typedef check<void> single_type;
6766     typedef check<check<void>> double_type;
6767     typedef check<check<check<void>>> triple_type;
6768     typedef check<check<check<check<void>>>> quadruple_type;
6769
6770   }
6771
6772   namespace test_decltype
6773   {
6774
6775     int
6776     f()
6777     {
6778       int a = 1;
6779       decltype(a) b = 2;
6780       return a + b;
6781     }
6782
6783   }
6784
6785   namespace test_type_deduction
6786   {
6787
6788     template < typename T1, typename T2 >
6789     struct is_same
6790     {
6791       static const bool value = false;
6792     };
6793
6794     template < typename T >
6795     struct is_same<T, T>
6796     {
6797       static const bool value = true;
6798     };
6799
6800     template < typename T1, typename T2 >
6801     auto
6802     add(T1 a1, T2 a2) -> decltype(a1 + a2)
6803     {
6804       return a1 + a2;
6805     }
6806
6807     int
6808     test(const int c, volatile int v)
6809     {
6810       static_assert(is_same<int, decltype(0)>::value == true, "");
6811       static_assert(is_same<int, decltype(c)>::value == false, "");
6812       static_assert(is_same<int, decltype(v)>::value == false, "");
6813       auto ac = c;
6814       auto av = v;
6815       auto sumi = ac + av + 'x';
6816       auto sumf = ac + av + 1.0;
6817       static_assert(is_same<int, decltype(ac)>::value == true, "");
6818       static_assert(is_same<int, decltype(av)>::value == true, "");
6819       static_assert(is_same<int, decltype(sumi)>::value == true, "");
6820       static_assert(is_same<int, decltype(sumf)>::value == false, "");
6821       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6822       return (sumf > 0.0) ? sumi : add(c, v);
6823     }
6824
6825   }
6826
6827   namespace test_noexcept
6828   {
6829
6830     int f() { return 0; }
6831     int g() noexcept { return 0; }
6832
6833     static_assert(noexcept(f()) == false, "");
6834     static_assert(noexcept(g()) == true, "");
6835
6836   }
6837
6838   namespace test_constexpr
6839   {
6840
6841     template < typename CharT >
6842     unsigned long constexpr
6843     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6844     {
6845       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6846     }
6847
6848     template < typename CharT >
6849     unsigned long constexpr
6850     strlen_c(const CharT *const s) noexcept
6851     {
6852       return strlen_c_r(s, 0UL);
6853     }
6854
6855     static_assert(strlen_c("") == 0UL, "");
6856     static_assert(strlen_c("1") == 1UL, "");
6857     static_assert(strlen_c("example") == 7UL, "");
6858     static_assert(strlen_c("another\0example") == 7UL, "");
6859
6860   }
6861
6862   namespace test_rvalue_references
6863   {
6864
6865     template < int N >
6866     struct answer
6867     {
6868       static constexpr int value = N;
6869     };
6870
6871     answer<1> f(int&)       { return answer<1>(); }
6872     answer<2> f(const int&) { return answer<2>(); }
6873     answer<3> f(int&&)      { return answer<3>(); }
6874
6875     void
6876     test()
6877     {
6878       int i = 0;
6879       const int c = 0;
6880       static_assert(decltype(f(i))::value == 1, "");
6881       static_assert(decltype(f(c))::value == 2, "");
6882       static_assert(decltype(f(0))::value == 3, "");
6883     }
6884
6885   }
6886
6887   namespace test_uniform_initialization
6888   {
6889
6890     struct test
6891     {
6892       static const int zero {};
6893       static const int one {1};
6894     };
6895
6896     static_assert(test::zero == 0, "");
6897     static_assert(test::one == 1, "");
6898
6899   }
6900
6901   namespace test_lambdas
6902   {
6903
6904     void
6905     test1()
6906     {
6907       auto lambda1 = [](){};
6908       auto lambda2 = lambda1;
6909       lambda1();
6910       lambda2();
6911     }
6912
6913     int
6914     test2()
6915     {
6916       auto a = [](int i, int j){ return i + j; }(1, 2);
6917       auto b = []() -> int { return '0'; }();
6918       auto c = [=](){ return a + b; }();
6919       auto d = [&](){ return c; }();
6920       auto e = [a, &b](int x) mutable {
6921         const auto identity = [](int y){ return y; };
6922         for (auto i = 0; i < a; ++i)
6923           a += b--;
6924         return x + identity(a + b);
6925       }(0);
6926       return a + b + c + d + e;
6927     }
6928
6929     int
6930     test3()
6931     {
6932       const auto nullary = [](){ return 0; };
6933       const auto unary = [](int x){ return x; };
6934       using nullary_t = decltype(nullary);
6935       using unary_t = decltype(unary);
6936       const auto higher1st = [](nullary_t f){ return f(); };
6937       const auto higher2nd = [unary](nullary_t f1){
6938         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6939       };
6940       return higher1st(nullary) + higher2nd(nullary)(unary);
6941     }
6942
6943   }
6944
6945   namespace test_variadic_templates
6946   {
6947
6948     template <int...>
6949     struct sum;
6950
6951     template <int N0, int... N1toN>
6952     struct sum<N0, N1toN...>
6953     {
6954       static constexpr auto value = N0 + sum<N1toN...>::value;
6955     };
6956
6957     template <>
6958     struct sum<>
6959     {
6960       static constexpr auto value = 0;
6961     };
6962
6963     static_assert(sum<>::value == 0, "");
6964     static_assert(sum<1>::value == 1, "");
6965     static_assert(sum<23>::value == 23, "");
6966     static_assert(sum<1, 2>::value == 3, "");
6967     static_assert(sum<5, 5, 11>::value == 21, "");
6968     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6969
6970   }
6971
6972   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6973   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6974   // because of this.
6975   namespace test_template_alias_sfinae
6976   {
6977
6978     struct foo {};
6979
6980     template<typename T>
6981     using member = typename T::member_type;
6982
6983     template<typename T>
6984     void func(...) {}
6985
6986     template<typename T>
6987     void func(member<T>*) {}
6988
6989     void test();
6990
6991     void test() { func<foo>(0); }
6992
6993   }
6994
6995 }  // namespace cxx11
6996
6997 #endif  // __cplusplus >= 201103L
6998
6999
7000
7001 _ACEOF
7002 if ac_fn_cxx_try_compile "$LINENO"; then :
7003   ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7004 else
7005   ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7006 fi
7007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 fi
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7010 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7011     if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7012       ac_success=yes
7013     fi
7014
7015     if test x$ac_success = xno; then
7016     for alternative in ${ax_cxx_compile_alternatives}; do
7017       switch="-std=gnu++${alternative}"
7018       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7019       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7020 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7021 if eval \${$cachevar+:} false; then :
7022   $as_echo_n "(cached) " >&6
7023 else
7024   ac_save_CXX="$CXX"
7025          CXX="$CXX $switch"
7026          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h.  */
7028
7029
7030 // If the compiler admits that it is not ready for C++11, why torture it?
7031 // Hopefully, this will speed up the test.
7032
7033 #ifndef __cplusplus
7034
7035 #error "This is not a C++ compiler"
7036
7037 #elif __cplusplus < 201103L
7038
7039 #error "This is not a C++11 compiler"
7040
7041 #else
7042
7043 namespace cxx11
7044 {
7045
7046   namespace test_static_assert
7047   {
7048
7049     template <typename T>
7050     struct check
7051     {
7052       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7053     };
7054
7055   }
7056
7057   namespace test_final_override
7058   {
7059
7060     struct Base
7061     {
7062       virtual ~Base() {}
7063       virtual void f() {}
7064     };
7065
7066     struct Derived : public Base
7067     {
7068       virtual ~Derived() override {}
7069       virtual void f() override {}
7070     };
7071
7072   }
7073
7074   namespace test_double_right_angle_brackets
7075   {
7076
7077     template < typename T >
7078     struct check {};
7079
7080     typedef check<void> single_type;
7081     typedef check<check<void>> double_type;
7082     typedef check<check<check<void>>> triple_type;
7083     typedef check<check<check<check<void>>>> quadruple_type;
7084
7085   }
7086
7087   namespace test_decltype
7088   {
7089
7090     int
7091     f()
7092     {
7093       int a = 1;
7094       decltype(a) b = 2;
7095       return a + b;
7096     }
7097
7098   }
7099
7100   namespace test_type_deduction
7101   {
7102
7103     template < typename T1, typename T2 >
7104     struct is_same
7105     {
7106       static const bool value = false;
7107     };
7108
7109     template < typename T >
7110     struct is_same<T, T>
7111     {
7112       static const bool value = true;
7113     };
7114
7115     template < typename T1, typename T2 >
7116     auto
7117     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7118     {
7119       return a1 + a2;
7120     }
7121
7122     int
7123     test(const int c, volatile int v)
7124     {
7125       static_assert(is_same<int, decltype(0)>::value == true, "");
7126       static_assert(is_same<int, decltype(c)>::value == false, "");
7127       static_assert(is_same<int, decltype(v)>::value == false, "");
7128       auto ac = c;
7129       auto av = v;
7130       auto sumi = ac + av + 'x';
7131       auto sumf = ac + av + 1.0;
7132       static_assert(is_same<int, decltype(ac)>::value == true, "");
7133       static_assert(is_same<int, decltype(av)>::value == true, "");
7134       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7135       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7136       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7137       return (sumf > 0.0) ? sumi : add(c, v);
7138     }
7139
7140   }
7141
7142   namespace test_noexcept
7143   {
7144
7145     int f() { return 0; }
7146     int g() noexcept { return 0; }
7147
7148     static_assert(noexcept(f()) == false, "");
7149     static_assert(noexcept(g()) == true, "");
7150
7151   }
7152
7153   namespace test_constexpr
7154   {
7155
7156     template < typename CharT >
7157     unsigned long constexpr
7158     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7159     {
7160       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7161     }
7162
7163     template < typename CharT >
7164     unsigned long constexpr
7165     strlen_c(const CharT *const s) noexcept
7166     {
7167       return strlen_c_r(s, 0UL);
7168     }
7169
7170     static_assert(strlen_c("") == 0UL, "");
7171     static_assert(strlen_c("1") == 1UL, "");
7172     static_assert(strlen_c("example") == 7UL, "");
7173     static_assert(strlen_c("another\0example") == 7UL, "");
7174
7175   }
7176
7177   namespace test_rvalue_references
7178   {
7179
7180     template < int N >
7181     struct answer
7182     {
7183       static constexpr int value = N;
7184     };
7185
7186     answer<1> f(int&)       { return answer<1>(); }
7187     answer<2> f(const int&) { return answer<2>(); }
7188     answer<3> f(int&&)      { return answer<3>(); }
7189
7190     void
7191     test()
7192     {
7193       int i = 0;
7194       const int c = 0;
7195       static_assert(decltype(f(i))::value == 1, "");
7196       static_assert(decltype(f(c))::value == 2, "");
7197       static_assert(decltype(f(0))::value == 3, "");
7198     }
7199
7200   }
7201
7202   namespace test_uniform_initialization
7203   {
7204
7205     struct test
7206     {
7207       static const int zero {};
7208       static const int one {1};
7209     };
7210
7211     static_assert(test::zero == 0, "");
7212     static_assert(test::one == 1, "");
7213
7214   }
7215
7216   namespace test_lambdas
7217   {
7218
7219     void
7220     test1()
7221     {
7222       auto lambda1 = [](){};
7223       auto lambda2 = lambda1;
7224       lambda1();
7225       lambda2();
7226     }
7227
7228     int
7229     test2()
7230     {
7231       auto a = [](int i, int j){ return i + j; }(1, 2);
7232       auto b = []() -> int { return '0'; }();
7233       auto c = [=](){ return a + b; }();
7234       auto d = [&](){ return c; }();
7235       auto e = [a, &b](int x) mutable {
7236         const auto identity = [](int y){ return y; };
7237         for (auto i = 0; i < a; ++i)
7238           a += b--;
7239         return x + identity(a + b);
7240       }(0);
7241       return a + b + c + d + e;
7242     }
7243
7244     int
7245     test3()
7246     {
7247       const auto nullary = [](){ return 0; };
7248       const auto unary = [](int x){ return x; };
7249       using nullary_t = decltype(nullary);
7250       using unary_t = decltype(unary);
7251       const auto higher1st = [](nullary_t f){ return f(); };
7252       const auto higher2nd = [unary](nullary_t f1){
7253         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7254       };
7255       return higher1st(nullary) + higher2nd(nullary)(unary);
7256     }
7257
7258   }
7259
7260   namespace test_variadic_templates
7261   {
7262
7263     template <int...>
7264     struct sum;
7265
7266     template <int N0, int... N1toN>
7267     struct sum<N0, N1toN...>
7268     {
7269       static constexpr auto value = N0 + sum<N1toN...>::value;
7270     };
7271
7272     template <>
7273     struct sum<>
7274     {
7275       static constexpr auto value = 0;
7276     };
7277
7278     static_assert(sum<>::value == 0, "");
7279     static_assert(sum<1>::value == 1, "");
7280     static_assert(sum<23>::value == 23, "");
7281     static_assert(sum<1, 2>::value == 3, "");
7282     static_assert(sum<5, 5, 11>::value == 21, "");
7283     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7284
7285   }
7286
7287   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7288   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7289   // because of this.
7290   namespace test_template_alias_sfinae
7291   {
7292
7293     struct foo {};
7294
7295     template<typename T>
7296     using member = typename T::member_type;
7297
7298     template<typename T>
7299     void func(...) {}
7300
7301     template<typename T>
7302     void func(member<T>*) {}
7303
7304     void test();
7305
7306     void test() { func<foo>(0); }
7307
7308   }
7309
7310 }  // namespace cxx11
7311
7312 #endif  // __cplusplus >= 201103L
7313
7314
7315
7316 _ACEOF
7317 if ac_fn_cxx_try_compile "$LINENO"; then :
7318   eval $cachevar=yes
7319 else
7320   eval $cachevar=no
7321 fi
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323          CXX="$ac_save_CXX"
7324 fi
7325 eval ac_res=\$$cachevar
7326                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7327 $as_echo "$ac_res" >&6; }
7328       if eval test x\$$cachevar = xyes; then
7329         CXX="$CXX $switch"
7330         if test -n "$CXXCPP" ; then
7331           CXXCPP="$CXXCPP $switch"
7332         fi
7333         ac_success=yes
7334         break
7335       fi
7336     done
7337   fi
7338
7339     if test x$ac_success = xno; then
7340                 for alternative in ${ax_cxx_compile_alternatives}; do
7341       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7342         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7343         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7344 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7345 if eval \${$cachevar+:} false; then :
7346   $as_echo_n "(cached) " >&6
7347 else
7348   ac_save_CXX="$CXX"
7349            CXX="$CXX $switch"
7350            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h.  */
7352
7353
7354 // If the compiler admits that it is not ready for C++11, why torture it?
7355 // Hopefully, this will speed up the test.
7356
7357 #ifndef __cplusplus
7358
7359 #error "This is not a C++ compiler"
7360
7361 #elif __cplusplus < 201103L
7362
7363 #error "This is not a C++11 compiler"
7364
7365 #else
7366
7367 namespace cxx11
7368 {
7369
7370   namespace test_static_assert
7371   {
7372
7373     template <typename T>
7374     struct check
7375     {
7376       static_assert(sizeof(int) <= sizeof(T), "not big enough");
7377     };
7378
7379   }
7380
7381   namespace test_final_override
7382   {
7383
7384     struct Base
7385     {
7386       virtual ~Base() {}
7387       virtual void f() {}
7388     };
7389
7390     struct Derived : public Base
7391     {
7392       virtual ~Derived() override {}
7393       virtual void f() override {}
7394     };
7395
7396   }
7397
7398   namespace test_double_right_angle_brackets
7399   {
7400
7401     template < typename T >
7402     struct check {};
7403
7404     typedef check<void> single_type;
7405     typedef check<check<void>> double_type;
7406     typedef check<check<check<void>>> triple_type;
7407     typedef check<check<check<check<void>>>> quadruple_type;
7408
7409   }
7410
7411   namespace test_decltype
7412   {
7413
7414     int
7415     f()
7416     {
7417       int a = 1;
7418       decltype(a) b = 2;
7419       return a + b;
7420     }
7421
7422   }
7423
7424   namespace test_type_deduction
7425   {
7426
7427     template < typename T1, typename T2 >
7428     struct is_same
7429     {
7430       static const bool value = false;
7431     };
7432
7433     template < typename T >
7434     struct is_same<T, T>
7435     {
7436       static const bool value = true;
7437     };
7438
7439     template < typename T1, typename T2 >
7440     auto
7441     add(T1 a1, T2 a2) -> decltype(a1 + a2)
7442     {
7443       return a1 + a2;
7444     }
7445
7446     int
7447     test(const int c, volatile int v)
7448     {
7449       static_assert(is_same<int, decltype(0)>::value == true, "");
7450       static_assert(is_same<int, decltype(c)>::value == false, "");
7451       static_assert(is_same<int, decltype(v)>::value == false, "");
7452       auto ac = c;
7453       auto av = v;
7454       auto sumi = ac + av + 'x';
7455       auto sumf = ac + av + 1.0;
7456       static_assert(is_same<int, decltype(ac)>::value == true, "");
7457       static_assert(is_same<int, decltype(av)>::value == true, "");
7458       static_assert(is_same<int, decltype(sumi)>::value == true, "");
7459       static_assert(is_same<int, decltype(sumf)>::value == false, "");
7460       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7461       return (sumf > 0.0) ? sumi : add(c, v);
7462     }
7463
7464   }
7465
7466   namespace test_noexcept
7467   {
7468
7469     int f() { return 0; }
7470     int g() noexcept { return 0; }
7471
7472     static_assert(noexcept(f()) == false, "");
7473     static_assert(noexcept(g()) == true, "");
7474
7475   }
7476
7477   namespace test_constexpr
7478   {
7479
7480     template < typename CharT >
7481     unsigned long constexpr
7482     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7483     {
7484       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7485     }
7486
7487     template < typename CharT >
7488     unsigned long constexpr
7489     strlen_c(const CharT *const s) noexcept
7490     {
7491       return strlen_c_r(s, 0UL);
7492     }
7493
7494     static_assert(strlen_c("") == 0UL, "");
7495     static_assert(strlen_c("1") == 1UL, "");
7496     static_assert(strlen_c("example") == 7UL, "");
7497     static_assert(strlen_c("another\0example") == 7UL, "");
7498
7499   }
7500
7501   namespace test_rvalue_references
7502   {
7503
7504     template < int N >
7505     struct answer
7506     {
7507       static constexpr int value = N;
7508     };
7509
7510     answer<1> f(int&)       { return answer<1>(); }
7511     answer<2> f(const int&) { return answer<2>(); }
7512     answer<3> f(int&&)      { return answer<3>(); }
7513
7514     void
7515     test()
7516     {
7517       int i = 0;
7518       const int c = 0;
7519       static_assert(decltype(f(i))::value == 1, "");
7520       static_assert(decltype(f(c))::value == 2, "");
7521       static_assert(decltype(f(0))::value == 3, "");
7522     }
7523
7524   }
7525
7526   namespace test_uniform_initialization
7527   {
7528
7529     struct test
7530     {
7531       static const int zero {};
7532       static const int one {1};
7533     };
7534
7535     static_assert(test::zero == 0, "");
7536     static_assert(test::one == 1, "");
7537
7538   }
7539
7540   namespace test_lambdas
7541   {
7542
7543     void
7544     test1()
7545     {
7546       auto lambda1 = [](){};
7547       auto lambda2 = lambda1;
7548       lambda1();
7549       lambda2();
7550     }
7551
7552     int
7553     test2()
7554     {
7555       auto a = [](int i, int j){ return i + j; }(1, 2);
7556       auto b = []() -> int { return '0'; }();
7557       auto c = [=](){ return a + b; }();
7558       auto d = [&](){ return c; }();
7559       auto e = [a, &b](int x) mutable {
7560         const auto identity = [](int y){ return y; };
7561         for (auto i = 0; i < a; ++i)
7562           a += b--;
7563         return x + identity(a + b);
7564       }(0);
7565       return a + b + c + d + e;
7566     }
7567
7568     int
7569     test3()
7570     {
7571       const auto nullary = [](){ return 0; };
7572       const auto unary = [](int x){ return x; };
7573       using nullary_t = decltype(nullary);
7574       using unary_t = decltype(unary);
7575       const auto higher1st = [](nullary_t f){ return f(); };
7576       const auto higher2nd = [unary](nullary_t f1){
7577         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7578       };
7579       return higher1st(nullary) + higher2nd(nullary)(unary);
7580     }
7581
7582   }
7583
7584   namespace test_variadic_templates
7585   {
7586
7587     template <int...>
7588     struct sum;
7589
7590     template <int N0, int... N1toN>
7591     struct sum<N0, N1toN...>
7592     {
7593       static constexpr auto value = N0 + sum<N1toN...>::value;
7594     };
7595
7596     template <>
7597     struct sum<>
7598     {
7599       static constexpr auto value = 0;
7600     };
7601
7602     static_assert(sum<>::value == 0, "");
7603     static_assert(sum<1>::value == 1, "");
7604     static_assert(sum<23>::value == 23, "");
7605     static_assert(sum<1, 2>::value == 3, "");
7606     static_assert(sum<5, 5, 11>::value == 21, "");
7607     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7608
7609   }
7610
7611   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7612   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7613   // because of this.
7614   namespace test_template_alias_sfinae
7615   {
7616
7617     struct foo {};
7618
7619     template<typename T>
7620     using member = typename T::member_type;
7621
7622     template<typename T>
7623     void func(...) {}
7624
7625     template<typename T>
7626     void func(member<T>*) {}
7627
7628     void test();
7629
7630     void test() { func<foo>(0); }
7631
7632   }
7633
7634 }  // namespace cxx11
7635
7636 #endif  // __cplusplus >= 201103L
7637
7638
7639
7640 _ACEOF
7641 if ac_fn_cxx_try_compile "$LINENO"; then :
7642   eval $cachevar=yes
7643 else
7644   eval $cachevar=no
7645 fi
7646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647            CXX="$ac_save_CXX"
7648 fi
7649 eval ac_res=\$$cachevar
7650                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7651 $as_echo "$ac_res" >&6; }
7652         if eval test x\$$cachevar = xyes; then
7653           CXX="$CXX $switch"
7654           if test -n "$CXXCPP" ; then
7655             CXXCPP="$CXXCPP $switch"
7656           fi
7657           ac_success=yes
7658           break
7659         fi
7660       done
7661       if test x$ac_success = xyes; then
7662         break
7663       fi
7664     done
7665   fi
7666       CXX_FOR_BUILD="$CXX"
7667     CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7668     CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7669     CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7670     CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7671     CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7672   ac_ext=c
7673 ac_cpp='$CPP $CPPFLAGS'
7674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7677
7678   if test x$ax_cxx_compile_cxx11_required = xtrue; then
7679     if test x$ac_success = xno; then
7680       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7681     fi
7682   fi
7683   if test x$ac_success = xno; then
7684     HAVE_CXX11_FOR_BUILD=0
7685     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7686 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7687   else
7688     HAVE_CXX11_FOR_BUILD=1
7689
7690 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7691
7692   fi
7693
7694
7695   fi
7696 fi
7697
7698 # Used for setting $lt_cv_objdir
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7700 $as_echo_n "checking for objdir... " >&6; }
7701 if ${lt_cv_objdir+:} false; then :
7702   $as_echo_n "(cached) " >&6
7703 else
7704   rm -f .libs 2>/dev/null
7705 mkdir .libs 2>/dev/null
7706 if test -d .libs; then
7707   lt_cv_objdir=.libs
7708 else
7709   # MS-DOS does not allow filenames that begin with a dot.
7710   lt_cv_objdir=_libs
7711 fi
7712 rmdir .libs 2>/dev/null
7713 fi
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7715 $as_echo "$lt_cv_objdir" >&6; }
7716 objdir=$lt_cv_objdir
7717
7718
7719
7720
7721
7722 cat >>confdefs.h <<_ACEOF
7723 #define LT_OBJDIR "$lt_cv_objdir/"
7724 _ACEOF
7725
7726
7727
7728 # Check for GMP, MPFR and MPC
7729 gmplibs="-lmpc -lmpfr -lgmp"
7730 gmpinc=
7731 have_gmp=no
7732
7733 # Specify a location for mpc
7734 # check for this first so it ends up on the link line before mpfr.
7735
7736 # Check whether --with-mpc was given.
7737 if test "${with_mpc+set}" = set; then :
7738   withval=$with_mpc;
7739 fi
7740
7741
7742 # Check whether --with-mpc-include was given.
7743 if test "${with_mpc_include+set}" = set; then :
7744   withval=$with_mpc_include;
7745 fi
7746
7747
7748 # Check whether --with-mpc-lib was given.
7749 if test "${with_mpc_lib+set}" = set; then :
7750   withval=$with_mpc_lib;
7751 fi
7752
7753
7754 if test "x$with_mpc" != x; then
7755   gmplibs="-L$with_mpc/lib $gmplibs"
7756   gmpinc="-I$with_mpc/include $gmpinc"
7757 fi
7758 if test "x$with_mpc_include" != x; then
7759   gmpinc="-I$with_mpc_include $gmpinc"
7760 fi
7761 if test "x$with_mpc_lib" != x; then
7762   gmplibs="-L$with_mpc_lib $gmplibs"
7763 fi
7764 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7765   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7766   gmpinc='-I$$s/mpc/src '"$gmpinc"
7767   # Do not test the mpc version.  Assume that it is sufficient, since
7768   # it is in the source tree, and the library has not been built yet
7769   # but it would be included on the link line in the version check below
7770   # hence making the test fail.
7771   have_gmp=yes
7772 fi
7773
7774 # Specify a location for mpfr
7775 # check for this first so it ends up on the link line before gmp.
7776
7777 # Check whether --with-mpfr-dir was given.
7778 if test "${with_mpfr_dir+set}" = set; then :
7779   withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7780 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7781 fi
7782
7783
7784
7785 # Check whether --with-mpfr was given.
7786 if test "${with_mpfr+set}" = set; then :
7787   withval=$with_mpfr;
7788 fi
7789
7790
7791 # Check whether --with-mpfr-include was given.
7792 if test "${with_mpfr_include+set}" = set; then :
7793   withval=$with_mpfr_include;
7794 fi
7795
7796
7797 # Check whether --with-mpfr-lib was given.
7798 if test "${with_mpfr_lib+set}" = set; then :
7799   withval=$with_mpfr_lib;
7800 fi
7801
7802
7803 if test "x$with_mpfr" != x; then
7804   gmplibs="-L$with_mpfr/lib $gmplibs"
7805   gmpinc="-I$with_mpfr/include $gmpinc"
7806 fi
7807 if test "x$with_mpfr_include" != x; then
7808   gmpinc="-I$with_mpfr_include $gmpinc"
7809 fi
7810 if test "x$with_mpfr_lib" != x; then
7811   gmplibs="-L$with_mpfr_lib $gmplibs"
7812 fi
7813 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7814   # MPFR v3.1.0 moved the sources into a src sub-directory.
7815   if ! test -d ${srcdir}/mpfr/src; then
7816     as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7817   fi
7818   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7819   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7820   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7821   # Do not test the mpfr version.  Assume that it is sufficient, since
7822   # it is in the source tree, and the library has not been built yet
7823   # but it would be included on the link line in the version check below
7824   # hence making the test fail.
7825   have_gmp=yes
7826 fi
7827
7828 # Specify a location for gmp
7829
7830 # Check whether --with-gmp-dir was given.
7831 if test "${with_gmp_dir+set}" = set; then :
7832   withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7833 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7834 fi
7835
7836
7837
7838 # Check whether --with-gmp was given.
7839 if test "${with_gmp+set}" = set; then :
7840   withval=$with_gmp;
7841 fi
7842
7843
7844 # Check whether --with-gmp-include was given.
7845 if test "${with_gmp_include+set}" = set; then :
7846   withval=$with_gmp_include;
7847 fi
7848
7849
7850 # Check whether --with-gmp-lib was given.
7851 if test "${with_gmp_lib+set}" = set; then :
7852   withval=$with_gmp_lib;
7853 fi
7854
7855
7856
7857 if test "x$with_gmp" != x; then
7858   gmplibs="-L$with_gmp/lib $gmplibs"
7859   gmpinc="-I$with_gmp/include $gmpinc"
7860 fi
7861 if test "x$with_gmp_include" != x; then
7862   gmpinc="-I$with_gmp_include $gmpinc"
7863 fi
7864 if test "x$with_gmp_lib" != x; then
7865   gmplibs="-L$with_gmp_lib $gmplibs"
7866 fi
7867 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7868   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7869   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7870   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7871   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7872   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7873   # Do not test the gmp version.  Assume that it is sufficient, since
7874   # it is in the source tree, and the library has not been built yet
7875   # but it would be included on the link line in the version check below
7876   # hence making the test fail.
7877   have_gmp=yes
7878 fi
7879
7880 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7881   have_gmp=yes
7882   saved_CFLAGS="$CFLAGS"
7883   CFLAGS="$CFLAGS $gmpinc"
7884   # Check for the recommended and required versions of GMP.
7885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7886 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7887
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h.  */
7890 #include "gmp.h"
7891 int
7892 main ()
7893 {
7894
7895   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7896   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7897   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7898   choke me
7899   #endif
7900
7901   ;
7902   return 0;
7903 }
7904 _ACEOF
7905 if ac_fn_c_try_compile "$LINENO"; then :
7906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h.  */
7908 #include <gmp.h>
7909 int
7910 main ()
7911 {
7912
7913   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7914   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7915   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7916   choke me
7917   #endif
7918
7919   ;
7920   return 0;
7921 }
7922 _ACEOF
7923 if ac_fn_c_try_compile "$LINENO"; then :
7924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7925 $as_echo "yes" >&6; }
7926 else
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7928 $as_echo "buggy but acceptable" >&6; }
7929 fi
7930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931 else
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }; have_gmp=no
7934 fi
7935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936
7937   # If we have GMP, check the MPFR version.
7938   if test x"$have_gmp" = xyes; then
7939     # Check for the recommended and required versions of MPFR.
7940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7941 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h.  */
7944 #include <gmp.h>
7945     #include <mpfr.h>
7946 int
7947 main ()
7948 {
7949
7950     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7951     choke me
7952     #endif
7953
7954   ;
7955   return 0;
7956 }
7957 _ACEOF
7958 if ac_fn_c_try_compile "$LINENO"; then :
7959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h.  */
7961 #include <gmp.h>
7962     #include <mpfr.h>
7963 int
7964 main ()
7965 {
7966
7967     #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
7968     choke me
7969     #endif
7970
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 if ac_fn_c_try_compile "$LINENO"; then :
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7977 $as_echo "yes" >&6; }
7978 else
7979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7980 $as_echo "buggy but acceptable" >&6; }
7981 fi
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 else
7984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }; have_gmp=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988   fi
7989
7990   # Check for the MPC header version.
7991   if test x"$have_gmp" = xyes ; then
7992     # Check for the recommended and required versions of MPC.
7993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
7994 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
7995     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h.  */
7997 #include <mpc.h>
7998 int
7999 main ()
8000 {
8001
8002     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8003     choke me
8004     #endif
8005
8006   ;
8007   return 0;
8008 }
8009 _ACEOF
8010 if ac_fn_c_try_compile "$LINENO"; then :
8011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h.  */
8013 #include <mpc.h>
8014 int
8015 main ()
8016 {
8017
8018     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8019     choke me
8020     #endif
8021
8022   ;
8023   return 0;
8024 }
8025 _ACEOF
8026 if ac_fn_c_try_compile "$LINENO"; then :
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8028 $as_echo "yes" >&6; }
8029 else
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8031 $as_echo "buggy but acceptable" >&6; }
8032 fi
8033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 else
8035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }; have_gmp=no
8037 fi
8038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039   fi
8040
8041   # Now check the MPFR library.
8042   if test x"$have_gmp" = xyes; then
8043     saved_LIBS="$LIBS"
8044     LIBS="$LIBS $gmplibs"
8045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8046 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8047     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h.  */
8049 #include <mpc.h>
8050 int
8051 main ()
8052 {
8053
8054     mpfr_t n;
8055     mpfr_t x;
8056     mpc_t c;
8057     int t;
8058     mpfr_init (n);
8059     mpfr_init (x);
8060     mpfr_atan2 (n, n, x, MPFR_RNDN);
8061     mpfr_erfc (n, x, MPFR_RNDN);
8062     mpfr_subnormalize (x, t, MPFR_RNDN);
8063     mpfr_clear(n);
8064     mpfr_clear(x);
8065     mpc_init2 (c, 53);
8066     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8067     mpc_cosh (c, c, MPC_RNDNN);
8068     mpc_pow (c, c, c, MPC_RNDNN);
8069     mpc_acosh (c, c, MPC_RNDNN);
8070     mpc_clear (c);
8071
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 if ac_fn_c_try_link "$LINENO"; then :
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8078 $as_echo "yes" >&6; }
8079 else
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }; have_gmp=no
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext \
8084     conftest$ac_exeext conftest.$ac_ext
8085     LIBS="$saved_LIBS"
8086   fi
8087
8088   CFLAGS="$saved_CFLAGS"
8089
8090 # The library versions listed in the error message below should match
8091 # the HARD-minimums enforced above.
8092   if test x$have_gmp != xyes; then
8093     as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8094 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8095 their locations.  Source code for these libraries can be found at
8096 their respective hosting sites as well as at
8097 https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
8098 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
8099 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8100 make sure that you have installed both the libraries and the header
8101 files.  They may be located in separate packages." "$LINENO" 5
8102   fi
8103 fi
8104
8105 # Flags needed for both GMP, MPFR and/or MPC.
8106
8107
8108
8109
8110
8111
8112
8113 # Libraries to use for stage1 or when not bootstrapping.
8114
8115 # Check whether --with-stage1-libs was given.
8116 if test "${with_stage1_libs+set}" = set; then :
8117   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8118    stage1_libs=
8119  else
8120    stage1_libs=$withval
8121  fi
8122 else
8123   stage1_libs=
8124 fi
8125
8126
8127
8128 # Whether or not to use -static-libstdc++ and -static-libgcc.  The
8129 # default is yes if gcc is being built; no otherwise.  The reason for
8130 # this default is that gdb is sometimes linked against GNU Source
8131 # Highlight, which is a shared library that uses C++ exceptions.  In
8132 # this case, -static-libstdc++ will cause crashes.
8133
8134 # Check whether --with-static-standard-libraries was given.
8135 if test "${with_static_standard_libraries+set}" = set; then :
8136   withval=$with_static_standard_libraries;
8137 else
8138   with_static_standard_libraries=auto
8139 fi
8140
8141 if test "$with_static_standard_libraries" = auto; then
8142   with_static_standard_libraries=$have_compiler
8143 fi
8144
8145 # Linker flags to use for stage1 or when not bootstrapping.
8146
8147 # Check whether --with-stage1-ldflags was given.
8148 if test "${with_stage1_ldflags+set}" = set; then :
8149   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8150    stage1_ldflags=
8151  else
8152    stage1_ldflags=$withval
8153  fi
8154 else
8155   stage1_ldflags=
8156  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8157  # if supported.  But if the user explicitly specified the libraries to use,
8158  # trust that they are doing what they want.
8159  if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8160      -a "$have_static_libs" = yes; then
8161    stage1_ldflags="-static-libstdc++ -static-libgcc"
8162  fi
8163 fi
8164
8165
8166
8167 # Libraries to use for stage2 and later builds.
8168
8169 # Check whether --with-boot-libs was given.
8170 if test "${with_boot_libs+set}" = set; then :
8171   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8172    poststage1_libs=
8173  else
8174    poststage1_libs=$withval
8175  fi
8176 else
8177   poststage1_libs=
8178 fi
8179
8180
8181
8182 # Linker flags to use for stage2 and later builds.
8183
8184 # Check whether --with-boot-ldflags was given.
8185 if test "${with_boot_ldflags+set}" = set; then :
8186   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8187    poststage1_ldflags=
8188  else
8189    poststage1_ldflags=$withval
8190  fi
8191 else
8192   poststage1_ldflags=
8193  # In stages 2 and 3, default to linking libstdc++ and libgcc
8194  # statically.  But if the user explicitly specified the libraries to
8195  # use, trust that they are doing what they want.
8196  if test "$poststage1_libs" = ""; then
8197    poststage1_ldflags="-static-libstdc++ -static-libgcc"
8198  fi
8199 fi
8200
8201
8202
8203 # GCC GRAPHITE dependency isl.
8204 # Basic setup is inlined here, actual checks are in config/isl.m4
8205
8206
8207 # Check whether --with-isl was given.
8208 if test "${with_isl+set}" = set; then :
8209   withval=$with_isl;
8210 fi
8211
8212
8213 # Treat --without-isl as a request to disable
8214 # GRAPHITE support and skip all following checks.
8215 if test "x$with_isl" != "xno"; then
8216   # Check for isl
8217
8218
8219 # Check whether --with-isl-include was given.
8220 if test "${with_isl_include+set}" = set; then :
8221   withval=$with_isl_include;
8222 fi
8223
8224
8225 # Check whether --with-isl-lib was given.
8226 if test "${with_isl_lib+set}" = set; then :
8227   withval=$with_isl_lib;
8228 fi
8229
8230
8231   # Check whether --enable-isl-version-check was given.
8232 if test "${enable_isl_version_check+set}" = set; then :
8233   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8234 else
8235   ENABLE_ISL_CHECK=yes
8236 fi
8237
8238
8239   # Initialize isllibs and islinc.
8240   case $with_isl in
8241     no)
8242       isllibs=
8243       islinc=
8244       ;;
8245     "" | yes)
8246       ;;
8247     *)
8248       isllibs="-L$with_isl/lib"
8249       islinc="-I$with_isl/include"
8250       ;;
8251   esac
8252   if test "x${with_isl_include}" != x ; then
8253     islinc="-I$with_isl_include"
8254   fi
8255   if test "x${with_isl_lib}" != x; then
8256     isllibs="-L$with_isl_lib"
8257   fi
8258         if test "x${islinc}" = x && test "x${isllibs}" = x \
8259      && test -d ${srcdir}/isl; then
8260     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8261     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8262     ENABLE_ISL_CHECK=no
8263     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8264 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8265   fi
8266
8267   isllibs="${isllibs} -lisl"
8268
8269
8270
8271   if test "${ENABLE_ISL_CHECK}" = yes ; then
8272     _isl_saved_CFLAGS=$CFLAGS
8273     _isl_saved_LDFLAGS=$LDFLAGS
8274     _isl_saved_LIBS=$LIBS
8275
8276     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8277     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8278     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8279
8280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8281 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h.  */
8284 #include <isl/schedule.h>
8285 int
8286 main ()
8287 {
8288 isl_options_set_schedule_serialize_sccs (NULL, 0);
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 if ac_fn_c_try_link "$LINENO"; then :
8294   gcc_cv_isl=yes
8295 else
8296   gcc_cv_isl=no
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext \
8299     conftest$ac_exeext conftest.$ac_ext
8300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8301 $as_echo "$gcc_cv_isl" >&6; }
8302
8303     if test "${gcc_cv_isl}" = no ; then
8304       { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8305 $as_echo "required isl version is 0.15 or later" >&6; }
8306     fi
8307
8308     CFLAGS=$_isl_saved_CFLAGS
8309     LDFLAGS=$_isl_saved_LDFLAGS
8310     LIBS=$_isl_saved_LIBS
8311   fi
8312
8313
8314
8315
8316
8317
8318   if test "x${with_isl}" = xno; then
8319     graphite_requested=no
8320   elif test "x${with_isl}" != x \
8321     || test "x${with_isl_include}" != x \
8322     || test "x${with_isl_lib}" != x ; then
8323     graphite_requested=yes
8324   else
8325     graphite_requested=no
8326   fi
8327
8328
8329
8330   if test "${gcc_cv_isl}" = no ; then
8331     isllibs=
8332     islinc=
8333   fi
8334
8335   if test "${graphite_requested}" = yes \
8336     && test "x${isllibs}" = x \
8337     && test "x${islinc}" = x ; then
8338
8339     as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
8340   fi
8341
8342
8343 fi
8344
8345 # If the isl check failed, disable builds of in-tree variant of isl
8346 if test "x$with_isl" = xno ||
8347    test "x$gcc_cv_isl" = xno; then
8348   noconfigdirs="$noconfigdirs isl"
8349   islinc=
8350 fi
8351
8352
8353
8354
8355 # Check for LTO support.
8356 # Check whether --enable-lto was given.
8357 if test "${enable_lto+set}" = set; then :
8358   enableval=$enable_lto; enable_lto=$enableval
8359 else
8360   enable_lto=yes; default_enable_lto=yes
8361 fi
8362
8363
8364
8365
8366
8367 target_elf=no
8368 case $target in
8369   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8370   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8371   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8372   nvptx-*-none)
8373     target_elf=no
8374     ;;
8375   *)
8376     target_elf=yes
8377     ;;
8378 esac
8379
8380 if test $target_elf = yes; then :
8381   # ELF platforms build the lto-plugin always.
8382   build_lto_plugin=yes
8383
8384 else
8385   if test x"$default_enable_lto" = x"yes" ; then
8386     case $target in
8387       *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8388       # On other non-ELF platforms, LTO has yet to be validated.
8389       *) enable_lto=no ;;
8390     esac
8391   else
8392   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8393   # It would also be nice to check the binutils support, but we don't
8394   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
8395   # warn during gcc/ subconfigure; unless you're bootstrapping with
8396   # -flto it won't be needed until after installation anyway.
8397     case $target in
8398       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8399       *) if test x"$enable_lto" = x"yes"; then
8400         as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8401         fi
8402       ;;
8403     esac
8404   fi
8405   # Among non-ELF, only Windows platforms support the lto-plugin so far.
8406   # Build it unless LTO was explicitly disabled.
8407   case $target in
8408     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8409     *) ;;
8410   esac
8411
8412 fi
8413
8414
8415 # Check whether --enable-linker-plugin-configure-flags was given.
8416 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8417   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8418 else
8419   extra_linker_plugin_configure_flags=
8420 fi
8421
8422
8423 # Check whether --enable-linker-plugin-flags was given.
8424 if test "${enable_linker_plugin_flags+set}" = set; then :
8425   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8426 else
8427   extra_linker_plugin_flags=
8428 fi
8429
8430
8431
8432 # Enable --enable-host-shared.
8433 # Checked early to determine whether jit is an 'all' language
8434 # Check whether --enable-host-shared was given.
8435 if test "${enable_host_shared+set}" = set; then :
8436   enableval=$enable_host_shared; host_shared=$enableval
8437 else
8438   host_shared=no
8439 fi
8440
8441
8442
8443 # By default, C and C++ are the only stage 1 languages.
8444 stage1_languages=,c,
8445
8446 # Target libraries that we bootstrap.
8447 bootstrap_target_libs=,target-libgcc,
8448
8449 # Figure out what language subdirectories are present.
8450 # Look if the user specified --enable-languages="..."; if not, use
8451 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8452 # go away some day.
8453 # NB:  embedded tabs in this IF block -- do not untabify
8454 if test -d ${srcdir}/gcc; then
8455   if test x"${enable_languages+set}" != xset; then
8456     if test x"${LANGUAGES+set}" = xset; then
8457       enable_languages="${LANGUAGES}"
8458         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8459     else
8460       enable_languages=default
8461     fi
8462   else
8463     if test x"${enable_languages}" = x ||
8464        test x"${enable_languages}" = xyes;
8465        then
8466       echo configure.ac: --enable-languages needs at least one language argument 1>&2
8467       exit 1
8468     fi
8469   fi
8470   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
8471
8472   # 'f95' is the old name for the 'fortran' language. We issue a warning
8473   # and make the substitution.
8474   case ,${enable_languages}, in
8475     *,f95,*)
8476       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8477       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8478       ;;
8479   esac
8480
8481   # If bootstrapping, C++ must be enabled.
8482   case ",$enable_languages,:$enable_bootstrap" in
8483     *,c++,*:*) ;;
8484     *:yes)
8485       if test -f ${srcdir}/gcc/cp/config-lang.in; then
8486         enable_languages="${enable_languages},c++"
8487       else
8488         as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8489       fi
8490       ;;
8491   esac
8492
8493   # First scan to see if an enabled language requires some other language.
8494   # We assume that a given config-lang.in will list all the language
8495   # front ends it requires, even if some are required indirectly.
8496   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8497     case ${lang_frag} in
8498       ..) ;;
8499       # The odd quoting in the next line works around
8500       # an apparent bug in bash 1.12 on linux.
8501       ${srcdir}/gcc/[*]/config-lang.in) ;;
8502       *)
8503         # From the config-lang.in, get $language, $lang_requires, and
8504         # $lang_requires_boot_languages.
8505         language=
8506         lang_requires=
8507         lang_requires_boot_languages=
8508         # set srcdir during sourcing lang_frag to the gcc dir.
8509         # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8510         # polutes this shell
8511         saved_srcdir=${srcdir}
8512         srcdir=${srcdir}/gcc . ${lang_frag}
8513         srcdir=${saved_srcdir}
8514         for other in ${lang_requires} ${lang_requires_boot_languages}; do
8515           case ,${enable_languages}, in
8516             *,$other,*) ;;
8517             *,default,*) ;;
8518             *,all,*) ;;
8519             *,$language,*)
8520               echo " \`$other' language required by \`$language'; enabling" 1>&2
8521               enable_languages="${enable_languages},${other}"
8522               ;;
8523           esac
8524         done
8525         for other in ${lang_requires_boot_languages} ; do
8526           if test "$other" != "c"; then
8527             case ,${enable_stage1_languages}, in
8528               *,$other,*) ;;
8529               *,default,*) ;;
8530               *,all,*) ;;
8531               *)
8532                 case ,${enable_languages}, in
8533                   *,$language,*)
8534                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8535                     enable_stage1_languages="$enable_stage1_languages,${other}"
8536                     ;;
8537                 esac
8538                 ;;
8539             esac
8540           fi
8541         done
8542         ;;
8543     esac
8544   done
8545
8546   new_enable_languages=,c,
8547
8548   # If LTO is enabled, add the LTO front end.
8549   if test "$enable_lto" = "yes" ; then
8550     case ,${enable_languages}, in
8551       *,lto,*) ;;
8552       *) enable_languages="${enable_languages},lto" ;;
8553     esac
8554     if test "${build_lto_plugin}" = "yes" ; then
8555       configdirs="$configdirs lto-plugin"
8556     fi
8557   fi
8558
8559   # If we're building an offloading compiler, add the LTO front end.
8560   if test x"$enable_as_accelerator_for" != x ; then
8561     case ,${enable_languages}, in
8562       *,lto,*) ;;
8563       *) enable_languages="${enable_languages},lto" ;;
8564     esac
8565   fi
8566
8567   missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8568   potential_languages=,c,
8569
8570   enabled_target_libs=
8571   disabled_target_libs=
8572
8573   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8574     case ${lang_frag} in
8575       ..) ;;
8576       # The odd quoting in the next line works around
8577       # an apparent bug in bash 1.12 on linux.
8578       ${srcdir}/gcc/[*]/config-lang.in) ;;
8579       *)
8580         # From the config-lang.in, get $language, $target_libs,
8581         # $lang_dirs, $boot_language, and $build_by_default
8582         language=
8583         target_libs=
8584         lang_dirs=
8585         subdir_requires=
8586         boot_language=no
8587         build_by_default=yes
8588         # set srcdir during sourcing.  See above about save & restore
8589         saved_srcdir=${srcdir}
8590         srcdir=${srcdir}/gcc . ${lang_frag}
8591         srcdir=${saved_srcdir}
8592         if test x${language} = x; then
8593           echo "${lang_frag} doesn't set \$language." 1>&2
8594           exit 1
8595         fi
8596
8597         if test "$language" = "c++"; then
8598           boot_language=yes
8599         fi
8600
8601         add_this_lang=no
8602         # C is always enabled, so no need to add it again
8603         if test "$language" != "c"; then
8604           case ,${enable_languages}, in
8605             *,${language},*)
8606               # Language was explicitly selected; include it
8607               add_this_lang=yes
8608               ;;
8609             *,all,*)
8610               # All languages are enabled
8611               add_this_lang=all
8612               ;;
8613             *,default,*)
8614               # 'default' was selected, select it if it is a default language
8615               add_this_lang=${build_by_default}
8616               ;;
8617           esac
8618         fi
8619
8620         # Disable languages that need other directories if these aren't available.
8621         for i in $subdir_requires; do
8622           test -f "$srcdir/gcc/$i/config-lang.in" && continue
8623           case ${add_this_lang} in
8624             yes)
8625               # Specifically requested language; tell them.
8626               as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8627               ;;
8628             all)
8629               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8630 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8631               add_this_lang=unsupported
8632               ;;
8633             *)
8634               # Silently disable.
8635               add_this_lang=unsupported
8636               ;;
8637           esac
8638         done
8639
8640         # Disable Ada if no preexisting GNAT is available.
8641         case ${add_this_lang}:${language}:${have_gnat} in
8642           yes:ada:no)
8643             # Specifically requested language; tell them.
8644             as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8645             ;;
8646           all:ada:no)
8647             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8648 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8649             add_this_lang=unsupported
8650             ;;
8651           *:ada:no)
8652             # Silently disable.
8653             add_this_lang=unsupported
8654             ;;
8655         esac
8656
8657         # Disable jit if -enable-host-shared not specified
8658         # but not if building for Mingw. All code in Windows
8659         # is position independent code (PIC).
8660         case $target in
8661           *mingw*) ;;
8662           *)
8663           case ${add_this_lang}:${language}:${host_shared} in
8664             yes:jit:no)
8665                    # PR jit/64780: explicitly specify --enable-host-shared
8666             as_fn_error $? "
8667 Enabling language \"jit\" requires --enable-host-shared.
8668
8669 --enable-host-shared typically slows the rest of the compiler down by
8670 a few %, so you must explicitly enable it.
8671
8672 If you want to build both the jit and the regular compiler, it is often
8673 best to do this via two separate configure/builds, in separate
8674 directories, to avoid imposing the performance cost of
8675 --enable-host-shared on the regular compiler." "$LINENO" 5
8676                     ;;
8677             all:jit:no)
8678               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8679 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8680               add_this_lang=unsupported
8681               ;;
8682             *:jit:no)
8683               # Silently disable.
8684               add_this_lang=unsupported
8685               ;;
8686                 esac
8687           ;;
8688         esac
8689
8690         # Disable a language that is unsupported by the target.
8691         case "${add_this_lang}: $unsupported_languages " in
8692           no:*) ;;
8693           unsupported:*) ;;
8694           *:*" $language "*)
8695             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8696 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8697             add_this_lang=unsupported
8698             ;;
8699         esac
8700
8701         case $add_this_lang in
8702           unsupported)
8703             # Remove language-dependent dirs.
8704             disabled_target_libs="$disabled_target_libs $target_libs"
8705             noconfigdirs="$noconfigdirs $lang_dirs"
8706             ;;
8707           no)
8708             # Remove language-dependent dirs; still show language as supported.
8709             disabled_target_libs="$disabled_target_libs $target_libs"
8710             noconfigdirs="$noconfigdirs $lang_dirs"
8711             potential_languages="${potential_languages}${language},"
8712             ;;
8713           all|yes)
8714             new_enable_languages="${new_enable_languages}${language},"
8715             potential_languages="${potential_languages}${language},"
8716             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8717             enabled_target_libs="$enabled_target_libs $target_libs"
8718             case "${boot_language}:,$enable_stage1_languages," in
8719               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8720                 # Add to (comma-separated) list of stage 1 languages.
8721                 case ",$stage1_languages," in
8722                   *,$language,* | ,yes, | ,all,) ;;
8723                   *) stage1_languages="${stage1_languages}${language}," ;;
8724                 esac
8725                 # We need to bootstrap any supporting libraries.
8726                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
8727                 ;;
8728             esac
8729             ;;
8730         esac
8731         ;;
8732     esac
8733   done
8734
8735   # Add target libraries which are only needed for disabled languages
8736   # to noconfigdirs.
8737   if test -n "$disabled_target_libs"; then
8738     for dir in $disabled_target_libs; do
8739       case " $enabled_target_libs " in
8740       *" ${dir} "*) ;;
8741       *) noconfigdirs="$noconfigdirs $dir" ;;
8742       esac
8743     done
8744   fi
8745
8746   # Check whether --enable-stage1-languages was given.
8747 if test "${enable_stage1_languages+set}" = set; then :
8748   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8749     ,no,|,,)
8750       # Set it to something that will have no effect in the loop below
8751       enable_stage1_languages=c ;;
8752     ,yes,)
8753       enable_stage1_languages=`echo $new_enable_languages | \
8754         sed -e "s/^,//" -e "s/,$//" ` ;;
8755     *,all,*)
8756       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8757         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8758   esac
8759
8760   # Add "good" languages from enable_stage1_languages to stage1_languages,
8761   # while "bad" languages go in missing_languages.  Leave no duplicates.
8762   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8763     case $potential_languages in
8764       *,$i,*)
8765         case $stage1_languages in
8766           *,$i,*) ;;
8767           *) stage1_languages="$stage1_languages$i," ;;
8768         esac ;;
8769       *)
8770         case $missing_languages in
8771           *,$i,*) ;;
8772           *) missing_languages="$missing_languages$i," ;;
8773         esac ;;
8774      esac
8775   done
8776 fi
8777
8778
8779   # Remove leading/trailing commas that were added for simplicity
8780   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8781   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8782   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8783   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8784
8785   if test "x$missing_languages" != x; then
8786     as_fn_error $? "
8787 The following requested languages could not be built: ${missing_languages}
8788 Supported languages are: ${potential_languages}" "$LINENO" 5
8789   fi
8790   if test "x$new_enable_languages" != "x$enable_languages"; then
8791     echo The following languages will be built: ${new_enable_languages}
8792     enable_languages="$new_enable_languages"
8793   fi
8794
8795
8796   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8797 fi
8798
8799 # Handle --disable-<component> generically.
8800 for dir in $configdirs $build_configdirs $target_configdirs ; do
8801   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8802   varname=`echo $dirname | sed -e s/+/_/g`
8803   if eval test x\${enable_${varname}} "=" xno ; then
8804     noconfigdirs="$noconfigdirs $dir"
8805   fi
8806 done
8807
8808 # Check for Boehm's garbage collector
8809 # Check whether --enable-objc-gc was given.
8810 if test "${enable_objc_gc+set}" = set; then :
8811   enableval=$enable_objc_gc;
8812 fi
8813
8814
8815 # Check whether --with-target-bdw-gc was given.
8816 if test "${with_target_bdw_gc+set}" = set; then :
8817   withval=$with_target_bdw_gc;
8818 fi
8819
8820
8821 # Check whether --with-target-bdw-gc-include was given.
8822 if test "${with_target_bdw_gc_include+set}" = set; then :
8823   withval=$with_target_bdw_gc_include;
8824 fi
8825
8826
8827 # Check whether --with-target-bdw-gc-lib was given.
8828 if test "${with_target_bdw_gc_lib+set}" = set; then :
8829   withval=$with_target_bdw_gc_lib;
8830 fi
8831
8832
8833 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8835 $as_echo_n "checking for bdw garbage collector... " >&6; }
8836   if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8838 $as_echo "using bdw-gc in default locations" >&6; }
8839   else
8840         if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8841       as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8842     elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8843       as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8844     else
8845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8846 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8847     fi
8848   fi
8849 esac
8850
8851 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8852 case ,${enable_languages}, in
8853   *,c++,*)
8854     # Disable libitm, libsanitizer if we're not building libstdc++
8855     case "${noconfigdirs}" in
8856       *target-libstdc++-v3*)
8857         noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
8858         ;;
8859       *) ;;
8860     esac
8861     ;;
8862   *)
8863     noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8864     ;;
8865 esac
8866
8867 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8868 # $build_configdirs and $target_configdirs.
8869 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8870
8871 notsupp=""
8872 for dir in . $skipdirs $noconfigdirs ; do
8873   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8874   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8875     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8876     if test -r $srcdir/$dirname/configure ; then
8877       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8878         true
8879       else
8880         notsupp="$notsupp $dir"
8881       fi
8882     fi
8883   fi
8884   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8885     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8886     if test -r $srcdir/$dirname/configure ; then
8887       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8888         true
8889       else
8890         notsupp="$notsupp $dir"
8891       fi
8892     fi
8893   fi
8894   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8895     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8896     if test -r $srcdir/$dirname/configure ; then
8897       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8898         true
8899       else
8900         notsupp="$notsupp $dir"
8901       fi
8902     fi
8903   fi
8904 done
8905
8906 # Quietly strip out all directories which aren't configurable in this tree.
8907 # This relies on all configurable subdirectories being autoconfiscated, which
8908 # is now the case.
8909 build_configdirs_all="$build_configdirs"
8910 build_configdirs=
8911 for i in ${build_configdirs_all} ; do
8912   j=`echo $i | sed -e s/build-//g`
8913   if test -f ${srcdir}/$j/configure ; then
8914     build_configdirs="${build_configdirs} $i"
8915   fi
8916 done
8917
8918 configdirs_all="$configdirs"
8919 configdirs=
8920 for i in ${configdirs_all} ; do
8921   if test -f ${srcdir}/$i/configure ; then
8922     configdirs="${configdirs} $i"
8923   fi
8924 done
8925
8926 target_configdirs_all="$target_configdirs"
8927 target_configdirs=
8928 for i in ${target_configdirs_all} ; do
8929   j=`echo $i | sed -e s/target-//g`
8930   if test -f ${srcdir}/$j/configure ; then
8931     target_configdirs="${target_configdirs} $i"
8932   fi
8933 done
8934
8935 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8936 # so we have to add it after the preceding checks.
8937 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8938 then
8939   case " $configdirs " in
8940     *" libiberty "*)
8941       # If we can build libiberty, we can also build libiberty-linker-plugin.
8942       configdirs="$configdirs libiberty-linker-plugin"
8943       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8944         --with-libiberty=../libiberty-linker-plugin";;
8945     *)
8946       as_fn_error $? "libiberty missing" "$LINENO" 5;;
8947   esac
8948 fi
8949
8950 # Sometimes we have special requirements for the host libiberty.
8951 extra_host_libiberty_configure_flags=
8952 extra_host_zlib_configure_flags=
8953 case " $configdirs " in
8954   *" lto-plugin "* | *" libcc1 "*)
8955     # When these are to be built as shared libraries, the same applies to
8956     # libiberty.
8957     extra_host_libiberty_configure_flags=--enable-shared
8958     ;;
8959   *" bfd "*)
8960     # When bfd is to be built as a shared library, the same applies to
8961     # zlib.
8962     if test "$enable_shared" = "yes"; then
8963       extra_host_zlib_configure_flags=--enable-host-shared
8964     fi
8965     ;;
8966 esac
8967
8968
8969
8970 # Produce a warning message for the subdirs we can't configure.
8971 # This isn't especially interesting in the Cygnus tree, but in the individual
8972 # FSF releases, it's important to let people know when their machine isn't
8973 # supported by the one or two programs in a package.
8974
8975 if test -n "${notsupp}" && test -z "${norecursion}" ; then
8976   # If $appdirs is non-empty, at least one of those directories must still
8977   # be configured, or we error out.  (E.g., if the gas release supports a
8978   # specified target in some subdirs but not the gas subdir, we shouldn't
8979   # pretend that all is well.)
8980   if test -n "$appdirs" ; then
8981     for dir in $appdirs ; do
8982       if test -r $dir/Makefile.in ; then
8983         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8984           appdirs=""
8985           break
8986         fi
8987         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8988           appdirs=""
8989           break
8990         fi
8991       fi
8992     done
8993     if test -n "$appdirs" ; then
8994       echo "*** This configuration is not supported by this package." 1>&2
8995       exit 1
8996     fi
8997   fi
8998   # Okay, some application will build, or we don't care to check.  Still
8999   # notify of subdirs not getting built.
9000   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9001   echo "    ${notsupp}" 1>&2
9002   echo "    (Any other directories should still work fine.)" 1>&2
9003 fi
9004
9005 case "$host" in
9006   *msdosdjgpp*)
9007     enable_gdbtk=no ;;
9008 esac
9009
9010 # To find our prefix, in gcc_cv_tool_prefix.
9011
9012 # The user is always right.
9013 if test "${PATH_SEPARATOR+set}" != set; then
9014   echo "#! /bin/sh" >conf$$.sh
9015   echo  "exit 0"   >>conf$$.sh
9016   chmod +x conf$$.sh
9017   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9018     PATH_SEPARATOR=';'
9019   else
9020     PATH_SEPARATOR=:
9021   fi
9022   rm -f conf$$.sh
9023 fi
9024
9025
9026   get_gcc_base_ver="cat"
9027
9028 # Check whether --with-gcc-major-version-only was given.
9029 if test "${with_gcc_major_version_only+set}" = set; then :
9030   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9031         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9032       fi
9033
9034 fi
9035
9036
9037
9038
9039
9040
9041 if test "x$exec_prefix" = xNONE; then
9042         if test "x$prefix" = xNONE; then
9043                 gcc_cv_tool_prefix=$ac_default_prefix
9044         else
9045                 gcc_cv_tool_prefix=$prefix
9046         fi
9047 else
9048         gcc_cv_tool_prefix=$exec_prefix
9049 fi
9050
9051 # If there is no compiler in the tree, use the PATH only.  In any
9052 # case, if there is no compiler in the tree nobody should use
9053 # AS_FOR_TARGET and LD_FOR_TARGET.
9054 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9055     if test x$with_gcc_major_version_only = xyes ; then
9056                 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9057             else
9058         gcc_version=`cat $srcdir/gcc/BASE-VER`
9059     fi
9060     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9061     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9062     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9063     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9064     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9065     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9066 else
9067     gcc_cv_tool_dirs=
9068 fi
9069
9070 if test x$build = x$target && test -n "$md_exec_prefix"; then
9071         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9072 fi
9073
9074
9075
9076 copy_dirs=
9077
9078
9079 # Check whether --with-build-sysroot was given.
9080 if test "${with_build_sysroot+set}" = set; then :
9081   withval=$with_build_sysroot; if test x"$withval" != x ; then
9082      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9083    fi
9084 else
9085   SYSROOT_CFLAGS_FOR_TARGET=
9086 fi
9087
9088
9089
9090
9091 # Check whether --with-debug-prefix-map was given.
9092 if test "${with_debug_prefix_map+set}" = set; then :
9093   withval=$with_debug_prefix_map; if test x"$withval" != x; then
9094      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9095      for debug_map in $withval; do
9096        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9097      done
9098    fi
9099 else
9100   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9101 fi
9102
9103
9104
9105 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9106 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
9107 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9108 # We want to ensure that TARGET libraries (which we know are built with
9109 # gcc) are built with "-O2 -g", so include those options when setting
9110 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9111 if test "x$CFLAGS_FOR_TARGET" = x; then
9112   if test "x${is_cross_compiler}" = xyes; then
9113     CFLAGS_FOR_TARGET="-g -O2"
9114   else
9115     CFLAGS_FOR_TARGET=$CFLAGS
9116     case " $CFLAGS " in
9117       *" -O2 "*) ;;
9118       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9119     esac
9120     case " $CFLAGS " in
9121       *" -g "* | *" -g3 "*) ;;
9122       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9123     esac
9124   fi
9125 fi
9126
9127
9128 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9129   if test "x${is_cross_compiler}" = xyes; then
9130     CXXFLAGS_FOR_TARGET="-g -O2"
9131   else
9132     CXXFLAGS_FOR_TARGET=$CXXFLAGS
9133     case " $CXXFLAGS " in
9134       *" -O2 "*) ;;
9135       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9136     esac
9137     case " $CXXFLAGS " in
9138       *" -g "* | *" -g3 "*) ;;
9139       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9140     esac
9141   fi
9142 fi
9143
9144
9145
9146
9147 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
9148 # the named directory are copied to $(tooldir)/sys-include.
9149 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9150   if test x${is_cross_compiler} = xno ; then
9151     echo 1>&2 '***' --with-headers is only supported when cross compiling
9152     exit 1
9153   fi
9154   if test x"${with_headers}" != xyes ; then
9155     x=${gcc_cv_tool_prefix}
9156     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9157   fi
9158 fi
9159
9160 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
9161 # the name directories are copied to $(tooldir)/lib.  Multiple directories
9162 # are permitted.
9163 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9164   if test x${is_cross_compiler} = xno ; then
9165     echo 1>&2 '***' --with-libs is only supported when cross compiling
9166     exit 1
9167   fi
9168   if test x"${with_libs}" != xyes ; then
9169     # Copy the libraries in reverse order, so that files in the first named
9170     # library override files in subsequent libraries.
9171     x=${gcc_cv_tool_prefix}
9172     for l in ${with_libs}; do
9173       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9174     done
9175   fi
9176 fi
9177
9178 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9179 #
9180 # This is done by determining whether or not the appropriate directory
9181 # is available, and by checking whether or not specific configurations
9182 # have requested that this magic not happen.
9183 #
9184 # The command line options always override the explicit settings in
9185 # configure.ac, and the settings in configure.ac override this magic.
9186 #
9187 # If the default for a toolchain is to use GNU as and ld, and you don't
9188 # want to do that, then you should use the --without-gnu-as and
9189 # --without-gnu-ld options for the configure script.  Similarly, if
9190 # the default is to use the included zlib and you don't want to do that,
9191 # you should use the --with-system-zlib option for the configure script.
9192
9193 if test x${use_gnu_as} = x &&
9194    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9195   with_gnu_as=yes
9196   extra_host_args="$extra_host_args --with-gnu-as"
9197 fi
9198
9199 if test x${use_gnu_ld} = x &&
9200    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9201   with_gnu_ld=yes
9202   extra_host_args="$extra_host_args --with-gnu-ld"
9203 fi
9204
9205 if test x${use_included_zlib} = x &&
9206    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9207   :
9208 else
9209   with_system_zlib=yes
9210   extra_host_args="$extra_host_args --with-system-zlib"
9211 fi
9212
9213 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9214 # can detect this case.
9215
9216 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9217   with_newlib=yes
9218   extra_host_args="$extra_host_args --with-newlib"
9219 fi
9220
9221 # Handle ${copy_dirs}
9222 set fnord ${copy_dirs}
9223 shift
9224 while test $# != 0 ; do
9225   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9226     :
9227   else
9228     echo Copying $1 to $2
9229
9230     # Use the install script to create the directory and all required
9231     # parent directories.
9232     if test -d $2 ; then
9233       :
9234     else
9235       echo >config.temp
9236       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9237     fi
9238
9239     # Copy the directory, assuming we have tar.
9240     # FIXME: Should we use B in the second tar?  Not all systems support it.
9241     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9242
9243     # It is the responsibility of the user to correctly adjust all
9244     # symlinks.  If somebody can figure out how to handle them correctly
9245     # here, feel free to add the code.
9246
9247     echo $1 > $2/COPIED
9248   fi
9249   shift; shift
9250 done
9251
9252 # Determine a target-dependent exec_prefix that the installed
9253 # gcc will search in.  Keep this list sorted by triplet, with
9254 # the *-*-osname triplets last.
9255 md_exec_prefix=
9256 case "${target}" in
9257   i[34567]86-pc-msdosdjgpp*)
9258     md_exec_prefix=/dev/env/DJDIR/bin
9259     ;;
9260   *-*-hpux* | \
9261   *-*-nto-qnx* | \
9262   *-*-solaris2*)
9263     md_exec_prefix=/usr/ccs/bin
9264     ;;
9265 esac
9266
9267 extra_arflags_for_target=
9268 extra_nmflags_for_target=
9269 extra_ranlibflags_for_target=
9270 target_makefile_frag=/dev/null
9271 case "${target}" in
9272   spu-*-*)
9273     target_makefile_frag="config/mt-spu"
9274     ;;
9275   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9276     target_makefile_frag="config/mt-sde"
9277     ;;
9278   mipsisa*-*-elfoabi*)
9279     target_makefile_frag="config/mt-mips-elfoabi"
9280     ;;
9281   mips*-*-*linux* | mips*-*-gnu*)
9282     target_makefile_frag="config/mt-mips-gnu"
9283     ;;
9284   nios2-*-elf*)
9285     target_makefile_frag="config/mt-nios2-elf"
9286     ;;
9287   *-*-linux-android*)
9288     target_makefile_frag="config/mt-android"
9289     ;;
9290   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9291     target_makefile_frag="config/mt-gnu"
9292     ;;
9293   *-*-aix4.[3456789]* | *-*-aix[56789].*)
9294     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9295     # commands to handle both 32-bit and 64-bit objects.  These flags are
9296     # harmless if we're using GNU nm or ar.
9297     extra_arflags_for_target=" -X32_64"
9298     extra_nmflags_for_target=" -B -X32_64"
9299     ;;
9300 esac
9301
9302 alphaieee_frag=/dev/null
9303 case $target in
9304   alpha*-*-*)
9305     # This just makes sure to use the -mieee option to build target libs.
9306     # This should probably be set individually by each library.
9307     alphaieee_frag="config/mt-alphaieee"
9308     ;;
9309 esac
9310
9311 # If --enable-target-optspace always use -Os instead of -O2 to build
9312 # the target libraries, similarly if it is not specified, use -Os
9313 # on selected platforms.
9314 ospace_frag=/dev/null
9315 case "${enable_target_optspace}:${target}" in
9316   yes:*)
9317     ospace_frag="config/mt-ospace"
9318     ;;
9319   :d30v-*)
9320     ospace_frag="config/mt-d30v"
9321     ;;
9322   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9323     ospace_frag="config/mt-ospace"
9324     ;;
9325   no:* | :*)
9326     ;;
9327   *)
9328     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9329     ;;
9330 esac
9331
9332 # Some systems (e.g., one of the i386-aix systems the gas testers are
9333 # using) don't handle "\$" correctly, so don't use it here.
9334 tooldir='${exec_prefix}'/${target_noncanonical}
9335 build_tooldir=${tooldir}
9336
9337 # Create a .gdbinit file which runs the one in srcdir
9338 # and tells GDB to look there for source files.
9339
9340 if test -r ${srcdir}/.gdbinit ; then
9341   case ${srcdir} in
9342     .) ;;
9343     *) cat > ./.gdbinit <<EOF
9344 # ${NO_EDIT}
9345 dir ${srcdir}
9346 dir .
9347 source ${srcdir}/.gdbinit
9348 EOF
9349     ;;
9350   esac
9351 fi
9352
9353 # Make sure that the compiler is able to generate an executable.  If it
9354 # can't, we are probably in trouble.  We don't care whether we can run the
9355 # executable--we might be using a cross compiler--we only care whether it
9356 # can be created.  At this point the main configure script has set CC.
9357 we_are_ok=no
9358 echo "int main () { return 0; }" > conftest.c
9359 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9360 if test $? = 0 ; then
9361   if test -s conftest || test -s conftest.exe ; then
9362     we_are_ok=yes
9363   fi
9364 fi
9365 case $we_are_ok in
9366   no)
9367     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9368     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9369     rm -f conftest*
9370     exit 1
9371     ;;
9372 esac
9373 rm -f conftest*
9374
9375 # Decide which environment variable is used to find dynamic libraries.
9376 case "${host}" in
9377   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9378   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9379   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9380   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9381 esac
9382
9383 # On systems where the dynamic library environment variable is PATH,
9384 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9385 # built executables to PATH.
9386 if test "$RPATH_ENVVAR" = PATH; then
9387   GCC_SHLIB_SUBDIR=/shlib
9388 else
9389   GCC_SHLIB_SUBDIR=
9390 fi
9391
9392 # Adjust the toplevel makefile according to whether bootstrap was selected.
9393 case $enable_bootstrap in
9394   yes)
9395     bootstrap_suffix=bootstrap
9396     BUILD_CONFIG=bootstrap-debug
9397     ;;
9398   no)
9399     bootstrap_suffix=no-bootstrap
9400     BUILD_CONFIG=
9401     ;;
9402 esac
9403
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9405 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9406
9407
9408 # Check whether --with-build-config was given.
9409 if test "${with_build_config+set}" = set; then :
9410   withval=$with_build_config; case $with_build_config in
9411    yes) with_build_config= ;;
9412    no) with_build_config= BUILD_CONFIG= ;;
9413    esac
9414 fi
9415
9416
9417 if test "x${with_build_config}" != x; then
9418   BUILD_CONFIG=$with_build_config
9419 else
9420   case $BUILD_CONFIG in
9421   bootstrap-debug)
9422     if echo "int f (void) { return 0; }" > conftest.c &&
9423        ${CC} -c conftest.c &&
9424        mv conftest.o conftest.o.g0 &&
9425        ${CC} -c -g conftest.c &&
9426        mv conftest.o conftest.o.g &&
9427        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9428       :
9429     else
9430       BUILD_CONFIG=
9431     fi
9432     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9433     ;;
9434   esac
9435 fi
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9437 $as_echo "$BUILD_CONFIG" >&6; }
9438
9439
9440 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9442 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9443 # Check whether --enable-vtable-verify was given.
9444 if test "${enable_vtable_verify+set}" = set; then :
9445   enableval=$enable_vtable_verify; case "$enableval" in
9446  yes) enable_vtable_verify=yes ;;
9447  no)  enable_vtable_verify=no ;;
9448  *)   enable_vtable_verify=no;;
9449  esac
9450 else
9451   enable_vtable_verify=no
9452 fi
9453
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9455 $as_echo "$enable_vtable_verify" >&6; }
9456
9457 # Record target_configdirs and the configure arguments for target and
9458 # build configuration in Makefile.
9459 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9460 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9461 bootstrap_fixincludes=no
9462
9463 # If we are building libgomp, bootstrap it.
9464 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9465   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9466 fi
9467
9468 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9469 # or bootstrap-ubsan, bootstrap it.
9470 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9471   case "$BUILD_CONFIG" in
9472     *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9473       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9474       bootstrap_fixincludes=yes
9475       ;;
9476   esac
9477 fi
9478
9479 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9480 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9481    test "$enable_vtable_verify" != no; then
9482   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9483 fi
9484
9485 # Determine whether gdb needs tk/tcl or not.
9486 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9487 # and in that case we want gdb to be built without tk.  Ugh!
9488 # In fact I believe gdb is the *only* package directly dependent on tk,
9489 # so we should be able to put the 'maybe's in unconditionally and
9490 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
9491 # 100% sure that that's safe though.
9492
9493 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9494 case "$enable_gdbtk" in
9495   no)
9496     GDB_TK="" ;;
9497   yes)
9498     GDB_TK="${gdb_tk}" ;;
9499   *)
9500     # Only add the dependency on gdbtk when GDBtk is part of the gdb
9501     # distro.  Eventually someone will fix this and move Insight, nee
9502     # gdbtk to a separate directory.
9503     if test -d ${srcdir}/gdb/gdbtk ; then
9504       GDB_TK="${gdb_tk}"
9505     else
9506       GDB_TK=""
9507     fi
9508     ;;
9509 esac
9510 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9511 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9512
9513 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9514 # else does, only include them if one of these is built.  The Makefile
9515 # provides the ordering, so it's enough here to add to the list.
9516 case " ${configdirs} " in
9517   *\ gdb\ *)
9518     configdirs="${configdirs} gnulib gdbsupport"
9519     ;;
9520   *\ gdbserver\ *)
9521     configdirs="${configdirs} gnulib gdbsupport"
9522     ;;
9523   *\ sim\ *)
9524     configdirs="${configdirs} gnulib"
9525     ;;
9526 esac
9527
9528 # Strip out unwanted targets.
9529
9530 # While at that, we remove Makefiles if we were started for recursive
9531 # configuration, so that the top-level Makefile reconfigures them,
9532 # like we used to do when configure itself was recursive.
9533
9534 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
9535 # but now we're fixing up the Makefile ourselves with the additional
9536 # commands passed to AC_CONFIG_FILES.  Use separate variables
9537 # extrasub-{build,host,target} not because there is any reason to split
9538 # the substitutions up that way, but only to remain below the limit of
9539 # 99 commands in a script, for HP-UX sed.
9540
9541 # Do not nest @if/@endif or @unless/@endunless pairs, because
9542 # configure will not warn you at all.
9543
9544 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9545   yes:yes:*\ gold\ *:*,c++,*) ;;
9546   yes:yes:*\ gold\ *:*)
9547     as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9548     ;;
9549 esac
9550
9551 extrasub_build=
9552 for module in ${build_configdirs} ; do
9553   if test -z "${no_recursion}" \
9554      && test -f ${build_subdir}/${module}/Makefile; then
9555     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9556     rm -f ${build_subdir}/${module}/Makefile
9557   fi
9558   extrasub_build="$extrasub_build
9559 /^@if build-$module\$/d
9560 /^@endif build-$module\$/d
9561 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9562 /^@if build-$module-$bootstrap_suffix\$/d
9563 /^@endif build-$module-$bootstrap_suffix\$/d
9564 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9565 done
9566 extrasub_host=
9567 for module in ${configdirs} ; do
9568   if test -z "${no_recursion}"; then
9569     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9570       if test -f ${file}; then
9571         echo 1>&2 "*** removing ${file} to force reconfigure"
9572         rm -f ${file}
9573       fi
9574     done
9575   fi
9576   case ${module},${bootstrap_fixincludes} in
9577     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9578     *) host_bootstrap_suffix=$bootstrap_suffix ;;
9579   esac
9580   extrasub_host="$extrasub_host
9581 /^@if $module\$/d
9582 /^@endif $module\$/d
9583 /^@unless $module\$/,/^@endunless $module\$/d
9584 /^@if $module-$host_bootstrap_suffix\$/d
9585 /^@endif $module-$host_bootstrap_suffix\$/d
9586 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9587 done
9588 extrasub_target=
9589 for module in ${target_configdirs} ; do
9590   if test -z "${no_recursion}" \
9591      && test -f ${target_subdir}/${module}/Makefile; then
9592     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9593     rm -f ${target_subdir}/${module}/Makefile
9594   fi
9595
9596   # We only bootstrap target libraries listed in bootstrap_target_libs.
9597   case $bootstrap_target_libs in
9598     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9599     *) target_bootstrap_suffix=no-bootstrap ;;
9600   esac
9601
9602   extrasub_target="$extrasub_target
9603 /^@if target-$module\$/d
9604 /^@endif target-$module\$/d
9605 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9606 /^@if target-$module-$target_bootstrap_suffix\$/d
9607 /^@endif target-$module-$target_bootstrap_suffix\$/d
9608 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9609 done
9610
9611 # Do the final fixup along with target modules.
9612 extrasub_target="$extrasub_target
9613 /^@if /,/^@endif /d
9614 /^@unless /d
9615 /^@endunless /d"
9616
9617 # Create the serialization dependencies.  This uses a temporary file.
9618
9619 # Check whether --enable-serial-configure was given.
9620 if test "${enable_serial_configure+set}" = set; then :
9621   enableval=$enable_serial_configure;
9622 fi
9623
9624
9625 case ${enable_serial_configure} in
9626   yes)
9627     enable_serial_build_configure=yes
9628     enable_serial_host_configure=yes
9629     enable_serial_target_configure=yes
9630     ;;
9631 esac
9632
9633 # These force 'configure's to be done one at a time, to avoid problems
9634 # with contention over a shared config.cache.
9635 rm -f serdep.tmp
9636 echo '# serdep.tmp' > serdep.tmp
9637 olditem=
9638 test "x${enable_serial_build_configure}" = xyes &&
9639 for item in ${build_configdirs} ; do
9640   case ${olditem} in
9641     "") ;;
9642     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9643   esac
9644   olditem=${item}
9645 done
9646 olditem=
9647 test "x${enable_serial_host_configure}" = xyes &&
9648 for item in ${configdirs} ; do
9649   case ${olditem} in
9650     "") ;;
9651     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9652   esac
9653   olditem=${item}
9654 done
9655 olditem=
9656 test "x${enable_serial_target_configure}" = xyes &&
9657 for item in ${target_configdirs} ; do
9658   case ${olditem} in
9659     "") ;;
9660     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9661   esac
9662   olditem=${item}
9663 done
9664 serialization_dependencies=serdep.tmp
9665
9666
9667 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
9668 # target, nonopt, and variable assignments.  These are the ones we
9669 # might not want to pass down to subconfigures.  The exception being
9670 # --cache-file=/dev/null, which is used to turn off the use of cache
9671 # files altogether, and which should be passed on to subconfigures.
9672 # Also strip program-prefix, program-suffix, and program-transform-name,
9673 # so that we can pass down a consistent program-transform-name.
9674 baseargs=
9675 tbaseargs=
9676 keep_next=no
9677 skip_next=no
9678 eval "set -- $ac_configure_args"
9679 for ac_arg
9680 do
9681   if test X"$skip_next" = X"yes"; then
9682     skip_next=no
9683     continue
9684   fi
9685   if test X"$keep_next" = X"yes"; then
9686     case $ac_arg in
9687       *\'*)
9688         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9689     esac
9690     baseargs="$baseargs '$ac_arg'"
9691     tbaseargs="$tbaseargs '$ac_arg'"
9692     keep_next=no
9693     continue
9694   fi
9695
9696   # Handle separated arguments.  Based on the logic generated by
9697   # autoconf 2.59.
9698   case $ac_arg in
9699     *=* | --config-cache | -C | -disable-* | --disable-* \
9700       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9701       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9702       | -with-* | --with-* | -without-* | --without-* | --x)
9703       separate_arg=no
9704       ;;
9705     -*)
9706       separate_arg=yes
9707       ;;
9708     *)
9709       separate_arg=no
9710       ;;
9711   esac
9712
9713   skip_targ=no
9714   case $ac_arg in
9715
9716   --with-* | --without-*)
9717     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9718
9719     case $libopt in
9720     *[-_]include)
9721       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9722       ;;
9723     *[-_]lib)
9724       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9725       ;;
9726     *)
9727       lib=$libopt
9728       ;;
9729     esac
9730
9731
9732     case $lib in
9733     mpc | mpfr | gmp | isl)
9734       # If we're processing --with-$lib, --with-$lib-include or
9735       # --with-$lib-lib, for one of the libs above, and target is
9736       # different from host, don't pass the current argument to any
9737       # target library's configure.
9738       if test x$is_cross_compiler = xyes; then
9739         skip_targ=yes
9740       fi
9741       ;;
9742     esac
9743     ;;
9744   esac
9745
9746   case "$ac_arg" in
9747     --cache-file=/dev/null | \
9748     -cache-file=/dev/null )
9749       # Handled here to avoid the test to skip args below.
9750       baseargs="$baseargs '$ac_arg'"
9751       tbaseargs="$tbaseargs '$ac_arg'"
9752       # Assert: $separate_arg should always be no.
9753       keep_next=$separate_arg
9754       ;;
9755     --no*)
9756       continue
9757       ;;
9758     --c* | \
9759     --sr* | \
9760     --ho* | \
9761     --bu* | \
9762     --t* | \
9763     --program-* | \
9764     -cache_file* | \
9765     -srcdir* | \
9766     -host* | \
9767     -build* | \
9768     -target* | \
9769     -program-prefix* | \
9770     -program-suffix* | \
9771     -program-transform-name* )
9772       skip_next=$separate_arg
9773       continue
9774       ;;
9775     -*)
9776       # An option.  Add it.
9777       case $ac_arg in
9778         *\'*)
9779           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9780       esac
9781       baseargs="$baseargs '$ac_arg'"
9782       if test X"$skip_targ" = Xno; then
9783         tbaseargs="$tbaseargs '$ac_arg'"
9784       fi
9785       keep_next=$separate_arg
9786       ;;
9787     *)
9788       # Either a variable assignment, or a nonopt (triplet).  Don't
9789       # pass it down; let the Makefile handle this.
9790       continue
9791       ;;
9792   esac
9793 done
9794 # Remove the initial space we just introduced and, as these will be
9795 # expanded by make, quote '$'.
9796 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9797
9798 # Add in --program-transform-name, after --program-prefix and
9799 # --program-suffix have been applied to it.  Autoconf has already
9800 # doubled dollar signs and backslashes in program_transform_name; we want
9801 # the backslashes un-doubled, and then the entire thing wrapped in single
9802 # quotes, because this will be expanded first by make and then by the shell.
9803 # Also, because we want to override the logic in subdir configure scripts to
9804 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9805 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9806 ${program_transform_name}
9807 EOF_SED
9808 gcc_transform_name=`cat conftestsed.out`
9809 rm -f conftestsed.out
9810 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9811 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9812 if test "$silent" = yes; then
9813   baseargs="$baseargs --silent"
9814   tbaseargs="$tbaseargs --silent"
9815 fi
9816 baseargs="$baseargs --disable-option-checking"
9817 tbaseargs="$tbaseargs --disable-option-checking"
9818
9819 # Record and document user additions to sub configure arguments.
9820
9821
9822
9823
9824 # For the build-side libraries, we just need to pretend we're native,
9825 # and not use the same cache file.  Multilibs are neither needed nor
9826 # desired.  We can't even use the same cache file for all build-side
9827 # libraries, as they're compiled differently; some with C, some with
9828 # C++ or with different feature-enabling options.
9829 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9830
9831 # For host modules, accept cache file option, or specification as blank.
9832 case "${cache_file}" in
9833 "") # empty
9834   cache_file_option="" ;;
9835 /* | [A-Za-z]:[\\/]* ) # absolute path
9836   cache_file_option="--cache-file=${cache_file}" ;;
9837 *) # relative path
9838   cache_file_option="--cache-file=../${cache_file}" ;;
9839 esac
9840
9841 # Host dirs don't like to share a cache file either, horribly enough.
9842 # This seems to be due to autoconf 2.5x stupidity.
9843 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9844
9845 target_configargs="$target_configargs ${tbaseargs}"
9846
9847 # Passing a --with-cross-host argument lets the target libraries know
9848 # whether they are being built with a cross-compiler or being built
9849 # native.  However, it would be better to use other mechanisms to make the
9850 # sorts of decisions they want to make on this basis.  Please consider
9851 # this option to be deprecated.  FIXME.
9852 if test x${is_cross_compiler} = xyes ; then
9853   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
9854 fi
9855
9856 # Special user-friendly check for native x86_64-linux build, if
9857 # multilib is not explicitly enabled.
9858 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9859   x86_64-*linux*:yes:$build:$build:)
9860     # Make sure we have a development environment that handles 32-bit
9861     dev64=no
9862     echo "int main () { return 0; }" > conftest.c
9863     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9864     if test $? = 0 ; then
9865       if test -s conftest || test -s conftest.exe ; then
9866         dev64=yes
9867       fi
9868     fi
9869     rm -f conftest*
9870     if test x${dev64} != xyes ; then
9871       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
9872     fi
9873     ;;
9874 esac
9875
9876 # Default to --enable-multilib.
9877 if test x${enable_multilib} = x ; then
9878   target_configargs="--enable-multilib ${target_configargs}"
9879 fi
9880
9881 # Pass --with-newlib if appropriate.  Note that target_configdirs has
9882 # changed from the earlier setting of with_newlib.
9883 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9884   target_configargs="--with-newlib ${target_configargs}"
9885 fi
9886
9887 # Different target subdirs use different values of certain variables
9888 # (notably CXX).  Worse, multilibs use *lots* of different values.
9889 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9890 # it doesn't automatically accept command-line overrides of them.
9891 # This means it's not safe for target subdirs to share a cache file,
9892 # which is disgusting, but there you have it.  Hopefully this can be
9893 # fixed in future.  It's still worthwhile to use a cache file for each
9894 # directory.  I think.
9895
9896 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9897 # We need to pass --target, as newer autoconf's requires consistency
9898 # for target_alias and gcc doesn't manage it consistently.
9899 target_configargs="--cache-file=./config.cache ${target_configargs}"
9900
9901 FLAGS_FOR_TARGET=
9902 case " $target_configdirs " in
9903  *" newlib "*)
9904   case " $target_configargs " in
9905   *" --with-newlib "*)
9906    case "$target" in
9907     *-cygwin*)
9908       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9909       ;;
9910    esac
9911
9912    # If we're not building GCC, don't discard standard headers.
9913    if test -d ${srcdir}/gcc; then
9914      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9915
9916      if test "${build}" != "${host}"; then
9917        # On Canadian crosses, CC_FOR_TARGET will have already been set
9918        # by `configure', so we won't have an opportunity to add -Bgcc/
9919        # to it.  This is right: we don't want to search that directory
9920        # for binaries, but we want the header files in there, so add
9921        # them explicitly.
9922        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9923
9924        # Someone might think of using the pre-installed headers on
9925        # Canadian crosses, in case the installed compiler is not fully
9926        # compatible with the compiler being built.  In this case, it
9927        # would be better to flag an error than risking having
9928        # incompatible object files being constructed.  We can't
9929        # guarantee that an error will be flagged, but let's hope the
9930        # compiler will do it, when presented with incompatible header
9931        # files.
9932      fi
9933    fi
9934
9935    case "${target}-${is_cross_compiler}" in
9936    i[3456789]86-*-linux*-no)
9937       # Here host == target, so we don't need to build gcc,
9938       # so we don't want to discard standard headers.
9939       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9940       ;;
9941    *)
9942       # If we're building newlib, use its generic headers last, but search
9943       # for any libc-related directories first (so make it the last -B
9944       # switch).
9945       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9946
9947       # If we're building libgloss, find the startup file, simulator library
9948       # and linker script.
9949       case " $target_configdirs " in
9950         *" libgloss "*)
9951         # Look for startup file, simulator library and maybe linker script.
9952         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9953         # Look for libnosys.a in case the target needs it.
9954         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9955         # Most targets have the linker script in the source directory.
9956         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9957         ;;
9958       esac
9959       ;;
9960    esac
9961    ;;
9962   esac
9963   ;;
9964 esac
9965
9966 case "$target" in
9967   x86_64-*mingw* | *-w64-mingw*)
9968   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9969   # however, use a symlink named 'mingw' in ${prefix} .
9970     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9971     ;;
9972   *-mingw*)
9973   # MinGW can't be handled as Cygwin above since it does not use newlib.
9974     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'
9975     ;;
9976 esac
9977
9978 # Allow the user to override the flags for
9979 # our build compiler if desired.
9980 if test x"${build}" = x"${host}" ; then
9981   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
9982   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
9983   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
9984 fi
9985
9986 # On Canadian crosses, we'll be searching the right directories for
9987 # the previously-installed cross compiler, so don't bother to add
9988 # flags for directories within the install tree of the compiler
9989 # being built; programs in there won't even run.
9990 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
9991   # Search for pre-installed headers if nothing else fits.
9992   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
9993 fi
9994
9995 if test "x${use_gnu_ld}" = x &&
9996    echo " ${configdirs} " | grep " ld " > /dev/null ; then
9997   # Arrange for us to find uninstalled linker scripts.
9998   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
9999 fi
10000
10001 # Search for other target-specific linker scripts and such.
10002 case "${target}" in
10003   mep*)
10004     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10005     ;;
10006 esac
10007
10008 # Makefile fragments.
10009 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10010 do
10011   eval fragval=\$$frag
10012   if test $fragval != /dev/null; then
10013     eval $frag=${srcdir}/$fragval
10014   fi
10015 done
10016
10017
10018
10019
10020
10021 # Miscellanea: directories, flags, etc.
10022
10023
10024
10025
10026
10027
10028
10029
10030 # Build module lists & subconfigure args.
10031
10032
10033
10034 # Host module lists & subconfigure args.
10035
10036
10037
10038
10039 # Target module lists & subconfigure args.
10040
10041
10042
10043 # Build tools.
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061 # Generate default definitions for YACC, M4, LEX and other programs that run
10062 # on the build machine.  These are used if the Makefile can't locate these
10063 # programs in objdir.
10064 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10065
10066 for ac_prog in 'bison -y' byacc yacc
10067 do
10068   # Extract the first word of "$ac_prog", so it can be a program name with args.
10069 set dummy $ac_prog; ac_word=$2
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10071 $as_echo_n "checking for $ac_word... " >&6; }
10072 if ${ac_cv_prog_YACC+:} false; then :
10073   $as_echo_n "(cached) " >&6
10074 else
10075   if test -n "$YACC"; then
10076   ac_cv_prog_YACC="$YACC" # Let the user override the test.
10077 else
10078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10079 for as_dir in $PATH
10080 do
10081   IFS=$as_save_IFS
10082   test -z "$as_dir" && as_dir=.
10083     for ac_exec_ext in '' $ac_executable_extensions; do
10084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10085     ac_cv_prog_YACC="$ac_prog"
10086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10087     break 2
10088   fi
10089 done
10090   done
10091 IFS=$as_save_IFS
10092
10093 fi
10094 fi
10095 YACC=$ac_cv_prog_YACC
10096 if test -n "$YACC"; then
10097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10098 $as_echo "$YACC" >&6; }
10099 else
10100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101 $as_echo "no" >&6; }
10102 fi
10103
10104
10105   test -n "$YACC" && break
10106 done
10107 test -n "$YACC" || YACC="$MISSING bison -y"
10108
10109 case " $build_configdirs " in
10110   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10111 esac
10112
10113 for ac_prog in bison
10114 do
10115   # Extract the first word of "$ac_prog", so it can be a program name with args.
10116 set dummy $ac_prog; ac_word=$2
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10118 $as_echo_n "checking for $ac_word... " >&6; }
10119 if ${ac_cv_prog_BISON+:} false; then :
10120   $as_echo_n "(cached) " >&6
10121 else
10122   if test -n "$BISON"; then
10123   ac_cv_prog_BISON="$BISON" # Let the user override the test.
10124 else
10125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10126 for as_dir in $PATH
10127 do
10128   IFS=$as_save_IFS
10129   test -z "$as_dir" && as_dir=.
10130     for ac_exec_ext in '' $ac_executable_extensions; do
10131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10132     ac_cv_prog_BISON="$ac_prog"
10133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10134     break 2
10135   fi
10136 done
10137   done
10138 IFS=$as_save_IFS
10139
10140 fi
10141 fi
10142 BISON=$ac_cv_prog_BISON
10143 if test -n "$BISON"; then
10144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10145 $as_echo "$BISON" >&6; }
10146 else
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10148 $as_echo "no" >&6; }
10149 fi
10150
10151
10152   test -n "$BISON" && break
10153 done
10154 test -n "$BISON" || BISON="$MISSING bison"
10155
10156 case " $build_configdirs " in
10157   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10158 esac
10159
10160 for ac_prog in gm4 gnum4 m4
10161 do
10162   # Extract the first word of "$ac_prog", so it can be a program name with args.
10163 set dummy $ac_prog; ac_word=$2
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165 $as_echo_n "checking for $ac_word... " >&6; }
10166 if ${ac_cv_prog_M4+:} false; then :
10167   $as_echo_n "(cached) " >&6
10168 else
10169   if test -n "$M4"; then
10170   ac_cv_prog_M4="$M4" # Let the user override the test.
10171 else
10172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10173 for as_dir in $PATH
10174 do
10175   IFS=$as_save_IFS
10176   test -z "$as_dir" && as_dir=.
10177     for ac_exec_ext in '' $ac_executable_extensions; do
10178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10179     ac_cv_prog_M4="$ac_prog"
10180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10181     break 2
10182   fi
10183 done
10184   done
10185 IFS=$as_save_IFS
10186
10187 fi
10188 fi
10189 M4=$ac_cv_prog_M4
10190 if test -n "$M4"; then
10191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10192 $as_echo "$M4" >&6; }
10193 else
10194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10195 $as_echo "no" >&6; }
10196 fi
10197
10198
10199   test -n "$M4" && break
10200 done
10201 test -n "$M4" || M4="$MISSING m4"
10202
10203 case " $build_configdirs " in
10204   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10205 esac
10206
10207 for ac_prog in flex lex
10208 do
10209   # Extract the first word of "$ac_prog", so it can be a program name with args.
10210 set dummy $ac_prog; ac_word=$2
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212 $as_echo_n "checking for $ac_word... " >&6; }
10213 if ${ac_cv_prog_LEX+:} false; then :
10214   $as_echo_n "(cached) " >&6
10215 else
10216   if test -n "$LEX"; then
10217   ac_cv_prog_LEX="$LEX" # Let the user override the test.
10218 else
10219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220 for as_dir in $PATH
10221 do
10222   IFS=$as_save_IFS
10223   test -z "$as_dir" && as_dir=.
10224     for ac_exec_ext in '' $ac_executable_extensions; do
10225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10226     ac_cv_prog_LEX="$ac_prog"
10227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10228     break 2
10229   fi
10230 done
10231   done
10232 IFS=$as_save_IFS
10233
10234 fi
10235 fi
10236 LEX=$ac_cv_prog_LEX
10237 if test -n "$LEX"; then
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10239 $as_echo "$LEX" >&6; }
10240 else
10241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242 $as_echo "no" >&6; }
10243 fi
10244
10245
10246   test -n "$LEX" && break
10247 done
10248 test -n "$LEX" || LEX="$MISSING flex"
10249
10250 case " $build_configdirs " in
10251   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10252   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10253 esac
10254
10255 for ac_prog in flex
10256 do
10257   # Extract the first word of "$ac_prog", so it can be a program name with args.
10258 set dummy $ac_prog; ac_word=$2
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260 $as_echo_n "checking for $ac_word... " >&6; }
10261 if ${ac_cv_prog_FLEX+:} false; then :
10262   $as_echo_n "(cached) " >&6
10263 else
10264   if test -n "$FLEX"; then
10265   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10266 else
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10269 do
10270   IFS=$as_save_IFS
10271   test -z "$as_dir" && as_dir=.
10272     for ac_exec_ext in '' $ac_executable_extensions; do
10273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10274     ac_cv_prog_FLEX="$ac_prog"
10275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276     break 2
10277   fi
10278 done
10279   done
10280 IFS=$as_save_IFS
10281
10282 fi
10283 fi
10284 FLEX=$ac_cv_prog_FLEX
10285 if test -n "$FLEX"; then
10286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10287 $as_echo "$FLEX" >&6; }
10288 else
10289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10291 fi
10292
10293
10294   test -n "$FLEX" && break
10295 done
10296 test -n "$FLEX" || FLEX="$MISSING flex"
10297
10298 case " $build_configdirs " in
10299   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10300 esac
10301
10302 for ac_prog in makeinfo
10303 do
10304   # Extract the first word of "$ac_prog", so it can be a program name with args.
10305 set dummy $ac_prog; ac_word=$2
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10307 $as_echo_n "checking for $ac_word... " >&6; }
10308 if ${ac_cv_prog_MAKEINFO+:} false; then :
10309   $as_echo_n "(cached) " >&6
10310 else
10311   if test -n "$MAKEINFO"; then
10312   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10313 else
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10316 do
10317   IFS=$as_save_IFS
10318   test -z "$as_dir" && as_dir=.
10319     for ac_exec_ext in '' $ac_executable_extensions; do
10320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10321     ac_cv_prog_MAKEINFO="$ac_prog"
10322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323     break 2
10324   fi
10325 done
10326   done
10327 IFS=$as_save_IFS
10328
10329 fi
10330 fi
10331 MAKEINFO=$ac_cv_prog_MAKEINFO
10332 if test -n "$MAKEINFO"; then
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10334 $as_echo "$MAKEINFO" >&6; }
10335 else
10336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 $as_echo "no" >&6; }
10338 fi
10339
10340
10341   test -n "$MAKEINFO" && break
10342 done
10343 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10344
10345 case " $build_configdirs " in
10346   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10347   *)
10348
10349     # For an installed makeinfo, we require it to be from texinfo 4.7 or
10350     # higher, else we use the "missing" dummy.
10351     if ${MAKEINFO} --version \
10352        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10353       :
10354     else
10355       MAKEINFO="$MISSING makeinfo"
10356     fi
10357     ;;
10358
10359 esac
10360
10361 # FIXME: expect and dejagnu may become build tools?
10362
10363 for ac_prog in expect
10364 do
10365   # Extract the first word of "$ac_prog", so it can be a program name with args.
10366 set dummy $ac_prog; ac_word=$2
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10368 $as_echo_n "checking for $ac_word... " >&6; }
10369 if ${ac_cv_prog_EXPECT+:} false; then :
10370   $as_echo_n "(cached) " >&6
10371 else
10372   if test -n "$EXPECT"; then
10373   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10374 else
10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376 for as_dir in $PATH
10377 do
10378   IFS=$as_save_IFS
10379   test -z "$as_dir" && as_dir=.
10380     for ac_exec_ext in '' $ac_executable_extensions; do
10381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10382     ac_cv_prog_EXPECT="$ac_prog"
10383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10384     break 2
10385   fi
10386 done
10387   done
10388 IFS=$as_save_IFS
10389
10390 fi
10391 fi
10392 EXPECT=$ac_cv_prog_EXPECT
10393 if test -n "$EXPECT"; then
10394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10395 $as_echo "$EXPECT" >&6; }
10396 else
10397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398 $as_echo "no" >&6; }
10399 fi
10400
10401
10402   test -n "$EXPECT" && break
10403 done
10404 test -n "$EXPECT" || EXPECT="expect"
10405
10406 case " $configdirs " in
10407   *" expect "*)
10408     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10409     ;;
10410 esac
10411
10412 for ac_prog in runtest
10413 do
10414   # Extract the first word of "$ac_prog", so it can be a program name with args.
10415 set dummy $ac_prog; ac_word=$2
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417 $as_echo_n "checking for $ac_word... " >&6; }
10418 if ${ac_cv_prog_RUNTEST+:} false; then :
10419   $as_echo_n "(cached) " >&6
10420 else
10421   if test -n "$RUNTEST"; then
10422   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10423 else
10424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425 for as_dir in $PATH
10426 do
10427   IFS=$as_save_IFS
10428   test -z "$as_dir" && as_dir=.
10429     for ac_exec_ext in '' $ac_executable_extensions; do
10430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10431     ac_cv_prog_RUNTEST="$ac_prog"
10432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10433     break 2
10434   fi
10435 done
10436   done
10437 IFS=$as_save_IFS
10438
10439 fi
10440 fi
10441 RUNTEST=$ac_cv_prog_RUNTEST
10442 if test -n "$RUNTEST"; then
10443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10444 $as_echo "$RUNTEST" >&6; }
10445 else
10446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10448 fi
10449
10450
10451   test -n "$RUNTEST" && break
10452 done
10453 test -n "$RUNTEST" || RUNTEST="runtest"
10454
10455 case " $configdirs " in
10456   *" dejagnu "*)
10457     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10458     ;;
10459 esac
10460
10461
10462 # Host tools.
10463 ncn_tool_prefix=
10464 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10465 ncn_target_tool_prefix=
10466 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10467
10468
10469
10470 if test -n "$AR"; then
10471   ac_cv_prog_AR=$AR
10472 elif test -n "$ac_cv_prog_AR"; then
10473   AR=$ac_cv_prog_AR
10474 fi
10475
10476 if test -n "$ac_cv_prog_AR"; then
10477   for ncn_progname in ar; do
10478     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10479 set dummy ${ncn_progname}; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if ${ac_cv_prog_AR+:} false; then :
10483   $as_echo_n "(cached) " >&6
10484 else
10485   if test -n "$AR"; then
10486   ac_cv_prog_AR="$AR" # Let the user override the test.
10487 else
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10490 do
10491   IFS=$as_save_IFS
10492   test -z "$as_dir" && as_dir=.
10493     for ac_exec_ext in '' $ac_executable_extensions; do
10494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10495     ac_cv_prog_AR="${ncn_progname}"
10496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497     break 2
10498   fi
10499 done
10500   done
10501 IFS=$as_save_IFS
10502
10503 fi
10504 fi
10505 AR=$ac_cv_prog_AR
10506 if test -n "$AR"; then
10507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10508 $as_echo "$AR" >&6; }
10509 else
10510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 $as_echo "no" >&6; }
10512 fi
10513
10514
10515   done
10516 fi
10517
10518 for ncn_progname in ar; do
10519   if test -n "$ncn_tool_prefix"; then
10520     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10521 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523 $as_echo_n "checking for $ac_word... " >&6; }
10524 if ${ac_cv_prog_AR+:} false; then :
10525   $as_echo_n "(cached) " >&6
10526 else
10527   if test -n "$AR"; then
10528   ac_cv_prog_AR="$AR" # Let the user override the test.
10529 else
10530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531 for as_dir in $PATH
10532 do
10533   IFS=$as_save_IFS
10534   test -z "$as_dir" && as_dir=.
10535     for ac_exec_ext in '' $ac_executable_extensions; do
10536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10537     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10539     break 2
10540   fi
10541 done
10542   done
10543 IFS=$as_save_IFS
10544
10545 fi
10546 fi
10547 AR=$ac_cv_prog_AR
10548 if test -n "$AR"; then
10549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10550 $as_echo "$AR" >&6; }
10551 else
10552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10554 fi
10555
10556
10557   fi
10558   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10559     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10560 set dummy ${ncn_progname}; ac_word=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if ${ac_cv_prog_AR+:} false; then :
10564   $as_echo_n "(cached) " >&6
10565 else
10566   if test -n "$AR"; then
10567   ac_cv_prog_AR="$AR" # Let the user override the test.
10568 else
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10571 do
10572   IFS=$as_save_IFS
10573   test -z "$as_dir" && as_dir=.
10574     for ac_exec_ext in '' $ac_executable_extensions; do
10575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576     ac_cv_prog_AR="${ncn_progname}"
10577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578     break 2
10579   fi
10580 done
10581   done
10582 IFS=$as_save_IFS
10583
10584 fi
10585 fi
10586 AR=$ac_cv_prog_AR
10587 if test -n "$AR"; then
10588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10589 $as_echo "$AR" >&6; }
10590 else
10591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10593 fi
10594
10595
10596   fi
10597   test -n "$ac_cv_prog_AR" && break
10598 done
10599
10600 if test -z "$ac_cv_prog_AR" ; then
10601   set dummy ar
10602   if test $build = $host ; then
10603     AR="$2"
10604   else
10605     AR="${ncn_tool_prefix}$2"
10606   fi
10607 fi
10608
10609
10610
10611 if test -n "$AS"; then
10612   ac_cv_prog_AS=$AS
10613 elif test -n "$ac_cv_prog_AS"; then
10614   AS=$ac_cv_prog_AS
10615 fi
10616
10617 if test -n "$ac_cv_prog_AS"; then
10618   for ncn_progname in as; do
10619     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10620 set dummy ${ncn_progname}; ac_word=$2
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622 $as_echo_n "checking for $ac_word... " >&6; }
10623 if ${ac_cv_prog_AS+:} false; then :
10624   $as_echo_n "(cached) " >&6
10625 else
10626   if test -n "$AS"; then
10627   ac_cv_prog_AS="$AS" # Let the user override the test.
10628 else
10629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630 for as_dir in $PATH
10631 do
10632   IFS=$as_save_IFS
10633   test -z "$as_dir" && as_dir=.
10634     for ac_exec_ext in '' $ac_executable_extensions; do
10635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10636     ac_cv_prog_AS="${ncn_progname}"
10637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10638     break 2
10639   fi
10640 done
10641   done
10642 IFS=$as_save_IFS
10643
10644 fi
10645 fi
10646 AS=$ac_cv_prog_AS
10647 if test -n "$AS"; then
10648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10649 $as_echo "$AS" >&6; }
10650 else
10651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 $as_echo "no" >&6; }
10653 fi
10654
10655
10656   done
10657 fi
10658
10659 for ncn_progname in as; do
10660   if test -n "$ncn_tool_prefix"; then
10661     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10662 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664 $as_echo_n "checking for $ac_word... " >&6; }
10665 if ${ac_cv_prog_AS+:} false; then :
10666   $as_echo_n "(cached) " >&6
10667 else
10668   if test -n "$AS"; then
10669   ac_cv_prog_AS="$AS" # Let the user override the test.
10670 else
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672 for as_dir in $PATH
10673 do
10674   IFS=$as_save_IFS
10675   test -z "$as_dir" && as_dir=.
10676     for ac_exec_ext in '' $ac_executable_extensions; do
10677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10678     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680     break 2
10681   fi
10682 done
10683   done
10684 IFS=$as_save_IFS
10685
10686 fi
10687 fi
10688 AS=$ac_cv_prog_AS
10689 if test -n "$AS"; then
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10691 $as_echo "$AS" >&6; }
10692 else
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10695 fi
10696
10697
10698   fi
10699   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10700     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10701 set dummy ${ncn_progname}; ac_word=$2
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10703 $as_echo_n "checking for $ac_word... " >&6; }
10704 if ${ac_cv_prog_AS+:} false; then :
10705   $as_echo_n "(cached) " >&6
10706 else
10707   if test -n "$AS"; then
10708   ac_cv_prog_AS="$AS" # Let the user override the test.
10709 else
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH
10712 do
10713   IFS=$as_save_IFS
10714   test -z "$as_dir" && as_dir=.
10715     for ac_exec_ext in '' $ac_executable_extensions; do
10716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10717     ac_cv_prog_AS="${ncn_progname}"
10718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719     break 2
10720   fi
10721 done
10722   done
10723 IFS=$as_save_IFS
10724
10725 fi
10726 fi
10727 AS=$ac_cv_prog_AS
10728 if test -n "$AS"; then
10729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10730 $as_echo "$AS" >&6; }
10731 else
10732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10734 fi
10735
10736
10737   fi
10738   test -n "$ac_cv_prog_AS" && break
10739 done
10740
10741 if test -z "$ac_cv_prog_AS" ; then
10742   set dummy as
10743   if test $build = $host ; then
10744     AS="$2"
10745   else
10746     AS="${ncn_tool_prefix}$2"
10747   fi
10748 fi
10749
10750
10751
10752 if test -n "$DLLTOOL"; then
10753   ac_cv_prog_DLLTOOL=$DLLTOOL
10754 elif test -n "$ac_cv_prog_DLLTOOL"; then
10755   DLLTOOL=$ac_cv_prog_DLLTOOL
10756 fi
10757
10758 if test -n "$ac_cv_prog_DLLTOOL"; then
10759   for ncn_progname in dlltool; do
10760     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10761 set dummy ${ncn_progname}; ac_word=$2
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763 $as_echo_n "checking for $ac_word... " >&6; }
10764 if ${ac_cv_prog_DLLTOOL+:} false; then :
10765   $as_echo_n "(cached) " >&6
10766 else
10767   if test -n "$DLLTOOL"; then
10768   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10769 else
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771 for as_dir in $PATH
10772 do
10773   IFS=$as_save_IFS
10774   test -z "$as_dir" && as_dir=.
10775     for ac_exec_ext in '' $ac_executable_extensions; do
10776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10777     ac_cv_prog_DLLTOOL="${ncn_progname}"
10778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10779     break 2
10780   fi
10781 done
10782   done
10783 IFS=$as_save_IFS
10784
10785 fi
10786 fi
10787 DLLTOOL=$ac_cv_prog_DLLTOOL
10788 if test -n "$DLLTOOL"; then
10789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10790 $as_echo "$DLLTOOL" >&6; }
10791 else
10792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793 $as_echo "no" >&6; }
10794 fi
10795
10796
10797   done
10798 fi
10799
10800 for ncn_progname in dlltool; do
10801   if test -n "$ncn_tool_prefix"; then
10802     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10803 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10805 $as_echo_n "checking for $ac_word... " >&6; }
10806 if ${ac_cv_prog_DLLTOOL+:} false; then :
10807   $as_echo_n "(cached) " >&6
10808 else
10809   if test -n "$DLLTOOL"; then
10810   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10811 else
10812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813 for as_dir in $PATH
10814 do
10815   IFS=$as_save_IFS
10816   test -z "$as_dir" && as_dir=.
10817     for ac_exec_ext in '' $ac_executable_extensions; do
10818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10819     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10821     break 2
10822   fi
10823 done
10824   done
10825 IFS=$as_save_IFS
10826
10827 fi
10828 fi
10829 DLLTOOL=$ac_cv_prog_DLLTOOL
10830 if test -n "$DLLTOOL"; then
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10832 $as_echo "$DLLTOOL" >&6; }
10833 else
10834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10836 fi
10837
10838
10839   fi
10840   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10841     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10842 set dummy ${ncn_progname}; ac_word=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 $as_echo_n "checking for $ac_word... " >&6; }
10845 if ${ac_cv_prog_DLLTOOL+:} false; then :
10846   $as_echo_n "(cached) " >&6
10847 else
10848   if test -n "$DLLTOOL"; then
10849   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10850 else
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10853 do
10854   IFS=$as_save_IFS
10855   test -z "$as_dir" && as_dir=.
10856     for ac_exec_ext in '' $ac_executable_extensions; do
10857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10858     ac_cv_prog_DLLTOOL="${ncn_progname}"
10859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860     break 2
10861   fi
10862 done
10863   done
10864 IFS=$as_save_IFS
10865
10866 fi
10867 fi
10868 DLLTOOL=$ac_cv_prog_DLLTOOL
10869 if test -n "$DLLTOOL"; then
10870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10871 $as_echo "$DLLTOOL" >&6; }
10872 else
10873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; }
10875 fi
10876
10877
10878   fi
10879   test -n "$ac_cv_prog_DLLTOOL" && break
10880 done
10881
10882 if test -z "$ac_cv_prog_DLLTOOL" ; then
10883   set dummy dlltool
10884   if test $build = $host ; then
10885     DLLTOOL="$2"
10886   else
10887     DLLTOOL="${ncn_tool_prefix}$2"
10888   fi
10889 fi
10890
10891
10892
10893 if test -n "$LD"; then
10894   ac_cv_prog_LD=$LD
10895 elif test -n "$ac_cv_prog_LD"; then
10896   LD=$ac_cv_prog_LD
10897 fi
10898
10899 if test -n "$ac_cv_prog_LD"; then
10900   for ncn_progname in ld; do
10901     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10902 set dummy ${ncn_progname}; ac_word=$2
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10904 $as_echo_n "checking for $ac_word... " >&6; }
10905 if ${ac_cv_prog_LD+:} false; then :
10906   $as_echo_n "(cached) " >&6
10907 else
10908   if test -n "$LD"; then
10909   ac_cv_prog_LD="$LD" # Let the user override the test.
10910 else
10911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912 for as_dir in $PATH
10913 do
10914   IFS=$as_save_IFS
10915   test -z "$as_dir" && as_dir=.
10916     for ac_exec_ext in '' $ac_executable_extensions; do
10917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10918     ac_cv_prog_LD="${ncn_progname}"
10919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10920     break 2
10921   fi
10922 done
10923   done
10924 IFS=$as_save_IFS
10925
10926 fi
10927 fi
10928 LD=$ac_cv_prog_LD
10929 if test -n "$LD"; then
10930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10931 $as_echo "$LD" >&6; }
10932 else
10933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934 $as_echo "no" >&6; }
10935 fi
10936
10937
10938   done
10939 fi
10940
10941 for ncn_progname in ld; do
10942   if test -n "$ncn_tool_prefix"; then
10943     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10944 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10946 $as_echo_n "checking for $ac_word... " >&6; }
10947 if ${ac_cv_prog_LD+:} false; then :
10948   $as_echo_n "(cached) " >&6
10949 else
10950   if test -n "$LD"; then
10951   ac_cv_prog_LD="$LD" # Let the user override the test.
10952 else
10953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954 for as_dir in $PATH
10955 do
10956   IFS=$as_save_IFS
10957   test -z "$as_dir" && as_dir=.
10958     for ac_exec_ext in '' $ac_executable_extensions; do
10959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10960     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
10961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10962     break 2
10963   fi
10964 done
10965   done
10966 IFS=$as_save_IFS
10967
10968 fi
10969 fi
10970 LD=$ac_cv_prog_LD
10971 if test -n "$LD"; then
10972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10973 $as_echo "$LD" >&6; }
10974 else
10975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10977 fi
10978
10979
10980   fi
10981   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
10982     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10983 set dummy ${ncn_progname}; ac_word=$2
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985 $as_echo_n "checking for $ac_word... " >&6; }
10986 if ${ac_cv_prog_LD+:} false; then :
10987   $as_echo_n "(cached) " >&6
10988 else
10989   if test -n "$LD"; then
10990   ac_cv_prog_LD="$LD" # Let the user override the test.
10991 else
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH
10994 do
10995   IFS=$as_save_IFS
10996   test -z "$as_dir" && as_dir=.
10997     for ac_exec_ext in '' $ac_executable_extensions; do
10998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10999     ac_cv_prog_LD="${ncn_progname}"
11000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001     break 2
11002   fi
11003 done
11004   done
11005 IFS=$as_save_IFS
11006
11007 fi
11008 fi
11009 LD=$ac_cv_prog_LD
11010 if test -n "$LD"; then
11011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11012 $as_echo "$LD" >&6; }
11013 else
11014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11016 fi
11017
11018
11019   fi
11020   test -n "$ac_cv_prog_LD" && break
11021 done
11022
11023 if test -z "$ac_cv_prog_LD" ; then
11024   set dummy ld
11025   if test $build = $host ; then
11026     LD="$2"
11027   else
11028     LD="${ncn_tool_prefix}$2"
11029   fi
11030 fi
11031
11032
11033
11034 if test -n "$LIPO"; then
11035   ac_cv_prog_LIPO=$LIPO
11036 elif test -n "$ac_cv_prog_LIPO"; then
11037   LIPO=$ac_cv_prog_LIPO
11038 fi
11039
11040 if test -n "$ac_cv_prog_LIPO"; then
11041   for ncn_progname in lipo; do
11042     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11043 set dummy ${ncn_progname}; ac_word=$2
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045 $as_echo_n "checking for $ac_word... " >&6; }
11046 if ${ac_cv_prog_LIPO+:} false; then :
11047   $as_echo_n "(cached) " >&6
11048 else
11049   if test -n "$LIPO"; then
11050   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11051 else
11052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053 for as_dir in $PATH
11054 do
11055   IFS=$as_save_IFS
11056   test -z "$as_dir" && as_dir=.
11057     for ac_exec_ext in '' $ac_executable_extensions; do
11058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11059     ac_cv_prog_LIPO="${ncn_progname}"
11060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061     break 2
11062   fi
11063 done
11064   done
11065 IFS=$as_save_IFS
11066
11067 fi
11068 fi
11069 LIPO=$ac_cv_prog_LIPO
11070 if test -n "$LIPO"; then
11071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11072 $as_echo "$LIPO" >&6; }
11073 else
11074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075 $as_echo "no" >&6; }
11076 fi
11077
11078
11079   done
11080 fi
11081
11082 for ncn_progname in lipo; do
11083   if test -n "$ncn_tool_prefix"; then
11084     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11085 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11087 $as_echo_n "checking for $ac_word... " >&6; }
11088 if ${ac_cv_prog_LIPO+:} false; then :
11089   $as_echo_n "(cached) " >&6
11090 else
11091   if test -n "$LIPO"; then
11092   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11093 else
11094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 for as_dir in $PATH
11096 do
11097   IFS=$as_save_IFS
11098   test -z "$as_dir" && as_dir=.
11099     for ac_exec_ext in '' $ac_executable_extensions; do
11100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11101     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11103     break 2
11104   fi
11105 done
11106   done
11107 IFS=$as_save_IFS
11108
11109 fi
11110 fi
11111 LIPO=$ac_cv_prog_LIPO
11112 if test -n "$LIPO"; then
11113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11114 $as_echo "$LIPO" >&6; }
11115 else
11116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 $as_echo "no" >&6; }
11118 fi
11119
11120
11121   fi
11122   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11123     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11124 set dummy ${ncn_progname}; ac_word=$2
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126 $as_echo_n "checking for $ac_word... " >&6; }
11127 if ${ac_cv_prog_LIPO+:} false; then :
11128   $as_echo_n "(cached) " >&6
11129 else
11130   if test -n "$LIPO"; then
11131   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11132 else
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11135 do
11136   IFS=$as_save_IFS
11137   test -z "$as_dir" && as_dir=.
11138     for ac_exec_ext in '' $ac_executable_extensions; do
11139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140     ac_cv_prog_LIPO="${ncn_progname}"
11141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11142     break 2
11143   fi
11144 done
11145   done
11146 IFS=$as_save_IFS
11147
11148 fi
11149 fi
11150 LIPO=$ac_cv_prog_LIPO
11151 if test -n "$LIPO"; then
11152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11153 $as_echo "$LIPO" >&6; }
11154 else
11155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11157 fi
11158
11159
11160   fi
11161   test -n "$ac_cv_prog_LIPO" && break
11162 done
11163
11164 if test -z "$ac_cv_prog_LIPO" ; then
11165   set dummy lipo
11166   if test $build = $host ; then
11167     LIPO="$2"
11168   else
11169     LIPO="${ncn_tool_prefix}$2"
11170   fi
11171 fi
11172
11173
11174
11175 if test -n "$NM"; then
11176   ac_cv_prog_NM=$NM
11177 elif test -n "$ac_cv_prog_NM"; then
11178   NM=$ac_cv_prog_NM
11179 fi
11180
11181 if test -n "$ac_cv_prog_NM"; then
11182   for ncn_progname in nm; do
11183     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11184 set dummy ${ncn_progname}; ac_word=$2
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11186 $as_echo_n "checking for $ac_word... " >&6; }
11187 if ${ac_cv_prog_NM+:} false; then :
11188   $as_echo_n "(cached) " >&6
11189 else
11190   if test -n "$NM"; then
11191   ac_cv_prog_NM="$NM" # Let the user override the test.
11192 else
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11195 do
11196   IFS=$as_save_IFS
11197   test -z "$as_dir" && as_dir=.
11198     for ac_exec_ext in '' $ac_executable_extensions; do
11199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200     ac_cv_prog_NM="${ncn_progname}"
11201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202     break 2
11203   fi
11204 done
11205   done
11206 IFS=$as_save_IFS
11207
11208 fi
11209 fi
11210 NM=$ac_cv_prog_NM
11211 if test -n "$NM"; then
11212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11213 $as_echo "$NM" >&6; }
11214 else
11215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11216 $as_echo "no" >&6; }
11217 fi
11218
11219
11220   done
11221 fi
11222
11223 for ncn_progname in nm; do
11224   if test -n "$ncn_tool_prefix"; then
11225     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11226 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11228 $as_echo_n "checking for $ac_word... " >&6; }
11229 if ${ac_cv_prog_NM+:} false; then :
11230   $as_echo_n "(cached) " >&6
11231 else
11232   if test -n "$NM"; then
11233   ac_cv_prog_NM="$NM" # Let the user override the test.
11234 else
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11237 do
11238   IFS=$as_save_IFS
11239   test -z "$as_dir" && as_dir=.
11240     for ac_exec_ext in '' $ac_executable_extensions; do
11241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11242     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11244     break 2
11245   fi
11246 done
11247   done
11248 IFS=$as_save_IFS
11249
11250 fi
11251 fi
11252 NM=$ac_cv_prog_NM
11253 if test -n "$NM"; then
11254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11255 $as_echo "$NM" >&6; }
11256 else
11257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 $as_echo "no" >&6; }
11259 fi
11260
11261
11262   fi
11263   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11264     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11265 set dummy ${ncn_progname}; ac_word=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if ${ac_cv_prog_NM+:} false; then :
11269   $as_echo_n "(cached) " >&6
11270 else
11271   if test -n "$NM"; then
11272   ac_cv_prog_NM="$NM" # Let the user override the test.
11273 else
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11276 do
11277   IFS=$as_save_IFS
11278   test -z "$as_dir" && as_dir=.
11279     for ac_exec_ext in '' $ac_executable_extensions; do
11280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281     ac_cv_prog_NM="${ncn_progname}"
11282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283     break 2
11284   fi
11285 done
11286   done
11287 IFS=$as_save_IFS
11288
11289 fi
11290 fi
11291 NM=$ac_cv_prog_NM
11292 if test -n "$NM"; then
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11294 $as_echo "$NM" >&6; }
11295 else
11296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 $as_echo "no" >&6; }
11298 fi
11299
11300
11301   fi
11302   test -n "$ac_cv_prog_NM" && break
11303 done
11304
11305 if test -z "$ac_cv_prog_NM" ; then
11306   set dummy nm
11307   if test $build = $host ; then
11308     NM="$2"
11309   else
11310     NM="${ncn_tool_prefix}$2"
11311   fi
11312 fi
11313
11314
11315
11316 if test -n "$RANLIB"; then
11317   ac_cv_prog_RANLIB=$RANLIB
11318 elif test -n "$ac_cv_prog_RANLIB"; then
11319   RANLIB=$ac_cv_prog_RANLIB
11320 fi
11321
11322 if test -n "$ac_cv_prog_RANLIB"; then
11323   for ncn_progname in ranlib; do
11324     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11325 set dummy ${ncn_progname}; ac_word=$2
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11327 $as_echo_n "checking for $ac_word... " >&6; }
11328 if ${ac_cv_prog_RANLIB+:} false; then :
11329   $as_echo_n "(cached) " >&6
11330 else
11331   if test -n "$RANLIB"; then
11332   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11333 else
11334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335 for as_dir in $PATH
11336 do
11337   IFS=$as_save_IFS
11338   test -z "$as_dir" && as_dir=.
11339     for ac_exec_ext in '' $ac_executable_extensions; do
11340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11341     ac_cv_prog_RANLIB="${ncn_progname}"
11342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11343     break 2
11344   fi
11345 done
11346   done
11347 IFS=$as_save_IFS
11348
11349 fi
11350 fi
11351 RANLIB=$ac_cv_prog_RANLIB
11352 if test -n "$RANLIB"; then
11353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11354 $as_echo "$RANLIB" >&6; }
11355 else
11356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11358 fi
11359
11360
11361   done
11362 fi
11363
11364 for ncn_progname in ranlib; do
11365   if test -n "$ncn_tool_prefix"; then
11366     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11367 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369 $as_echo_n "checking for $ac_word... " >&6; }
11370 if ${ac_cv_prog_RANLIB+:} false; then :
11371   $as_echo_n "(cached) " >&6
11372 else
11373   if test -n "$RANLIB"; then
11374   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11375 else
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11378 do
11379   IFS=$as_save_IFS
11380   test -z "$as_dir" && as_dir=.
11381     for ac_exec_ext in '' $ac_executable_extensions; do
11382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385     break 2
11386   fi
11387 done
11388   done
11389 IFS=$as_save_IFS
11390
11391 fi
11392 fi
11393 RANLIB=$ac_cv_prog_RANLIB
11394 if test -n "$RANLIB"; then
11395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11396 $as_echo "$RANLIB" >&6; }
11397 else
11398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399 $as_echo "no" >&6; }
11400 fi
11401
11402
11403   fi
11404   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11405     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11406 set dummy ${ncn_progname}; ac_word=$2
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11408 $as_echo_n "checking for $ac_word... " >&6; }
11409 if ${ac_cv_prog_RANLIB+:} false; then :
11410   $as_echo_n "(cached) " >&6
11411 else
11412   if test -n "$RANLIB"; then
11413   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11414 else
11415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416 for as_dir in $PATH
11417 do
11418   IFS=$as_save_IFS
11419   test -z "$as_dir" && as_dir=.
11420     for ac_exec_ext in '' $ac_executable_extensions; do
11421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11422     ac_cv_prog_RANLIB="${ncn_progname}"
11423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11424     break 2
11425   fi
11426 done
11427   done
11428 IFS=$as_save_IFS
11429
11430 fi
11431 fi
11432 RANLIB=$ac_cv_prog_RANLIB
11433 if test -n "$RANLIB"; then
11434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11435 $as_echo "$RANLIB" >&6; }
11436 else
11437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438 $as_echo "no" >&6; }
11439 fi
11440
11441
11442   fi
11443   test -n "$ac_cv_prog_RANLIB" && break
11444 done
11445
11446 if test -z "$ac_cv_prog_RANLIB" ; then
11447   RANLIB="true"
11448 fi
11449
11450
11451
11452 if test -n "$STRIP"; then
11453   ac_cv_prog_STRIP=$STRIP
11454 elif test -n "$ac_cv_prog_STRIP"; then
11455   STRIP=$ac_cv_prog_STRIP
11456 fi
11457
11458 if test -n "$ac_cv_prog_STRIP"; then
11459   for ncn_progname in strip; do
11460     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11461 set dummy ${ncn_progname}; ac_word=$2
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463 $as_echo_n "checking for $ac_word... " >&6; }
11464 if ${ac_cv_prog_STRIP+:} false; then :
11465   $as_echo_n "(cached) " >&6
11466 else
11467   if test -n "$STRIP"; then
11468   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11469 else
11470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471 for as_dir in $PATH
11472 do
11473   IFS=$as_save_IFS
11474   test -z "$as_dir" && as_dir=.
11475     for ac_exec_ext in '' $ac_executable_extensions; do
11476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11477     ac_cv_prog_STRIP="${ncn_progname}"
11478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11479     break 2
11480   fi
11481 done
11482   done
11483 IFS=$as_save_IFS
11484
11485 fi
11486 fi
11487 STRIP=$ac_cv_prog_STRIP
11488 if test -n "$STRIP"; then
11489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11490 $as_echo "$STRIP" >&6; }
11491 else
11492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; }
11494 fi
11495
11496
11497   done
11498 fi
11499
11500 for ncn_progname in strip; do
11501   if test -n "$ncn_tool_prefix"; then
11502     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11503 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if ${ac_cv_prog_STRIP+:} false; then :
11507   $as_echo_n "(cached) " >&6
11508 else
11509   if test -n "$STRIP"; then
11510   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11511 else
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11514 do
11515   IFS=$as_save_IFS
11516   test -z "$as_dir" && as_dir=.
11517     for ac_exec_ext in '' $ac_executable_extensions; do
11518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11519     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521     break 2
11522   fi
11523 done
11524   done
11525 IFS=$as_save_IFS
11526
11527 fi
11528 fi
11529 STRIP=$ac_cv_prog_STRIP
11530 if test -n "$STRIP"; then
11531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11532 $as_echo "$STRIP" >&6; }
11533 else
11534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11536 fi
11537
11538
11539   fi
11540   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11541     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11542 set dummy ${ncn_progname}; ac_word=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if ${ac_cv_prog_STRIP+:} false; then :
11546   $as_echo_n "(cached) " >&6
11547 else
11548   if test -n "$STRIP"; then
11549   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11550 else
11551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in $PATH
11553 do
11554   IFS=$as_save_IFS
11555   test -z "$as_dir" && as_dir=.
11556     for ac_exec_ext in '' $ac_executable_extensions; do
11557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558     ac_cv_prog_STRIP="${ncn_progname}"
11559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560     break 2
11561   fi
11562 done
11563   done
11564 IFS=$as_save_IFS
11565
11566 fi
11567 fi
11568 STRIP=$ac_cv_prog_STRIP
11569 if test -n "$STRIP"; then
11570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11571 $as_echo "$STRIP" >&6; }
11572 else
11573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574 $as_echo "no" >&6; }
11575 fi
11576
11577
11578   fi
11579   test -n "$ac_cv_prog_STRIP" && break
11580 done
11581
11582 if test -z "$ac_cv_prog_STRIP" ; then
11583   STRIP="true"
11584 fi
11585
11586
11587
11588 if test -n "$WINDRES"; then
11589   ac_cv_prog_WINDRES=$WINDRES
11590 elif test -n "$ac_cv_prog_WINDRES"; then
11591   WINDRES=$ac_cv_prog_WINDRES
11592 fi
11593
11594 if test -n "$ac_cv_prog_WINDRES"; then
11595   for ncn_progname in windres; do
11596     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11597 set dummy ${ncn_progname}; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if ${ac_cv_prog_WINDRES+:} false; then :
11601   $as_echo_n "(cached) " >&6
11602 else
11603   if test -n "$WINDRES"; then
11604   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11605 else
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11608 do
11609   IFS=$as_save_IFS
11610   test -z "$as_dir" && as_dir=.
11611     for ac_exec_ext in '' $ac_executable_extensions; do
11612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613     ac_cv_prog_WINDRES="${ncn_progname}"
11614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615     break 2
11616   fi
11617 done
11618   done
11619 IFS=$as_save_IFS
11620
11621 fi
11622 fi
11623 WINDRES=$ac_cv_prog_WINDRES
11624 if test -n "$WINDRES"; then
11625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11626 $as_echo "$WINDRES" >&6; }
11627 else
11628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11630 fi
11631
11632
11633   done
11634 fi
11635
11636 for ncn_progname in windres; do
11637   if test -n "$ncn_tool_prefix"; then
11638     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11639 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641 $as_echo_n "checking for $ac_word... " >&6; }
11642 if ${ac_cv_prog_WINDRES+:} false; then :
11643   $as_echo_n "(cached) " >&6
11644 else
11645   if test -n "$WINDRES"; then
11646   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11647 else
11648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $PATH
11650 do
11651   IFS=$as_save_IFS
11652   test -z "$as_dir" && as_dir=.
11653     for ac_exec_ext in '' $ac_executable_extensions; do
11654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11655     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11657     break 2
11658   fi
11659 done
11660   done
11661 IFS=$as_save_IFS
11662
11663 fi
11664 fi
11665 WINDRES=$ac_cv_prog_WINDRES
11666 if test -n "$WINDRES"; then
11667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11668 $as_echo "$WINDRES" >&6; }
11669 else
11670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671 $as_echo "no" >&6; }
11672 fi
11673
11674
11675   fi
11676   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11677     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11678 set dummy ${ncn_progname}; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if ${ac_cv_prog_WINDRES+:} false; then :
11682   $as_echo_n "(cached) " >&6
11683 else
11684   if test -n "$WINDRES"; then
11685   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11686 else
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11689 do
11690   IFS=$as_save_IFS
11691   test -z "$as_dir" && as_dir=.
11692     for ac_exec_ext in '' $ac_executable_extensions; do
11693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11694     ac_cv_prog_WINDRES="${ncn_progname}"
11695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11696     break 2
11697   fi
11698 done
11699   done
11700 IFS=$as_save_IFS
11701
11702 fi
11703 fi
11704 WINDRES=$ac_cv_prog_WINDRES
11705 if test -n "$WINDRES"; then
11706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11707 $as_echo "$WINDRES" >&6; }
11708 else
11709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11711 fi
11712
11713
11714   fi
11715   test -n "$ac_cv_prog_WINDRES" && break
11716 done
11717
11718 if test -z "$ac_cv_prog_WINDRES" ; then
11719   set dummy windres
11720   if test $build = $host ; then
11721     WINDRES="$2"
11722   else
11723     WINDRES="${ncn_tool_prefix}$2"
11724   fi
11725 fi
11726
11727
11728
11729 if test -n "$WINDMC"; then
11730   ac_cv_prog_WINDMC=$WINDMC
11731 elif test -n "$ac_cv_prog_WINDMC"; then
11732   WINDMC=$ac_cv_prog_WINDMC
11733 fi
11734
11735 if test -n "$ac_cv_prog_WINDMC"; then
11736   for ncn_progname in windmc; do
11737     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11738 set dummy ${ncn_progname}; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if ${ac_cv_prog_WINDMC+:} false; then :
11742   $as_echo_n "(cached) " >&6
11743 else
11744   if test -n "$WINDMC"; then
11745   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11746 else
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750   IFS=$as_save_IFS
11751   test -z "$as_dir" && as_dir=.
11752     for ac_exec_ext in '' $ac_executable_extensions; do
11753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754     ac_cv_prog_WINDMC="${ncn_progname}"
11755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11756     break 2
11757   fi
11758 done
11759   done
11760 IFS=$as_save_IFS
11761
11762 fi
11763 fi
11764 WINDMC=$ac_cv_prog_WINDMC
11765 if test -n "$WINDMC"; then
11766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11767 $as_echo "$WINDMC" >&6; }
11768 else
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 $as_echo "no" >&6; }
11771 fi
11772
11773
11774   done
11775 fi
11776
11777 for ncn_progname in windmc; do
11778   if test -n "$ncn_tool_prefix"; then
11779     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11780 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11782 $as_echo_n "checking for $ac_word... " >&6; }
11783 if ${ac_cv_prog_WINDMC+:} false; then :
11784   $as_echo_n "(cached) " >&6
11785 else
11786   if test -n "$WINDMC"; then
11787   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11788 else
11789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11791 do
11792   IFS=$as_save_IFS
11793   test -z "$as_dir" && as_dir=.
11794     for ac_exec_ext in '' $ac_executable_extensions; do
11795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11796     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11798     break 2
11799   fi
11800 done
11801   done
11802 IFS=$as_save_IFS
11803
11804 fi
11805 fi
11806 WINDMC=$ac_cv_prog_WINDMC
11807 if test -n "$WINDMC"; then
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11809 $as_echo "$WINDMC" >&6; }
11810 else
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11813 fi
11814
11815
11816   fi
11817   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11818     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11819 set dummy ${ncn_progname}; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if ${ac_cv_prog_WINDMC+:} false; then :
11823   $as_echo_n "(cached) " >&6
11824 else
11825   if test -n "$WINDMC"; then
11826   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11827 else
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11830 do
11831   IFS=$as_save_IFS
11832   test -z "$as_dir" && as_dir=.
11833     for ac_exec_ext in '' $ac_executable_extensions; do
11834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835     ac_cv_prog_WINDMC="${ncn_progname}"
11836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837     break 2
11838   fi
11839 done
11840   done
11841 IFS=$as_save_IFS
11842
11843 fi
11844 fi
11845 WINDMC=$ac_cv_prog_WINDMC
11846 if test -n "$WINDMC"; then
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11848 $as_echo "$WINDMC" >&6; }
11849 else
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852 fi
11853
11854
11855   fi
11856   test -n "$ac_cv_prog_WINDMC" && break
11857 done
11858
11859 if test -z "$ac_cv_prog_WINDMC" ; then
11860   set dummy windmc
11861   if test $build = $host ; then
11862     WINDMC="$2"
11863   else
11864     WINDMC="${ncn_tool_prefix}$2"
11865   fi
11866 fi
11867
11868
11869
11870 if test -n "$OBJCOPY"; then
11871   ac_cv_prog_OBJCOPY=$OBJCOPY
11872 elif test -n "$ac_cv_prog_OBJCOPY"; then
11873   OBJCOPY=$ac_cv_prog_OBJCOPY
11874 fi
11875
11876 if test -n "$ac_cv_prog_OBJCOPY"; then
11877   for ncn_progname in objcopy; do
11878     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11879 set dummy ${ncn_progname}; ac_word=$2
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11881 $as_echo_n "checking for $ac_word... " >&6; }
11882 if ${ac_cv_prog_OBJCOPY+:} false; then :
11883   $as_echo_n "(cached) " >&6
11884 else
11885   if test -n "$OBJCOPY"; then
11886   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11887 else
11888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889 for as_dir in $PATH
11890 do
11891   IFS=$as_save_IFS
11892   test -z "$as_dir" && as_dir=.
11893     for ac_exec_ext in '' $ac_executable_extensions; do
11894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11895     ac_cv_prog_OBJCOPY="${ncn_progname}"
11896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11897     break 2
11898   fi
11899 done
11900   done
11901 IFS=$as_save_IFS
11902
11903 fi
11904 fi
11905 OBJCOPY=$ac_cv_prog_OBJCOPY
11906 if test -n "$OBJCOPY"; then
11907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11908 $as_echo "$OBJCOPY" >&6; }
11909 else
11910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911 $as_echo "no" >&6; }
11912 fi
11913
11914
11915   done
11916 fi
11917
11918 for ncn_progname in objcopy; do
11919   if test -n "$ncn_tool_prefix"; then
11920     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11921 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923 $as_echo_n "checking for $ac_word... " >&6; }
11924 if ${ac_cv_prog_OBJCOPY+:} false; then :
11925   $as_echo_n "(cached) " >&6
11926 else
11927   if test -n "$OBJCOPY"; then
11928   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11929 else
11930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11931 for as_dir in $PATH
11932 do
11933   IFS=$as_save_IFS
11934   test -z "$as_dir" && as_dir=.
11935     for ac_exec_ext in '' $ac_executable_extensions; do
11936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11937     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
11938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11939     break 2
11940   fi
11941 done
11942   done
11943 IFS=$as_save_IFS
11944
11945 fi
11946 fi
11947 OBJCOPY=$ac_cv_prog_OBJCOPY
11948 if test -n "$OBJCOPY"; then
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11950 $as_echo "$OBJCOPY" >&6; }
11951 else
11952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953 $as_echo "no" >&6; }
11954 fi
11955
11956
11957   fi
11958   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
11959     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11960 set dummy ${ncn_progname}; ac_word=$2
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11962 $as_echo_n "checking for $ac_word... " >&6; }
11963 if ${ac_cv_prog_OBJCOPY+:} false; then :
11964   $as_echo_n "(cached) " >&6
11965 else
11966   if test -n "$OBJCOPY"; then
11967   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11968 else
11969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970 for as_dir in $PATH
11971 do
11972   IFS=$as_save_IFS
11973   test -z "$as_dir" && as_dir=.
11974     for ac_exec_ext in '' $ac_executable_extensions; do
11975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11976     ac_cv_prog_OBJCOPY="${ncn_progname}"
11977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11978     break 2
11979   fi
11980 done
11981   done
11982 IFS=$as_save_IFS
11983
11984 fi
11985 fi
11986 OBJCOPY=$ac_cv_prog_OBJCOPY
11987 if test -n "$OBJCOPY"; then
11988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11989 $as_echo "$OBJCOPY" >&6; }
11990 else
11991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11993 fi
11994
11995
11996   fi
11997   test -n "$ac_cv_prog_OBJCOPY" && break
11998 done
11999
12000 if test -z "$ac_cv_prog_OBJCOPY" ; then
12001   set dummy objcopy
12002   if test $build = $host ; then
12003     OBJCOPY="$2"
12004   else
12005     OBJCOPY="${ncn_tool_prefix}$2"
12006   fi
12007 fi
12008
12009
12010
12011 if test -n "$OBJDUMP"; then
12012   ac_cv_prog_OBJDUMP=$OBJDUMP
12013 elif test -n "$ac_cv_prog_OBJDUMP"; then
12014   OBJDUMP=$ac_cv_prog_OBJDUMP
12015 fi
12016
12017 if test -n "$ac_cv_prog_OBJDUMP"; then
12018   for ncn_progname in objdump; do
12019     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12020 set dummy ${ncn_progname}; ac_word=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if ${ac_cv_prog_OBJDUMP+:} false; then :
12024   $as_echo_n "(cached) " >&6
12025 else
12026   if test -n "$OBJDUMP"; then
12027   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12028 else
12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030 for as_dir in $PATH
12031 do
12032   IFS=$as_save_IFS
12033   test -z "$as_dir" && as_dir=.
12034     for ac_exec_ext in '' $ac_executable_extensions; do
12035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12036     ac_cv_prog_OBJDUMP="${ncn_progname}"
12037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12038     break 2
12039   fi
12040 done
12041   done
12042 IFS=$as_save_IFS
12043
12044 fi
12045 fi
12046 OBJDUMP=$ac_cv_prog_OBJDUMP
12047 if test -n "$OBJDUMP"; then
12048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12049 $as_echo "$OBJDUMP" >&6; }
12050 else
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12053 fi
12054
12055
12056   done
12057 fi
12058
12059 for ncn_progname in objdump; do
12060   if test -n "$ncn_tool_prefix"; then
12061     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12062 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12064 $as_echo_n "checking for $ac_word... " >&6; }
12065 if ${ac_cv_prog_OBJDUMP+:} false; then :
12066   $as_echo_n "(cached) " >&6
12067 else
12068   if test -n "$OBJDUMP"; then
12069   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12070 else
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072 for as_dir in $PATH
12073 do
12074   IFS=$as_save_IFS
12075   test -z "$as_dir" && as_dir=.
12076     for ac_exec_ext in '' $ac_executable_extensions; do
12077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12078     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12080     break 2
12081   fi
12082 done
12083   done
12084 IFS=$as_save_IFS
12085
12086 fi
12087 fi
12088 OBJDUMP=$ac_cv_prog_OBJDUMP
12089 if test -n "$OBJDUMP"; then
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12091 $as_echo "$OBJDUMP" >&6; }
12092 else
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12095 fi
12096
12097
12098   fi
12099   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12100     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12101 set dummy ${ncn_progname}; ac_word=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if ${ac_cv_prog_OBJDUMP+:} false; then :
12105   $as_echo_n "(cached) " >&6
12106 else
12107   if test -n "$OBJDUMP"; then
12108   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12109 else
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12112 do
12113   IFS=$as_save_IFS
12114   test -z "$as_dir" && as_dir=.
12115     for ac_exec_ext in '' $ac_executable_extensions; do
12116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12117     ac_cv_prog_OBJDUMP="${ncn_progname}"
12118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119     break 2
12120   fi
12121 done
12122   done
12123 IFS=$as_save_IFS
12124
12125 fi
12126 fi
12127 OBJDUMP=$ac_cv_prog_OBJDUMP
12128 if test -n "$OBJDUMP"; then
12129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12130 $as_echo "$OBJDUMP" >&6; }
12131 else
12132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12134 fi
12135
12136
12137   fi
12138   test -n "$ac_cv_prog_OBJDUMP" && break
12139 done
12140
12141 if test -z "$ac_cv_prog_OBJDUMP" ; then
12142   set dummy objdump
12143   if test $build = $host ; then
12144     OBJDUMP="$2"
12145   else
12146     OBJDUMP="${ncn_tool_prefix}$2"
12147   fi
12148 fi
12149
12150
12151
12152 if test -n "$OTOOL"; then
12153   ac_cv_prog_OTOOL=$OTOOL
12154 elif test -n "$ac_cv_prog_OTOOL"; then
12155   OTOOL=$ac_cv_prog_OTOOL
12156 fi
12157
12158 if test -n "$ac_cv_prog_OTOOL"; then
12159   for ncn_progname in otool; do
12160     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12161 set dummy ${ncn_progname}; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163 $as_echo_n "checking for $ac_word... " >&6; }
12164 if ${ac_cv_prog_OTOOL+:} false; then :
12165   $as_echo_n "(cached) " >&6
12166 else
12167   if test -n "$OTOOL"; then
12168   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12169 else
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $PATH
12172 do
12173   IFS=$as_save_IFS
12174   test -z "$as_dir" && as_dir=.
12175     for ac_exec_ext in '' $ac_executable_extensions; do
12176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12177     ac_cv_prog_OTOOL="${ncn_progname}"
12178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12179     break 2
12180   fi
12181 done
12182   done
12183 IFS=$as_save_IFS
12184
12185 fi
12186 fi
12187 OTOOL=$ac_cv_prog_OTOOL
12188 if test -n "$OTOOL"; then
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12190 $as_echo "$OTOOL" >&6; }
12191 else
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12194 fi
12195
12196
12197   done
12198 fi
12199
12200 for ncn_progname in otool; do
12201   if test -n "$ncn_tool_prefix"; then
12202     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12203 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if ${ac_cv_prog_OTOOL+:} false; then :
12207   $as_echo_n "(cached) " >&6
12208 else
12209   if test -n "$OTOOL"; then
12210   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12211 else
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12214 do
12215   IFS=$as_save_IFS
12216   test -z "$as_dir" && as_dir=.
12217     for ac_exec_ext in '' $ac_executable_extensions; do
12218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12219     ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221     break 2
12222   fi
12223 done
12224   done
12225 IFS=$as_save_IFS
12226
12227 fi
12228 fi
12229 OTOOL=$ac_cv_prog_OTOOL
12230 if test -n "$OTOOL"; then
12231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12232 $as_echo "$OTOOL" >&6; }
12233 else
12234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235 $as_echo "no" >&6; }
12236 fi
12237
12238
12239   fi
12240   if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12241     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12242 set dummy ${ncn_progname}; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if ${ac_cv_prog_OTOOL+:} false; then :
12246   $as_echo_n "(cached) " >&6
12247 else
12248   if test -n "$OTOOL"; then
12249   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12250 else
12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $PATH
12253 do
12254   IFS=$as_save_IFS
12255   test -z "$as_dir" && as_dir=.
12256     for ac_exec_ext in '' $ac_executable_extensions; do
12257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258     ac_cv_prog_OTOOL="${ncn_progname}"
12259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260     break 2
12261   fi
12262 done
12263   done
12264 IFS=$as_save_IFS
12265
12266 fi
12267 fi
12268 OTOOL=$ac_cv_prog_OTOOL
12269 if test -n "$OTOOL"; then
12270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12271 $as_echo "$OTOOL" >&6; }
12272 else
12273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275 fi
12276
12277
12278   fi
12279   test -n "$ac_cv_prog_OTOOL" && break
12280 done
12281
12282 if test -z "$ac_cv_prog_OTOOL" ; then
12283   set dummy otool
12284   if test $build = $host ; then
12285     OTOOL="$2"
12286   else
12287     OTOOL="${ncn_tool_prefix}$2"
12288   fi
12289 fi
12290
12291
12292
12293 if test -n "$READELF"; then
12294   ac_cv_prog_READELF=$READELF
12295 elif test -n "$ac_cv_prog_READELF"; then
12296   READELF=$ac_cv_prog_READELF
12297 fi
12298
12299 if test -n "$ac_cv_prog_READELF"; then
12300   for ncn_progname in readelf; do
12301     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12302 set dummy ${ncn_progname}; ac_word=$2
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304 $as_echo_n "checking for $ac_word... " >&6; }
12305 if ${ac_cv_prog_READELF+:} false; then :
12306   $as_echo_n "(cached) " >&6
12307 else
12308   if test -n "$READELF"; then
12309   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12310 else
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $PATH
12313 do
12314   IFS=$as_save_IFS
12315   test -z "$as_dir" && as_dir=.
12316     for ac_exec_ext in '' $ac_executable_extensions; do
12317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12318     ac_cv_prog_READELF="${ncn_progname}"
12319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320     break 2
12321   fi
12322 done
12323   done
12324 IFS=$as_save_IFS
12325
12326 fi
12327 fi
12328 READELF=$ac_cv_prog_READELF
12329 if test -n "$READELF"; then
12330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12331 $as_echo "$READELF" >&6; }
12332 else
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12335 fi
12336
12337
12338   done
12339 fi
12340
12341 for ncn_progname in readelf; do
12342   if test -n "$ncn_tool_prefix"; then
12343     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12344 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346 $as_echo_n "checking for $ac_word... " >&6; }
12347 if ${ac_cv_prog_READELF+:} false; then :
12348   $as_echo_n "(cached) " >&6
12349 else
12350   if test -n "$READELF"; then
12351   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12352 else
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12355 do
12356   IFS=$as_save_IFS
12357   test -z "$as_dir" && as_dir=.
12358     for ac_exec_ext in '' $ac_executable_extensions; do
12359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12360     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362     break 2
12363   fi
12364 done
12365   done
12366 IFS=$as_save_IFS
12367
12368 fi
12369 fi
12370 READELF=$ac_cv_prog_READELF
12371 if test -n "$READELF"; then
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12373 $as_echo "$READELF" >&6; }
12374 else
12375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12377 fi
12378
12379
12380   fi
12381   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12382     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12383 set dummy ${ncn_progname}; ac_word=$2
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12385 $as_echo_n "checking for $ac_word... " >&6; }
12386 if ${ac_cv_prog_READELF+:} false; then :
12387   $as_echo_n "(cached) " >&6
12388 else
12389   if test -n "$READELF"; then
12390   ac_cv_prog_READELF="$READELF" # Let the user override the test.
12391 else
12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in $PATH
12394 do
12395   IFS=$as_save_IFS
12396   test -z "$as_dir" && as_dir=.
12397     for ac_exec_ext in '' $ac_executable_extensions; do
12398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12399     ac_cv_prog_READELF="${ncn_progname}"
12400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12401     break 2
12402   fi
12403 done
12404   done
12405 IFS=$as_save_IFS
12406
12407 fi
12408 fi
12409 READELF=$ac_cv_prog_READELF
12410 if test -n "$READELF"; then
12411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12412 $as_echo "$READELF" >&6; }
12413 else
12414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 $as_echo "no" >&6; }
12416 fi
12417
12418
12419   fi
12420   test -n "$ac_cv_prog_READELF" && break
12421 done
12422
12423 if test -z "$ac_cv_prog_READELF" ; then
12424   set dummy readelf
12425   if test $build = $host ; then
12426     READELF="$2"
12427   else
12428     READELF="${ncn_tool_prefix}$2"
12429   fi
12430 fi
12431
12432
12433
12434
12435
12436
12437 # Target tools.
12438
12439 # Check whether --with-build-time-tools was given.
12440 if test "${with_build_time_tools+set}" = set; then :
12441   withval=$with_build_time_tools; case x"$withval" in
12442      x/*) ;;
12443      *)
12444        with_build_time_tools=
12445        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12446 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12447        ;;
12448    esac
12449 else
12450   with_build_time_tools=
12451 fi
12452
12453
12454
12455
12456 if test -n "$CC_FOR_TARGET"; then
12457   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12458 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12459   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12460 fi
12461
12462 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12463   for ncn_progname in cc gcc; do
12464     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12465 set dummy ${ncn_progname}; ac_word=$2
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467 $as_echo_n "checking for $ac_word... " >&6; }
12468 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12469   $as_echo_n "(cached) " >&6
12470 else
12471   if test -n "$CC_FOR_TARGET"; then
12472   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12473 else
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $PATH
12476 do
12477   IFS=$as_save_IFS
12478   test -z "$as_dir" && as_dir=.
12479     for ac_exec_ext in '' $ac_executable_extensions; do
12480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12481     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483     break 2
12484   fi
12485 done
12486   done
12487 IFS=$as_save_IFS
12488
12489 fi
12490 fi
12491 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12492 if test -n "$CC_FOR_TARGET"; then
12493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12494 $as_echo "$CC_FOR_TARGET" >&6; }
12495 else
12496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12498 fi
12499
12500
12501   done
12502 fi
12503
12504 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12505   for ncn_progname in cc gcc; do
12506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12507 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12508     if test -x $with_build_time_tools/${ncn_progname}; then
12509       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12510       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12511 $as_echo "yes" >&6; }
12512       break
12513     else
12514       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12516     fi
12517   done
12518 fi
12519
12520 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12521   for ncn_progname in cc gcc; do
12522     if test -n "$ncn_target_tool_prefix"; then
12523       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12524 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526 $as_echo_n "checking for $ac_word... " >&6; }
12527 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12528   $as_echo_n "(cached) " >&6
12529 else
12530   if test -n "$CC_FOR_TARGET"; then
12531   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12532 else
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $PATH
12535 do
12536   IFS=$as_save_IFS
12537   test -z "$as_dir" && as_dir=.
12538     for ac_exec_ext in '' $ac_executable_extensions; do
12539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12540     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542     break 2
12543   fi
12544 done
12545   done
12546 IFS=$as_save_IFS
12547
12548 fi
12549 fi
12550 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12551 if test -n "$CC_FOR_TARGET"; then
12552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12553 $as_echo "$CC_FOR_TARGET" >&6; }
12554 else
12555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556 $as_echo "no" >&6; }
12557 fi
12558
12559
12560     fi
12561     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12562       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12563 set dummy ${ncn_progname}; ac_word=$2
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12565 $as_echo_n "checking for $ac_word... " >&6; }
12566 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12567   $as_echo_n "(cached) " >&6
12568 else
12569   if test -n "$CC_FOR_TARGET"; then
12570   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12571 else
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $PATH
12574 do
12575   IFS=$as_save_IFS
12576   test -z "$as_dir" && as_dir=.
12577     for ac_exec_ext in '' $ac_executable_extensions; do
12578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12579     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581     break 2
12582   fi
12583 done
12584   done
12585 IFS=$as_save_IFS
12586
12587 fi
12588 fi
12589 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12590 if test -n "$CC_FOR_TARGET"; then
12591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12592 $as_echo "$CC_FOR_TARGET" >&6; }
12593 else
12594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12596 fi
12597
12598
12599     fi
12600     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12601   done
12602 fi
12603
12604 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12605   set dummy cc gcc
12606   if test $build = $target ; then
12607     CC_FOR_TARGET="$2"
12608   else
12609     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12610   fi
12611 else
12612   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12613 fi
12614
12615
12616
12617 if test -n "$CXX_FOR_TARGET"; then
12618   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12619 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12620   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12621 fi
12622
12623 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12624   for ncn_progname in c++ g++ cxx gxx; do
12625     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12626 set dummy ${ncn_progname}; ac_word=$2
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628 $as_echo_n "checking for $ac_word... " >&6; }
12629 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12630   $as_echo_n "(cached) " >&6
12631 else
12632   if test -n "$CXX_FOR_TARGET"; then
12633   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12634 else
12635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12637 do
12638   IFS=$as_save_IFS
12639   test -z "$as_dir" && as_dir=.
12640     for ac_exec_ext in '' $ac_executable_extensions; do
12641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12642     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644     break 2
12645   fi
12646 done
12647   done
12648 IFS=$as_save_IFS
12649
12650 fi
12651 fi
12652 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12653 if test -n "$CXX_FOR_TARGET"; then
12654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12655 $as_echo "$CXX_FOR_TARGET" >&6; }
12656 else
12657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12659 fi
12660
12661
12662   done
12663 fi
12664
12665 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12666   for ncn_progname in c++ g++ cxx gxx; do
12667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12668 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12669     if test -x $with_build_time_tools/${ncn_progname}; then
12670       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12671       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12672 $as_echo "yes" >&6; }
12673       break
12674     else
12675       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12677     fi
12678   done
12679 fi
12680
12681 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12682   for ncn_progname in c++ g++ cxx gxx; do
12683     if test -n "$ncn_target_tool_prefix"; then
12684       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12685 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687 $as_echo_n "checking for $ac_word... " >&6; }
12688 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12689   $as_echo_n "(cached) " >&6
12690 else
12691   if test -n "$CXX_FOR_TARGET"; then
12692   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12693 else
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12696 do
12697   IFS=$as_save_IFS
12698   test -z "$as_dir" && as_dir=.
12699     for ac_exec_ext in '' $ac_executable_extensions; do
12700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703     break 2
12704   fi
12705 done
12706   done
12707 IFS=$as_save_IFS
12708
12709 fi
12710 fi
12711 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12712 if test -n "$CXX_FOR_TARGET"; then
12713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12714 $as_echo "$CXX_FOR_TARGET" >&6; }
12715 else
12716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12718 fi
12719
12720
12721     fi
12722     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12723       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12724 set dummy ${ncn_progname}; ac_word=$2
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12726 $as_echo_n "checking for $ac_word... " >&6; }
12727 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12728   $as_echo_n "(cached) " >&6
12729 else
12730   if test -n "$CXX_FOR_TARGET"; then
12731   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12732 else
12733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12734 for as_dir in $PATH
12735 do
12736   IFS=$as_save_IFS
12737   test -z "$as_dir" && as_dir=.
12738     for ac_exec_ext in '' $ac_executable_extensions; do
12739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12740     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12742     break 2
12743   fi
12744 done
12745   done
12746 IFS=$as_save_IFS
12747
12748 fi
12749 fi
12750 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12751 if test -n "$CXX_FOR_TARGET"; then
12752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12753 $as_echo "$CXX_FOR_TARGET" >&6; }
12754 else
12755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12757 fi
12758
12759
12760     fi
12761     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12762   done
12763 fi
12764
12765 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12766   set dummy c++ g++ cxx gxx
12767   if test $build = $target ; then
12768     CXX_FOR_TARGET="$2"
12769   else
12770     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12771   fi
12772 else
12773   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12774 fi
12775
12776
12777
12778 if test -n "$GCC_FOR_TARGET"; then
12779   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12780 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12781   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12782 fi
12783
12784 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12785   for ncn_progname in gcc; do
12786     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12787 set dummy ${ncn_progname}; ac_word=$2
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12789 $as_echo_n "checking for $ac_word... " >&6; }
12790 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12791   $as_echo_n "(cached) " >&6
12792 else
12793   if test -n "$GCC_FOR_TARGET"; then
12794   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12795 else
12796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12797 for as_dir in $PATH
12798 do
12799   IFS=$as_save_IFS
12800   test -z "$as_dir" && as_dir=.
12801     for ac_exec_ext in '' $ac_executable_extensions; do
12802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12803     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12805     break 2
12806   fi
12807 done
12808   done
12809 IFS=$as_save_IFS
12810
12811 fi
12812 fi
12813 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12814 if test -n "$GCC_FOR_TARGET"; then
12815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12816 $as_echo "$GCC_FOR_TARGET" >&6; }
12817 else
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12820 fi
12821
12822
12823   done
12824 fi
12825
12826 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12827   for ncn_progname in gcc; do
12828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12829 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12830     if test -x $with_build_time_tools/${ncn_progname}; then
12831       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12832       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12833 $as_echo "yes" >&6; }
12834       break
12835     else
12836       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837 $as_echo "no" >&6; }
12838     fi
12839   done
12840 fi
12841
12842 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12843   for ncn_progname in gcc; do
12844     if test -n "$ncn_target_tool_prefix"; then
12845       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12846 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12848 $as_echo_n "checking for $ac_word... " >&6; }
12849 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12850   $as_echo_n "(cached) " >&6
12851 else
12852   if test -n "$GCC_FOR_TARGET"; then
12853   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12854 else
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12857 do
12858   IFS=$as_save_IFS
12859   test -z "$as_dir" && as_dir=.
12860     for ac_exec_ext in '' $ac_executable_extensions; do
12861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12862     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864     break 2
12865   fi
12866 done
12867   done
12868 IFS=$as_save_IFS
12869
12870 fi
12871 fi
12872 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12873 if test -n "$GCC_FOR_TARGET"; then
12874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12875 $as_echo "$GCC_FOR_TARGET" >&6; }
12876 else
12877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12879 fi
12880
12881
12882     fi
12883     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
12884       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12885 set dummy ${ncn_progname}; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12889   $as_echo_n "(cached) " >&6
12890 else
12891   if test -n "$GCC_FOR_TARGET"; then
12892   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12893 else
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12896 do
12897   IFS=$as_save_IFS
12898   test -z "$as_dir" && as_dir=.
12899     for ac_exec_ext in '' $ac_executable_extensions; do
12900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12901     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903     break 2
12904   fi
12905 done
12906   done
12907 IFS=$as_save_IFS
12908
12909 fi
12910 fi
12911 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12912 if test -n "$GCC_FOR_TARGET"; then
12913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12914 $as_echo "$GCC_FOR_TARGET" >&6; }
12915 else
12916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12918 fi
12919
12920
12921     fi
12922     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
12923   done
12924 fi
12925
12926 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
12927   GCC_FOR_TARGET="${CC_FOR_TARGET}"
12928 else
12929   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
12930 fi
12931
12932
12933
12934 if test -n "$GFORTRAN_FOR_TARGET"; then
12935   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
12936 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12937   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12938 fi
12939
12940 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12941   for ncn_progname in gfortran; do
12942     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12943 set dummy ${ncn_progname}; ac_word=$2
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945 $as_echo_n "checking for $ac_word... " >&6; }
12946 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12947   $as_echo_n "(cached) " >&6
12948 else
12949   if test -n "$GFORTRAN_FOR_TARGET"; then
12950   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12951 else
12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in $PATH
12954 do
12955   IFS=$as_save_IFS
12956   test -z "$as_dir" && as_dir=.
12957     for ac_exec_ext in '' $ac_executable_extensions; do
12958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12959     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961     break 2
12962   fi
12963 done
12964   done
12965 IFS=$as_save_IFS
12966
12967 fi
12968 fi
12969 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12970 if test -n "$GFORTRAN_FOR_TARGET"; then
12971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12972 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12973 else
12974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976 fi
12977
12978
12979   done
12980 fi
12981
12982 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
12983   for ncn_progname in gfortran; do
12984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12985 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12986     if test -x $with_build_time_tools/${ncn_progname}; then
12987       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12988       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12989 $as_echo "yes" >&6; }
12990       break
12991     else
12992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12994     fi
12995   done
12996 fi
12997
12998 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12999   for ncn_progname in gfortran; do
13000     if test -n "$ncn_target_tool_prefix"; then
13001       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13002 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004 $as_echo_n "checking for $ac_word... " >&6; }
13005 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13006   $as_echo_n "(cached) " >&6
13007 else
13008   if test -n "$GFORTRAN_FOR_TARGET"; then
13009   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13010 else
13011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012 for as_dir in $PATH
13013 do
13014   IFS=$as_save_IFS
13015   test -z "$as_dir" && as_dir=.
13016     for ac_exec_ext in '' $ac_executable_extensions; do
13017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13018     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13020     break 2
13021   fi
13022 done
13023   done
13024 IFS=$as_save_IFS
13025
13026 fi
13027 fi
13028 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13029 if test -n "$GFORTRAN_FOR_TARGET"; then
13030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13031 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13032 else
13033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13035 fi
13036
13037
13038     fi
13039     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13040       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13041 set dummy ${ncn_progname}; ac_word=$2
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043 $as_echo_n "checking for $ac_word... " >&6; }
13044 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13045   $as_echo_n "(cached) " >&6
13046 else
13047   if test -n "$GFORTRAN_FOR_TARGET"; then
13048   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13049 else
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13052 do
13053   IFS=$as_save_IFS
13054   test -z "$as_dir" && as_dir=.
13055     for ac_exec_ext in '' $ac_executable_extensions; do
13056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13057     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13059     break 2
13060   fi
13061 done
13062   done
13063 IFS=$as_save_IFS
13064
13065 fi
13066 fi
13067 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13068 if test -n "$GFORTRAN_FOR_TARGET"; then
13069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13070 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13071 else
13072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073 $as_echo "no" >&6; }
13074 fi
13075
13076
13077     fi
13078     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13079   done
13080 fi
13081
13082 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13083   set dummy gfortran
13084   if test $build = $target ; then
13085     GFORTRAN_FOR_TARGET="$2"
13086   else
13087     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13088   fi
13089 else
13090   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13091 fi
13092
13093
13094
13095 if test -n "$GOC_FOR_TARGET"; then
13096   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13097 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13098   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13099 fi
13100
13101 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13102   for ncn_progname in gccgo; do
13103     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13104 set dummy ${ncn_progname}; ac_word=$2
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106 $as_echo_n "checking for $ac_word... " >&6; }
13107 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13108   $as_echo_n "(cached) " >&6
13109 else
13110   if test -n "$GOC_FOR_TARGET"; then
13111   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13112 else
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13115 do
13116   IFS=$as_save_IFS
13117   test -z "$as_dir" && as_dir=.
13118     for ac_exec_ext in '' $ac_executable_extensions; do
13119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13120     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122     break 2
13123   fi
13124 done
13125   done
13126 IFS=$as_save_IFS
13127
13128 fi
13129 fi
13130 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13131 if test -n "$GOC_FOR_TARGET"; then
13132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13133 $as_echo "$GOC_FOR_TARGET" >&6; }
13134 else
13135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13137 fi
13138
13139
13140   done
13141 fi
13142
13143 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13144   for ncn_progname in gccgo; do
13145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13146 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13147     if test -x $with_build_time_tools/${ncn_progname}; then
13148       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13149       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13150 $as_echo "yes" >&6; }
13151       break
13152     else
13153       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13155     fi
13156   done
13157 fi
13158
13159 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13160   for ncn_progname in gccgo; do
13161     if test -n "$ncn_target_tool_prefix"; then
13162       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13163 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13165 $as_echo_n "checking for $ac_word... " >&6; }
13166 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13167   $as_echo_n "(cached) " >&6
13168 else
13169   if test -n "$GOC_FOR_TARGET"; then
13170   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13171 else
13172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13173 for as_dir in $PATH
13174 do
13175   IFS=$as_save_IFS
13176   test -z "$as_dir" && as_dir=.
13177     for ac_exec_ext in '' $ac_executable_extensions; do
13178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13179     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13181     break 2
13182   fi
13183 done
13184   done
13185 IFS=$as_save_IFS
13186
13187 fi
13188 fi
13189 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13190 if test -n "$GOC_FOR_TARGET"; then
13191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13192 $as_echo "$GOC_FOR_TARGET" >&6; }
13193 else
13194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195 $as_echo "no" >&6; }
13196 fi
13197
13198
13199     fi
13200     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13201       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13202 set dummy ${ncn_progname}; ac_word=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204 $as_echo_n "checking for $ac_word... " >&6; }
13205 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13206   $as_echo_n "(cached) " >&6
13207 else
13208   if test -n "$GOC_FOR_TARGET"; then
13209   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13210 else
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13213 do
13214   IFS=$as_save_IFS
13215   test -z "$as_dir" && as_dir=.
13216     for ac_exec_ext in '' $ac_executable_extensions; do
13217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13218     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220     break 2
13221   fi
13222 done
13223   done
13224 IFS=$as_save_IFS
13225
13226 fi
13227 fi
13228 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13229 if test -n "$GOC_FOR_TARGET"; then
13230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13231 $as_echo "$GOC_FOR_TARGET" >&6; }
13232 else
13233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234 $as_echo "no" >&6; }
13235 fi
13236
13237
13238     fi
13239     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13240   done
13241 fi
13242
13243 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13244   set dummy gccgo
13245   if test $build = $target ; then
13246     GOC_FOR_TARGET="$2"
13247   else
13248     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13249   fi
13250 else
13251   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13252 fi
13253
13254
13255
13256 if test -n "$GDC_FOR_TARGET"; then
13257   ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13258 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13259   GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13260 fi
13261
13262 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13263   for ncn_progname in gdc; do
13264     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13265 set dummy ${ncn_progname}; ac_word=$2
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267 $as_echo_n "checking for $ac_word... " >&6; }
13268 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13269   $as_echo_n "(cached) " >&6
13270 else
13271   if test -n "$GDC_FOR_TARGET"; then
13272   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13273 else
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13276 do
13277   IFS=$as_save_IFS
13278   test -z "$as_dir" && as_dir=.
13279     for ac_exec_ext in '' $ac_executable_extensions; do
13280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13281     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283     break 2
13284   fi
13285 done
13286   done
13287 IFS=$as_save_IFS
13288
13289 fi
13290 fi
13291 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13292 if test -n "$GDC_FOR_TARGET"; then
13293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13294 $as_echo "$GDC_FOR_TARGET" >&6; }
13295 else
13296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 $as_echo "no" >&6; }
13298 fi
13299
13300
13301   done
13302 fi
13303
13304 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13305   for ncn_progname in gdc; do
13306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13307 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13308     if test -x $with_build_time_tools/${ncn_progname}; then
13309       ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13311 $as_echo "yes" >&6; }
13312       break
13313     else
13314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316     fi
13317   done
13318 fi
13319
13320 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13321   for ncn_progname in gdc; do
13322     if test -n "$ncn_target_tool_prefix"; then
13323       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13324 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13326 $as_echo_n "checking for $ac_word... " >&6; }
13327 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13328   $as_echo_n "(cached) " >&6
13329 else
13330   if test -n "$GDC_FOR_TARGET"; then
13331   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13332 else
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13335 do
13336   IFS=$as_save_IFS
13337   test -z "$as_dir" && as_dir=.
13338     for ac_exec_ext in '' $ac_executable_extensions; do
13339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13340     ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13342     break 2
13343   fi
13344 done
13345   done
13346 IFS=$as_save_IFS
13347
13348 fi
13349 fi
13350 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13351 if test -n "$GDC_FOR_TARGET"; then
13352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13353 $as_echo "$GDC_FOR_TARGET" >&6; }
13354 else
13355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13357 fi
13358
13359
13360     fi
13361     if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13362       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13363 set dummy ${ncn_progname}; ac_word=$2
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13365 $as_echo_n "checking for $ac_word... " >&6; }
13366 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13367   $as_echo_n "(cached) " >&6
13368 else
13369   if test -n "$GDC_FOR_TARGET"; then
13370   ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13371 else
13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13374 do
13375   IFS=$as_save_IFS
13376   test -z "$as_dir" && as_dir=.
13377     for ac_exec_ext in '' $ac_executable_extensions; do
13378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13379     ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13381     break 2
13382   fi
13383 done
13384   done
13385 IFS=$as_save_IFS
13386
13387 fi
13388 fi
13389 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13390 if test -n "$GDC_FOR_TARGET"; then
13391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13392 $as_echo "$GDC_FOR_TARGET" >&6; }
13393 else
13394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 $as_echo "no" >&6; }
13396 fi
13397
13398
13399     fi
13400     test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13401   done
13402 fi
13403
13404 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13405   set dummy gdc
13406   if test $build = $target ; then
13407     GDC_FOR_TARGET="$2"
13408   else
13409     GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13410   fi
13411 else
13412   GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13413 fi
13414
13415
13416
13417 cat > conftest.c << \EOF
13418 #ifdef __GNUC__
13419   gcc_yay;
13420 #endif
13421 EOF
13422 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13423   have_gcc_for_target=yes
13424 else
13425   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13426   have_gcc_for_target=no
13427 fi
13428 rm conftest.c
13429
13430
13431
13432
13433 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13434   if test -n "$with_build_time_tools"; then
13435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13436 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13437     if test -x $with_build_time_tools/ar; then
13438       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13439       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13440       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13441 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13442     else
13443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13444 $as_echo "no" >&6; }
13445     fi
13446   elif test $build != $host && test $have_gcc_for_target = yes; then
13447     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13448     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13449     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13450   fi
13451 fi
13452 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13453   # Extract the first word of "ar", so it can be a program name with args.
13454 set dummy ar; ac_word=$2
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456 $as_echo_n "checking for $ac_word... " >&6; }
13457 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13458   $as_echo_n "(cached) " >&6
13459 else
13460   case $AR_FOR_TARGET in
13461   [\\/]* | ?:[\\/]*)
13462   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13463   ;;
13464   *)
13465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13466 for as_dir in $gcc_cv_tool_dirs
13467 do
13468   IFS=$as_save_IFS
13469   test -z "$as_dir" && as_dir=.
13470     for ac_exec_ext in '' $ac_executable_extensions; do
13471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13472     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13474     break 2
13475   fi
13476 done
13477   done
13478 IFS=$as_save_IFS
13479
13480   ;;
13481 esac
13482 fi
13483 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13484 if test -n "$AR_FOR_TARGET"; then
13485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13486 $as_echo "$AR_FOR_TARGET" >&6; }
13487 else
13488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489 $as_echo "no" >&6; }
13490 fi
13491
13492
13493 fi
13494 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13495
13496
13497 if test -n "$AR_FOR_TARGET"; then
13498   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13499 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13500   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13501 fi
13502
13503 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13504   for ncn_progname in ar; do
13505     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13506 set dummy ${ncn_progname}; ac_word=$2
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13508 $as_echo_n "checking for $ac_word... " >&6; }
13509 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13510   $as_echo_n "(cached) " >&6
13511 else
13512   if test -n "$AR_FOR_TARGET"; then
13513   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13514 else
13515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13516 for as_dir in $PATH
13517 do
13518   IFS=$as_save_IFS
13519   test -z "$as_dir" && as_dir=.
13520     for ac_exec_ext in '' $ac_executable_extensions; do
13521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13522     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524     break 2
13525   fi
13526 done
13527   done
13528 IFS=$as_save_IFS
13529
13530 fi
13531 fi
13532 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13533 if test -n "$AR_FOR_TARGET"; then
13534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13535 $as_echo "$AR_FOR_TARGET" >&6; }
13536 else
13537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 $as_echo "no" >&6; }
13539 fi
13540
13541
13542   done
13543 fi
13544
13545 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13546   for ncn_progname in ar; do
13547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13548 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13549     if test -x $with_build_time_tools/${ncn_progname}; then
13550       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13551       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13552 $as_echo "yes" >&6; }
13553       break
13554     else
13555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556 $as_echo "no" >&6; }
13557     fi
13558   done
13559 fi
13560
13561 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13562   for ncn_progname in ar; do
13563     if test -n "$ncn_target_tool_prefix"; then
13564       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13565 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13567 $as_echo_n "checking for $ac_word... " >&6; }
13568 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13569   $as_echo_n "(cached) " >&6
13570 else
13571   if test -n "$AR_FOR_TARGET"; then
13572   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13573 else
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13576 do
13577   IFS=$as_save_IFS
13578   test -z "$as_dir" && as_dir=.
13579     for ac_exec_ext in '' $ac_executable_extensions; do
13580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13581     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13583     break 2
13584   fi
13585 done
13586   done
13587 IFS=$as_save_IFS
13588
13589 fi
13590 fi
13591 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13592 if test -n "$AR_FOR_TARGET"; then
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13594 $as_echo "$AR_FOR_TARGET" >&6; }
13595 else
13596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13598 fi
13599
13600
13601     fi
13602     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13603       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13604 set dummy ${ncn_progname}; ac_word=$2
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606 $as_echo_n "checking for $ac_word... " >&6; }
13607 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13608   $as_echo_n "(cached) " >&6
13609 else
13610   if test -n "$AR_FOR_TARGET"; then
13611   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13612 else
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13615 do
13616   IFS=$as_save_IFS
13617   test -z "$as_dir" && as_dir=.
13618     for ac_exec_ext in '' $ac_executable_extensions; do
13619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622     break 2
13623   fi
13624 done
13625   done
13626 IFS=$as_save_IFS
13627
13628 fi
13629 fi
13630 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13631 if test -n "$AR_FOR_TARGET"; then
13632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13633 $as_echo "$AR_FOR_TARGET" >&6; }
13634 else
13635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13637 fi
13638
13639
13640     fi
13641     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13642   done
13643 fi
13644
13645 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13646   set dummy ar
13647   if test $build = $target ; then
13648     AR_FOR_TARGET="$2"
13649   else
13650     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13651   fi
13652 else
13653   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13654 fi
13655
13656 else
13657   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13658 fi
13659
13660
13661
13662
13663 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13664   if test -n "$with_build_time_tools"; then
13665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13666 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13667     if test -x $with_build_time_tools/as; then
13668       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13669       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13670       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13671 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13672     else
13673       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13675     fi
13676   elif test $build != $host && test $have_gcc_for_target = yes; then
13677     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13678     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13679     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13680   fi
13681 fi
13682 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13683   # Extract the first word of "as", so it can be a program name with args.
13684 set dummy as; ac_word=$2
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686 $as_echo_n "checking for $ac_word... " >&6; }
13687 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13688   $as_echo_n "(cached) " >&6
13689 else
13690   case $AS_FOR_TARGET in
13691   [\\/]* | ?:[\\/]*)
13692   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13693   ;;
13694   *)
13695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13696 for as_dir in $gcc_cv_tool_dirs
13697 do
13698   IFS=$as_save_IFS
13699   test -z "$as_dir" && as_dir=.
13700     for ac_exec_ext in '' $ac_executable_extensions; do
13701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13702     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13704     break 2
13705   fi
13706 done
13707   done
13708 IFS=$as_save_IFS
13709
13710   ;;
13711 esac
13712 fi
13713 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13714 if test -n "$AS_FOR_TARGET"; then
13715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13716 $as_echo "$AS_FOR_TARGET" >&6; }
13717 else
13718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719 $as_echo "no" >&6; }
13720 fi
13721
13722
13723 fi
13724 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13725
13726
13727 if test -n "$AS_FOR_TARGET"; then
13728   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13729 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13730   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13731 fi
13732
13733 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13734   for ncn_progname in as; do
13735     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13736 set dummy ${ncn_progname}; ac_word=$2
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13738 $as_echo_n "checking for $ac_word... " >&6; }
13739 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13740   $as_echo_n "(cached) " >&6
13741 else
13742   if test -n "$AS_FOR_TARGET"; then
13743   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13744 else
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH
13747 do
13748   IFS=$as_save_IFS
13749   test -z "$as_dir" && as_dir=.
13750     for ac_exec_ext in '' $ac_executable_extensions; do
13751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13752     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13754     break 2
13755   fi
13756 done
13757   done
13758 IFS=$as_save_IFS
13759
13760 fi
13761 fi
13762 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13763 if test -n "$AS_FOR_TARGET"; then
13764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13765 $as_echo "$AS_FOR_TARGET" >&6; }
13766 else
13767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768 $as_echo "no" >&6; }
13769 fi
13770
13771
13772   done
13773 fi
13774
13775 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13776   for ncn_progname in as; do
13777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13778 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13779     if test -x $with_build_time_tools/${ncn_progname}; then
13780       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13781       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13782 $as_echo "yes" >&6; }
13783       break
13784     else
13785       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13787     fi
13788   done
13789 fi
13790
13791 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13792   for ncn_progname in as; do
13793     if test -n "$ncn_target_tool_prefix"; then
13794       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13795 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13797 $as_echo_n "checking for $ac_word... " >&6; }
13798 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13799   $as_echo_n "(cached) " >&6
13800 else
13801   if test -n "$AS_FOR_TARGET"; then
13802   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13803 else
13804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13805 for as_dir in $PATH
13806 do
13807   IFS=$as_save_IFS
13808   test -z "$as_dir" && as_dir=.
13809     for ac_exec_ext in '' $ac_executable_extensions; do
13810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13811     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13813     break 2
13814   fi
13815 done
13816   done
13817 IFS=$as_save_IFS
13818
13819 fi
13820 fi
13821 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13822 if test -n "$AS_FOR_TARGET"; then
13823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13824 $as_echo "$AS_FOR_TARGET" >&6; }
13825 else
13826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13827 $as_echo "no" >&6; }
13828 fi
13829
13830
13831     fi
13832     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13833       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13834 set dummy ${ncn_progname}; ac_word=$2
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13836 $as_echo_n "checking for $ac_word... " >&6; }
13837 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13838   $as_echo_n "(cached) " >&6
13839 else
13840   if test -n "$AS_FOR_TARGET"; then
13841   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13842 else
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13845 do
13846   IFS=$as_save_IFS
13847   test -z "$as_dir" && as_dir=.
13848     for ac_exec_ext in '' $ac_executable_extensions; do
13849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13850     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13852     break 2
13853   fi
13854 done
13855   done
13856 IFS=$as_save_IFS
13857
13858 fi
13859 fi
13860 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13861 if test -n "$AS_FOR_TARGET"; then
13862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13863 $as_echo "$AS_FOR_TARGET" >&6; }
13864 else
13865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13866 $as_echo "no" >&6; }
13867 fi
13868
13869
13870     fi
13871     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
13872   done
13873 fi
13874
13875 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
13876   set dummy as
13877   if test $build = $target ; then
13878     AS_FOR_TARGET="$2"
13879   else
13880     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
13881   fi
13882 else
13883   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
13884 fi
13885
13886 else
13887   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13888 fi
13889
13890
13891
13892
13893 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13894   if test -n "$with_build_time_tools"; then
13895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
13896 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
13897     if test -x $with_build_time_tools/dlltool; then
13898       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
13899       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13900       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
13901 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
13902     else
13903       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13904 $as_echo "no" >&6; }
13905     fi
13906   elif test $build != $host && test $have_gcc_for_target = yes; then
13907     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
13908     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
13909     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13910   fi
13911 fi
13912 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13913   # Extract the first word of "dlltool", so it can be a program name with args.
13914 set dummy dlltool; ac_word=$2
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13916 $as_echo_n "checking for $ac_word... " >&6; }
13917 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
13918   $as_echo_n "(cached) " >&6
13919 else
13920   case $DLLTOOL_FOR_TARGET in
13921   [\\/]* | ?:[\\/]*)
13922   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
13923   ;;
13924   *)
13925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $gcc_cv_tool_dirs
13927 do
13928   IFS=$as_save_IFS
13929   test -z "$as_dir" && as_dir=.
13930     for ac_exec_ext in '' $ac_executable_extensions; do
13931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13932     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13934     break 2
13935   fi
13936 done
13937   done
13938 IFS=$as_save_IFS
13939
13940   ;;
13941 esac
13942 fi
13943 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
13944 if test -n "$DLLTOOL_FOR_TARGET"; then
13945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13946 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13947 else
13948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949 $as_echo "no" >&6; }
13950 fi
13951
13952
13953 fi
13954 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13955
13956
13957 if test -n "$DLLTOOL_FOR_TARGET"; then
13958   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13959 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13960   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13961 fi
13962
13963 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13964   for ncn_progname in dlltool; do
13965     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13966 set dummy ${ncn_progname}; ac_word=$2
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968 $as_echo_n "checking for $ac_word... " >&6; }
13969 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13970   $as_echo_n "(cached) " >&6
13971 else
13972   if test -n "$DLLTOOL_FOR_TARGET"; then
13973   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13974 else
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13977 do
13978   IFS=$as_save_IFS
13979   test -z "$as_dir" && as_dir=.
13980     for ac_exec_ext in '' $ac_executable_extensions; do
13981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13982     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
13983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13984     break 2
13985   fi
13986 done
13987   done
13988 IFS=$as_save_IFS
13989
13990 fi
13991 fi
13992 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13993 if test -n "$DLLTOOL_FOR_TARGET"; then
13994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13995 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13996 else
13997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998 $as_echo "no" >&6; }
13999 fi
14000
14001
14002   done
14003 fi
14004
14005 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14006   for ncn_progname in dlltool; do
14007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14008 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14009     if test -x $with_build_time_tools/${ncn_progname}; then
14010       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14011       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14012 $as_echo "yes" >&6; }
14013       break
14014     else
14015       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14017     fi
14018   done
14019 fi
14020
14021 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14022   for ncn_progname in dlltool; do
14023     if test -n "$ncn_target_tool_prefix"; then
14024       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14025 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14027 $as_echo_n "checking for $ac_word... " >&6; }
14028 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14029   $as_echo_n "(cached) " >&6
14030 else
14031   if test -n "$DLLTOOL_FOR_TARGET"; then
14032   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14033 else
14034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035 for as_dir in $PATH
14036 do
14037   IFS=$as_save_IFS
14038   test -z "$as_dir" && as_dir=.
14039     for ac_exec_ext in '' $ac_executable_extensions; do
14040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14041     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14043     break 2
14044   fi
14045 done
14046   done
14047 IFS=$as_save_IFS
14048
14049 fi
14050 fi
14051 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14052 if test -n "$DLLTOOL_FOR_TARGET"; then
14053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14054 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14055 else
14056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057 $as_echo "no" >&6; }
14058 fi
14059
14060
14061     fi
14062     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14063       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14064 set dummy ${ncn_progname}; ac_word=$2
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14066 $as_echo_n "checking for $ac_word... " >&6; }
14067 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14068   $as_echo_n "(cached) " >&6
14069 else
14070   if test -n "$DLLTOOL_FOR_TARGET"; then
14071   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14072 else
14073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14074 for as_dir in $PATH
14075 do
14076   IFS=$as_save_IFS
14077   test -z "$as_dir" && as_dir=.
14078     for ac_exec_ext in '' $ac_executable_extensions; do
14079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14080     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14082     break 2
14083   fi
14084 done
14085   done
14086 IFS=$as_save_IFS
14087
14088 fi
14089 fi
14090 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14091 if test -n "$DLLTOOL_FOR_TARGET"; then
14092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14093 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14094 else
14095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14096 $as_echo "no" >&6; }
14097 fi
14098
14099
14100     fi
14101     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14102   done
14103 fi
14104
14105 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14106   set dummy dlltool
14107   if test $build = $target ; then
14108     DLLTOOL_FOR_TARGET="$2"
14109   else
14110     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14111   fi
14112 else
14113   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14114 fi
14115
14116 else
14117   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14118 fi
14119
14120
14121
14122
14123 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14124   if test -n "$with_build_time_tools"; then
14125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14126 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14127     if test -x $with_build_time_tools/ld; then
14128       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14129       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14131 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14132     else
14133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14135     fi
14136   elif test $build != $host && test $have_gcc_for_target = yes; then
14137     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14138     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14139     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14140   fi
14141 fi
14142 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14143   # Extract the first word of "ld", so it can be a program name with args.
14144 set dummy ld; ac_word=$2
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14146 $as_echo_n "checking for $ac_word... " >&6; }
14147 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14148   $as_echo_n "(cached) " >&6
14149 else
14150   case $LD_FOR_TARGET in
14151   [\\/]* | ?:[\\/]*)
14152   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14153   ;;
14154   *)
14155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156 for as_dir in $gcc_cv_tool_dirs
14157 do
14158   IFS=$as_save_IFS
14159   test -z "$as_dir" && as_dir=.
14160     for ac_exec_ext in '' $ac_executable_extensions; do
14161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14162     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14164     break 2
14165   fi
14166 done
14167   done
14168 IFS=$as_save_IFS
14169
14170   ;;
14171 esac
14172 fi
14173 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14174 if test -n "$LD_FOR_TARGET"; then
14175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14176 $as_echo "$LD_FOR_TARGET" >&6; }
14177 else
14178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179 $as_echo "no" >&6; }
14180 fi
14181
14182
14183 fi
14184 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14185
14186
14187 if test -n "$LD_FOR_TARGET"; then
14188   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14189 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14190   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14191 fi
14192
14193 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14194   for ncn_progname in ld; do
14195     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14196 set dummy ${ncn_progname}; ac_word=$2
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14198 $as_echo_n "checking for $ac_word... " >&6; }
14199 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14200   $as_echo_n "(cached) " >&6
14201 else
14202   if test -n "$LD_FOR_TARGET"; then
14203   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14204 else
14205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14206 for as_dir in $PATH
14207 do
14208   IFS=$as_save_IFS
14209   test -z "$as_dir" && as_dir=.
14210     for ac_exec_ext in '' $ac_executable_extensions; do
14211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14212     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14214     break 2
14215   fi
14216 done
14217   done
14218 IFS=$as_save_IFS
14219
14220 fi
14221 fi
14222 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14223 if test -n "$LD_FOR_TARGET"; then
14224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14225 $as_echo "$LD_FOR_TARGET" >&6; }
14226 else
14227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14228 $as_echo "no" >&6; }
14229 fi
14230
14231
14232   done
14233 fi
14234
14235 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14236   for ncn_progname in ld; do
14237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14238 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14239     if test -x $with_build_time_tools/${ncn_progname}; then
14240       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14241       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14242 $as_echo "yes" >&6; }
14243       break
14244     else
14245       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14246 $as_echo "no" >&6; }
14247     fi
14248   done
14249 fi
14250
14251 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14252   for ncn_progname in ld; do
14253     if test -n "$ncn_target_tool_prefix"; then
14254       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14255 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14257 $as_echo_n "checking for $ac_word... " >&6; }
14258 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14259   $as_echo_n "(cached) " >&6
14260 else
14261   if test -n "$LD_FOR_TARGET"; then
14262   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14263 else
14264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14265 for as_dir in $PATH
14266 do
14267   IFS=$as_save_IFS
14268   test -z "$as_dir" && as_dir=.
14269     for ac_exec_ext in '' $ac_executable_extensions; do
14270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14271     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14273     break 2
14274   fi
14275 done
14276   done
14277 IFS=$as_save_IFS
14278
14279 fi
14280 fi
14281 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14282 if test -n "$LD_FOR_TARGET"; then
14283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14284 $as_echo "$LD_FOR_TARGET" >&6; }
14285 else
14286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14287 $as_echo "no" >&6; }
14288 fi
14289
14290
14291     fi
14292     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14293       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14294 set dummy ${ncn_progname}; ac_word=$2
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14296 $as_echo_n "checking for $ac_word... " >&6; }
14297 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14298   $as_echo_n "(cached) " >&6
14299 else
14300   if test -n "$LD_FOR_TARGET"; then
14301   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14302 else
14303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14304 for as_dir in $PATH
14305 do
14306   IFS=$as_save_IFS
14307   test -z "$as_dir" && as_dir=.
14308     for ac_exec_ext in '' $ac_executable_extensions; do
14309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14310     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14312     break 2
14313   fi
14314 done
14315   done
14316 IFS=$as_save_IFS
14317
14318 fi
14319 fi
14320 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14321 if test -n "$LD_FOR_TARGET"; then
14322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14323 $as_echo "$LD_FOR_TARGET" >&6; }
14324 else
14325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14326 $as_echo "no" >&6; }
14327 fi
14328
14329
14330     fi
14331     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14332   done
14333 fi
14334
14335 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14336   set dummy ld
14337   if test $build = $target ; then
14338     LD_FOR_TARGET="$2"
14339   else
14340     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14341   fi
14342 else
14343   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14344 fi
14345
14346 else
14347   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14348 fi
14349
14350
14351
14352
14353 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14354   if test -n "$with_build_time_tools"; then
14355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14356 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14357     if test -x $with_build_time_tools/lipo; then
14358       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14359       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14360       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14361 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14362     else
14363       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14364 $as_echo "no" >&6; }
14365     fi
14366   elif test $build != $host && test $have_gcc_for_target = yes; then
14367     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14368     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14369     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14370   fi
14371 fi
14372 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14373   # Extract the first word of "lipo", so it can be a program name with args.
14374 set dummy lipo; ac_word=$2
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14376 $as_echo_n "checking for $ac_word... " >&6; }
14377 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14378   $as_echo_n "(cached) " >&6
14379 else
14380   case $LIPO_FOR_TARGET in
14381   [\\/]* | ?:[\\/]*)
14382   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14383   ;;
14384   *)
14385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14386 for as_dir in $gcc_cv_tool_dirs
14387 do
14388   IFS=$as_save_IFS
14389   test -z "$as_dir" && as_dir=.
14390     for ac_exec_ext in '' $ac_executable_extensions; do
14391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14392     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14394     break 2
14395   fi
14396 done
14397   done
14398 IFS=$as_save_IFS
14399
14400   ;;
14401 esac
14402 fi
14403 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14404 if test -n "$LIPO_FOR_TARGET"; then
14405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14406 $as_echo "$LIPO_FOR_TARGET" >&6; }
14407 else
14408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14409 $as_echo "no" >&6; }
14410 fi
14411
14412
14413 fi
14414 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14415
14416
14417 if test -n "$LIPO_FOR_TARGET"; then
14418   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14419 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14420   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14421 fi
14422
14423 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14424   for ncn_progname in lipo; do
14425     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14426 set dummy ${ncn_progname}; ac_word=$2
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14428 $as_echo_n "checking for $ac_word... " >&6; }
14429 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14430   $as_echo_n "(cached) " >&6
14431 else
14432   if test -n "$LIPO_FOR_TARGET"; then
14433   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14434 else
14435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14436 for as_dir in $PATH
14437 do
14438   IFS=$as_save_IFS
14439   test -z "$as_dir" && as_dir=.
14440     for ac_exec_ext in '' $ac_executable_extensions; do
14441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14442     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14444     break 2
14445   fi
14446 done
14447   done
14448 IFS=$as_save_IFS
14449
14450 fi
14451 fi
14452 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14453 if test -n "$LIPO_FOR_TARGET"; then
14454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14455 $as_echo "$LIPO_FOR_TARGET" >&6; }
14456 else
14457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14458 $as_echo "no" >&6; }
14459 fi
14460
14461
14462   done
14463 fi
14464
14465 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14466   for ncn_progname in lipo; do
14467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14468 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14469     if test -x $with_build_time_tools/${ncn_progname}; then
14470       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14471       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14472 $as_echo "yes" >&6; }
14473       break
14474     else
14475       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476 $as_echo "no" >&6; }
14477     fi
14478   done
14479 fi
14480
14481 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14482   for ncn_progname in lipo; do
14483     if test -n "$ncn_target_tool_prefix"; then
14484       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14485 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14487 $as_echo_n "checking for $ac_word... " >&6; }
14488 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14489   $as_echo_n "(cached) " >&6
14490 else
14491   if test -n "$LIPO_FOR_TARGET"; then
14492   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14493 else
14494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14495 for as_dir in $PATH
14496 do
14497   IFS=$as_save_IFS
14498   test -z "$as_dir" && as_dir=.
14499     for ac_exec_ext in '' $ac_executable_extensions; do
14500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14501     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14503     break 2
14504   fi
14505 done
14506   done
14507 IFS=$as_save_IFS
14508
14509 fi
14510 fi
14511 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14512 if test -n "$LIPO_FOR_TARGET"; then
14513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14514 $as_echo "$LIPO_FOR_TARGET" >&6; }
14515 else
14516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517 $as_echo "no" >&6; }
14518 fi
14519
14520
14521     fi
14522     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14523       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14524 set dummy ${ncn_progname}; ac_word=$2
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14526 $as_echo_n "checking for $ac_word... " >&6; }
14527 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14528   $as_echo_n "(cached) " >&6
14529 else
14530   if test -n "$LIPO_FOR_TARGET"; then
14531   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14532 else
14533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534 for as_dir in $PATH
14535 do
14536   IFS=$as_save_IFS
14537   test -z "$as_dir" && as_dir=.
14538     for ac_exec_ext in '' $ac_executable_extensions; do
14539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14540     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14542     break 2
14543   fi
14544 done
14545   done
14546 IFS=$as_save_IFS
14547
14548 fi
14549 fi
14550 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14551 if test -n "$LIPO_FOR_TARGET"; then
14552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14553 $as_echo "$LIPO_FOR_TARGET" >&6; }
14554 else
14555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14556 $as_echo "no" >&6; }
14557 fi
14558
14559
14560     fi
14561     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14562   done
14563 fi
14564
14565 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14566   set dummy lipo
14567   if test $build = $target ; then
14568     LIPO_FOR_TARGET="$2"
14569   else
14570     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14571   fi
14572 else
14573   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
14574 fi
14575
14576 else
14577   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14578 fi
14579
14580
14581
14582
14583 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14584   if test -n "$with_build_time_tools"; then
14585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14586 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
14587     if test -x $with_build_time_tools/nm; then
14588       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14589       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14590       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14591 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
14592     else
14593       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14594 $as_echo "no" >&6; }
14595     fi
14596   elif test $build != $host && test $have_gcc_for_target = yes; then
14597     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
14598     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14599     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14600   fi
14601 fi
14602 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14603   # Extract the first word of "nm", so it can be a program name with args.
14604 set dummy nm; ac_word=$2
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14606 $as_echo_n "checking for $ac_word... " >&6; }
14607 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
14608   $as_echo_n "(cached) " >&6
14609 else
14610   case $NM_FOR_TARGET in
14611   [\\/]* | ?:[\\/]*)
14612   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
14613   ;;
14614   *)
14615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616 for as_dir in $gcc_cv_tool_dirs
14617 do
14618   IFS=$as_save_IFS
14619   test -z "$as_dir" && as_dir=.
14620     for ac_exec_ext in '' $ac_executable_extensions; do
14621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14622     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14624     break 2
14625   fi
14626 done
14627   done
14628 IFS=$as_save_IFS
14629
14630   ;;
14631 esac
14632 fi
14633 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14634 if test -n "$NM_FOR_TARGET"; then
14635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14636 $as_echo "$NM_FOR_TARGET" >&6; }
14637 else
14638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14639 $as_echo "no" >&6; }
14640 fi
14641
14642
14643 fi
14644 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14645
14646
14647 if test -n "$NM_FOR_TARGET"; then
14648   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
14649 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14650   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14651 fi
14652
14653 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14654   for ncn_progname in nm; do
14655     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14656 set dummy ${ncn_progname}; ac_word=$2
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14658 $as_echo_n "checking for $ac_word... " >&6; }
14659 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14660   $as_echo_n "(cached) " >&6
14661 else
14662   if test -n "$NM_FOR_TARGET"; then
14663   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14664 else
14665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14666 for as_dir in $PATH
14667 do
14668   IFS=$as_save_IFS
14669   test -z "$as_dir" && as_dir=.
14670     for ac_exec_ext in '' $ac_executable_extensions; do
14671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14672     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14674     break 2
14675   fi
14676 done
14677   done
14678 IFS=$as_save_IFS
14679
14680 fi
14681 fi
14682 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14683 if test -n "$NM_FOR_TARGET"; then
14684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14685 $as_echo "$NM_FOR_TARGET" >&6; }
14686 else
14687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14688 $as_echo "no" >&6; }
14689 fi
14690
14691
14692   done
14693 fi
14694
14695 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
14696   for ncn_progname in nm; do
14697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14698 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14699     if test -x $with_build_time_tools/${ncn_progname}; then
14700       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14701       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14702 $as_echo "yes" >&6; }
14703       break
14704     else
14705       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706 $as_echo "no" >&6; }
14707     fi
14708   done
14709 fi
14710
14711 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
14712   for ncn_progname in nm; do
14713     if test -n "$ncn_target_tool_prefix"; then
14714       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14715 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14717 $as_echo_n "checking for $ac_word... " >&6; }
14718 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14719   $as_echo_n "(cached) " >&6
14720 else
14721   if test -n "$NM_FOR_TARGET"; then
14722   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14723 else
14724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14725 for as_dir in $PATH
14726 do
14727   IFS=$as_save_IFS
14728   test -z "$as_dir" && as_dir=.
14729     for ac_exec_ext in '' $ac_executable_extensions; do
14730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14731     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14733     break 2
14734   fi
14735 done
14736   done
14737 IFS=$as_save_IFS
14738
14739 fi
14740 fi
14741 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14742 if test -n "$NM_FOR_TARGET"; then
14743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14744 $as_echo "$NM_FOR_TARGET" >&6; }
14745 else
14746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747 $as_echo "no" >&6; }
14748 fi
14749
14750
14751     fi
14752     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
14753       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14754 set dummy ${ncn_progname}; ac_word=$2
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14756 $as_echo_n "checking for $ac_word... " >&6; }
14757 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14758   $as_echo_n "(cached) " >&6
14759 else
14760   if test -n "$NM_FOR_TARGET"; then
14761   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14762 else
14763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14764 for as_dir in $PATH
14765 do
14766   IFS=$as_save_IFS
14767   test -z "$as_dir" && as_dir=.
14768     for ac_exec_ext in '' $ac_executable_extensions; do
14769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14770     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14772     break 2
14773   fi
14774 done
14775   done
14776 IFS=$as_save_IFS
14777
14778 fi
14779 fi
14780 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14781 if test -n "$NM_FOR_TARGET"; then
14782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14783 $as_echo "$NM_FOR_TARGET" >&6; }
14784 else
14785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786 $as_echo "no" >&6; }
14787 fi
14788
14789
14790     fi
14791     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
14792   done
14793 fi
14794
14795 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
14796   set dummy nm
14797   if test $build = $target ; then
14798     NM_FOR_TARGET="$2"
14799   else
14800     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
14801   fi
14802 else
14803   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
14804 fi
14805
14806 else
14807   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14808 fi
14809
14810
14811
14812
14813 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14814   if test -n "$with_build_time_tools"; then
14815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
14816 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
14817     if test -x $with_build_time_tools/objcopy; then
14818       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
14819       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14820       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
14821 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
14822     else
14823       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14824 $as_echo "no" >&6; }
14825     fi
14826   elif test $build != $host && test $have_gcc_for_target = yes; then
14827     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
14828     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
14829     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14830   fi
14831 fi
14832 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14833   # Extract the first word of "objcopy", so it can be a program name with args.
14834 set dummy objcopy; ac_word=$2
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14836 $as_echo_n "checking for $ac_word... " >&6; }
14837 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
14838   $as_echo_n "(cached) " >&6
14839 else
14840   case $OBJCOPY_FOR_TARGET in
14841   [\\/]* | ?:[\\/]*)
14842   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
14843   ;;
14844   *)
14845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14846 for as_dir in $gcc_cv_tool_dirs
14847 do
14848   IFS=$as_save_IFS
14849   test -z "$as_dir" && as_dir=.
14850     for ac_exec_ext in '' $ac_executable_extensions; do
14851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14852     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14854     break 2
14855   fi
14856 done
14857   done
14858 IFS=$as_save_IFS
14859
14860   ;;
14861 esac
14862 fi
14863 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14864 if test -n "$OBJCOPY_FOR_TARGET"; then
14865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14866 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14867 else
14868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869 $as_echo "no" >&6; }
14870 fi
14871
14872
14873 fi
14874 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14875
14876
14877 if test -n "$OBJCOPY_FOR_TARGET"; then
14878   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14879 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14880   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14881 fi
14882
14883 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14884   for ncn_progname in objcopy; do
14885     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14886 set dummy ${ncn_progname}; ac_word=$2
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14888 $as_echo_n "checking for $ac_word... " >&6; }
14889 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14890   $as_echo_n "(cached) " >&6
14891 else
14892   if test -n "$OBJCOPY_FOR_TARGET"; then
14893   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14894 else
14895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14896 for as_dir in $PATH
14897 do
14898   IFS=$as_save_IFS
14899   test -z "$as_dir" && as_dir=.
14900     for ac_exec_ext in '' $ac_executable_extensions; do
14901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14902     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14904     break 2
14905   fi
14906 done
14907   done
14908 IFS=$as_save_IFS
14909
14910 fi
14911 fi
14912 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14913 if test -n "$OBJCOPY_FOR_TARGET"; then
14914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14915 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14916 else
14917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14918 $as_echo "no" >&6; }
14919 fi
14920
14921
14922   done
14923 fi
14924
14925 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
14926   for ncn_progname in objcopy; do
14927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14928 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14929     if test -x $with_build_time_tools/${ncn_progname}; then
14930       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14931       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14932 $as_echo "yes" >&6; }
14933       break
14934     else
14935       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14936 $as_echo "no" >&6; }
14937     fi
14938   done
14939 fi
14940
14941 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14942   for ncn_progname in objcopy; do
14943     if test -n "$ncn_target_tool_prefix"; then
14944       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14945 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14947 $as_echo_n "checking for $ac_word... " >&6; }
14948 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14949   $as_echo_n "(cached) " >&6
14950 else
14951   if test -n "$OBJCOPY_FOR_TARGET"; then
14952   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14953 else
14954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14955 for as_dir in $PATH
14956 do
14957   IFS=$as_save_IFS
14958   test -z "$as_dir" && as_dir=.
14959     for ac_exec_ext in '' $ac_executable_extensions; do
14960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14961     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14963     break 2
14964   fi
14965 done
14966   done
14967 IFS=$as_save_IFS
14968
14969 fi
14970 fi
14971 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14972 if test -n "$OBJCOPY_FOR_TARGET"; then
14973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14974 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14975 else
14976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14977 $as_echo "no" >&6; }
14978 fi
14979
14980
14981     fi
14982     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
14983       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14984 set dummy ${ncn_progname}; ac_word=$2
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14986 $as_echo_n "checking for $ac_word... " >&6; }
14987 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14988   $as_echo_n "(cached) " >&6
14989 else
14990   if test -n "$OBJCOPY_FOR_TARGET"; then
14991   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14992 else
14993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14994 for as_dir in $PATH
14995 do
14996   IFS=$as_save_IFS
14997   test -z "$as_dir" && as_dir=.
14998     for ac_exec_ext in '' $ac_executable_extensions; do
14999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15000     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15002     break 2
15003   fi
15004 done
15005   done
15006 IFS=$as_save_IFS
15007
15008 fi
15009 fi
15010 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15011 if test -n "$OBJCOPY_FOR_TARGET"; then
15012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15013 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15014 else
15015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15016 $as_echo "no" >&6; }
15017 fi
15018
15019
15020     fi
15021     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15022   done
15023 fi
15024
15025 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15026   set dummy objcopy
15027   if test $build = $target ; then
15028     OBJCOPY_FOR_TARGET="$2"
15029   else
15030     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15031   fi
15032 else
15033   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15034 fi
15035
15036 else
15037   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15038 fi
15039
15040
15041
15042
15043 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15044   if test -n "$with_build_time_tools"; then
15045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15046 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15047     if test -x $with_build_time_tools/objdump; then
15048       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15049       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15050       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15051 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15052     else
15053       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 $as_echo "no" >&6; }
15055     fi
15056   elif test $build != $host && test $have_gcc_for_target = yes; then
15057     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15058     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15059     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15060   fi
15061 fi
15062 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15063   # Extract the first word of "objdump", so it can be a program name with args.
15064 set dummy objdump; ac_word=$2
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15066 $as_echo_n "checking for $ac_word... " >&6; }
15067 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15068   $as_echo_n "(cached) " >&6
15069 else
15070   case $OBJDUMP_FOR_TARGET in
15071   [\\/]* | ?:[\\/]*)
15072   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15073   ;;
15074   *)
15075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15076 for as_dir in $gcc_cv_tool_dirs
15077 do
15078   IFS=$as_save_IFS
15079   test -z "$as_dir" && as_dir=.
15080     for ac_exec_ext in '' $ac_executable_extensions; do
15081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15082     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15084     break 2
15085   fi
15086 done
15087   done
15088 IFS=$as_save_IFS
15089
15090   ;;
15091 esac
15092 fi
15093 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15094 if test -n "$OBJDUMP_FOR_TARGET"; then
15095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15096 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15097 else
15098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15099 $as_echo "no" >&6; }
15100 fi
15101
15102
15103 fi
15104 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15105
15106
15107 if test -n "$OBJDUMP_FOR_TARGET"; then
15108   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15109 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15110   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15111 fi
15112
15113 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15114   for ncn_progname in objdump; do
15115     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15116 set dummy ${ncn_progname}; ac_word=$2
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15118 $as_echo_n "checking for $ac_word... " >&6; }
15119 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15120   $as_echo_n "(cached) " >&6
15121 else
15122   if test -n "$OBJDUMP_FOR_TARGET"; then
15123   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15124 else
15125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15126 for as_dir in $PATH
15127 do
15128   IFS=$as_save_IFS
15129   test -z "$as_dir" && as_dir=.
15130     for ac_exec_ext in '' $ac_executable_extensions; do
15131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15132     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15134     break 2
15135   fi
15136 done
15137   done
15138 IFS=$as_save_IFS
15139
15140 fi
15141 fi
15142 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15143 if test -n "$OBJDUMP_FOR_TARGET"; then
15144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15145 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15146 else
15147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15148 $as_echo "no" >&6; }
15149 fi
15150
15151
15152   done
15153 fi
15154
15155 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15156   for ncn_progname in objdump; do
15157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15158 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15159     if test -x $with_build_time_tools/${ncn_progname}; then
15160       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15161       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15162 $as_echo "yes" >&6; }
15163       break
15164     else
15165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15166 $as_echo "no" >&6; }
15167     fi
15168   done
15169 fi
15170
15171 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15172   for ncn_progname in objdump; do
15173     if test -n "$ncn_target_tool_prefix"; then
15174       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15175 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15177 $as_echo_n "checking for $ac_word... " >&6; }
15178 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15179   $as_echo_n "(cached) " >&6
15180 else
15181   if test -n "$OBJDUMP_FOR_TARGET"; then
15182   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15183 else
15184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15185 for as_dir in $PATH
15186 do
15187   IFS=$as_save_IFS
15188   test -z "$as_dir" && as_dir=.
15189     for ac_exec_ext in '' $ac_executable_extensions; do
15190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15191     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15193     break 2
15194   fi
15195 done
15196   done
15197 IFS=$as_save_IFS
15198
15199 fi
15200 fi
15201 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15202 if test -n "$OBJDUMP_FOR_TARGET"; then
15203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15204 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15205 else
15206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15207 $as_echo "no" >&6; }
15208 fi
15209
15210
15211     fi
15212     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15213       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15214 set dummy ${ncn_progname}; ac_word=$2
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15216 $as_echo_n "checking for $ac_word... " >&6; }
15217 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15218   $as_echo_n "(cached) " >&6
15219 else
15220   if test -n "$OBJDUMP_FOR_TARGET"; then
15221   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15222 else
15223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15224 for as_dir in $PATH
15225 do
15226   IFS=$as_save_IFS
15227   test -z "$as_dir" && as_dir=.
15228     for ac_exec_ext in '' $ac_executable_extensions; do
15229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15230     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15232     break 2
15233   fi
15234 done
15235   done
15236 IFS=$as_save_IFS
15237
15238 fi
15239 fi
15240 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15241 if test -n "$OBJDUMP_FOR_TARGET"; then
15242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15243 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15244 else
15245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15246 $as_echo "no" >&6; }
15247 fi
15248
15249
15250     fi
15251     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15252   done
15253 fi
15254
15255 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15256   set dummy objdump
15257   if test $build = $target ; then
15258     OBJDUMP_FOR_TARGET="$2"
15259   else
15260     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15261   fi
15262 else
15263   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15264 fi
15265
15266 else
15267   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15268 fi
15269
15270
15271
15272
15273 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15274   if test -n "$with_build_time_tools"; then
15275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15276 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15277     if test -x $with_build_time_tools/otool; then
15278       OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15279       ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15280       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15281 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15282     else
15283       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15284 $as_echo "no" >&6; }
15285     fi
15286   elif test $build != $host && test $have_gcc_for_target = yes; then
15287     OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15288     test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15289     test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15290   fi
15291 fi
15292 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15293   # Extract the first word of "otool", so it can be a program name with args.
15294 set dummy otool; ac_word=$2
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15296 $as_echo_n "checking for $ac_word... " >&6; }
15297 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15298   $as_echo_n "(cached) " >&6
15299 else
15300   case $OTOOL_FOR_TARGET in
15301   [\\/]* | ?:[\\/]*)
15302   ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15303   ;;
15304   *)
15305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15306 for as_dir in $gcc_cv_tool_dirs
15307 do
15308   IFS=$as_save_IFS
15309   test -z "$as_dir" && as_dir=.
15310     for ac_exec_ext in '' $ac_executable_extensions; do
15311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15312     ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15314     break 2
15315   fi
15316 done
15317   done
15318 IFS=$as_save_IFS
15319
15320   ;;
15321 esac
15322 fi
15323 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15324 if test -n "$OTOOL_FOR_TARGET"; then
15325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15326 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15327 else
15328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15329 $as_echo "no" >&6; }
15330 fi
15331
15332
15333 fi
15334 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15335
15336
15337 if test -n "$OTOOL_FOR_TARGET"; then
15338   ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15339 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15340   OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15341 fi
15342
15343 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15344   for ncn_progname in otool; do
15345     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15346 set dummy ${ncn_progname}; ac_word=$2
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15348 $as_echo_n "checking for $ac_word... " >&6; }
15349 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15350   $as_echo_n "(cached) " >&6
15351 else
15352   if test -n "$OTOOL_FOR_TARGET"; then
15353   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15354 else
15355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15356 for as_dir in $PATH
15357 do
15358   IFS=$as_save_IFS
15359   test -z "$as_dir" && as_dir=.
15360     for ac_exec_ext in '' $ac_executable_extensions; do
15361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15362     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15364     break 2
15365   fi
15366 done
15367   done
15368 IFS=$as_save_IFS
15369
15370 fi
15371 fi
15372 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15373 if test -n "$OTOOL_FOR_TARGET"; then
15374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15375 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15376 else
15377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15378 $as_echo "no" >&6; }
15379 fi
15380
15381
15382   done
15383 fi
15384
15385 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15386   for ncn_progname in otool; do
15387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15388 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15389     if test -x $with_build_time_tools/${ncn_progname}; then
15390       ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15391       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15392 $as_echo "yes" >&6; }
15393       break
15394     else
15395       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15396 $as_echo "no" >&6; }
15397     fi
15398   done
15399 fi
15400
15401 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15402   for ncn_progname in otool; do
15403     if test -n "$ncn_target_tool_prefix"; then
15404       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15405 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15407 $as_echo_n "checking for $ac_word... " >&6; }
15408 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15409   $as_echo_n "(cached) " >&6
15410 else
15411   if test -n "$OTOOL_FOR_TARGET"; then
15412   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15413 else
15414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15415 for as_dir in $PATH
15416 do
15417   IFS=$as_save_IFS
15418   test -z "$as_dir" && as_dir=.
15419     for ac_exec_ext in '' $ac_executable_extensions; do
15420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15421     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15423     break 2
15424   fi
15425 done
15426   done
15427 IFS=$as_save_IFS
15428
15429 fi
15430 fi
15431 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15432 if test -n "$OTOOL_FOR_TARGET"; then
15433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15434 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15435 else
15436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15437 $as_echo "no" >&6; }
15438 fi
15439
15440
15441     fi
15442     if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15443       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15444 set dummy ${ncn_progname}; ac_word=$2
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15446 $as_echo_n "checking for $ac_word... " >&6; }
15447 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15448   $as_echo_n "(cached) " >&6
15449 else
15450   if test -n "$OTOOL_FOR_TARGET"; then
15451   ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15452 else
15453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15454 for as_dir in $PATH
15455 do
15456   IFS=$as_save_IFS
15457   test -z "$as_dir" && as_dir=.
15458     for ac_exec_ext in '' $ac_executable_extensions; do
15459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15460     ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15462     break 2
15463   fi
15464 done
15465   done
15466 IFS=$as_save_IFS
15467
15468 fi
15469 fi
15470 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15471 if test -n "$OTOOL_FOR_TARGET"; then
15472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15473 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15474 else
15475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15476 $as_echo "no" >&6; }
15477 fi
15478
15479
15480     fi
15481     test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15482   done
15483 fi
15484
15485 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15486   set dummy otool
15487   if test $build = $target ; then
15488     OTOOL_FOR_TARGET="$2"
15489   else
15490     OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15491   fi
15492 else
15493   OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15494 fi
15495
15496 else
15497   OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15498 fi
15499
15500
15501
15502
15503 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15504   if test -n "$with_build_time_tools"; then
15505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15506 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
15507     if test -x $with_build_time_tools/ranlib; then
15508       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15509       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15510       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15511 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15512     else
15513       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15514 $as_echo "no" >&6; }
15515     fi
15516   elif test $build != $host && test $have_gcc_for_target = yes; then
15517     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15518     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15519     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15520   fi
15521 fi
15522 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15523   # Extract the first word of "ranlib", so it can be a program name with args.
15524 set dummy ranlib; ac_word=$2
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15526 $as_echo_n "checking for $ac_word... " >&6; }
15527 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
15528   $as_echo_n "(cached) " >&6
15529 else
15530   case $RANLIB_FOR_TARGET in
15531   [\\/]* | ?:[\\/]*)
15532   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15533   ;;
15534   *)
15535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15536 for as_dir in $gcc_cv_tool_dirs
15537 do
15538   IFS=$as_save_IFS
15539   test -z "$as_dir" && as_dir=.
15540     for ac_exec_ext in '' $ac_executable_extensions; do
15541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15542     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15544     break 2
15545   fi
15546 done
15547   done
15548 IFS=$as_save_IFS
15549
15550   ;;
15551 esac
15552 fi
15553 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15554 if test -n "$RANLIB_FOR_TARGET"; then
15555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15556 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15557 else
15558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15559 $as_echo "no" >&6; }
15560 fi
15561
15562
15563 fi
15564 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15565
15566
15567 if test -n "$RANLIB_FOR_TARGET"; then
15568   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15569 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15570   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15571 fi
15572
15573 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15574   for ncn_progname in ranlib; do
15575     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15576 set dummy ${ncn_progname}; ac_word=$2
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15578 $as_echo_n "checking for $ac_word... " >&6; }
15579 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15580   $as_echo_n "(cached) " >&6
15581 else
15582   if test -n "$RANLIB_FOR_TARGET"; then
15583   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15584 else
15585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15586 for as_dir in $PATH
15587 do
15588   IFS=$as_save_IFS
15589   test -z "$as_dir" && as_dir=.
15590     for ac_exec_ext in '' $ac_executable_extensions; do
15591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15592     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15594     break 2
15595   fi
15596 done
15597   done
15598 IFS=$as_save_IFS
15599
15600 fi
15601 fi
15602 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15603 if test -n "$RANLIB_FOR_TARGET"; then
15604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15605 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15606 else
15607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15608 $as_echo "no" >&6; }
15609 fi
15610
15611
15612   done
15613 fi
15614
15615 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
15616   for ncn_progname in ranlib; do
15617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15618 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15619     if test -x $with_build_time_tools/${ncn_progname}; then
15620       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15621       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15622 $as_echo "yes" >&6; }
15623       break
15624     else
15625       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15627     fi
15628   done
15629 fi
15630
15631 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15632   for ncn_progname in ranlib; do
15633     if test -n "$ncn_target_tool_prefix"; then
15634       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15635 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15637 $as_echo_n "checking for $ac_word... " >&6; }
15638 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15639   $as_echo_n "(cached) " >&6
15640 else
15641   if test -n "$RANLIB_FOR_TARGET"; then
15642   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15643 else
15644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15645 for as_dir in $PATH
15646 do
15647   IFS=$as_save_IFS
15648   test -z "$as_dir" && as_dir=.
15649     for ac_exec_ext in '' $ac_executable_extensions; do
15650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15651     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15653     break 2
15654   fi
15655 done
15656   done
15657 IFS=$as_save_IFS
15658
15659 fi
15660 fi
15661 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15662 if test -n "$RANLIB_FOR_TARGET"; then
15663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15664 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15665 else
15666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667 $as_echo "no" >&6; }
15668 fi
15669
15670
15671     fi
15672     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
15673       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15674 set dummy ${ncn_progname}; ac_word=$2
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15676 $as_echo_n "checking for $ac_word... " >&6; }
15677 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15678   $as_echo_n "(cached) " >&6
15679 else
15680   if test -n "$RANLIB_FOR_TARGET"; then
15681   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15682 else
15683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15684 for as_dir in $PATH
15685 do
15686   IFS=$as_save_IFS
15687   test -z "$as_dir" && as_dir=.
15688     for ac_exec_ext in '' $ac_executable_extensions; do
15689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15690     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15692     break 2
15693   fi
15694 done
15695   done
15696 IFS=$as_save_IFS
15697
15698 fi
15699 fi
15700 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15701 if test -n "$RANLIB_FOR_TARGET"; then
15702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15703 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15704 else
15705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15706 $as_echo "no" >&6; }
15707 fi
15708
15709
15710     fi
15711     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
15712   done
15713 fi
15714
15715 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
15716   set dummy ranlib
15717   if test $build = $target ; then
15718     RANLIB_FOR_TARGET="$2"
15719   else
15720     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
15721   fi
15722 else
15723   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
15724 fi
15725
15726 else
15727   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15728 fi
15729
15730
15731
15732
15733 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15734   if test -n "$with_build_time_tools"; then
15735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
15736 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
15737     if test -x $with_build_time_tools/readelf; then
15738       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
15739       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15740       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
15741 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
15742     else
15743       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15744 $as_echo "no" >&6; }
15745     fi
15746   elif test $build != $host && test $have_gcc_for_target = yes; then
15747     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
15748     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
15749     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15750   fi
15751 fi
15752 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15753   # Extract the first word of "readelf", so it can be a program name with args.
15754 set dummy readelf; ac_word=$2
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15756 $as_echo_n "checking for $ac_word... " >&6; }
15757 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
15758   $as_echo_n "(cached) " >&6
15759 else
15760   case $READELF_FOR_TARGET in
15761   [\\/]* | ?:[\\/]*)
15762   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
15763   ;;
15764   *)
15765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15766 for as_dir in $gcc_cv_tool_dirs
15767 do
15768   IFS=$as_save_IFS
15769   test -z "$as_dir" && as_dir=.
15770     for ac_exec_ext in '' $ac_executable_extensions; do
15771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15772     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15774     break 2
15775   fi
15776 done
15777   done
15778 IFS=$as_save_IFS
15779
15780   ;;
15781 esac
15782 fi
15783 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15784 if test -n "$READELF_FOR_TARGET"; then
15785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15786 $as_echo "$READELF_FOR_TARGET" >&6; }
15787 else
15788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15789 $as_echo "no" >&6; }
15790 fi
15791
15792
15793 fi
15794 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15795
15796
15797 if test -n "$READELF_FOR_TARGET"; then
15798   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
15799 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15800   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15801 fi
15802
15803 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15804   for ncn_progname in readelf; do
15805     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15806 set dummy ${ncn_progname}; ac_word=$2
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15808 $as_echo_n "checking for $ac_word... " >&6; }
15809 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15810   $as_echo_n "(cached) " >&6
15811 else
15812   if test -n "$READELF_FOR_TARGET"; then
15813   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15814 else
15815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15816 for as_dir in $PATH
15817 do
15818   IFS=$as_save_IFS
15819   test -z "$as_dir" && as_dir=.
15820     for ac_exec_ext in '' $ac_executable_extensions; do
15821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15822     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15824     break 2
15825   fi
15826 done
15827   done
15828 IFS=$as_save_IFS
15829
15830 fi
15831 fi
15832 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15833 if test -n "$READELF_FOR_TARGET"; then
15834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15835 $as_echo "$READELF_FOR_TARGET" >&6; }
15836 else
15837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15838 $as_echo "no" >&6; }
15839 fi
15840
15841
15842   done
15843 fi
15844
15845 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
15846   for ncn_progname in readelf; do
15847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15848 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15849     if test -x $with_build_time_tools/${ncn_progname}; then
15850       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15851       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15852 $as_echo "yes" >&6; }
15853       break
15854     else
15855       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856 $as_echo "no" >&6; }
15857     fi
15858   done
15859 fi
15860
15861 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
15862   for ncn_progname in readelf; do
15863     if test -n "$ncn_target_tool_prefix"; then
15864       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15865 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15867 $as_echo_n "checking for $ac_word... " >&6; }
15868 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15869   $as_echo_n "(cached) " >&6
15870 else
15871   if test -n "$READELF_FOR_TARGET"; then
15872   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15873 else
15874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15875 for as_dir in $PATH
15876 do
15877   IFS=$as_save_IFS
15878   test -z "$as_dir" && as_dir=.
15879     for ac_exec_ext in '' $ac_executable_extensions; do
15880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15881     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15883     break 2
15884   fi
15885 done
15886   done
15887 IFS=$as_save_IFS
15888
15889 fi
15890 fi
15891 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15892 if test -n "$READELF_FOR_TARGET"; then
15893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15894 $as_echo "$READELF_FOR_TARGET" >&6; }
15895 else
15896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15897 $as_echo "no" >&6; }
15898 fi
15899
15900
15901     fi
15902     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
15903       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15904 set dummy ${ncn_progname}; ac_word=$2
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15906 $as_echo_n "checking for $ac_word... " >&6; }
15907 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15908   $as_echo_n "(cached) " >&6
15909 else
15910   if test -n "$READELF_FOR_TARGET"; then
15911   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15912 else
15913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914 for as_dir in $PATH
15915 do
15916   IFS=$as_save_IFS
15917   test -z "$as_dir" && as_dir=.
15918     for ac_exec_ext in '' $ac_executable_extensions; do
15919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15920     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15922     break 2
15923   fi
15924 done
15925   done
15926 IFS=$as_save_IFS
15927
15928 fi
15929 fi
15930 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15931 if test -n "$READELF_FOR_TARGET"; then
15932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15933 $as_echo "$READELF_FOR_TARGET" >&6; }
15934 else
15935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15936 $as_echo "no" >&6; }
15937 fi
15938
15939
15940     fi
15941     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
15942   done
15943 fi
15944
15945 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
15946   set dummy readelf
15947   if test $build = $target ; then
15948     READELF_FOR_TARGET="$2"
15949   else
15950     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
15951   fi
15952 else
15953   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
15954 fi
15955
15956 else
15957   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15958 fi
15959
15960
15961
15962
15963 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
15964   if test -n "$with_build_time_tools"; then
15965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
15966 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
15967     if test -x $with_build_time_tools/strip; then
15968       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
15969       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15970       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
15971 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
15972     else
15973       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15974 $as_echo "no" >&6; }
15975     fi
15976   elif test $build != $host && test $have_gcc_for_target = yes; then
15977     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
15978     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
15979     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15980   fi
15981 fi
15982 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15983   # Extract the first word of "strip", so it can be a program name with args.
15984 set dummy strip; ac_word=$2
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15986 $as_echo_n "checking for $ac_word... " >&6; }
15987 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
15988   $as_echo_n "(cached) " >&6
15989 else
15990   case $STRIP_FOR_TARGET in
15991   [\\/]* | ?:[\\/]*)
15992   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
15993   ;;
15994   *)
15995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15996 for as_dir in $gcc_cv_tool_dirs
15997 do
15998   IFS=$as_save_IFS
15999   test -z "$as_dir" && as_dir=.
16000     for ac_exec_ext in '' $ac_executable_extensions; do
16001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16002     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16004     break 2
16005   fi
16006 done
16007   done
16008 IFS=$as_save_IFS
16009
16010   ;;
16011 esac
16012 fi
16013 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16014 if test -n "$STRIP_FOR_TARGET"; then
16015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16016 $as_echo "$STRIP_FOR_TARGET" >&6; }
16017 else
16018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16019 $as_echo "no" >&6; }
16020 fi
16021
16022
16023 fi
16024 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16025
16026
16027 if test -n "$STRIP_FOR_TARGET"; then
16028   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16029 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16030   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16031 fi
16032
16033 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16034   for ncn_progname in strip; do
16035     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16036 set dummy ${ncn_progname}; ac_word=$2
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16038 $as_echo_n "checking for $ac_word... " >&6; }
16039 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16040   $as_echo_n "(cached) " >&6
16041 else
16042   if test -n "$STRIP_FOR_TARGET"; then
16043   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16044 else
16045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16046 for as_dir in $PATH
16047 do
16048   IFS=$as_save_IFS
16049   test -z "$as_dir" && as_dir=.
16050     for ac_exec_ext in '' $ac_executable_extensions; do
16051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16052     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16054     break 2
16055   fi
16056 done
16057   done
16058 IFS=$as_save_IFS
16059
16060 fi
16061 fi
16062 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16063 if test -n "$STRIP_FOR_TARGET"; then
16064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16065 $as_echo "$STRIP_FOR_TARGET" >&6; }
16066 else
16067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16068 $as_echo "no" >&6; }
16069 fi
16070
16071
16072   done
16073 fi
16074
16075 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16076   for ncn_progname in strip; do
16077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16078 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16079     if test -x $with_build_time_tools/${ncn_progname}; then
16080       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16081       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16082 $as_echo "yes" >&6; }
16083       break
16084     else
16085       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16086 $as_echo "no" >&6; }
16087     fi
16088   done
16089 fi
16090
16091 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16092   for ncn_progname in strip; do
16093     if test -n "$ncn_target_tool_prefix"; then
16094       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16095 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16097 $as_echo_n "checking for $ac_word... " >&6; }
16098 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16099   $as_echo_n "(cached) " >&6
16100 else
16101   if test -n "$STRIP_FOR_TARGET"; then
16102   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16103 else
16104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16105 for as_dir in $PATH
16106 do
16107   IFS=$as_save_IFS
16108   test -z "$as_dir" && as_dir=.
16109     for ac_exec_ext in '' $ac_executable_extensions; do
16110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16111     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16113     break 2
16114   fi
16115 done
16116   done
16117 IFS=$as_save_IFS
16118
16119 fi
16120 fi
16121 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16122 if test -n "$STRIP_FOR_TARGET"; then
16123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16124 $as_echo "$STRIP_FOR_TARGET" >&6; }
16125 else
16126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127 $as_echo "no" >&6; }
16128 fi
16129
16130
16131     fi
16132     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16133       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16134 set dummy ${ncn_progname}; ac_word=$2
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16136 $as_echo_n "checking for $ac_word... " >&6; }
16137 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16138   $as_echo_n "(cached) " >&6
16139 else
16140   if test -n "$STRIP_FOR_TARGET"; then
16141   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16142 else
16143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16144 for as_dir in $PATH
16145 do
16146   IFS=$as_save_IFS
16147   test -z "$as_dir" && as_dir=.
16148     for ac_exec_ext in '' $ac_executable_extensions; do
16149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16150     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16152     break 2
16153   fi
16154 done
16155   done
16156 IFS=$as_save_IFS
16157
16158 fi
16159 fi
16160 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16161 if test -n "$STRIP_FOR_TARGET"; then
16162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16163 $as_echo "$STRIP_FOR_TARGET" >&6; }
16164 else
16165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16166 $as_echo "no" >&6; }
16167 fi
16168
16169
16170     fi
16171     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16172   done
16173 fi
16174
16175 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16176   set dummy strip
16177   if test $build = $target ; then
16178     STRIP_FOR_TARGET="$2"
16179   else
16180     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16181   fi
16182 else
16183   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16184 fi
16185
16186 else
16187   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16188 fi
16189
16190
16191
16192
16193 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16194   if test -n "$with_build_time_tools"; then
16195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16196 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16197     if test -x $with_build_time_tools/windres; then
16198       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16199       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16200       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16201 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16202     else
16203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16204 $as_echo "no" >&6; }
16205     fi
16206   elif test $build != $host && test $have_gcc_for_target = yes; then
16207     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16208     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16209     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16210   fi
16211 fi
16212 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16213   # Extract the first word of "windres", so it can be a program name with args.
16214 set dummy windres; ac_word=$2
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16216 $as_echo_n "checking for $ac_word... " >&6; }
16217 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16218   $as_echo_n "(cached) " >&6
16219 else
16220   case $WINDRES_FOR_TARGET in
16221   [\\/]* | ?:[\\/]*)
16222   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16223   ;;
16224   *)
16225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16226 for as_dir in $gcc_cv_tool_dirs
16227 do
16228   IFS=$as_save_IFS
16229   test -z "$as_dir" && as_dir=.
16230     for ac_exec_ext in '' $ac_executable_extensions; do
16231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16232     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16234     break 2
16235   fi
16236 done
16237   done
16238 IFS=$as_save_IFS
16239
16240   ;;
16241 esac
16242 fi
16243 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16244 if test -n "$WINDRES_FOR_TARGET"; then
16245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16246 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16247 else
16248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16249 $as_echo "no" >&6; }
16250 fi
16251
16252
16253 fi
16254 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16255
16256
16257 if test -n "$WINDRES_FOR_TARGET"; then
16258   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16259 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16260   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16261 fi
16262
16263 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16264   for ncn_progname in windres; do
16265     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16266 set dummy ${ncn_progname}; ac_word=$2
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16268 $as_echo_n "checking for $ac_word... " >&6; }
16269 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16270   $as_echo_n "(cached) " >&6
16271 else
16272   if test -n "$WINDRES_FOR_TARGET"; then
16273   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16274 else
16275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16276 for as_dir in $PATH
16277 do
16278   IFS=$as_save_IFS
16279   test -z "$as_dir" && as_dir=.
16280     for ac_exec_ext in '' $ac_executable_extensions; do
16281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16282     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16284     break 2
16285   fi
16286 done
16287   done
16288 IFS=$as_save_IFS
16289
16290 fi
16291 fi
16292 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16293 if test -n "$WINDRES_FOR_TARGET"; then
16294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16295 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16296 else
16297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16298 $as_echo "no" >&6; }
16299 fi
16300
16301
16302   done
16303 fi
16304
16305 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16306   for ncn_progname in windres; do
16307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16308 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16309     if test -x $with_build_time_tools/${ncn_progname}; then
16310       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16312 $as_echo "yes" >&6; }
16313       break
16314     else
16315       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316 $as_echo "no" >&6; }
16317     fi
16318   done
16319 fi
16320
16321 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16322   for ncn_progname in windres; do
16323     if test -n "$ncn_target_tool_prefix"; then
16324       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16325 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16327 $as_echo_n "checking for $ac_word... " >&6; }
16328 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16329   $as_echo_n "(cached) " >&6
16330 else
16331   if test -n "$WINDRES_FOR_TARGET"; then
16332   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16333 else
16334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16335 for as_dir in $PATH
16336 do
16337   IFS=$as_save_IFS
16338   test -z "$as_dir" && as_dir=.
16339     for ac_exec_ext in '' $ac_executable_extensions; do
16340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16341     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16343     break 2
16344   fi
16345 done
16346   done
16347 IFS=$as_save_IFS
16348
16349 fi
16350 fi
16351 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16352 if test -n "$WINDRES_FOR_TARGET"; then
16353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16354 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16355 else
16356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357 $as_echo "no" >&6; }
16358 fi
16359
16360
16361     fi
16362     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16363       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16364 set dummy ${ncn_progname}; ac_word=$2
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16366 $as_echo_n "checking for $ac_word... " >&6; }
16367 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16368   $as_echo_n "(cached) " >&6
16369 else
16370   if test -n "$WINDRES_FOR_TARGET"; then
16371   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16372 else
16373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16374 for as_dir in $PATH
16375 do
16376   IFS=$as_save_IFS
16377   test -z "$as_dir" && as_dir=.
16378     for ac_exec_ext in '' $ac_executable_extensions; do
16379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16380     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16382     break 2
16383   fi
16384 done
16385   done
16386 IFS=$as_save_IFS
16387
16388 fi
16389 fi
16390 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16391 if test -n "$WINDRES_FOR_TARGET"; then
16392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16393 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16394 else
16395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16396 $as_echo "no" >&6; }
16397 fi
16398
16399
16400     fi
16401     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16402   done
16403 fi
16404
16405 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16406   set dummy windres
16407   if test $build = $target ; then
16408     WINDRES_FOR_TARGET="$2"
16409   else
16410     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16411   fi
16412 else
16413   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16414 fi
16415
16416 else
16417   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16418 fi
16419
16420
16421
16422
16423 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16424   if test -n "$with_build_time_tools"; then
16425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16426 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16427     if test -x $with_build_time_tools/windmc; then
16428       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16429       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16430       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16431 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16432     else
16433       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16434 $as_echo "no" >&6; }
16435     fi
16436   elif test $build != $host && test $have_gcc_for_target = yes; then
16437     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16438     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16439     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16440   fi
16441 fi
16442 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16443   # Extract the first word of "windmc", so it can be a program name with args.
16444 set dummy windmc; ac_word=$2
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16446 $as_echo_n "checking for $ac_word... " >&6; }
16447 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16448   $as_echo_n "(cached) " >&6
16449 else
16450   case $WINDMC_FOR_TARGET in
16451   [\\/]* | ?:[\\/]*)
16452   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16453   ;;
16454   *)
16455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16456 for as_dir in $gcc_cv_tool_dirs
16457 do
16458   IFS=$as_save_IFS
16459   test -z "$as_dir" && as_dir=.
16460     for ac_exec_ext in '' $ac_executable_extensions; do
16461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16462     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16464     break 2
16465   fi
16466 done
16467   done
16468 IFS=$as_save_IFS
16469
16470   ;;
16471 esac
16472 fi
16473 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16474 if test -n "$WINDMC_FOR_TARGET"; then
16475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16476 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16477 else
16478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16479 $as_echo "no" >&6; }
16480 fi
16481
16482
16483 fi
16484 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16485
16486
16487 if test -n "$WINDMC_FOR_TARGET"; then
16488   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16489 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16490   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16491 fi
16492
16493 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16494   for ncn_progname in windmc; do
16495     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16496 set dummy ${ncn_progname}; ac_word=$2
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16498 $as_echo_n "checking for $ac_word... " >&6; }
16499 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16500   $as_echo_n "(cached) " >&6
16501 else
16502   if test -n "$WINDMC_FOR_TARGET"; then
16503   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16504 else
16505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16506 for as_dir in $PATH
16507 do
16508   IFS=$as_save_IFS
16509   test -z "$as_dir" && as_dir=.
16510     for ac_exec_ext in '' $ac_executable_extensions; do
16511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16512     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16514     break 2
16515   fi
16516 done
16517   done
16518 IFS=$as_save_IFS
16519
16520 fi
16521 fi
16522 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16523 if test -n "$WINDMC_FOR_TARGET"; then
16524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16525 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16526 else
16527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16528 $as_echo "no" >&6; }
16529 fi
16530
16531
16532   done
16533 fi
16534
16535 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16536   for ncn_progname in windmc; do
16537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16538 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16539     if test -x $with_build_time_tools/${ncn_progname}; then
16540       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16542 $as_echo "yes" >&6; }
16543       break
16544     else
16545       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546 $as_echo "no" >&6; }
16547     fi
16548   done
16549 fi
16550
16551 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16552   for ncn_progname in windmc; do
16553     if test -n "$ncn_target_tool_prefix"; then
16554       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16555 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16557 $as_echo_n "checking for $ac_word... " >&6; }
16558 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16559   $as_echo_n "(cached) " >&6
16560 else
16561   if test -n "$WINDMC_FOR_TARGET"; then
16562   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16563 else
16564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16565 for as_dir in $PATH
16566 do
16567   IFS=$as_save_IFS
16568   test -z "$as_dir" && as_dir=.
16569     for ac_exec_ext in '' $ac_executable_extensions; do
16570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16571     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16573     break 2
16574   fi
16575 done
16576   done
16577 IFS=$as_save_IFS
16578
16579 fi
16580 fi
16581 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16582 if test -n "$WINDMC_FOR_TARGET"; then
16583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16584 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16585 else
16586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16587 $as_echo "no" >&6; }
16588 fi
16589
16590
16591     fi
16592     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16593       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16594 set dummy ${ncn_progname}; ac_word=$2
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16596 $as_echo_n "checking for $ac_word... " >&6; }
16597 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16598   $as_echo_n "(cached) " >&6
16599 else
16600   if test -n "$WINDMC_FOR_TARGET"; then
16601   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16602 else
16603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16604 for as_dir in $PATH
16605 do
16606   IFS=$as_save_IFS
16607   test -z "$as_dir" && as_dir=.
16608     for ac_exec_ext in '' $ac_executable_extensions; do
16609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16610     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16612     break 2
16613   fi
16614 done
16615   done
16616 IFS=$as_save_IFS
16617
16618 fi
16619 fi
16620 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16621 if test -n "$WINDMC_FOR_TARGET"; then
16622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16623 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16624 else
16625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16626 $as_echo "no" >&6; }
16627 fi
16628
16629
16630     fi
16631     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
16632   done
16633 fi
16634
16635 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
16636   set dummy windmc
16637   if test $build = $target ; then
16638     WINDMC_FOR_TARGET="$2"
16639   else
16640     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
16641   fi
16642 else
16643   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
16644 fi
16645
16646 else
16647   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16648 fi
16649
16650
16651 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
16652
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
16654 $as_echo_n "checking where to find the target ar... " >&6; }
16655 if test "x${build}" != "x${host}" ; then
16656   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16657     # We already found the complete path
16658     ac_dir=`dirname $AR_FOR_TARGET`
16659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16660 $as_echo "pre-installed in $ac_dir" >&6; }
16661   else
16662     # Canadian cross, just use what we found
16663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16664 $as_echo "pre-installed" >&6; }
16665   fi
16666 else
16667   ok=yes
16668   case " ${configdirs} " in
16669     *" binutils "*) ;;
16670     *) ok=no ;;
16671   esac
16672
16673   if test $ok = yes; then
16674     # An in-tree tool is available and we can use it
16675     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
16676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16677 $as_echo "just compiled" >&6; }
16678   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16679     # We already found the complete path
16680     ac_dir=`dirname $AR_FOR_TARGET`
16681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16682 $as_echo "pre-installed in $ac_dir" >&6; }
16683   elif test "x$target" = "x$host"; then
16684     # We can use an host tool
16685     AR_FOR_TARGET='$(AR)'
16686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16687 $as_echo "host tool" >&6; }
16688   else
16689     # We need a cross tool
16690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16691 $as_echo "pre-installed" >&6; }
16692   fi
16693 fi
16694
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
16696 $as_echo_n "checking where to find the target as... " >&6; }
16697 if test "x${build}" != "x${host}" ; then
16698   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16699     # We already found the complete path
16700     ac_dir=`dirname $AS_FOR_TARGET`
16701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16702 $as_echo "pre-installed in $ac_dir" >&6; }
16703   else
16704     # Canadian cross, just use what we found
16705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16706 $as_echo "pre-installed" >&6; }
16707   fi
16708 else
16709   ok=yes
16710   case " ${configdirs} " in
16711     *" gas "*) ;;
16712     *) ok=no ;;
16713   esac
16714
16715   if test $ok = yes; then
16716     # An in-tree tool is available and we can use it
16717     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
16718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16719 $as_echo "just compiled" >&6; }
16720   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16721     # We already found the complete path
16722     ac_dir=`dirname $AS_FOR_TARGET`
16723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16724 $as_echo "pre-installed in $ac_dir" >&6; }
16725   elif test "x$target" = "x$host"; then
16726     # We can use an host tool
16727     AS_FOR_TARGET='$(AS)'
16728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16729 $as_echo "host tool" >&6; }
16730   else
16731     # We need a cross tool
16732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16733 $as_echo "pre-installed" >&6; }
16734   fi
16735 fi
16736
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
16738 $as_echo_n "checking where to find the target cc... " >&6; }
16739 if test "x${build}" != "x${host}" ; then
16740   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16741     # We already found the complete path
16742     ac_dir=`dirname $CC_FOR_TARGET`
16743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16744 $as_echo "pre-installed in $ac_dir" >&6; }
16745   else
16746     # Canadian cross, just use what we found
16747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16748 $as_echo "pre-installed" >&6; }
16749   fi
16750 else
16751   ok=yes
16752   case " ${configdirs} " in
16753     *" gcc "*) ;;
16754     *) ok=no ;;
16755   esac
16756
16757   if test $ok = yes; then
16758     # An in-tree tool is available and we can use it
16759     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16761 $as_echo "just compiled" >&6; }
16762   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16763     # We already found the complete path
16764     ac_dir=`dirname $CC_FOR_TARGET`
16765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16766 $as_echo "pre-installed in $ac_dir" >&6; }
16767   elif test "x$target" = "x$host"; then
16768     # We can use an host tool
16769     CC_FOR_TARGET='$(CC)'
16770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16771 $as_echo "host tool" >&6; }
16772   else
16773     # We need a cross tool
16774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16775 $as_echo "pre-installed" >&6; }
16776   fi
16777 fi
16778
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
16780 $as_echo_n "checking where to find the target c++... " >&6; }
16781 if test "x${build}" != "x${host}" ; then
16782   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16783     # We already found the complete path
16784     ac_dir=`dirname $CXX_FOR_TARGET`
16785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16786 $as_echo "pre-installed in $ac_dir" >&6; }
16787   else
16788     # Canadian cross, just use what we found
16789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16790 $as_echo "pre-installed" >&6; }
16791   fi
16792 else
16793   ok=yes
16794   case " ${configdirs} " in
16795     *" gcc "*) ;;
16796     *) ok=no ;;
16797   esac
16798   case ,${enable_languages}, in
16799     *,c++,*) ;;
16800     *) ok=no ;;
16801   esac
16802   if test $ok = yes; then
16803     # An in-tree tool is available and we can use it
16804     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'
16805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16806 $as_echo "just compiled" >&6; }
16807   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16808     # We already found the complete path
16809     ac_dir=`dirname $CXX_FOR_TARGET`
16810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16811 $as_echo "pre-installed in $ac_dir" >&6; }
16812   elif test "x$target" = "x$host"; then
16813     # We can use an host tool
16814     CXX_FOR_TARGET='$(CXX)'
16815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16816 $as_echo "host tool" >&6; }
16817   else
16818     # We need a cross tool
16819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16820 $as_echo "pre-installed" >&6; }
16821   fi
16822 fi
16823
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
16825 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
16826 if test "x${build}" != "x${host}" ; then
16827   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16828     # We already found the complete path
16829     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16831 $as_echo "pre-installed in $ac_dir" >&6; }
16832   else
16833     # Canadian cross, just use what we found
16834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16835 $as_echo "pre-installed" >&6; }
16836   fi
16837 else
16838   ok=yes
16839   case " ${configdirs} " in
16840     *" gcc "*) ;;
16841     *) ok=no ;;
16842   esac
16843   case ,${enable_languages}, in
16844     *,c++,*) ;;
16845     *) ok=no ;;
16846   esac
16847   if test $ok = yes; then
16848     # An in-tree tool is available and we can use it
16849     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'
16850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16851 $as_echo "just compiled" >&6; }
16852   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16853     # We already found the complete path
16854     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16856 $as_echo "pre-installed in $ac_dir" >&6; }
16857   elif test "x$target" = "x$host"; then
16858     # We can use an host tool
16859     RAW_CXX_FOR_TARGET='$(CXX)'
16860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16861 $as_echo "host tool" >&6; }
16862   else
16863     # We need a cross tool
16864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16865 $as_echo "pre-installed" >&6; }
16866   fi
16867 fi
16868
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
16870 $as_echo_n "checking where to find the target dlltool... " >&6; }
16871 if test "x${build}" != "x${host}" ; then
16872   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16873     # We already found the complete path
16874     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16876 $as_echo "pre-installed in $ac_dir" >&6; }
16877   else
16878     # Canadian cross, just use what we found
16879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16880 $as_echo "pre-installed" >&6; }
16881   fi
16882 else
16883   ok=yes
16884   case " ${configdirs} " in
16885     *" binutils "*) ;;
16886     *) ok=no ;;
16887   esac
16888
16889   if test $ok = yes; then
16890     # An in-tree tool is available and we can use it
16891     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
16892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16893 $as_echo "just compiled" >&6; }
16894   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16895     # We already found the complete path
16896     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16898 $as_echo "pre-installed in $ac_dir" >&6; }
16899   elif test "x$target" = "x$host"; then
16900     # We can use an host tool
16901     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
16902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16903 $as_echo "host tool" >&6; }
16904   else
16905     # We need a cross tool
16906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16907 $as_echo "pre-installed" >&6; }
16908   fi
16909 fi
16910
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
16912 $as_echo_n "checking where to find the target gcc... " >&6; }
16913 if test "x${build}" != "x${host}" ; then
16914   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16915     # We already found the complete path
16916     ac_dir=`dirname $GCC_FOR_TARGET`
16917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16918 $as_echo "pre-installed in $ac_dir" >&6; }
16919   else
16920     # Canadian cross, just use what we found
16921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16922 $as_echo "pre-installed" >&6; }
16923   fi
16924 else
16925   ok=yes
16926   case " ${configdirs} " in
16927     *" gcc "*) ;;
16928     *) ok=no ;;
16929   esac
16930
16931   if test $ok = yes; then
16932     # An in-tree tool is available and we can use it
16933     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16935 $as_echo "just compiled" >&6; }
16936   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16937     # We already found the complete path
16938     ac_dir=`dirname $GCC_FOR_TARGET`
16939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16940 $as_echo "pre-installed in $ac_dir" >&6; }
16941   elif test "x$target" = "x$host"; then
16942     # We can use an host tool
16943     GCC_FOR_TARGET='$()'
16944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16945 $as_echo "host tool" >&6; }
16946   else
16947     # We need a cross tool
16948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16949 $as_echo "pre-installed" >&6; }
16950   fi
16951 fi
16952
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
16954 $as_echo_n "checking where to find the target gfortran... " >&6; }
16955 if test "x${build}" != "x${host}" ; then
16956   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16957     # We already found the complete path
16958     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
16959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16960 $as_echo "pre-installed in $ac_dir" >&6; }
16961   else
16962     # Canadian cross, just use what we found
16963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16964 $as_echo "pre-installed" >&6; }
16965   fi
16966 else
16967   ok=yes
16968   case " ${configdirs} " in
16969     *" gcc "*) ;;
16970     *) ok=no ;;
16971   esac
16972   case ,${enable_languages}, in
16973     *,fortran,*) ;;
16974     *) ok=no ;;
16975   esac
16976   if test $ok = yes; then
16977     # An in-tree tool is available and we can use it
16978     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
16979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16980 $as_echo "just compiled" >&6; }
16981   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16982     # We already found the complete path
16983     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
16984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16985 $as_echo "pre-installed in $ac_dir" >&6; }
16986   elif test "x$target" = "x$host"; then
16987     # We can use an host tool
16988     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
16989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16990 $as_echo "host tool" >&6; }
16991   else
16992     # We need a cross tool
16993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16994 $as_echo "pre-installed" >&6; }
16995   fi
16996 fi
16997
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
16999 $as_echo_n "checking where to find the target gccgo... " >&6; }
17000 if test "x${build}" != "x${host}" ; then
17001   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17002     # We already found the complete path
17003     ac_dir=`dirname $GOC_FOR_TARGET`
17004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17005 $as_echo "pre-installed in $ac_dir" >&6; }
17006   else
17007     # Canadian cross, just use what we found
17008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17009 $as_echo "pre-installed" >&6; }
17010   fi
17011 else
17012   ok=yes
17013   case " ${configdirs} " in
17014     *" gcc "*) ;;
17015     *) ok=no ;;
17016   esac
17017   case ,${enable_languages}, in
17018     *,go,*) ;;
17019     *) ok=no ;;
17020   esac
17021   if test $ok = yes; then
17022     # An in-tree tool is available and we can use it
17023     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17025 $as_echo "just compiled" >&6; }
17026   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17027     # We already found the complete path
17028     ac_dir=`dirname $GOC_FOR_TARGET`
17029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17030 $as_echo "pre-installed in $ac_dir" >&6; }
17031   elif test "x$target" = "x$host"; then
17032     # We can use an host tool
17033     GOC_FOR_TARGET='$(GOC)'
17034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17035 $as_echo "host tool" >&6; }
17036   else
17037     # We need a cross tool
17038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17039 $as_echo "pre-installed" >&6; }
17040   fi
17041 fi
17042
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17044 $as_echo_n "checking where to find the target gdc... " >&6; }
17045 if test "x${build}" != "x${host}" ; then
17046   if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17047     # We already found the complete path
17048     ac_dir=`dirname $GDC_FOR_TARGET`
17049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17050 $as_echo "pre-installed in $ac_dir" >&6; }
17051   else
17052     # Canadian cross, just use what we found
17053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17054 $as_echo "pre-installed" >&6; }
17055   fi
17056 else
17057   ok=yes
17058   case " ${configdirs} " in
17059     *" gcc "*) ;;
17060     *) ok=no ;;
17061   esac
17062   case ,${enable_languages}, in
17063     *,d,*) ;;
17064     *) ok=no ;;
17065   esac
17066   if test $ok = yes; then
17067     # An in-tree tool is available and we can use it
17068     GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17070 $as_echo "just compiled" >&6; }
17071   elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17072     # We already found the complete path
17073     ac_dir=`dirname $GDC_FOR_TARGET`
17074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17075 $as_echo "pre-installed in $ac_dir" >&6; }
17076   elif test "x$target" = "x$host"; then
17077     # We can use an host tool
17078     GDC_FOR_TARGET='$(GDC)'
17079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17080 $as_echo "host tool" >&6; }
17081   else
17082     # We need a cross tool
17083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17084 $as_echo "pre-installed" >&6; }
17085   fi
17086 fi
17087
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17089 $as_echo_n "checking where to find the target ld... " >&6; }
17090 if test "x${build}" != "x${host}" ; then
17091   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17092     # We already found the complete path
17093     ac_dir=`dirname $LD_FOR_TARGET`
17094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17095 $as_echo "pre-installed in $ac_dir" >&6; }
17096   else
17097     # Canadian cross, just use what we found
17098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17099 $as_echo "pre-installed" >&6; }
17100   fi
17101 else
17102   ok=yes
17103   case " ${configdirs} " in
17104     *" ld "*) ;;
17105     *) ok=no ;;
17106   esac
17107
17108   if test $ok = yes; then
17109     # An in-tree tool is available and we can use it
17110     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17112 $as_echo "just compiled" >&6; }
17113   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17114     # We already found the complete path
17115     ac_dir=`dirname $LD_FOR_TARGET`
17116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17117 $as_echo "pre-installed in $ac_dir" >&6; }
17118   elif test "x$target" = "x$host"; then
17119     # We can use an host tool
17120     LD_FOR_TARGET='$(LD)'
17121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17122 $as_echo "host tool" >&6; }
17123   else
17124     # We need a cross tool
17125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17126 $as_echo "pre-installed" >&6; }
17127   fi
17128 fi
17129
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17131 $as_echo_n "checking where to find the target lipo... " >&6; }
17132 if test "x${build}" != "x${host}" ; then
17133   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17134     # We already found the complete path
17135     ac_dir=`dirname $LIPO_FOR_TARGET`
17136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17137 $as_echo "pre-installed in $ac_dir" >&6; }
17138   else
17139     # Canadian cross, just use what we found
17140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17141 $as_echo "pre-installed" >&6; }
17142   fi
17143 else
17144   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17145     # We already found the complete path
17146     ac_dir=`dirname $LIPO_FOR_TARGET`
17147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17148 $as_echo "pre-installed in $ac_dir" >&6; }
17149   elif test "x$target" = "x$host"; then
17150     # We can use an host tool
17151     LIPO_FOR_TARGET='$(LIPO)'
17152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17153 $as_echo "host tool" >&6; }
17154   else
17155     # We need a cross tool
17156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17157 $as_echo "pre-installed" >&6; }
17158   fi
17159 fi
17160
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17162 $as_echo_n "checking where to find the target nm... " >&6; }
17163 if test "x${build}" != "x${host}" ; then
17164   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17165     # We already found the complete path
17166     ac_dir=`dirname $NM_FOR_TARGET`
17167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17168 $as_echo "pre-installed in $ac_dir" >&6; }
17169   else
17170     # Canadian cross, just use what we found
17171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17172 $as_echo "pre-installed" >&6; }
17173   fi
17174 else
17175   ok=yes
17176   case " ${configdirs} " in
17177     *" binutils "*) ;;
17178     *) ok=no ;;
17179   esac
17180
17181   if test $ok = yes; then
17182     # An in-tree tool is available and we can use it
17183     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17185 $as_echo "just compiled" >&6; }
17186   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17187     # We already found the complete path
17188     ac_dir=`dirname $NM_FOR_TARGET`
17189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17190 $as_echo "pre-installed in $ac_dir" >&6; }
17191   elif test "x$target" = "x$host"; then
17192     # We can use an host tool
17193     NM_FOR_TARGET='$(NM)'
17194     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17195 $as_echo "host tool" >&6; }
17196   else
17197     # We need a cross tool
17198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17199 $as_echo "pre-installed" >&6; }
17200   fi
17201 fi
17202
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17204 $as_echo_n "checking where to find the target objcopy... " >&6; }
17205 if test "x${build}" != "x${host}" ; then
17206   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17207     # We already found the complete path
17208     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17210 $as_echo "pre-installed in $ac_dir" >&6; }
17211   else
17212     # Canadian cross, just use what we found
17213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17214 $as_echo "pre-installed" >&6; }
17215   fi
17216 else
17217   ok=yes
17218   case " ${configdirs} " in
17219     *" binutils "*) ;;
17220     *) ok=no ;;
17221   esac
17222
17223   if test $ok = yes; then
17224     # An in-tree tool is available and we can use it
17225     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17227 $as_echo "just compiled" >&6; }
17228   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17229     # We already found the complete path
17230     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17232 $as_echo "pre-installed in $ac_dir" >&6; }
17233   elif test "x$target" = "x$host"; then
17234     # We can use an host tool
17235     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17237 $as_echo "host tool" >&6; }
17238   else
17239     # We need a cross tool
17240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17241 $as_echo "pre-installed" >&6; }
17242   fi
17243 fi
17244
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17246 $as_echo_n "checking where to find the target objdump... " >&6; }
17247 if test "x${build}" != "x${host}" ; then
17248   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17249     # We already found the complete path
17250     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17252 $as_echo "pre-installed in $ac_dir" >&6; }
17253   else
17254     # Canadian cross, just use what we found
17255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17256 $as_echo "pre-installed" >&6; }
17257   fi
17258 else
17259   ok=yes
17260   case " ${configdirs} " in
17261     *" binutils "*) ;;
17262     *) ok=no ;;
17263   esac
17264
17265   if test $ok = yes; then
17266     # An in-tree tool is available and we can use it
17267     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17269 $as_echo "just compiled" >&6; }
17270   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17271     # We already found the complete path
17272     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17274 $as_echo "pre-installed in $ac_dir" >&6; }
17275   elif test "x$target" = "x$host"; then
17276     # We can use an host tool
17277     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17279 $as_echo "host tool" >&6; }
17280   else
17281     # We need a cross tool
17282     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17283 $as_echo "pre-installed" >&6; }
17284   fi
17285 fi
17286
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17288 $as_echo_n "checking where to find the target otool... " >&6; }
17289 if test "x${build}" != "x${host}" ; then
17290   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17291     # We already found the complete path
17292     ac_dir=`dirname $OTOOL_FOR_TARGET`
17293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17294 $as_echo "pre-installed in $ac_dir" >&6; }
17295   else
17296     # Canadian cross, just use what we found
17297     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17298 $as_echo "pre-installed" >&6; }
17299   fi
17300 else
17301   if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17302     # We already found the complete path
17303     ac_dir=`dirname $OTOOL_FOR_TARGET`
17304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17305 $as_echo "pre-installed in $ac_dir" >&6; }
17306   elif test "x$target" = "x$host"; then
17307     # We can use an host tool
17308     OTOOL_FOR_TARGET='$(OTOOL)'
17309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17310 $as_echo "host tool" >&6; }
17311   else
17312     # We need a cross tool
17313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17314 $as_echo "pre-installed" >&6; }
17315   fi
17316 fi
17317
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17319 $as_echo_n "checking where to find the target ranlib... " >&6; }
17320 if test "x${build}" != "x${host}" ; then
17321   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17322     # We already found the complete path
17323     ac_dir=`dirname $RANLIB_FOR_TARGET`
17324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17325 $as_echo "pre-installed in $ac_dir" >&6; }
17326   else
17327     # Canadian cross, just use what we found
17328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17329 $as_echo "pre-installed" >&6; }
17330   fi
17331 else
17332   ok=yes
17333   case " ${configdirs} " in
17334     *" binutils "*) ;;
17335     *) ok=no ;;
17336   esac
17337
17338   if test $ok = yes; then
17339     # An in-tree tool is available and we can use it
17340     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17342 $as_echo "just compiled" >&6; }
17343   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17344     # We already found the complete path
17345     ac_dir=`dirname $RANLIB_FOR_TARGET`
17346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17347 $as_echo "pre-installed in $ac_dir" >&6; }
17348   elif test "x$target" = "x$host"; then
17349     # We can use an host tool
17350     RANLIB_FOR_TARGET='$(RANLIB)'
17351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17352 $as_echo "host tool" >&6; }
17353   else
17354     # We need a cross tool
17355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17356 $as_echo "pre-installed" >&6; }
17357   fi
17358 fi
17359
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17361 $as_echo_n "checking where to find the target readelf... " >&6; }
17362 if test "x${build}" != "x${host}" ; then
17363   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17364     # We already found the complete path
17365     ac_dir=`dirname $READELF_FOR_TARGET`
17366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17367 $as_echo "pre-installed in $ac_dir" >&6; }
17368   else
17369     # Canadian cross, just use what we found
17370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17371 $as_echo "pre-installed" >&6; }
17372   fi
17373 else
17374   ok=yes
17375   case " ${configdirs} " in
17376     *" binutils "*) ;;
17377     *) ok=no ;;
17378   esac
17379
17380   if test $ok = yes; then
17381     # An in-tree tool is available and we can use it
17382     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17384 $as_echo "just compiled" >&6; }
17385   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17386     # We already found the complete path
17387     ac_dir=`dirname $READELF_FOR_TARGET`
17388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17389 $as_echo "pre-installed in $ac_dir" >&6; }
17390   elif test "x$target" = "x$host"; then
17391     # We can use an host tool
17392     READELF_FOR_TARGET='$(READELF)'
17393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17394 $as_echo "host tool" >&6; }
17395   else
17396     # We need a cross tool
17397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17398 $as_echo "pre-installed" >&6; }
17399   fi
17400 fi
17401
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17403 $as_echo_n "checking where to find the target strip... " >&6; }
17404 if test "x${build}" != "x${host}" ; then
17405   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17406     # We already found the complete path
17407     ac_dir=`dirname $STRIP_FOR_TARGET`
17408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17409 $as_echo "pre-installed in $ac_dir" >&6; }
17410   else
17411     # Canadian cross, just use what we found
17412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17413 $as_echo "pre-installed" >&6; }
17414   fi
17415 else
17416   ok=yes
17417   case " ${configdirs} " in
17418     *" binutils "*) ;;
17419     *) ok=no ;;
17420   esac
17421
17422   if test $ok = yes; then
17423     # An in-tree tool is available and we can use it
17424     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17426 $as_echo "just compiled" >&6; }
17427   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17428     # We already found the complete path
17429     ac_dir=`dirname $STRIP_FOR_TARGET`
17430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17431 $as_echo "pre-installed in $ac_dir" >&6; }
17432   elif test "x$target" = "x$host"; then
17433     # We can use an host tool
17434     STRIP_FOR_TARGET='$(STRIP)'
17435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17436 $as_echo "host tool" >&6; }
17437   else
17438     # We need a cross tool
17439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17440 $as_echo "pre-installed" >&6; }
17441   fi
17442 fi
17443
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17445 $as_echo_n "checking where to find the target windres... " >&6; }
17446 if test "x${build}" != "x${host}" ; then
17447   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17448     # We already found the complete path
17449     ac_dir=`dirname $WINDRES_FOR_TARGET`
17450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17451 $as_echo "pre-installed in $ac_dir" >&6; }
17452   else
17453     # Canadian cross, just use what we found
17454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17455 $as_echo "pre-installed" >&6; }
17456   fi
17457 else
17458   ok=yes
17459   case " ${configdirs} " in
17460     *" binutils "*) ;;
17461     *) ok=no ;;
17462   esac
17463
17464   if test $ok = yes; then
17465     # An in-tree tool is available and we can use it
17466     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
17467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17468 $as_echo "just compiled" >&6; }
17469   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17470     # We already found the complete path
17471     ac_dir=`dirname $WINDRES_FOR_TARGET`
17472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17473 $as_echo "pre-installed in $ac_dir" >&6; }
17474   elif test "x$target" = "x$host"; then
17475     # We can use an host tool
17476     WINDRES_FOR_TARGET='$(WINDRES)'
17477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17478 $as_echo "host tool" >&6; }
17479   else
17480     # We need a cross tool
17481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17482 $as_echo "pre-installed" >&6; }
17483   fi
17484 fi
17485
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17487 $as_echo_n "checking where to find the target windmc... " >&6; }
17488 if test "x${build}" != "x${host}" ; then
17489   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17490     # We already found the complete path
17491     ac_dir=`dirname $WINDMC_FOR_TARGET`
17492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17493 $as_echo "pre-installed in $ac_dir" >&6; }
17494   else
17495     # Canadian cross, just use what we found
17496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17497 $as_echo "pre-installed" >&6; }
17498   fi
17499 else
17500   ok=yes
17501   case " ${configdirs} " in
17502     *" binutils "*) ;;
17503     *) ok=no ;;
17504   esac
17505
17506   if test $ok = yes; then
17507     # An in-tree tool is available and we can use it
17508     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
17509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17510 $as_echo "just compiled" >&6; }
17511   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17512     # We already found the complete path
17513     ac_dir=`dirname $WINDMC_FOR_TARGET`
17514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17515 $as_echo "pre-installed in $ac_dir" >&6; }
17516   elif test "x$target" = "x$host"; then
17517     # We can use an host tool
17518     WINDMC_FOR_TARGET='$(WINDMC)'
17519     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17520 $as_echo "host tool" >&6; }
17521   else
17522     # We need a cross tool
17523     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17524 $as_echo "pre-installed" >&6; }
17525   fi
17526 fi
17527
17528
17529
17530
17531
17532 # Certain tools may need extra flags.
17533 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17534 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17535 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17536
17537 # When building target libraries, except in a Canadian cross, we use
17538 # the same toolchain as the compiler we just built.
17539 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17540 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17541 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17542 if test $host = $build; then
17543   case " $configdirs " in
17544     *" gcc "*)
17545       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17546       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17547       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17548       ;;
17549   esac
17550 fi
17551
17552
17553
17554
17555
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17557 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17558 # Check whether --enable-maintainer-mode was given.
17559 if test "${enable_maintainer_mode+set}" = set; then :
17560   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17561 else
17562   USE_MAINTAINER_MODE=no
17563 fi
17564
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17566 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17567
17568
17569 if test "$USE_MAINTAINER_MODE" = yes; then
17570   MAINTAINER_MODE_TRUE=
17571   MAINTAINER_MODE_FALSE='#'
17572 else
17573   MAINTAINER_MODE_TRUE='#'
17574   MAINTAINER_MODE_FALSE=
17575 fi
17576 MAINT=$MAINTAINER_MODE_TRUE
17577
17578 # ---------------------
17579 # GCC bootstrap support
17580 # ---------------------
17581
17582 # Stage specific cflags for build.
17583 stage1_cflags="-g"
17584 case $build in
17585   vax-*-*)
17586     case ${GCC} in
17587       yes) stage1_cflags="-g -Wa,-J" ;;
17588       *) stage1_cflags="-g -J" ;;
17589     esac ;;
17590 esac
17591
17592
17593
17594 # Enable --enable-checking in stage1 of the compiler.
17595 # Check whether --enable-stage1-checking was given.
17596 if test "${enable_stage1_checking+set}" = set; then :
17597   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
17598 else
17599   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
17600   # For --disable-checking or implicit --enable-checking=release, avoid
17601   # setting --enable-checking=gc in the default stage1 checking for LTO
17602   # bootstraps.  See PR62077.
17603   case $BUILD_CONFIG in
17604     *lto*)
17605       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
17606     *)
17607       stage1_checking=--enable-checking=yes,types;;
17608   esac
17609   if test "x$enable_checking" = x && \
17610      test -d ${srcdir}/gcc && \
17611      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
17612     stage1_checking=--enable-checking=yes,types,extra
17613   fi
17614 else
17615   stage1_checking=--enable-checking=$enable_checking,types
17616 fi
17617 fi
17618
17619
17620
17621 # Enable -Werror in bootstrap stage2 and later.
17622 # Check whether --enable-werror was given.
17623 if test "${enable_werror+set}" = set; then :
17624   enableval=$enable_werror;
17625 case ${enable_werror} in
17626   yes) stage2_werror_flag="--enable-werror-always" ;;
17627   *) stage2_werror_flag="" ;;
17628 esac
17629
17630 else
17631
17632 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
17633   case $BUILD_CONFIG in
17634   bootstrap-debug)
17635       stage2_werror_flag="--enable-werror-always" ;;
17636   "")
17637       stage2_werror_flag="--enable-werror-always" ;;
17638   esac
17639 fi
17640
17641 fi
17642
17643
17644
17645
17646 # Specify what files to not compare during bootstrap.
17647
17648 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
17649 case "$target" in
17650   hppa*64*-*-hpux*) ;;
17651   hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
17652   powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
17653 esac
17654
17655
17656 ac_config_files="$ac_config_files Makefile"
17657
17658 cat >confcache <<\_ACEOF
17659 # This file is a shell script that caches the results of configure
17660 # tests run on this system so they can be shared between configure
17661 # scripts and configure runs, see configure's option --config-cache.
17662 # It is not useful on other systems.  If it contains results you don't
17663 # want to keep, you may remove or edit it.
17664 #
17665 # config.status only pays attention to the cache file if you give it
17666 # the --recheck option to rerun configure.
17667 #
17668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17670 # following values.
17671
17672 _ACEOF
17673
17674 # The following way of writing the cache mishandles newlines in values,
17675 # but we know of no workaround that is simple, portable, and efficient.
17676 # So, we kill variables containing newlines.
17677 # Ultrix sh set writes to stderr and can't be redirected directly,
17678 # and sets the high bit in the cache file unless we assign to the vars.
17679 (
17680   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17681     eval ac_val=\$$ac_var
17682     case $ac_val in #(
17683     *${as_nl}*)
17684       case $ac_var in #(
17685       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17686 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17687       esac
17688       case $ac_var in #(
17689       _ | IFS | as_nl) ;; #(
17690       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17691       *) { eval $ac_var=; unset $ac_var;} ;;
17692       esac ;;
17693     esac
17694   done
17695
17696   (set) 2>&1 |
17697     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17698     *${as_nl}ac_space=\ *)
17699       # `set' does not quote correctly, so add quotes: double-quote
17700       # substitution turns \\\\ into \\, and sed turns \\ into \.
17701       sed -n \
17702         "s/'/'\\\\''/g;
17703           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17704       ;; #(
17705     *)
17706       # `set' quotes correctly as required by POSIX, so do not add quotes.
17707       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17708       ;;
17709     esac |
17710     sort
17711 ) |
17712   sed '
17713      /^ac_cv_env_/b end
17714      t clear
17715      :clear
17716      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17717      t end
17718      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17719      :end' >>confcache
17720 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17721   if test -w "$cache_file"; then
17722     if test "x$cache_file" != "x/dev/null"; then
17723       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17724 $as_echo "$as_me: updating cache $cache_file" >&6;}
17725       if test ! -f "$cache_file" || test -h "$cache_file"; then
17726         cat confcache >"$cache_file"
17727       else
17728         case $cache_file in #(
17729         */* | ?:*)
17730           mv -f confcache "$cache_file"$$ &&
17731           mv -f "$cache_file"$$ "$cache_file" ;; #(
17732         *)
17733           mv -f confcache "$cache_file" ;;
17734         esac
17735       fi
17736     fi
17737   else
17738     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17739 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17740   fi
17741 fi
17742 rm -f confcache
17743
17744 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17745 # Let make expand exec_prefix.
17746 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17747
17748 # Transform confdefs.h into DEFS.
17749 # Protect against shell expansion while executing Makefile rules.
17750 # Protect against Makefile macro expansion.
17751 #
17752 # If the first sed substitution is executed (which looks for macros that
17753 # take arguments), then branch to the quote section.  Otherwise,
17754 # look for a macro that doesn't take arguments.
17755 ac_script='
17756 :mline
17757 /\\$/{
17758  N
17759  s,\\\n,,
17760  b mline
17761 }
17762 t clear
17763 :clear
17764 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
17765 t quote
17766 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
17767 t quote
17768 b any
17769 :quote
17770 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17771 s/\[/\\&/g
17772 s/\]/\\&/g
17773 s/\$/$$/g
17774 H
17775 :any
17776 ${
17777         g
17778         s/^\n//
17779         s/\n/ /g
17780         p
17781 }
17782 '
17783 DEFS=`sed -n "$ac_script" confdefs.h`
17784
17785
17786 ac_libobjs=
17787 ac_ltlibobjs=
17788 U=
17789 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17790   # 1. Remove the extension, and $U if already installed.
17791   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17792   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17793   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17794   #    will be set to the directory where LIBOBJS objects are built.
17795   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17796   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17797 done
17798 LIBOBJS=$ac_libobjs
17799
17800 LTLIBOBJS=$ac_ltlibobjs
17801
17802
17803
17804 : "${CONFIG_STATUS=./config.status}"
17805 ac_write_fail=0
17806 ac_clean_files_save=$ac_clean_files
17807 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17809 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17810 as_write_fail=0
17811 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17812 #! $SHELL
17813 # Generated by $as_me.
17814 # Run this file to recreate the current configuration.
17815 # Compiler output produced by configure, useful for debugging
17816 # configure, is in config.log if it exists.
17817
17818 debug=false
17819 ac_cs_recheck=false
17820 ac_cs_silent=false
17821
17822 SHELL=\${CONFIG_SHELL-$SHELL}
17823 export SHELL
17824 _ASEOF
17825 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17826 ## -------------------- ##
17827 ## M4sh Initialization. ##
17828 ## -------------------- ##
17829
17830 # Be more Bourne compatible
17831 DUALCASE=1; export DUALCASE # for MKS sh
17832 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17833   emulate sh
17834   NULLCMD=:
17835   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17836   # is contrary to our usage.  Disable this feature.
17837   alias -g '${1+"$@"}'='"$@"'
17838   setopt NO_GLOB_SUBST
17839 else
17840   case `(set -o) 2>/dev/null` in #(
17841   *posix*) :
17842     set -o posix ;; #(
17843   *) :
17844      ;;
17845 esac
17846 fi
17847
17848
17849 as_nl='
17850 '
17851 export as_nl
17852 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17853 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17854 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17855 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17856 # Prefer a ksh shell builtin over an external printf program on Solaris,
17857 # but without wasting forks for bash or zsh.
17858 if test -z "$BASH_VERSION$ZSH_VERSION" \
17859     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17860   as_echo='print -r --'
17861   as_echo_n='print -rn --'
17862 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17863   as_echo='printf %s\n'
17864   as_echo_n='printf %s'
17865 else
17866   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17867     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17868     as_echo_n='/usr/ucb/echo -n'
17869   else
17870     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17871     as_echo_n_body='eval
17872       arg=$1;
17873       case $arg in #(
17874       *"$as_nl"*)
17875         expr "X$arg" : "X\\(.*\\)$as_nl";
17876         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17877       esac;
17878       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17879     '
17880     export as_echo_n_body
17881     as_echo_n='sh -c $as_echo_n_body as_echo'
17882   fi
17883   export as_echo_body
17884   as_echo='sh -c $as_echo_body as_echo'
17885 fi
17886
17887 # The user is always right.
17888 if test "${PATH_SEPARATOR+set}" != set; then
17889   PATH_SEPARATOR=:
17890   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17891     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17892       PATH_SEPARATOR=';'
17893   }
17894 fi
17895
17896
17897 # IFS
17898 # We need space, tab and new line, in precisely that order.  Quoting is
17899 # there to prevent editors from complaining about space-tab.
17900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17901 # splitting by setting IFS to empty value.)
17902 IFS=" ""        $as_nl"
17903
17904 # Find who we are.  Look in the path if we contain no directory separator.
17905 as_myself=
17906 case $0 in #((
17907   *[\\/]* ) as_myself=$0 ;;
17908   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909 for as_dir in $PATH
17910 do
17911   IFS=$as_save_IFS
17912   test -z "$as_dir" && as_dir=.
17913     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17914   done
17915 IFS=$as_save_IFS
17916
17917      ;;
17918 esac
17919 # We did not find ourselves, most probably we were run as `sh COMMAND'
17920 # in which case we are not to be found in the path.
17921 if test "x$as_myself" = x; then
17922   as_myself=$0
17923 fi
17924 if test ! -f "$as_myself"; then
17925   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17926   exit 1
17927 fi
17928
17929 # Unset variables that we do not need and which cause bugs (e.g. in
17930 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17931 # suppresses any "Segmentation fault" message there.  '((' could
17932 # trigger a bug in pdksh 5.2.14.
17933 for as_var in BASH_ENV ENV MAIL MAILPATH
17934 do eval test x\${$as_var+set} = xset \
17935   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17936 done
17937 PS1='$ '
17938 PS2='> '
17939 PS4='+ '
17940
17941 # NLS nuisances.
17942 LC_ALL=C
17943 export LC_ALL
17944 LANGUAGE=C
17945 export LANGUAGE
17946
17947 # CDPATH.
17948 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17949
17950
17951 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17952 # ----------------------------------------
17953 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17954 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17955 # script with STATUS, using 1 if that was 0.
17956 as_fn_error ()
17957 {
17958   as_status=$1; test $as_status -eq 0 && as_status=1
17959   if test "$4"; then
17960     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17961     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17962   fi
17963   $as_echo "$as_me: error: $2" >&2
17964   as_fn_exit $as_status
17965 } # as_fn_error
17966
17967
17968 # as_fn_set_status STATUS
17969 # -----------------------
17970 # Set $? to STATUS, without forking.
17971 as_fn_set_status ()
17972 {
17973   return $1
17974 } # as_fn_set_status
17975
17976 # as_fn_exit STATUS
17977 # -----------------
17978 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17979 as_fn_exit ()
17980 {
17981   set +e
17982   as_fn_set_status $1
17983   exit $1
17984 } # as_fn_exit
17985
17986 # as_fn_unset VAR
17987 # ---------------
17988 # Portably unset VAR.
17989 as_fn_unset ()
17990 {
17991   { eval $1=; unset $1;}
17992 }
17993 as_unset=as_fn_unset
17994 # as_fn_append VAR VALUE
17995 # ----------------------
17996 # Append the text in VALUE to the end of the definition contained in VAR. Take
17997 # advantage of any shell optimizations that allow amortized linear growth over
17998 # repeated appends, instead of the typical quadratic growth present in naive
17999 # implementations.
18000 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18001   eval 'as_fn_append ()
18002   {
18003     eval $1+=\$2
18004   }'
18005 else
18006   as_fn_append ()
18007   {
18008     eval $1=\$$1\$2
18009   }
18010 fi # as_fn_append
18011
18012 # as_fn_arith ARG...
18013 # ------------------
18014 # Perform arithmetic evaluation on the ARGs, and store the result in the
18015 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18016 # must be portable across $(()) and expr.
18017 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18018   eval 'as_fn_arith ()
18019   {
18020     as_val=$(( $* ))
18021   }'
18022 else
18023   as_fn_arith ()
18024   {
18025     as_val=`expr "$@" || test $? -eq 1`
18026   }
18027 fi # as_fn_arith
18028
18029
18030 if expr a : '\(a\)' >/dev/null 2>&1 &&
18031    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18032   as_expr=expr
18033 else
18034   as_expr=false
18035 fi
18036
18037 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18038   as_basename=basename
18039 else
18040   as_basename=false
18041 fi
18042
18043 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18044   as_dirname=dirname
18045 else
18046   as_dirname=false
18047 fi
18048
18049 as_me=`$as_basename -- "$0" ||
18050 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18051          X"$0" : 'X\(//\)$' \| \
18052          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18053 $as_echo X/"$0" |
18054     sed '/^.*\/\([^/][^/]*\)\/*$/{
18055             s//\1/
18056             q
18057           }
18058           /^X\/\(\/\/\)$/{
18059             s//\1/
18060             q
18061           }
18062           /^X\/\(\/\).*/{
18063             s//\1/
18064             q
18065           }
18066           s/.*/./; q'`
18067
18068 # Avoid depending upon Character Ranges.
18069 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18070 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18071 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18072 as_cr_digits='0123456789'
18073 as_cr_alnum=$as_cr_Letters$as_cr_digits
18074
18075 ECHO_C= ECHO_N= ECHO_T=
18076 case `echo -n x` in #(((((
18077 -n*)
18078   case `echo 'xy\c'` in
18079   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18080   xy)  ECHO_C='\c';;
18081   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18082        ECHO_T=' ';;
18083   esac;;
18084 *)
18085   ECHO_N='-n';;
18086 esac
18087
18088 rm -f conf$$ conf$$.exe conf$$.file
18089 if test -d conf$$.dir; then
18090   rm -f conf$$.dir/conf$$.file
18091 else
18092   rm -f conf$$.dir
18093   mkdir conf$$.dir 2>/dev/null
18094 fi
18095 if (echo >conf$$.file) 2>/dev/null; then
18096   if ln -s conf$$.file conf$$ 2>/dev/null; then
18097     as_ln_s='ln -s'
18098     # ... but there are two gotchas:
18099     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18100     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18101     # In both cases, we have to default to `cp -pR'.
18102     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18103       as_ln_s='cp -pR'
18104   elif ln conf$$.file conf$$ 2>/dev/null; then
18105     as_ln_s=ln
18106   else
18107     as_ln_s='cp -pR'
18108   fi
18109 else
18110   as_ln_s='cp -pR'
18111 fi
18112 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18113 rmdir conf$$.dir 2>/dev/null
18114
18115
18116 # as_fn_mkdir_p
18117 # -------------
18118 # Create "$as_dir" as a directory, including parents if necessary.
18119 as_fn_mkdir_p ()
18120 {
18121
18122   case $as_dir in #(
18123   -*) as_dir=./$as_dir;;
18124   esac
18125   test -d "$as_dir" || eval $as_mkdir_p || {
18126     as_dirs=
18127     while :; do
18128       case $as_dir in #(
18129       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18130       *) as_qdir=$as_dir;;
18131       esac
18132       as_dirs="'$as_qdir' $as_dirs"
18133       as_dir=`$as_dirname -- "$as_dir" ||
18134 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18135          X"$as_dir" : 'X\(//\)[^/]' \| \
18136          X"$as_dir" : 'X\(//\)$' \| \
18137          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18138 $as_echo X"$as_dir" |
18139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18140             s//\1/
18141             q
18142           }
18143           /^X\(\/\/\)[^/].*/{
18144             s//\1/
18145             q
18146           }
18147           /^X\(\/\/\)$/{
18148             s//\1/
18149             q
18150           }
18151           /^X\(\/\).*/{
18152             s//\1/
18153             q
18154           }
18155           s/.*/./; q'`
18156       test -d "$as_dir" && break
18157     done
18158     test -z "$as_dirs" || eval "mkdir $as_dirs"
18159   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18160
18161
18162 } # as_fn_mkdir_p
18163 if mkdir -p . 2>/dev/null; then
18164   as_mkdir_p='mkdir -p "$as_dir"'
18165 else
18166   test -d ./-p && rmdir ./-p
18167   as_mkdir_p=false
18168 fi
18169
18170
18171 # as_fn_executable_p FILE
18172 # -----------------------
18173 # Test if FILE is an executable regular file.
18174 as_fn_executable_p ()
18175 {
18176   test -f "$1" && test -x "$1"
18177 } # as_fn_executable_p
18178 as_test_x='test -x'
18179 as_executable_p=as_fn_executable_p
18180
18181 # Sed expression to map a string onto a valid CPP name.
18182 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18183
18184 # Sed expression to map a string onto a valid variable name.
18185 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18186
18187
18188 exec 6>&1
18189 ## ----------------------------------- ##
18190 ## Main body of $CONFIG_STATUS script. ##
18191 ## ----------------------------------- ##
18192 _ASEOF
18193 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18194
18195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18196 # Save the log message, to keep $0 and so on meaningful, and to
18197 # report actual input values of CONFIG_FILES etc. instead of their
18198 # values after options handling.
18199 ac_log="
18200 This file was extended by $as_me, which was
18201 generated by GNU Autoconf 2.69.  Invocation command line was
18202
18203   CONFIG_FILES    = $CONFIG_FILES
18204   CONFIG_HEADERS  = $CONFIG_HEADERS
18205   CONFIG_LINKS    = $CONFIG_LINKS
18206   CONFIG_COMMANDS = $CONFIG_COMMANDS
18207   $ $0 $@
18208
18209 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18210 "
18211
18212 _ACEOF
18213
18214 case $ac_config_files in *"
18215 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18216 esac
18217
18218
18219
18220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18221 # Files that config.status was made for.
18222 config_files="$ac_config_files"
18223
18224 _ACEOF
18225
18226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18227 ac_cs_usage="\
18228 \`$as_me' instantiates files and other configuration actions
18229 from templates according to the current configuration.  Unless the files
18230 and actions are specified as TAGs, all are instantiated by default.
18231
18232 Usage: $0 [OPTION]... [TAG]...
18233
18234   -h, --help       print this help, then exit
18235   -V, --version    print version number and configuration settings, then exit
18236       --config     print configuration, then exit
18237   -q, --quiet, --silent
18238                    do not print progress messages
18239   -d, --debug      don't remove temporary files
18240       --recheck    update $as_me by reconfiguring in the same conditions
18241       --file=FILE[:TEMPLATE]
18242                    instantiate the configuration file FILE
18243
18244 Configuration files:
18245 $config_files
18246
18247 Report bugs to the package provider."
18248
18249 _ACEOF
18250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18251 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18252 ac_cs_version="\\
18253 config.status
18254 configured by $0, generated by GNU Autoconf 2.69,
18255   with options \\"\$ac_cs_config\\"
18256
18257 Copyright (C) 2012 Free Software Foundation, Inc.
18258 This config.status script is free software; the Free Software Foundation
18259 gives unlimited permission to copy, distribute and modify it."
18260
18261 ac_pwd='$ac_pwd'
18262 srcdir='$srcdir'
18263 INSTALL='$INSTALL'
18264 AWK='$AWK'
18265 test -n "\$AWK" || AWK=awk
18266 _ACEOF
18267
18268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18269 # The default lists apply if the user does not specify any file.
18270 ac_need_defaults=:
18271 while test $# != 0
18272 do
18273   case $1 in
18274   --*=?*)
18275     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18276     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18277     ac_shift=:
18278     ;;
18279   --*=)
18280     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18281     ac_optarg=
18282     ac_shift=:
18283     ;;
18284   *)
18285     ac_option=$1
18286     ac_optarg=$2
18287     ac_shift=shift
18288     ;;
18289   esac
18290
18291   case $ac_option in
18292   # Handling of the options.
18293   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18294     ac_cs_recheck=: ;;
18295   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18296     $as_echo "$ac_cs_version"; exit ;;
18297   --config | --confi | --conf | --con | --co | --c )
18298     $as_echo "$ac_cs_config"; exit ;;
18299   --debug | --debu | --deb | --de | --d | -d )
18300     debug=: ;;
18301   --file | --fil | --fi | --f )
18302     $ac_shift
18303     case $ac_optarg in
18304     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18305     '') as_fn_error $? "missing file argument" ;;
18306     esac
18307     as_fn_append CONFIG_FILES " '$ac_optarg'"
18308     ac_need_defaults=false;;
18309   --he | --h |  --help | --hel | -h )
18310     $as_echo "$ac_cs_usage"; exit ;;
18311   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18312   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18313     ac_cs_silent=: ;;
18314
18315   # This is an error.
18316   -*) as_fn_error $? "unrecognized option: \`$1'
18317 Try \`$0 --help' for more information." ;;
18318
18319   *) as_fn_append ac_config_targets " $1"
18320      ac_need_defaults=false ;;
18321
18322   esac
18323   shift
18324 done
18325
18326 ac_configure_extra_args=
18327
18328 if $ac_cs_silent; then
18329   exec 6>/dev/null
18330   ac_configure_extra_args="$ac_configure_extra_args --silent"
18331 fi
18332
18333 _ACEOF
18334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18335 if \$ac_cs_recheck; then
18336   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18337   shift
18338   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18339   CONFIG_SHELL='$SHELL'
18340   export CONFIG_SHELL
18341   exec "\$@"
18342 fi
18343
18344 _ACEOF
18345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18346 exec 5>>config.log
18347 {
18348   echo
18349   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18350 ## Running $as_me. ##
18351 _ASBOX
18352   $as_echo "$ac_log"
18353 } >&5
18354
18355 _ACEOF
18356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18357 #
18358 # INIT-COMMANDS
18359 #
18360 extrasub_build="$extrasub_build"
18361    extrasub_host="$extrasub_host"
18362    extrasub_target="$extrasub_target"
18363
18364 _ACEOF
18365
18366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18367
18368 # Handling of arguments.
18369 for ac_config_target in $ac_config_targets
18370 do
18371   case $ac_config_target in
18372     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18373
18374   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18375   esac
18376 done
18377
18378
18379 # If the user did not use the arguments to specify the items to instantiate,
18380 # then the envvar interface is used.  Set only those that are not.
18381 # We use the long form for the default assignment because of an extremely
18382 # bizarre bug on SunOS 4.1.3.
18383 if $ac_need_defaults; then
18384   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18385 fi
18386
18387 # Have a temporary directory for convenience.  Make it in the build tree
18388 # simply because there is no reason against having it here, and in addition,
18389 # creating and moving files from /tmp can sometimes cause problems.
18390 # Hook for its removal unless debugging.
18391 # Note that there is a small window in which the directory will not be cleaned:
18392 # after its creation but before its name has been assigned to `$tmp'.
18393 $debug ||
18394 {
18395   tmp= ac_tmp=
18396   trap 'exit_status=$?
18397   : "${ac_tmp:=$tmp}"
18398   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18399 ' 0
18400   trap 'as_fn_exit 1' 1 2 13 15
18401 }
18402 # Create a (secure) tmp directory for tmp files.
18403
18404 {
18405   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18406   test -d "$tmp"
18407 }  ||
18408 {
18409   tmp=./conf$$-$RANDOM
18410   (umask 077 && mkdir "$tmp")
18411 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18412 ac_tmp=$tmp
18413
18414 # Set up the scripts for CONFIG_FILES section.
18415 # No need to generate them if there are no CONFIG_FILES.
18416 # This happens for instance with `./config.status config.h'.
18417 if test -n "$CONFIG_FILES"; then
18418
18419 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18420   ac_cs_awk_getline=:
18421   ac_cs_awk_pipe_init=
18422   ac_cs_awk_read_file='
18423       while ((getline aline < (F[key])) > 0)
18424         print(aline)
18425       close(F[key])'
18426   ac_cs_awk_pipe_fini=
18427 else
18428   ac_cs_awk_getline=false
18429   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18430   ac_cs_awk_read_file='
18431       print "|#_!!_#|"
18432       print "cat " F[key] " &&"
18433       '$ac_cs_awk_pipe_init
18434   # The final `:' finishes the AND list.
18435   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18436 fi
18437 ac_cr=`echo X | tr X '\015'`
18438 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18439 # But we know of no other shell where ac_cr would be empty at this
18440 # point, so we can use a bashism as a fallback.
18441 if test "x$ac_cr" = x; then
18442   eval ac_cr=\$\'\\r\'
18443 fi
18444 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18445 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18446   ac_cs_awk_cr='\\r'
18447 else
18448   ac_cs_awk_cr=$ac_cr
18449 fi
18450
18451 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18452 _ACEOF
18453
18454 # Create commands to substitute file output variables.
18455 {
18456   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18457   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18458   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18459   echo "_ACAWK" &&
18460   echo "_ACEOF"
18461 } >conf$$files.sh &&
18462 . ./conf$$files.sh ||
18463   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18464 rm -f conf$$files.sh
18465
18466 {
18467   echo "cat >conf$$subs.awk <<_ACEOF" &&
18468   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18469   echo "_ACEOF"
18470 } >conf$$subs.sh ||
18471   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18472 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18473 ac_delim='%!_!# '
18474 for ac_last_try in false false false false false :; do
18475   . ./conf$$subs.sh ||
18476     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18477
18478   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18479   if test $ac_delim_n = $ac_delim_num; then
18480     break
18481   elif $ac_last_try; then
18482     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18483   else
18484     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18485   fi
18486 done
18487 rm -f conf$$subs.sh
18488
18489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18490 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18491 _ACEOF
18492 sed -n '
18493 h
18494 s/^/S["/; s/!.*/"]=/
18495 p
18496 g
18497 s/^[^!]*!//
18498 :repl
18499 t repl
18500 s/'"$ac_delim"'$//
18501 t delim
18502 :nl
18503 h
18504 s/\(.\{148\}\)..*/\1/
18505 t more1
18506 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18507 p
18508 n
18509 b repl
18510 :more1
18511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18512 p
18513 g
18514 s/.\{148\}//
18515 t nl
18516 :delim
18517 h
18518 s/\(.\{148\}\)..*/\1/
18519 t more2
18520 s/["\\]/\\&/g; s/^/"/; s/$/"/
18521 p
18522 b
18523 :more2
18524 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18525 p
18526 g
18527 s/.\{148\}//
18528 t delim
18529 ' <conf$$subs.awk | sed '
18530 /^[^""]/{
18531   N
18532   s/\n//
18533 }
18534 ' >>$CONFIG_STATUS || ac_write_fail=1
18535 rm -f conf$$subs.awk
18536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18537 _ACAWK
18538 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18539   for (key in S) S_is_set[key] = 1
18540   FS = "\a"
18541   \$ac_cs_awk_pipe_init
18542 }
18543 {
18544   line = $ 0
18545   nfields = split(line, field, "@")
18546   substed = 0
18547   len = length(field[1])
18548   for (i = 2; i < nfields; i++) {
18549     key = field[i]
18550     keylen = length(key)
18551     if (S_is_set[key]) {
18552       value = S[key]
18553       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18554       len += length(value) + length(field[++i])
18555       substed = 1
18556     } else
18557       len += 1 + keylen
18558   }
18559   if (nfields == 3 && !substed) {
18560     key = field[2]
18561     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
18562       \$ac_cs_awk_read_file
18563       next
18564     }
18565   }
18566   print line
18567 }
18568 \$ac_cs_awk_pipe_fini
18569 _ACAWK
18570 _ACEOF
18571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18572 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18573   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18574 else
18575   cat
18576 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18577   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18578 _ACEOF
18579
18580 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18581 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18582 # trailing colons and then remove the whole line if VPATH becomes empty
18583 # (actually we leave an empty line to preserve line numbers).
18584 if test "x$srcdir" = x.; then
18585   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18586 h
18587 s///
18588 s/^/:/
18589 s/[      ]*$/:/
18590 s/:\$(srcdir):/:/g
18591 s/:\${srcdir}:/:/g
18592 s/:@srcdir@:/:/g
18593 s/^:*//
18594 s/:*$//
18595 x
18596 s/\(=[   ]*\).*/\1/
18597 G
18598 s/\n//
18599 s/^[^=]*=[       ]*$//
18600 }'
18601 fi
18602
18603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18604 fi # test -n "$CONFIG_FILES"
18605
18606
18607 eval set X "  :F $CONFIG_FILES      "
18608 shift
18609 for ac_tag
18610 do
18611   case $ac_tag in
18612   :[FHLC]) ac_mode=$ac_tag; continue;;
18613   esac
18614   case $ac_mode$ac_tag in
18615   :[FHL]*:*);;
18616   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18617   :[FH]-) ac_tag=-:-;;
18618   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18619   esac
18620   ac_save_IFS=$IFS
18621   IFS=:
18622   set x $ac_tag
18623   IFS=$ac_save_IFS
18624   shift
18625   ac_file=$1
18626   shift
18627
18628   case $ac_mode in
18629   :L) ac_source=$1;;
18630   :[FH])
18631     ac_file_inputs=
18632     for ac_f
18633     do
18634       case $ac_f in
18635       -) ac_f="$ac_tmp/stdin";;
18636       *) # Look for the file first in the build tree, then in the source tree
18637          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18638          # because $ac_f cannot contain `:'.
18639          test -f "$ac_f" ||
18640            case $ac_f in
18641            [\\/$]*) false;;
18642            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18643            esac ||
18644            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18645       esac
18646       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18647       as_fn_append ac_file_inputs " '$ac_f'"
18648     done
18649
18650     # Let's still pretend it is `configure' which instantiates (i.e., don't
18651     # use $as_me), people would be surprised to read:
18652     #    /* config.h.  Generated by config.status.  */
18653     configure_input='Generated from '`
18654           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18655         `' by configure.'
18656     if test x"$ac_file" != x-; then
18657       configure_input="$ac_file.  $configure_input"
18658       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18659 $as_echo "$as_me: creating $ac_file" >&6;}
18660     fi
18661     # Neutralize special characters interpreted by sed in replacement strings.
18662     case $configure_input in #(
18663     *\&* | *\|* | *\\* )
18664        ac_sed_conf_input=`$as_echo "$configure_input" |
18665        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18666     *) ac_sed_conf_input=$configure_input;;
18667     esac
18668
18669     case $ac_tag in
18670     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18671       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18672     esac
18673     ;;
18674   esac
18675
18676   ac_dir=`$as_dirname -- "$ac_file" ||
18677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18678          X"$ac_file" : 'X\(//\)[^/]' \| \
18679          X"$ac_file" : 'X\(//\)$' \| \
18680          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18681 $as_echo X"$ac_file" |
18682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18683             s//\1/
18684             q
18685           }
18686           /^X\(\/\/\)[^/].*/{
18687             s//\1/
18688             q
18689           }
18690           /^X\(\/\/\)$/{
18691             s//\1/
18692             q
18693           }
18694           /^X\(\/\).*/{
18695             s//\1/
18696             q
18697           }
18698           s/.*/./; q'`
18699   as_dir="$ac_dir"; as_fn_mkdir_p
18700   ac_builddir=.
18701
18702 case "$ac_dir" in
18703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18704 *)
18705   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18706   # A ".." for each directory in $ac_dir_suffix.
18707   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18708   case $ac_top_builddir_sub in
18709   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18710   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18711   esac ;;
18712 esac
18713 ac_abs_top_builddir=$ac_pwd
18714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18715 # for backward compatibility:
18716 ac_top_builddir=$ac_top_build_prefix
18717
18718 case $srcdir in
18719   .)  # We are building in place.
18720     ac_srcdir=.
18721     ac_top_srcdir=$ac_top_builddir_sub
18722     ac_abs_top_srcdir=$ac_pwd ;;
18723   [\\/]* | ?:[\\/]* )  # Absolute name.
18724     ac_srcdir=$srcdir$ac_dir_suffix;
18725     ac_top_srcdir=$srcdir
18726     ac_abs_top_srcdir=$srcdir ;;
18727   *) # Relative name.
18728     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18729     ac_top_srcdir=$ac_top_build_prefix$srcdir
18730     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18731 esac
18732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18733
18734
18735   case $ac_mode in
18736   :F)
18737   #
18738   # CONFIG_FILE
18739   #
18740
18741   case $INSTALL in
18742   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18743   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18744   esac
18745 _ACEOF
18746
18747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18748 # If the template does not know about datarootdir, expand it.
18749 # FIXME: This hack should be removed a few years after 2.60.
18750 ac_datarootdir_hack=; ac_datarootdir_seen=
18751 ac_sed_dataroot='
18752 /datarootdir/ {
18753   p
18754   q
18755 }
18756 /@datadir@/p
18757 /@docdir@/p
18758 /@infodir@/p
18759 /@localedir@/p
18760 /@mandir@/p'
18761 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18762 *datarootdir*) ac_datarootdir_seen=yes;;
18763 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18764   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18765 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18766 _ACEOF
18767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18768   ac_datarootdir_hack='
18769   s&@datadir@&$datadir&g
18770   s&@docdir@&$docdir&g
18771   s&@infodir@&$infodir&g
18772   s&@localedir@&$localedir&g
18773   s&@mandir@&$mandir&g
18774   s&\\\${datarootdir}&$datarootdir&g' ;;
18775 esac
18776 _ACEOF
18777
18778 # Neutralize VPATH when `$srcdir' = `.'.
18779 # Shell code in configure.ac might set extrasub.
18780 # FIXME: do we really want to maintain this feature?
18781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18782 ac_sed_extra="$ac_vpsub
18783 $extrasub
18784 _ACEOF
18785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18786 :t
18787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18788 s|@configure_input@|$ac_sed_conf_input|;t t
18789 s&@top_builddir@&$ac_top_builddir_sub&;t t
18790 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18791 s&@srcdir@&$ac_srcdir&;t t
18792 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18793 s&@top_srcdir@&$ac_top_srcdir&;t t
18794 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18795 s&@builddir@&$ac_builddir&;t t
18796 s&@abs_builddir@&$ac_abs_builddir&;t t
18797 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18798 s&@INSTALL@&$ac_INSTALL&;t t
18799 $ac_datarootdir_hack
18800 "
18801 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18802 if $ac_cs_awk_getline; then
18803   $AWK -f "$ac_tmp/subs.awk"
18804 else
18805   $AWK -f "$ac_tmp/subs.awk" | $SHELL
18806 fi \
18807   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18808
18809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18810   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18811   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18812       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18813   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18814 which seems to be undefined.  Please make sure it is defined" >&5
18815 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18816 which seems to be undefined.  Please make sure it is defined" >&2;}
18817
18818   rm -f "$ac_tmp/stdin"
18819   case $ac_file in
18820   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18821   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18822   esac \
18823   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18824  ;;
18825
18826
18827
18828   esac
18829
18830
18831   case $ac_file$ac_mode in
18832     "Makefile":F) sed "$extrasub_build" Makefile |
18833    sed "$extrasub_host" |
18834    sed "$extrasub_target" > mf$$
18835    mv -f mf$$ Makefile ;;
18836
18837   esac
18838 done # for ac_tag
18839
18840
18841 as_fn_exit 0
18842 _ACEOF
18843 ac_clean_files=$ac_clean_files_save
18844
18845 test $ac_write_fail = 0 ||
18846   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18847
18848
18849 # configure is writing to config.log, and then calls config.status.
18850 # config.status does its own redirection, appending to config.log.
18851 # Unfortunately, on DOS this fails, as config.log is still kept open
18852 # by configure, so config.status won't be able to write to it; its
18853 # output is simply discarded.  So we exec the FD to /dev/null,
18854 # effectively closing config.log, so it can be properly (re)opened and
18855 # appended to by config.status.  When coming back to configure, we
18856 # need to make the FD available again.
18857 if test "$no_create" != yes; then
18858   ac_cs_success=:
18859   ac_config_status_args=
18860   test "$silent" = yes &&
18861     ac_config_status_args="$ac_config_status_args --quiet"
18862   exec 5>/dev/null
18863   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18864   exec 5>>config.log
18865   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18866   # would make configure fail if this is the last instruction.
18867   $ac_cs_success || as_fn_exit 1
18868 fi
18869 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18870   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18871 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18872 fi
18873