xref: /netbsd-src/external/gpl3/binutils.old/dist/configure (revision e992f068c547fd6e84b3f104dc2340adcc955732)
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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  }
79fi
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.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102     ;;
103esac
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.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export 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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
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
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
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
234fi; }
235IFS=$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.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $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
257exit 255
258fi
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
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_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.
305as_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.
315as_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.
363as_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.
373if (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  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # 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.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # 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.
408as_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
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_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.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_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
500ECHO_C= ECHO_N= ECHO_T=
501case `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';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (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
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_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.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 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.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="move-if-change"
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
604READELF_FOR_TARGET
605RANLIB_FOR_TARGET
606OBJDUMP_FOR_TARGET
607OBJCOPY_FOR_TARGET
608NM_FOR_TARGET
609LIPO_FOR_TARGET
610LD_FOR_TARGET
611DLLTOOL_FOR_TARGET
612AS_FOR_TARGET
613AR_FOR_TARGET
614GOC_FOR_TARGET
615GFORTRAN_FOR_TARGET
616GCC_FOR_TARGET
617CXX_FOR_TARGET
618CC_FOR_TARGET
619RANLIB_PLUGIN_OPTION
620AR_PLUGIN_OPTION
621PKG_CONFIG_PATH
622READELF
623OBJDUMP
624OBJCOPY
625WINDMC
626WINDRES
627STRIP
628RANLIB
629NM
630LIPO
631LD
632DLLTOOL
633AS
634AR
635RUNTEST
636EXPECT
637MAKEINFO
638FLEX
639LEX
640M4
641BISON
642YACC
643WINDRES_FOR_BUILD
644WINDMC_FOR_BUILD
645RANLIB_FOR_BUILD
646NM_FOR_BUILD
647LD_FOR_BUILD
648LDFLAGS_FOR_BUILD
649GOC_FOR_BUILD
650GFORTRAN_FOR_BUILD
651DLLTOOL_FOR_BUILD
652CXX_FOR_BUILD
653CXXFLAGS_FOR_BUILD
654CFLAGS_FOR_BUILD
655CC_FOR_BUILD
656AS_FOR_BUILD
657AR_FOR_BUILD
658target_configdirs
659configdirs
660build_configdirs
661INSTALL_GDB_TK
662GDB_TK
663CONFIGURE_GDB_TK
664build_tooldir
665tooldir
666GCC_SHLIB_SUBDIR
667RPATH_ENVVAR
668target_configargs
669host_configargs
670build_configargs
671BUILD_CONFIG
672LDFLAGS_FOR_TARGET
673CXXFLAGS_FOR_TARGET
674CFLAGS_FOR_TARGET
675DEBUG_PREFIX_CFLAGS_FOR_TARGET
676SYSROOT_CFLAGS_FOR_TARGET
677get_gcc_base_ver
678extra_host_zlib_configure_flags
679extra_host_libiberty_configure_flags
680stage1_languages
681host_shared
682extra_linker_plugin_flags
683extra_linker_plugin_configure_flags
684islinc
685isllibs
686poststage1_ldflags
687poststage1_libs
688stage1_ldflags
689stage1_libs
690extra_isl_gmp_configure_flags
691extra_mpc_mpfr_configure_flags
692extra_mpc_gmp_configure_flags
693extra_mpfr_configure_flags
694gmpinc
695gmplibs
696PGO_BUILD_LTO_CFLAGS
697PGO_BUILD_USE_CFLAGS
698PGO_BUILD_GEN_CFLAGS
699do_compare
700GNATMAKE
701GNATBIND
702ac_ct_CXX
703CXXFLAGS
704CXX
705OBJEXT
706EXEEXT
707ac_ct_CC
708CPPFLAGS
709LDFLAGS
710CFLAGS
711CC
712extra_liboffloadmic_configure_flags
713target_subdir
714host_subdir
715build_subdir
716build_libsubdir
717AWK
718SED
719LN_S
720LN
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_os
725target_vendor
726target_cpu
727target
728host_os
729host_vendor
730host_cpu
731host
732target_noncanonical
733host_noncanonical
734build_noncanonical
735build_os
736build_vendor
737build_cpu
738build
739TOPLEVEL_CONFIGURE_ARGUMENTS
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL'
778ac_subst_files='serialization_dependencies
779host_makefile_frag
780target_makefile_frag
781alphaieee_frag
782ospace_frag'
783ac_user_opts='
784enable_option_checking
785with_build_libsubdir
786with_system_zlib
787enable_as_accelerator_for
788enable_offload_targets
789enable_gold
790enable_ld
791enable_gprofng
792enable_compressed_debug_sections
793enable_libquadmath
794enable_libquadmath_support
795enable_libada
796enable_libssp
797enable_libstdcxx
798enable_liboffloadmic
799enable_bootstrap
800enable_pgo_build
801with_mpc
802with_mpc_include
803with_mpc_lib
804with_mpfr_dir
805with_mpfr
806with_mpfr_include
807with_mpfr_lib
808with_gmp_dir
809with_gmp
810with_gmp_include
811with_gmp_lib
812with_stage1_libs
813with_static_standard_libraries
814with_stage1_ldflags
815with_boot_libs
816with_boot_ldflags
817with_isl
818with_isl_include
819with_isl_lib
820enable_isl_version_check
821enable_lto
822enable_linker_plugin_configure_flags
823enable_linker_plugin_flags
824enable_host_shared
825enable_stage1_languages
826enable_objc_gc
827with_target_bdw_gc
828with_target_bdw_gc_include
829with_target_bdw_gc_lib
830with_gcc_major_version_only
831with_build_sysroot
832with_debug_prefix_map
833with_build_config
834enable_vtable_verify
835enable_serial_configure
836with_build_time_tools
837enable_maintainer_mode
838enable_stage1_checking
839enable_werror
840'
841      ac_precious_vars='build_alias
842host_alias
843target_alias
844CC
845CFLAGS
846LDFLAGS
847LIBS
848CPPFLAGS
849CXX
850CXXFLAGS
851CCC
852build_configargs
853host_configargs
854target_configargs
855AR
856AS
857DLLTOOL
858LD
859LIPO
860NM
861RANLIB
862STRIP
863WINDRES
864WINDMC
865OBJCOPY
866OBJDUMP
867READELF
868CC_FOR_TARGET
869CXX_FOR_TARGET
870GCC_FOR_TARGET
871GFORTRAN_FOR_TARGET
872GOC_FOR_TARGET
873AR_FOR_TARGET
874AS_FOR_TARGET
875DLLTOOL_FOR_TARGET
876LD_FOR_TARGET
877LIPO_FOR_TARGET
878NM_FOR_TARGET
879OBJCOPY_FOR_TARGET
880OBJDUMP_FOR_TARGET
881RANLIB_FOR_TARGET
882READELF_FOR_TARGET
883STRIP_FOR_TARGET
884WINDRES_FOR_TARGET
885WINDMC_FOR_TARGET'
886
887
888# Initialize some variables set by options.
889ac_init_help=
890ac_init_version=false
891ac_unrecognized_opts=
892ac_unrecognized_sep=
893# The variables have the same names as the options, with
894# dashes changed to underlines.
895cache_file=/dev/null
896exec_prefix=NONE
897no_create=
898no_recursion=
899prefix=NONE
900program_prefix=NONE
901program_suffix=NONE
902program_transform_name=s,x,x,
903silent=
904site=
905srcdir=
906verbose=
907x_includes=NONE
908x_libraries=NONE
909
910# Installation directory options.
911# These are left unexpanded so users can "make install exec_prefix=/foo"
912# and all the variables that are supposed to be based on exec_prefix
913# by default will actually change.
914# Use braces instead of parens because sh, perl, etc. also accept them.
915# (The list follows the same order as the GNU Coding Standards.)
916bindir='${exec_prefix}/bin'
917sbindir='${exec_prefix}/sbin'
918libexecdir='${exec_prefix}/libexec'
919datarootdir='${prefix}/share'
920datadir='${datarootdir}'
921sysconfdir='${prefix}/etc'
922sharedstatedir='${prefix}/com'
923localstatedir='${prefix}/var'
924includedir='${prefix}/include'
925oldincludedir='/usr/include'
926docdir='${datarootdir}/doc/${PACKAGE}'
927infodir='${datarootdir}/info'
928htmldir='${docdir}'
929dvidir='${docdir}'
930pdfdir='${docdir}'
931psdir='${docdir}'
932libdir='${exec_prefix}/lib'
933localedir='${datarootdir}/locale'
934mandir='${datarootdir}/man'
935
936ac_prev=
937ac_dashdash=
938for ac_option
939do
940  # If the previous option needs an argument, assign it.
941  if test -n "$ac_prev"; then
942    eval $ac_prev=\$ac_option
943    ac_prev=
944    continue
945  fi
946
947  case $ac_option in
948  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949  *=)   ac_optarg= ;;
950  *)    ac_optarg=yes ;;
951  esac
952
953  # Accept the important Cygnus configure options, so we can diagnose typos.
954
955  case $ac_dashdash$ac_option in
956  --)
957    ac_dashdash=yes ;;
958
959  -bindir | --bindir | --bindi | --bind | --bin | --bi)
960    ac_prev=bindir ;;
961  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962    bindir=$ac_optarg ;;
963
964  -build | --build | --buil | --bui | --bu)
965    ac_prev=build_alias ;;
966  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967    build_alias=$ac_optarg ;;
968
969  -cache-file | --cache-file | --cache-fil | --cache-fi \
970  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971    ac_prev=cache_file ;;
972  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974    cache_file=$ac_optarg ;;
975
976  --config-cache | -C)
977    cache_file=config.cache ;;
978
979  -datadir | --datadir | --datadi | --datad)
980    ac_prev=datadir ;;
981  -datadir=* | --datadir=* | --datadi=* | --datad=*)
982    datadir=$ac_optarg ;;
983
984  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985  | --dataroo | --dataro | --datar)
986    ac_prev=datarootdir ;;
987  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989    datarootdir=$ac_optarg ;;
990
991  -disable-* | --disable-*)
992    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993    # Reject names that are not valid shell variable names.
994    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995      as_fn_error $? "invalid feature name: $ac_useropt"
996    ac_useropt_orig=$ac_useropt
997    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998    case $ac_user_opts in
999      *"
1000"enable_$ac_useropt"
1001"*) ;;
1002      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003	 ac_unrecognized_sep=', ';;
1004    esac
1005    eval enable_$ac_useropt=no ;;
1006
1007  -docdir | --docdir | --docdi | --doc | --do)
1008    ac_prev=docdir ;;
1009  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010    docdir=$ac_optarg ;;
1011
1012  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013    ac_prev=dvidir ;;
1014  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015    dvidir=$ac_optarg ;;
1016
1017  -enable-* | --enable-*)
1018    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019    # Reject names that are not valid shell variable names.
1020    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021      as_fn_error $? "invalid feature name: $ac_useropt"
1022    ac_useropt_orig=$ac_useropt
1023    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024    case $ac_user_opts in
1025      *"
1026"enable_$ac_useropt"
1027"*) ;;
1028      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029	 ac_unrecognized_sep=', ';;
1030    esac
1031    eval enable_$ac_useropt=\$ac_optarg ;;
1032
1033  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035  | --exec | --exe | --ex)
1036    ac_prev=exec_prefix ;;
1037  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039  | --exec=* | --exe=* | --ex=*)
1040    exec_prefix=$ac_optarg ;;
1041
1042  -gas | --gas | --ga | --g)
1043    # Obsolete; use --with-gas.
1044    with_gas=yes ;;
1045
1046  -help | --help | --hel | --he | -h)
1047    ac_init_help=long ;;
1048  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049    ac_init_help=recursive ;;
1050  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051    ac_init_help=short ;;
1052
1053  -host | --host | --hos | --ho)
1054    ac_prev=host_alias ;;
1055  -host=* | --host=* | --hos=* | --ho=*)
1056    host_alias=$ac_optarg ;;
1057
1058  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059    ac_prev=htmldir ;;
1060  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061  | --ht=*)
1062    htmldir=$ac_optarg ;;
1063
1064  -includedir | --includedir | --includedi | --included | --include \
1065  | --includ | --inclu | --incl | --inc)
1066    ac_prev=includedir ;;
1067  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068  | --includ=* | --inclu=* | --incl=* | --inc=*)
1069    includedir=$ac_optarg ;;
1070
1071  -infodir | --infodir | --infodi | --infod | --info | --inf)
1072    ac_prev=infodir ;;
1073  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074    infodir=$ac_optarg ;;
1075
1076  -libdir | --libdir | --libdi | --libd)
1077    ac_prev=libdir ;;
1078  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079    libdir=$ac_optarg ;;
1080
1081  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082  | --libexe | --libex | --libe)
1083    ac_prev=libexecdir ;;
1084  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085  | --libexe=* | --libex=* | --libe=*)
1086    libexecdir=$ac_optarg ;;
1087
1088  -localedir | --localedir | --localedi | --localed | --locale)
1089    ac_prev=localedir ;;
1090  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091    localedir=$ac_optarg ;;
1092
1093  -localstatedir | --localstatedir | --localstatedi | --localstated \
1094  | --localstate | --localstat | --localsta | --localst | --locals)
1095    ac_prev=localstatedir ;;
1096  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098    localstatedir=$ac_optarg ;;
1099
1100  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101    ac_prev=mandir ;;
1102  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103    mandir=$ac_optarg ;;
1104
1105  -nfp | --nfp | --nf)
1106    # Obsolete; use --without-fp.
1107    with_fp=no ;;
1108
1109  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110  | --no-cr | --no-c | -n)
1111    no_create=yes ;;
1112
1113  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115    no_recursion=yes ;;
1116
1117  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119  | --oldin | --oldi | --old | --ol | --o)
1120    ac_prev=oldincludedir ;;
1121  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124    oldincludedir=$ac_optarg ;;
1125
1126  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127    ac_prev=prefix ;;
1128  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129    prefix=$ac_optarg ;;
1130
1131  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132  | --program-pre | --program-pr | --program-p)
1133    ac_prev=program_prefix ;;
1134  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136    program_prefix=$ac_optarg ;;
1137
1138  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139  | --program-suf | --program-su | --program-s)
1140    ac_prev=program_suffix ;;
1141  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143    program_suffix=$ac_optarg ;;
1144
1145  -program-transform-name | --program-transform-name \
1146  | --program-transform-nam | --program-transform-na \
1147  | --program-transform-n | --program-transform- \
1148  | --program-transform | --program-transfor \
1149  | --program-transfo | --program-transf \
1150  | --program-trans | --program-tran \
1151  | --progr-tra | --program-tr | --program-t)
1152    ac_prev=program_transform_name ;;
1153  -program-transform-name=* | --program-transform-name=* \
1154  | --program-transform-nam=* | --program-transform-na=* \
1155  | --program-transform-n=* | --program-transform-=* \
1156  | --program-transform=* | --program-transfor=* \
1157  | --program-transfo=* | --program-transf=* \
1158  | --program-trans=* | --program-tran=* \
1159  | --progr-tra=* | --program-tr=* | --program-t=*)
1160    program_transform_name=$ac_optarg ;;
1161
1162  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163    ac_prev=pdfdir ;;
1164  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165    pdfdir=$ac_optarg ;;
1166
1167  -psdir | --psdir | --psdi | --psd | --ps)
1168    ac_prev=psdir ;;
1169  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170    psdir=$ac_optarg ;;
1171
1172  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173  | -silent | --silent | --silen | --sile | --sil)
1174    silent=yes ;;
1175
1176  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177    ac_prev=sbindir ;;
1178  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179  | --sbi=* | --sb=*)
1180    sbindir=$ac_optarg ;;
1181
1182  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184  | --sharedst | --shareds | --shared | --share | --shar \
1185  | --sha | --sh)
1186    ac_prev=sharedstatedir ;;
1187  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190  | --sha=* | --sh=*)
1191    sharedstatedir=$ac_optarg ;;
1192
1193  -site | --site | --sit)
1194    ac_prev=site ;;
1195  -site=* | --site=* | --sit=*)
1196    site=$ac_optarg ;;
1197
1198  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199    ac_prev=srcdir ;;
1200  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201    srcdir=$ac_optarg ;;
1202
1203  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204  | --syscon | --sysco | --sysc | --sys | --sy)
1205    ac_prev=sysconfdir ;;
1206  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208    sysconfdir=$ac_optarg ;;
1209
1210  -target | --target | --targe | --targ | --tar | --ta | --t)
1211    ac_prev=target_alias ;;
1212  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213    target_alias=$ac_optarg ;;
1214
1215  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216    verbose=yes ;;
1217
1218  -version | --version | --versio | --versi | --vers | -V)
1219    ac_init_version=: ;;
1220
1221  -with-* | --with-*)
1222    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223    # Reject names that are not valid shell variable names.
1224    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225      as_fn_error $? "invalid package name: $ac_useropt"
1226    ac_useropt_orig=$ac_useropt
1227    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228    case $ac_user_opts in
1229      *"
1230"with_$ac_useropt"
1231"*) ;;
1232      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233	 ac_unrecognized_sep=', ';;
1234    esac
1235    eval with_$ac_useropt=\$ac_optarg ;;
1236
1237  -without-* | --without-*)
1238    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239    # Reject names that are not valid shell variable names.
1240    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241      as_fn_error $? "invalid package name: $ac_useropt"
1242    ac_useropt_orig=$ac_useropt
1243    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244    case $ac_user_opts in
1245      *"
1246"with_$ac_useropt"
1247"*) ;;
1248      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249	 ac_unrecognized_sep=', ';;
1250    esac
1251    eval with_$ac_useropt=no ;;
1252
1253  --x)
1254    # Obsolete; use --with-x.
1255    with_x=yes ;;
1256
1257  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258  | --x-incl | --x-inc | --x-in | --x-i)
1259    ac_prev=x_includes ;;
1260  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262    x_includes=$ac_optarg ;;
1263
1264  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266    ac_prev=x_libraries ;;
1267  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269    x_libraries=$ac_optarg ;;
1270
1271  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1272Try \`$0 --help' for more information"
1273    ;;
1274
1275  *=*)
1276    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277    # Reject names that are not valid shell variable names.
1278    case $ac_envvar in #(
1279      '' | [0-9]* | *[!_$as_cr_alnum]* )
1280      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1281    esac
1282    eval $ac_envvar=\$ac_optarg
1283    export $ac_envvar ;;
1284
1285  *)
1286    # FIXME: should be removed in autoconf 3.0.
1287    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1291    ;;
1292
1293  esac
1294done
1295
1296if test -n "$ac_prev"; then
1297  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298  as_fn_error $? "missing argument to $ac_option"
1299fi
1300
1301if test -n "$ac_unrecognized_opts"; then
1302  case $enable_option_checking in
1303    no) ;;
1304    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1305    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306  esac
1307fi
1308
1309# Check all directory arguments for consistency.
1310for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311		datadir sysconfdir sharedstatedir localstatedir includedir \
1312		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313		libdir localedir mandir
1314do
1315  eval ac_val=\$$ac_var
1316  # Remove trailing slashes.
1317  case $ac_val in
1318    */ )
1319      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320      eval $ac_var=\$ac_val;;
1321  esac
1322  # Be sure to have absolute directory names.
1323  case $ac_val in
1324    [\\/$]* | ?:[\\/]* )  continue;;
1325    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326  esac
1327  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1328done
1329
1330# There might be people who depend on the old broken behavior: `$host'
1331# used to hold the argument of --host etc.
1332# FIXME: To remove some day.
1333build=$build_alias
1334host=$host_alias
1335target=$target_alias
1336
1337# FIXME: To remove some day.
1338if test "x$host_alias" != x; then
1339  if test "x$build_alias" = x; then
1340    cross_compiling=maybe
1341  elif test "x$build_alias" != "x$host_alias"; then
1342    cross_compiling=yes
1343  fi
1344fi
1345
1346ac_tool_prefix=
1347test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349test "$silent" = yes && exec 6>/dev/null
1350
1351
1352ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353ac_ls_di=`ls -di .` &&
1354ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355  as_fn_error $? "working directory cannot be determined"
1356test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357  as_fn_error $? "pwd does not report name of working directory"
1358
1359
1360# Find the source files, if location was not specified.
1361if test -z "$srcdir"; then
1362  ac_srcdir_defaulted=yes
1363  # Try the directory containing this script, then the parent directory.
1364  ac_confdir=`$as_dirname -- "$as_myself" ||
1365$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366	 X"$as_myself" : 'X\(//\)[^/]' \| \
1367	 X"$as_myself" : 'X\(//\)$' \| \
1368	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369$as_echo X"$as_myself" |
1370    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371	    s//\1/
1372	    q
1373	  }
1374	  /^X\(\/\/\)[^/].*/{
1375	    s//\1/
1376	    q
1377	  }
1378	  /^X\(\/\/\)$/{
1379	    s//\1/
1380	    q
1381	  }
1382	  /^X\(\/\).*/{
1383	    s//\1/
1384	    q
1385	  }
1386	  s/.*/./; q'`
1387  srcdir=$ac_confdir
1388  if test ! -r "$srcdir/$ac_unique_file"; then
1389    srcdir=..
1390  fi
1391else
1392  ac_srcdir_defaulted=no
1393fi
1394if test ! -r "$srcdir/$ac_unique_file"; then
1395  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1397fi
1398ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399ac_abs_confdir=`(
1400	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1401	pwd)`
1402# When building in place, set srcdir=.
1403if test "$ac_abs_confdir" = "$ac_pwd"; then
1404  srcdir=.
1405fi
1406# Remove unnecessary trailing slashes from srcdir.
1407# Double slashes in file names in object file debugging info
1408# mess up M-x gdb in Emacs.
1409case $srcdir in
1410*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411esac
1412case $srcdir in
1413  *" "*)
1414    as_fn_error $? "path to source, $srcdir, contains spaces"
1415    ;;
1416esac
1417ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1418
1419for ac_var in $ac_precious_vars; do
1420  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421  eval ac_env_${ac_var}_value=\$${ac_var}
1422  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424done
1425
1426#
1427# Report the --help message.
1428#
1429if test "$ac_init_help" = "long"; then
1430  # Omit some internal or obsolete options to make the list less imposing.
1431  # This message is too long to be a string in the A/UX 3.1 sh.
1432  cat <<_ACEOF
1433\`configure' configures this package to adapt to many kinds of systems.
1434
1435Usage: $0 [OPTION]... [VAR=VALUE]...
1436
1437To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438VAR=VALUE.  See below for descriptions of some of the useful variables.
1439
1440Defaults for the options are specified in brackets.
1441
1442Configuration:
1443  -h, --help              display this help and exit
1444      --help=short        display options specific to this package
1445      --help=recursive    display the short help of all the included packages
1446  -V, --version           display version information and exit
1447  -q, --quiet, --silent   do not print \`checking ...' messages
1448      --cache-file=FILE   cache test results in FILE [disabled]
1449  -C, --config-cache      alias for \`--cache-file=config.cache'
1450  -n, --no-create         do not create output files
1451      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1452
1453Installation directories:
1454  --prefix=PREFIX         install architecture-independent files in PREFIX
1455                          [$ac_default_prefix]
1456  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1457                          [PREFIX]
1458
1459By default, \`make install' will install all the files in
1460\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1461an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462for instance \`--prefix=\$HOME'.
1463
1464For better control, use the options below.
1465
1466Fine tuning of the installation directories:
1467  --bindir=DIR            user executables [EPREFIX/bin]
1468  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1469  --libexecdir=DIR        program executables [EPREFIX/libexec]
1470  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1471  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1472  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1473  --libdir=DIR            object code libraries [EPREFIX/lib]
1474  --includedir=DIR        C header files [PREFIX/include]
1475  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1476  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1477  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1478  --infodir=DIR           info documentation [DATAROOTDIR/info]
1479  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1480  --mandir=DIR            man documentation [DATAROOTDIR/man]
1481  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1482  --htmldir=DIR           html documentation [DOCDIR]
1483  --dvidir=DIR            dvi documentation [DOCDIR]
1484  --pdfdir=DIR            pdf documentation [DOCDIR]
1485  --psdir=DIR             ps documentation [DOCDIR]
1486_ACEOF
1487
1488  cat <<\_ACEOF
1489
1490Program names:
1491  --program-prefix=PREFIX            prepend PREFIX to installed program names
1492  --program-suffix=SUFFIX            append SUFFIX to installed program names
1493  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1494
1495System types:
1496  --build=BUILD     configure for building on BUILD [guessed]
1497  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1498  --target=TARGET   configure for building compilers for TARGET [HOST]
1499_ACEOF
1500fi
1501
1502if test -n "$ac_init_help"; then
1503
1504  cat <<\_ACEOF
1505
1506Optional Features:
1507  --disable-option-checking  ignore unrecognized --enable/--with options
1508  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1509  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1510  --enable-as-accelerator-for=ARG
1511                          build as offload target compiler. Specify offload
1512                          host triple by ARG
1513  --enable-offload-targets=LIST
1514                          enable offloading to devices from comma-separated
1515                          LIST of TARGET[=DIR]. Use optional path to find
1516                          offload target compiler during the build
1517  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1518  --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1519  --enable-gprofng[=ARG]  build gprofng [ARG={yes,no}]
1520  --enable-compressed-debug-sections={all,gas,gold,ld,none}
1521                          Enable compressed debug sections for gas, gold or ld
1522                          by default
1523  --disable-libquadmath   do not build libquadmath directory
1524  --disable-libquadmath-support
1525                          disable libquadmath support for Fortran
1526  --enable-libada         build libada directory
1527  --enable-libssp         build libssp directory
1528  --disable-libstdcxx     do not build libstdc++-v3 directory
1529  --enable-liboffloadmic=ARG
1530                          build liboffloadmic [ARG={no,host,target}]
1531  --enable-bootstrap      enable bootstrapping [yes if native build]
1532  --enable-pgo-build[=lto]
1533                          enable the PGO build
1534  --disable-isl-version-check
1535                          disable check for isl version
1536  --enable-lto            enable link time optimization support
1537  --enable-linker-plugin-configure-flags=FLAGS
1538                          additional flags for configuring linker plugins
1539                          [none]
1540  --enable-linker-plugin-flags=FLAGS
1541                          additional flags for configuring and building linker
1542                          plugins [none]
1543  --enable-host-shared    build host code as shared libraries
1544  --enable-stage1-languages[=all]
1545                          choose additional languages to build during stage1.
1546                          Mostly useful for compiler development
1547  --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1548                          Objective-C runtime
1549  --enable-vtable-verify  Enable vtable verification feature
1550  --enable-serial-[{host,target,build}-]configure
1551                          force sequential configuration of sub-packages for
1552                          the host, target or build machine, or all
1553                          sub-packages
1554  --enable-maintainer-mode
1555                          enable make rules and dependencies not useful (and
1556                          sometimes confusing) to the casual installer
1557  --enable-stage1-checking[=all]
1558                          choose additional checking for stage1 of the
1559                          compiler
1560  --enable-werror         enable -Werror in bootstrap stage2 and later
1561
1562Optional Packages:
1563  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1564  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1565  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1566  --with-system-zlib      use installed libz
1567  --with-mpc=PATH         specify prefix directory for installed MPC package.
1568                          Equivalent to --with-mpc-include=PATH/include plus
1569                          --with-mpc-lib=PATH/lib
1570  --with-mpc-include=PATH specify directory for installed MPC include files
1571  --with-mpc-lib=PATH     specify directory for the installed MPC library
1572  --with-mpfr-dir=PATH    this option has been REMOVED
1573  --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1574                          Equivalent to --with-mpfr-include=PATH/include plus
1575                          --with-mpfr-lib=PATH/lib
1576  --with-mpfr-include=PATH
1577                          specify directory for installed MPFR include files
1578  --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1579  --with-gmp-dir=PATH     this option has been REMOVED
1580  --with-gmp=PATH         specify prefix directory for the installed GMP
1581                          package. Equivalent to
1582                          --with-gmp-include=PATH/include plus
1583                          --with-gmp-lib=PATH/lib
1584  --with-gmp-include=PATH specify directory for installed GMP include files
1585  --with-gmp-lib=PATH     specify directory for the installed GMP library
1586  --with-stage1-libs=LIBS libraries for stage1
1587  --with-static-standard-libraries
1588                          use -static-libstdc++ and -static-libgcc
1589                          (default=auto)
1590  --with-stage1-ldflags=FLAGS
1591                          linker flags for stage1
1592  --with-boot-libs=LIBS   libraries for stage2 and later
1593  --with-boot-ldflags=FLAGS
1594                          linker flags for stage2 and later
1595  --with-isl=PATH         Specify prefix directory for the installed isl
1596                          package. Equivalent to
1597                          --with-isl-include=PATH/include plus
1598                          --with-isl-lib=PATH/lib
1599  --with-isl-include=PATH Specify directory for installed isl include files
1600  --with-isl-lib=PATH     Specify the directory for the installed isl library
1601  --with-target-bdw-gc=PATHLIST
1602                          specify prefix directory for installed bdw-gc
1603                          package. Equivalent to
1604                          --with-target-bdw-gc-include=PATH/include plus
1605                          --with-target-bdw-gc-lib=PATH/lib
1606  --with-target-bdw-gc-include=PATHLIST
1607                          specify directories for installed bdw-gc include
1608                          files
1609  --with-target-bdw-gc-lib=PATHLIST
1610                          specify directories for installed bdw-gc library
1611  --with-gcc-major-version-only
1612                          use only GCC major number in filesystem paths
1613  --with-build-sysroot=SYSROOT
1614                          use sysroot as the system root during the build
1615  --with-debug-prefix-map='A=B C=D ...'
1616                          map A to B, C to D ... in debug information
1617  --with-build-config='NAME NAME2...'
1618                          use config/NAME.mk build configuration
1619  --with-build-time-tools=PATH
1620                          use given path to find target tools during the build
1621
1622Some influential environment variables:
1623  CC          C compiler command
1624  CFLAGS      C compiler flags
1625  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1626              nonstandard directory <lib dir>
1627  LIBS        libraries to pass to the linker, e.g. -l<library>
1628  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1629              you have headers in a nonstandard directory <include dir>
1630  CXX         C++ compiler command
1631  CXXFLAGS    C++ compiler flags
1632  build_configargs
1633              additional configure arguments for build directories
1634  host_configargs
1635              additional configure arguments for host directories
1636  target_configargs
1637              additional configure arguments for target directories
1638  AR          AR for the host
1639  AS          AS for the host
1640  DLLTOOL     DLLTOOL for the host
1641  LD          LD for the host
1642  LIPO        LIPO for the host
1643  NM          NM for the host
1644  RANLIB      RANLIB for the host
1645  STRIP       STRIP for the host
1646  WINDRES     WINDRES for the host
1647  WINDMC      WINDMC for the host
1648  OBJCOPY     OBJCOPY for the host
1649  OBJDUMP     OBJDUMP for the host
1650  READELF     READELF for the host
1651  CC_FOR_TARGET
1652              CC for the target
1653  CXX_FOR_TARGET
1654              CXX for the target
1655  GCC_FOR_TARGET
1656              GCC for the target
1657  GFORTRAN_FOR_TARGET
1658              GFORTRAN for the target
1659  GOC_FOR_TARGET
1660              GOC for the target
1661  AR_FOR_TARGET
1662              AR for the target
1663  AS_FOR_TARGET
1664              AS for the target
1665  DLLTOOL_FOR_TARGET
1666              DLLTOOL for the target
1667  LD_FOR_TARGET
1668              LD for the target
1669  LIPO_FOR_TARGET
1670              LIPO for the target
1671  NM_FOR_TARGET
1672              NM for the target
1673  OBJCOPY_FOR_TARGET
1674              OBJCOPY for the target
1675  OBJDUMP_FOR_TARGET
1676              OBJDUMP for the target
1677  RANLIB_FOR_TARGET
1678              RANLIB for the target
1679  READELF_FOR_TARGET
1680              READELF for the target
1681  STRIP_FOR_TARGET
1682              STRIP for the target
1683  WINDRES_FOR_TARGET
1684              WINDRES for the target
1685  WINDMC_FOR_TARGET
1686              WINDMC for the target
1687
1688Use these variables to override the choices made by `configure' or to help
1689it to find libraries and programs with nonstandard names/locations.
1690
1691Report bugs to the package provider.
1692_ACEOF
1693ac_status=$?
1694fi
1695
1696if test "$ac_init_help" = "recursive"; then
1697  # If there are subdirs, report their specific --help.
1698  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699    test -d "$ac_dir" ||
1700      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1701      continue
1702    ac_builddir=.
1703
1704case "$ac_dir" in
1705.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706*)
1707  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708  # A ".." for each directory in $ac_dir_suffix.
1709  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710  case $ac_top_builddir_sub in
1711  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713  esac ;;
1714esac
1715ac_abs_top_builddir=$ac_pwd
1716ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717# for backward compatibility:
1718ac_top_builddir=$ac_top_build_prefix
1719
1720case $srcdir in
1721  .)  # We are building in place.
1722    ac_srcdir=.
1723    ac_top_srcdir=$ac_top_builddir_sub
1724    ac_abs_top_srcdir=$ac_pwd ;;
1725  [\\/]* | ?:[\\/]* )  # Absolute name.
1726    ac_srcdir=$srcdir$ac_dir_suffix;
1727    ac_top_srcdir=$srcdir
1728    ac_abs_top_srcdir=$srcdir ;;
1729  *) # Relative name.
1730    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731    ac_top_srcdir=$ac_top_build_prefix$srcdir
1732    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1733esac
1734ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735
1736    cd "$ac_dir" || { ac_status=$?; continue; }
1737    # Check for guested configure.
1738    if test -f "$ac_srcdir/configure.gnu"; then
1739      echo &&
1740      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741    elif test -f "$ac_srcdir/configure"; then
1742      echo &&
1743      $SHELL "$ac_srcdir/configure" --help=recursive
1744    else
1745      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1746    fi || ac_status=$?
1747    cd "$ac_pwd" || { ac_status=$?; break; }
1748  done
1749fi
1750
1751test -n "$ac_init_help" && exit $ac_status
1752if $ac_init_version; then
1753  cat <<\_ACEOF
1754configure
1755generated by GNU Autoconf 2.69
1756
1757Copyright (C) 2012 Free Software Foundation, Inc.
1758This configure script is free software; the Free Software Foundation
1759gives unlimited permission to copy, distribute and modify it.
1760_ACEOF
1761  exit
1762fi
1763
1764## ------------------------ ##
1765## Autoconf initialization. ##
1766## ------------------------ ##
1767
1768# ac_fn_c_try_compile LINENO
1769# --------------------------
1770# Try to compile conftest.$ac_ext, and return whether this succeeded.
1771ac_fn_c_try_compile ()
1772{
1773  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774  rm -f conftest.$ac_objext
1775  if { { ac_try="$ac_compile"
1776case "(($ac_try" in
1777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778  *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782  (eval "$ac_compile") 2>conftest.err
1783  ac_status=$?
1784  if test -s conftest.err; then
1785    grep -v '^ *+' conftest.err >conftest.er1
1786    cat conftest.er1 >&5
1787    mv -f conftest.er1 conftest.err
1788  fi
1789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; } && {
1791	 test -z "$ac_c_werror_flag" ||
1792	 test ! -s conftest.err
1793       } && test -s conftest.$ac_objext; then :
1794  ac_retval=0
1795else
1796  $as_echo "$as_me: failed program was:" >&5
1797sed 's/^/| /' conftest.$ac_ext >&5
1798
1799	ac_retval=1
1800fi
1801  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802  as_fn_set_status $ac_retval
1803
1804} # ac_fn_c_try_compile
1805
1806# ac_fn_cxx_try_compile LINENO
1807# ----------------------------
1808# Try to compile conftest.$ac_ext, and return whether this succeeded.
1809ac_fn_cxx_try_compile ()
1810{
1811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812  rm -f conftest.$ac_objext
1813  if { { ac_try="$ac_compile"
1814case "(($ac_try" in
1815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816  *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
1820  (eval "$ac_compile") 2>conftest.err
1821  ac_status=$?
1822  if test -s conftest.err; then
1823    grep -v '^ *+' conftest.err >conftest.er1
1824    cat conftest.er1 >&5
1825    mv -f conftest.er1 conftest.err
1826  fi
1827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828  test $ac_status = 0; } && {
1829	 test -z "$ac_cxx_werror_flag" ||
1830	 test ! -s conftest.err
1831       } && test -s conftest.$ac_objext; then :
1832  ac_retval=0
1833else
1834  $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837	ac_retval=1
1838fi
1839  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840  as_fn_set_status $ac_retval
1841
1842} # ac_fn_cxx_try_compile
1843
1844# ac_fn_cxx_try_link LINENO
1845# -------------------------
1846# Try to link conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_cxx_try_link ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  rm -f conftest.$ac_objext conftest$ac_exeext
1851  if { { ac_try="$ac_link"
1852case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_link") 2>conftest.err
1859  ac_status=$?
1860  if test -s conftest.err; then
1861    grep -v '^ *+' conftest.err >conftest.er1
1862    cat conftest.er1 >&5
1863    mv -f conftest.er1 conftest.err
1864  fi
1865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866  test $ac_status = 0; } && {
1867	 test -z "$ac_cxx_werror_flag" ||
1868	 test ! -s conftest.err
1869       } && test -s conftest$ac_exeext && {
1870	 test "$cross_compiling" = yes ||
1871	 test -x conftest$ac_exeext
1872       }; then :
1873  ac_retval=0
1874else
1875  $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878	ac_retval=1
1879fi
1880  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1881  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1882  # interfere with the next link command; also delete a directory that is
1883  # left behind by Apple's compiler.  We do this before executing the actions.
1884  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886  as_fn_set_status $ac_retval
1887
1888} # ac_fn_cxx_try_link
1889
1890# ac_fn_c_try_link LINENO
1891# -----------------------
1892# Try to link conftest.$ac_ext, and return whether this succeeded.
1893ac_fn_c_try_link ()
1894{
1895  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896  rm -f conftest.$ac_objext conftest$ac_exeext
1897  if { { ac_try="$ac_link"
1898case "(($ac_try" in
1899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900  *) ac_try_echo=$ac_try;;
1901esac
1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903$as_echo "$ac_try_echo"; } >&5
1904  (eval "$ac_link") 2>conftest.err
1905  ac_status=$?
1906  if test -s conftest.err; then
1907    grep -v '^ *+' conftest.err >conftest.er1
1908    cat conftest.er1 >&5
1909    mv -f conftest.er1 conftest.err
1910  fi
1911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912  test $ac_status = 0; } && {
1913	 test -z "$ac_c_werror_flag" ||
1914	 test ! -s conftest.err
1915       } && test -s conftest$ac_exeext && {
1916	 test "$cross_compiling" = yes ||
1917	 test -x conftest$ac_exeext
1918       }; then :
1919  ac_retval=0
1920else
1921  $as_echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
1924	ac_retval=1
1925fi
1926  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928  # interfere with the next link command; also delete a directory that is
1929  # left behind by Apple's compiler.  We do this before executing the actions.
1930  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932  as_fn_set_status $ac_retval
1933
1934} # ac_fn_c_try_link
1935cat >config.log <<_ACEOF
1936This file contains any messages produced by compilers while
1937running configure, to aid debugging if configure makes a mistake.
1938
1939It was created by $as_me, which was
1940generated by GNU Autoconf 2.69.  Invocation command line was
1941
1942  $ $0 $@
1943
1944_ACEOF
1945exec 5>>config.log
1946{
1947cat <<_ASUNAME
1948## --------- ##
1949## Platform. ##
1950## --------- ##
1951
1952hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1953uname -m = `(uname -m) 2>/dev/null || echo unknown`
1954uname -r = `(uname -r) 2>/dev/null || echo unknown`
1955uname -s = `(uname -s) 2>/dev/null || echo unknown`
1956uname -v = `(uname -v) 2>/dev/null || echo unknown`
1957
1958/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1959/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1960
1961/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1962/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1963/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1964/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1965/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1966/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1967/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1968
1969_ASUNAME
1970
1971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972for as_dir in $PATH
1973do
1974  IFS=$as_save_IFS
1975  test -z "$as_dir" && as_dir=.
1976    $as_echo "PATH: $as_dir"
1977  done
1978IFS=$as_save_IFS
1979
1980} >&5
1981
1982cat >&5 <<_ACEOF
1983
1984
1985## ----------- ##
1986## Core tests. ##
1987## ----------- ##
1988
1989_ACEOF
1990
1991
1992# Keep a trace of the command line.
1993# Strip out --no-create and --no-recursion so they do not pile up.
1994# Strip out --silent because we don't want to record it for future runs.
1995# Also quote any args containing shell meta-characters.
1996# Make two passes to allow for proper duplicate-argument suppression.
1997ac_configure_args=
1998ac_configure_args0=
1999ac_configure_args1=
2000ac_must_keep_next=false
2001for ac_pass in 1 2
2002do
2003  for ac_arg
2004  do
2005    case $ac_arg in
2006    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2007    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2008    | -silent | --silent | --silen | --sile | --sil)
2009      continue ;;
2010    *\'*)
2011      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2012    esac
2013    case $ac_pass in
2014    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2015    2)
2016      as_fn_append ac_configure_args1 " '$ac_arg'"
2017      if test $ac_must_keep_next = true; then
2018	ac_must_keep_next=false # Got value, back to normal.
2019      else
2020	case $ac_arg in
2021	  *=* | --config-cache | -C | -disable-* | --disable-* \
2022	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2023	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2024	  | -with-* | --with-* | -without-* | --without-* | --x)
2025	    case "$ac_configure_args0 " in
2026	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2027	    esac
2028	    ;;
2029	  -* ) ac_must_keep_next=true ;;
2030	esac
2031      fi
2032      as_fn_append ac_configure_args " '$ac_arg'"
2033      ;;
2034    esac
2035  done
2036done
2037{ ac_configure_args0=; unset ac_configure_args0;}
2038{ ac_configure_args1=; unset ac_configure_args1;}
2039
2040# When interrupted or exit'd, cleanup temporary files, and complete
2041# config.log.  We remove comments because anyway the quotes in there
2042# would cause problems or look ugly.
2043# WARNING: Use '\'' to represent an apostrophe within the trap.
2044# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2045trap 'exit_status=$?
2046  # Save into config.log some information that might help in debugging.
2047  {
2048    echo
2049
2050    $as_echo "## ---------------- ##
2051## Cache variables. ##
2052## ---------------- ##"
2053    echo
2054    # The following way of writing the cache mishandles newlines in values,
2055(
2056  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2057    eval ac_val=\$$ac_var
2058    case $ac_val in #(
2059    *${as_nl}*)
2060      case $ac_var in #(
2061      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2062$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2063      esac
2064      case $ac_var in #(
2065      _ | IFS | as_nl) ;; #(
2066      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2067      *) { eval $ac_var=; unset $ac_var;} ;;
2068      esac ;;
2069    esac
2070  done
2071  (set) 2>&1 |
2072    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2073    *${as_nl}ac_space=\ *)
2074      sed -n \
2075	"s/'\''/'\''\\\\'\'''\''/g;
2076	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2077      ;; #(
2078    *)
2079      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2080      ;;
2081    esac |
2082    sort
2083)
2084    echo
2085
2086    $as_echo "## ----------------- ##
2087## Output variables. ##
2088## ----------------- ##"
2089    echo
2090    for ac_var in $ac_subst_vars
2091    do
2092      eval ac_val=\$$ac_var
2093      case $ac_val in
2094      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095      esac
2096      $as_echo "$ac_var='\''$ac_val'\''"
2097    done | sort
2098    echo
2099
2100    if test -n "$ac_subst_files"; then
2101      $as_echo "## ------------------- ##
2102## File substitutions. ##
2103## ------------------- ##"
2104      echo
2105      for ac_var in $ac_subst_files
2106      do
2107	eval ac_val=\$$ac_var
2108	case $ac_val in
2109	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110	esac
2111	$as_echo "$ac_var='\''$ac_val'\''"
2112      done | sort
2113      echo
2114    fi
2115
2116    if test -s confdefs.h; then
2117      $as_echo "## ----------- ##
2118## confdefs.h. ##
2119## ----------- ##"
2120      echo
2121      cat confdefs.h
2122      echo
2123    fi
2124    test "$ac_signal" != 0 &&
2125      $as_echo "$as_me: caught signal $ac_signal"
2126    $as_echo "$as_me: exit $exit_status"
2127  } >&5
2128  rm -f core *.core core.conftest.* &&
2129    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2130    exit $exit_status
2131' 0
2132for ac_signal in 1 2 13 15; do
2133  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2134done
2135ac_signal=0
2136
2137# confdefs.h avoids OS command line length limits that DEFS can exceed.
2138rm -f -r conftest* confdefs.h
2139
2140$as_echo "/* confdefs.h */" > confdefs.h
2141
2142# Predefined preprocessor variables.
2143
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_NAME "$PACKAGE_NAME"
2146_ACEOF
2147
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2150_ACEOF
2151
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_VERSION "$PACKAGE_VERSION"
2154_ACEOF
2155
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_STRING "$PACKAGE_STRING"
2158_ACEOF
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2162_ACEOF
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_URL "$PACKAGE_URL"
2166_ACEOF
2167
2168
2169# Let the site file select an alternate cache file if it wants to.
2170# Prefer an explicitly selected file to automatically selected ones.
2171ac_site_file1=NONE
2172ac_site_file2=NONE
2173if test -n "$CONFIG_SITE"; then
2174  # We do not want a PATH search for config.site.
2175  case $CONFIG_SITE in #((
2176    -*)  ac_site_file1=./$CONFIG_SITE;;
2177    */*) ac_site_file1=$CONFIG_SITE;;
2178    *)   ac_site_file1=./$CONFIG_SITE;;
2179  esac
2180elif test "x$prefix" != xNONE; then
2181  ac_site_file1=$prefix/share/config.site
2182  ac_site_file2=$prefix/etc/config.site
2183else
2184  ac_site_file1=$ac_default_prefix/share/config.site
2185  ac_site_file2=$ac_default_prefix/etc/config.site
2186fi
2187for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2188do
2189  test "x$ac_site_file" = xNONE && continue
2190  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2191    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2192$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2193    sed 's/^/| /' "$ac_site_file" >&5
2194    . "$ac_site_file" \
2195      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197as_fn_error $? "failed to load site script $ac_site_file
2198See \`config.log' for more details" "$LINENO" 5; }
2199  fi
2200done
2201
2202if test -r "$cache_file"; then
2203  # Some versions of bash will fail to source /dev/null (special files
2204  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2205  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2206    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2207$as_echo "$as_me: loading cache $cache_file" >&6;}
2208    case $cache_file in
2209      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2210      *)                      . "./$cache_file";;
2211    esac
2212  fi
2213else
2214  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2215$as_echo "$as_me: creating cache $cache_file" >&6;}
2216  >$cache_file
2217fi
2218
2219# Check that the precious variables saved in the cache have kept the same
2220# value.
2221ac_cache_corrupted=false
2222for ac_var in $ac_precious_vars; do
2223  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2224  eval ac_new_set=\$ac_env_${ac_var}_set
2225  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2226  eval ac_new_val=\$ac_env_${ac_var}_value
2227  case $ac_old_set,$ac_new_set in
2228    set,)
2229      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2230$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2231      ac_cache_corrupted=: ;;
2232    ,set)
2233      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2234$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2235      ac_cache_corrupted=: ;;
2236    ,);;
2237    *)
2238      if test "x$ac_old_val" != "x$ac_new_val"; then
2239	# differences in whitespace do not lead to failure.
2240	ac_old_val_w=`echo x $ac_old_val`
2241	ac_new_val_w=`echo x $ac_new_val`
2242	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2243	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2244$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2245	  ac_cache_corrupted=:
2246	else
2247	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2248$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2249	  eval $ac_var=\$ac_old_val
2250	fi
2251	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2252$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2253	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2254$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2255      fi;;
2256  esac
2257  # Pass precious variables to config.status.
2258  if test "$ac_new_set" = set; then
2259    case $ac_new_val in
2260    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2261    *) ac_arg=$ac_var=$ac_new_val ;;
2262    esac
2263    case " $ac_configure_args " in
2264      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2265      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2266    esac
2267  fi
2268done
2269if $ac_cache_corrupted; then
2270  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2272  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2273$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2274  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2275fi
2276## -------------------- ##
2277## Main body of script. ##
2278## -------------------- ##
2279
2280ac_ext=c
2281ac_cpp='$CPP $CPPFLAGS'
2282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285
2286
2287
2288
2289
2290
2291
2292
2293progname=$0
2294# if PWD already has a value, it is probably wrong.
2295if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2296
2297# Export original configure arguments for use by sub-configures.
2298# Quote arguments with shell meta charatcers.
2299TOPLEVEL_CONFIGURE_ARGUMENTS=
2300set -- "$progname" "$@"
2301for ac_arg
2302do
2303  case "$ac_arg" in
2304  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2305    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2306    # if the argument is of the form -foo=baz, quote the baz part only
2307    ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2308  *) ;;
2309  esac
2310  # Add the quoted argument to the list.
2311  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2312done
2313if test "$silent" = yes; then
2314  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2315fi
2316# Remove the initial space we just introduced and, as these will be
2317# expanded by make, quote '$'.
2318TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2319
2320
2321# Find the build, host, and target systems.
2322ac_aux_dir=
2323for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2324  if test -f "$ac_dir/install-sh"; then
2325    ac_aux_dir=$ac_dir
2326    ac_install_sh="$ac_aux_dir/install-sh -c"
2327    break
2328  elif test -f "$ac_dir/install.sh"; then
2329    ac_aux_dir=$ac_dir
2330    ac_install_sh="$ac_aux_dir/install.sh -c"
2331    break
2332  elif test -f "$ac_dir/shtool"; then
2333    ac_aux_dir=$ac_dir
2334    ac_install_sh="$ac_aux_dir/shtool install -c"
2335    break
2336  fi
2337done
2338if test -z "$ac_aux_dir"; then
2339  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2340fi
2341
2342# These three variables are undocumented and unsupported,
2343# and are intended to be withdrawn in a future Autoconf release.
2344# They can cause serious problems if a builder's source tree is in a directory
2345# whose full name contains unusual characters.
2346ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2347ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2348ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2349
2350
2351# Make sure we can run config.sub.
2352$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2353  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2354
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2356$as_echo_n "checking build system type... " >&6; }
2357if ${ac_cv_build+:} false; then :
2358  $as_echo_n "(cached) " >&6
2359else
2360  ac_build_alias=$build_alias
2361test "x$ac_build_alias" = x &&
2362  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2363test "x$ac_build_alias" = x &&
2364  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2365ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2366  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2367
2368fi
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2370$as_echo "$ac_cv_build" >&6; }
2371case $ac_cv_build in
2372*-*-*) ;;
2373*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2374esac
2375build=$ac_cv_build
2376ac_save_IFS=$IFS; IFS='-'
2377set x $ac_cv_build
2378shift
2379build_cpu=$1
2380build_vendor=$2
2381shift; shift
2382# Remember, the first character of IFS is used to create $*,
2383# except with old shells:
2384build_os=$*
2385IFS=$ac_save_IFS
2386case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2387
2388
2389 case ${build_alias} in
2390  "") build_noncanonical=${build} ;;
2391  *) build_noncanonical=${build_alias} ;;
2392esac
2393
2394
2395
2396 case ${host_alias} in
2397  "") host_noncanonical=${build_noncanonical} ;;
2398  *) host_noncanonical=${host_alias} ;;
2399esac
2400
2401
2402
2403 case ${target_alias} in
2404  "") target_noncanonical=${host_noncanonical} ;;
2405  *) target_noncanonical=${target_alias} ;;
2406esac
2407
2408
2409
2410
2411test "$host_noncanonical" = "$target_noncanonical" &&
2412  test "$program_prefix$program_suffix$program_transform_name" = \
2413    NONENONEs,x,x, &&
2414  program_transform_name=s,y,y,
2415
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2417$as_echo_n "checking host system type... " >&6; }
2418if ${ac_cv_host+:} false; then :
2419  $as_echo_n "(cached) " >&6
2420else
2421  if test "x$host_alias" = x; then
2422  ac_cv_host=$ac_cv_build
2423else
2424  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2425    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2426fi
2427
2428fi
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2430$as_echo "$ac_cv_host" >&6; }
2431case $ac_cv_host in
2432*-*-*) ;;
2433*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2434esac
2435host=$ac_cv_host
2436ac_save_IFS=$IFS; IFS='-'
2437set x $ac_cv_host
2438shift
2439host_cpu=$1
2440host_vendor=$2
2441shift; shift
2442# Remember, the first character of IFS is used to create $*,
2443# except with old shells:
2444host_os=$*
2445IFS=$ac_save_IFS
2446case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2447
2448
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2450$as_echo_n "checking target system type... " >&6; }
2451if ${ac_cv_target+:} false; then :
2452  $as_echo_n "(cached) " >&6
2453else
2454  if test "x$target_alias" = x; then
2455  ac_cv_target=$ac_cv_host
2456else
2457  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2458    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2459fi
2460
2461fi
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2463$as_echo "$ac_cv_target" >&6; }
2464case $ac_cv_target in
2465*-*-*) ;;
2466*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2467esac
2468target=$ac_cv_target
2469ac_save_IFS=$IFS; IFS='-'
2470set x $ac_cv_target
2471shift
2472target_cpu=$1
2473target_vendor=$2
2474shift; shift
2475# Remember, the first character of IFS is used to create $*,
2476# except with old shells:
2477target_os=$*
2478IFS=$ac_save_IFS
2479case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2480
2481
2482# The aliases save the names the user supplied, while $host etc.
2483# will get canonicalized.
2484test -n "$target_alias" &&
2485  test "$program_prefix$program_suffix$program_transform_name" = \
2486    NONENONEs,x,x, &&
2487  program_prefix=${target_alias}-
2488
2489test "$program_prefix" != NONE &&
2490  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2491# Use a double $ so make ignores it.
2492test "$program_suffix" != NONE &&
2493  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2494# Double any \ or $.
2495# By default was `s,x,x', remove it if useless.
2496ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2497program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2498
2499
2500
2501# Get 'install' or 'install-sh' and its variants.
2502# Find a good install program.  We prefer a C program (faster),
2503# so one script is as good as another.  But avoid the broken or
2504# incompatible versions:
2505# SysV /etc/install, /usr/sbin/install
2506# SunOS /usr/etc/install
2507# IRIX /sbin/install
2508# AIX /bin/install
2509# AmigaOS /C/install, which installs bootblocks on floppy discs
2510# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2511# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2512# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2513# OS/2's system install, which has a completely different semantic
2514# ./install, which can be erroneously created by make from ./install.sh.
2515# Reject install programs that cannot install multiple files.
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2517$as_echo_n "checking for a BSD-compatible install... " >&6; }
2518if test -z "$INSTALL"; then
2519if ${ac_cv_path_install+:} false; then :
2520  $as_echo_n "(cached) " >&6
2521else
2522  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525  IFS=$as_save_IFS
2526  test -z "$as_dir" && as_dir=.
2527    # Account for people who put trailing slashes in PATH elements.
2528case $as_dir/ in #((
2529  ./ | .// | /[cC]/* | \
2530  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2531  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2532  /usr/ucb/* ) ;;
2533  *)
2534    # OSF1 and SCO ODT 3.0 have their own names for install.
2535    # Don't use installbsd from OSF since it installs stuff as root
2536    # by default.
2537    for ac_prog in ginstall scoinst install; do
2538      for ac_exec_ext in '' $ac_executable_extensions; do
2539	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2540	  if test $ac_prog = install &&
2541	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2542	    # AIX install.  It has an incompatible calling convention.
2543	    :
2544	  elif test $ac_prog = install &&
2545	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2546	    # program-specific install script used by HP pwplus--don't use.
2547	    :
2548	  else
2549	    rm -rf conftest.one conftest.two conftest.dir
2550	    echo one > conftest.one
2551	    echo two > conftest.two
2552	    mkdir conftest.dir
2553	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2554	      test -s conftest.one && test -s conftest.two &&
2555	      test -s conftest.dir/conftest.one &&
2556	      test -s conftest.dir/conftest.two
2557	    then
2558	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2559	      break 3
2560	    fi
2561	  fi
2562	fi
2563      done
2564    done
2565    ;;
2566esac
2567
2568  done
2569IFS=$as_save_IFS
2570
2571rm -rf conftest.one conftest.two conftest.dir
2572
2573fi
2574  if test "${ac_cv_path_install+set}" = set; then
2575    INSTALL=$ac_cv_path_install
2576  else
2577    # As a last resort, use the slow shell script.  Don't cache a
2578    # value for INSTALL within a source directory, because that will
2579    # break other packages using the cache if that directory is
2580    # removed, or if the value is a relative name.
2581    INSTALL=$ac_install_sh
2582  fi
2583fi
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2585$as_echo "$INSTALL" >&6; }
2586
2587# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2588# It thinks the first close brace ends the variable substitution.
2589test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2590
2591test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2592
2593test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2594
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2596$as_echo_n "checking whether ln works... " >&6; }
2597if ${acx_cv_prog_LN+:} false; then :
2598  $as_echo_n "(cached) " >&6
2599else
2600  rm -f conftestdata_t
2601echo >conftestdata_f
2602if ln conftestdata_f conftestdata_t 2>/dev/null
2603then
2604  acx_cv_prog_LN=ln
2605else
2606  acx_cv_prog_LN=no
2607fi
2608rm -f conftestdata_f conftestdata_t
2609
2610fi
2611if test $acx_cv_prog_LN = no; then
2612  LN="cp"
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2614$as_echo "no, using $LN" >&6; }
2615else
2616  LN="$acx_cv_prog_LN"
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2618$as_echo "yes" >&6; }
2619fi
2620
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2622$as_echo_n "checking whether ln -s works... " >&6; }
2623LN_S=$as_ln_s
2624if test "$LN_S" = "ln -s"; then
2625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2626$as_echo "yes" >&6; }
2627else
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2629$as_echo "no, using $LN_S" >&6; }
2630fi
2631
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2633$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2634if ${ac_cv_path_SED+:} false; then :
2635  $as_echo_n "(cached) " >&6
2636else
2637            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2638     for ac_i in 1 2 3 4 5 6 7; do
2639       ac_script="$ac_script$as_nl$ac_script"
2640     done
2641     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2642     { ac_script=; unset ac_script;}
2643     if test -z "$SED"; then
2644  ac_path_SED_found=false
2645  # Loop through the user's path and test for each of PROGNAME-LIST
2646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649  IFS=$as_save_IFS
2650  test -z "$as_dir" && as_dir=.
2651    for ac_prog in sed gsed; do
2652    for ac_exec_ext in '' $ac_executable_extensions; do
2653      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2654      as_fn_executable_p "$ac_path_SED" || continue
2655# Check for GNU ac_path_SED and select it if it is found.
2656  # Check for GNU $ac_path_SED
2657case `"$ac_path_SED" --version 2>&1` in
2658*GNU*)
2659  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2660*)
2661  ac_count=0
2662  $as_echo_n 0123456789 >"conftest.in"
2663  while :
2664  do
2665    cat "conftest.in" "conftest.in" >"conftest.tmp"
2666    mv "conftest.tmp" "conftest.in"
2667    cp "conftest.in" "conftest.nl"
2668    $as_echo '' >> "conftest.nl"
2669    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2670    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2671    as_fn_arith $ac_count + 1 && ac_count=$as_val
2672    if test $ac_count -gt ${ac_path_SED_max-0}; then
2673      # Best one so far, save it but keep looking for a better one
2674      ac_cv_path_SED="$ac_path_SED"
2675      ac_path_SED_max=$ac_count
2676    fi
2677    # 10*(2^10) chars as input seems more than enough
2678    test $ac_count -gt 10 && break
2679  done
2680  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2681esac
2682
2683      $ac_path_SED_found && break 3
2684    done
2685  done
2686  done
2687IFS=$as_save_IFS
2688  if test -z "$ac_cv_path_SED"; then
2689    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2690  fi
2691else
2692  ac_cv_path_SED=$SED
2693fi
2694
2695fi
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2697$as_echo "$ac_cv_path_SED" >&6; }
2698 SED="$ac_cv_path_SED"
2699  rm -f conftest.sed
2700
2701for ac_prog in gawk mawk nawk awk
2702do
2703  # Extract the first word of "$ac_prog", so it can be a program name with args.
2704set dummy $ac_prog; ac_word=$2
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706$as_echo_n "checking for $ac_word... " >&6; }
2707if ${ac_cv_prog_AWK+:} false; then :
2708  $as_echo_n "(cached) " >&6
2709else
2710  if test -n "$AWK"; then
2711  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716  IFS=$as_save_IFS
2717  test -z "$as_dir" && as_dir=.
2718    for ac_exec_ext in '' $ac_executable_extensions; do
2719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720    ac_cv_prog_AWK="$ac_prog"
2721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722    break 2
2723  fi
2724done
2725  done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730AWK=$ac_cv_prog_AWK
2731if test -n "$AWK"; then
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2733$as_echo "$AWK" >&6; }
2734else
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736$as_echo "no" >&6; }
2737fi
2738
2739
2740  test -n "$AWK" && break
2741done
2742
2743
2744srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2745
2746# We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2747# a relative path.
2748if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2749  INSTALL="${srcpwd}/install-sh -c"
2750fi
2751
2752# Set srcdir to "." if that's what it is.
2753# This is important for multilib support.
2754pwd=`${PWDCMD-pwd}`
2755if test "${pwd}" = "${srcpwd}" ; then
2756  srcdir=.
2757fi
2758
2759topsrcdir=$srcpwd
2760
2761extra_host_args=
2762
2763### To add a new directory to the tree, first choose whether it is a target
2764### or a host dependent tool.  Then put it into the appropriate list
2765### (library or tools, host or target), doing a dependency sort.
2766
2767# Subdirs will be configured in the order listed in build_configdirs,
2768# configdirs, or target_configdirs; see the serialization section below.
2769
2770# Dependency sorting is only needed when *configuration* must be done in
2771# a particular order.  In all cases a dependency should be specified in
2772# the Makefile, whether or not it's implicitly specified here.
2773
2774# Double entries in build_configdirs, configdirs, or target_configdirs may
2775# cause circular dependencies and break everything horribly.
2776
2777# these library is used by various programs built for the build
2778# environment
2779#
2780build_libs="build-libiberty build-libcpp"
2781
2782# these tools are built for the build environment
2783build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2784
2785# these libraries are used by various programs built for the host environment
2786#f
2787host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2788
2789# these tools are built for the host environment
2790# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2791# know that we are building the simulator.
2792# binutils, gas and ld appear in that order because it makes sense to run
2793# "make check" in that particular order.
2794# If --enable-gold is used, "gold" may replace "ld".
2795host_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"
2796
2797# these libraries are built for the target environment, and are built after
2798# the host libraries and the host tools (which may be a cross compiler)
2799# Note that libiberty is not a target library.
2800target_libraries="target-libgcc \
2801		target-libbacktrace \
2802		target-libgloss \
2803		target-newlib \
2804		target-libgomp \
2805		target-liboffloadmic \
2806		target-libhsail-rt \
2807		target-libatomic \
2808		target-libitm \
2809		target-libstdc++-v3 \
2810		target-libsanitizer \
2811		target-libvtv \
2812		target-libssp \
2813		target-libquadmath \
2814		target-libgfortran \
2815		target-libffi \
2816		target-libobjc \
2817		target-libada \
2818		target-libgo"
2819
2820# these tools are built using the target libraries, and are intended to
2821# run only in the target environment
2822#
2823# note: any program that *uses* libraries that are in the "target_libraries"
2824# list belongs in this list.
2825#
2826target_tools="target-rda"
2827
2828################################################################################
2829
2830## All tools belong in one of the four categories, and are assigned above
2831## We assign ${configdirs} this way to remove all embedded newlines.  This
2832## is important because configure will choke if they ever get through.
2833## ${configdirs} is directories we build using the host tools.
2834## ${target_configdirs} is directories we build using the target tools.
2835configdirs=`echo ${host_libs} ${host_tools}`
2836target_configdirs=`echo ${target_libraries} ${target_tools}`
2837build_configdirs=`echo ${build_libs} ${build_tools}`
2838
2839
2840
2841################################################################################
2842
2843srcname="gnu development package"
2844
2845# This gets set non-empty for some net releases of packages.
2846appdirs=""
2847
2848# Define is_cross_compiler to save on calls to 'test'.
2849is_cross_compiler=
2850if test x"${host}" = x"${target}" ; then
2851  is_cross_compiler=no
2852else
2853  is_cross_compiler=yes
2854fi
2855
2856# Find the build and target subdir names.
2857
2858# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2859# have matching libraries, they should use host libraries: Makefile.tpl
2860# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2861# However, they still use the build modules, because the corresponding
2862# host modules (e.g. bison) are only built for the host when bootstrap
2863# finishes. So:
2864# - build_subdir is where we find build modules, and never changes.
2865# - build_libsubdir is where we find build libraries, and can be overridden.
2866
2867# Prefix 'build-' so this never conflicts with target_subdir.
2868build_subdir="build-${build_noncanonical}"
2869
2870# Check whether --with-build-libsubdir was given.
2871if test "${with_build_libsubdir+set}" = set; then :
2872  withval=$with_build_libsubdir; build_libsubdir="$withval"
2873else
2874  build_libsubdir="$build_subdir"
2875fi
2876
2877# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2878if ( test $srcdir = . && test -d gcc ) \
2879   || test -d $srcdir/../host-${host_noncanonical}; then
2880  host_subdir="host-${host_noncanonical}"
2881else
2882  host_subdir=.
2883fi
2884# No prefix.
2885target_subdir=${target_noncanonical}
2886
2887# Be sure to cover against remnants of an in-tree build.
2888if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2889  as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2890Use a pristine source tree when building in a separate tree" "$LINENO" 5
2891fi
2892
2893# Skipdirs are removed silently.
2894skipdirs=
2895# Noconfigdirs are removed loudly.
2896noconfigdirs=""
2897
2898use_gnu_ld=
2899# Make sure we don't let GNU ld be added if we didn't want it.
2900if test x$with_gnu_ld = xno ; then
2901  use_gnu_ld=no
2902  noconfigdirs="$noconfigdirs ld gold"
2903fi
2904
2905use_gnu_as=
2906# Make sure we don't let GNU as be added if we didn't want it.
2907if test x$with_gnu_as = xno ; then
2908  use_gnu_as=no
2909  noconfigdirs="$noconfigdirs gas"
2910fi
2911
2912use_included_zlib=
2913
2914# Check whether --with-system-zlib was given.
2915if test "${with_system_zlib+set}" = set; then :
2916  withval=$with_system_zlib;
2917fi
2918
2919# Make sure we don't let ZLIB be added if we didn't want it.
2920if test x$with_system_zlib = xyes ; then
2921  use_included_zlib=no
2922  noconfigdirs="$noconfigdirs zlib"
2923fi
2924
2925# Don't compile the bundled readline/libreadline.a if --with-system-readline
2926# is provided.
2927if test x$with_system_readline = xyes ; then
2928  noconfigdirs="$noconfigdirs readline"
2929fi
2930
2931# some tools are so dependent upon X11 that if we're not building with X,
2932# it's not even worth trying to configure, much less build, that tool.
2933
2934case ${with_x} in
2935  yes | "") ;; # the default value for this tree is that X11 is available
2936  no)
2937    skipdirs="${skipdirs} tk itcl libgui"
2938    # We won't be able to build gdbtk without X.
2939    enable_gdbtk=no
2940    ;;
2941  *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2942esac
2943
2944# Some are only suitable for cross toolchains.
2945# Remove these if host=target.
2946cross_only="target-libgloss target-newlib target-opcodes"
2947
2948case $is_cross_compiler in
2949  no) skipdirs="${skipdirs} ${cross_only}" ;;
2950esac
2951
2952# If both --with-headers and --with-libs are specified, default to
2953# --without-newlib.
2954if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2955   && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2956  if test x"${with_newlib}" = x ; then
2957    with_newlib=no
2958  fi
2959fi
2960
2961# Recognize --with-newlib/--without-newlib.
2962case ${with_newlib} in
2963  no) skipdirs="${skipdirs} target-newlib" ;;
2964  yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2965esac
2966
2967# Check whether --enable-as-accelerator-for was given.
2968if test "${enable_as_accelerator_for+set}" = set; then :
2969  enableval=$enable_as_accelerator_for;
2970fi
2971
2972
2973# Check whether --enable-offload-targets was given.
2974if test "${enable_offload_targets+set}" = set; then :
2975  enableval=$enable_offload_targets;
2976  if test x"$enable_offload_targets" = x; then
2977    as_fn_error $? "no offload targets specified" "$LINENO" 5
2978  fi
2979
2980else
2981  enable_offload_targets=
2982fi
2983
2984
2985# Handle --enable-gold, --enable-ld.
2986# --disable-gold [--enable-ld]
2987#     Build only ld.  Default option.
2988# --enable-gold [--enable-ld]
2989#     Build both gold and ld.  Install gold as "ld.gold", install ld
2990#     as "ld.bfd" and "ld".
2991# --enable-gold=default [--enable-ld]
2992#     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2993#     install ld as "ld.bfd".
2994# --enable-gold[=default] --disable-ld
2995#     Build only gold, which is then installed as both "ld.gold" and "ld".
2996# --enable-gold --enable-ld=default
2997#     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2998#     and ld.bfd).
2999#     In other words, ld is default
3000# --enable-gold=default --enable-ld=default
3001#     Error.
3002
3003default_ld=
3004# Check whether --enable-gold was given.
3005if test "${enable_gold+set}" = set; then :
3006  enableval=$enable_gold; ENABLE_GOLD=$enableval
3007else
3008  ENABLE_GOLD=no
3009fi
3010
3011case "${ENABLE_GOLD}" in
3012  yes|default)
3013    # Check for ELF target.
3014    is_elf=no
3015    case "${target}" in
3016      *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3017      | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3018      | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3019      | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3020        case "${target}" in
3021          *-*-linux*aout* | *-*-linux*oldld*)
3022            ;;
3023          *)
3024            is_elf=yes
3025            ;;
3026        esac
3027    esac
3028
3029    if test "$is_elf" = "yes"; then
3030      # Check for target supported by gold.
3031      case "${target}" in
3032        i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3033        | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3034	  configdirs="$configdirs gold"
3035	  if test x${ENABLE_GOLD} = xdefault; then
3036	    default_ld=gold
3037	  fi
3038	  ENABLE_GOLD=yes
3039          ;;
3040      esac
3041    fi
3042    ;;
3043  no)
3044    ;;
3045  *)
3046    as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3047    ;;
3048esac
3049
3050# Check whether --enable-ld was given.
3051if test "${enable_ld+set}" = set; then :
3052  enableval=$enable_ld; ENABLE_LD=$enableval
3053else
3054  ENABLE_LD=yes
3055fi
3056
3057
3058case "${ENABLE_LD}" in
3059  default)
3060    if test x${default_ld} != x; then
3061      as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3062    fi
3063    ;;
3064  yes)
3065    ;;
3066  no)
3067    if test x${ENABLE_GOLD} != xyes; then
3068      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3069$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3070    fi
3071    configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3072    ;;
3073  *)
3074    as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3075    ;;
3076esac
3077
3078# Check whether --enable-gprofng was given.
3079if test "${enable_gprofng+set}" = set; then :
3080  enableval=$enable_gprofng; enable_gprofng=$enableval
3081else
3082  enable_gprofng=yes
3083fi
3084
3085if test "$enable_gprofng" = "yes"; then
3086  case "${target}" in
3087    x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3088    configdirs="$configdirs gprofng"
3089    ;;
3090  esac
3091fi
3092
3093
3094# PR gas/19109
3095# Decide the default method for compressing debug sections.
3096# Provide a configure time option to override our default.
3097# Check whether --enable-compressed_debug_sections was given.
3098if test "${enable_compressed_debug_sections+set}" = set; then :
3099  enableval=$enable_compressed_debug_sections;
3100  if test x"$enable_compressed_debug_sections" = xyes; then
3101    as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3102  fi
3103
3104else
3105  enable_compressed_debug_sections=
3106fi
3107
3108
3109# Configure extra directories which are host specific
3110
3111case "${host}" in
3112  *-cygwin*)
3113    configdirs="$configdirs libtermcap" ;;
3114esac
3115
3116# A target can indicate whether a language isn't supported for some reason.
3117# Only spaces may be used in this macro; not newlines or tabs.
3118unsupported_languages=
3119
3120# Remove more programs from consideration, based on the host or
3121# target this usually means that a port of the program doesn't
3122# exist yet.
3123
3124case "${host}" in
3125  i[3456789]86-*-msdosdjgpp*)
3126    noconfigdirs="$noconfigdirs tcl tk itcl"
3127    ;;
3128esac
3129
3130
3131# Check whether --enable-libquadmath was given.
3132if test "${enable_libquadmath+set}" = set; then :
3133  enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3134else
3135  ENABLE_LIBQUADMATH=yes
3136fi
3137
3138if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3139  noconfigdirs="$noconfigdirs target-libquadmath"
3140fi
3141
3142
3143# Check whether --enable-libquadmath-support was given.
3144if test "${enable_libquadmath_support+set}" = set; then :
3145  enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3146else
3147  ENABLE_LIBQUADMATH_SUPPORT=yes
3148fi
3149
3150enable_libquadmath_support=
3151if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3152  enable_libquadmath_support=no
3153fi
3154
3155
3156# Check whether --enable-libada was given.
3157if test "${enable_libada+set}" = set; then :
3158  enableval=$enable_libada; ENABLE_LIBADA=$enableval
3159else
3160  ENABLE_LIBADA=yes
3161fi
3162
3163if test "${ENABLE_LIBADA}" != "yes" ; then
3164  noconfigdirs="$noconfigdirs gnattools"
3165fi
3166
3167# Check whether --enable-libssp was given.
3168if test "${enable_libssp+set}" = set; then :
3169  enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3170else
3171  ENABLE_LIBSSP=yes
3172fi
3173
3174
3175# Check whether --enable-libstdcxx was given.
3176if test "${enable_libstdcxx+set}" = set; then :
3177  enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3178else
3179  ENABLE_LIBSTDCXX=default
3180fi
3181
3182if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3183  noconfigdirs="$noconfigdirs target-libstdc++-v3"
3184fi
3185
3186# If this is accelerator compiler and its target is intelmic we enable
3187# target liboffloadmic by default.  If this is compiler with offloading
3188# for intelmic we enable host liboffloadmic by default.  Otherwise
3189# liboffloadmic is disabled by default.
3190# Check whether --enable-liboffloadmic was given.
3191if test "${enable_liboffloadmic+set}" = set; then :
3192  enableval=$enable_liboffloadmic; case "$enableval" in
3193  no | host | target)
3194    enable_liboffloadmic=$enableval ;;
3195  *)
3196    as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3197esac
3198else
3199  if test x"$enable_as_accelerator_for" != x; then
3200  case "${target}" in
3201    *-intelmic-* | *-intelmicemul-*)
3202      enable_liboffloadmic=target
3203      extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3204      ;;
3205    *)
3206      enable_liboffloadmic=no
3207      ;;
3208  esac
3209else
3210  case "${enable_offload_targets}" in
3211    *-intelmic-* | *-intelmicemul-*)
3212      enable_liboffloadmic=host
3213      extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3214      ;;
3215    *)
3216      enable_liboffloadmic=no
3217      ;;
3218    esac
3219fi
3220fi
3221
3222
3223
3224# Enable libgomp by default on hosted POSIX systems, and a few others.
3225if test x$enable_libgomp = x ; then
3226    case "${target}" in
3227    *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3228	;;
3229    *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3230	;;
3231    *-*-solaris2* | *-*-hpux11*)
3232	;;
3233    *-*-darwin* | *-*-aix*)
3234	;;
3235    nvptx*-*-*)
3236	;;
3237    *)
3238	noconfigdirs="$noconfigdirs target-libgomp"
3239	;;
3240    esac
3241fi
3242
3243# Disable libatomic on unsupported systems.
3244if test -d ${srcdir}/libatomic; then
3245    if test x$enable_libatomic = x; then
3246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3247$as_echo_n "checking for libatomic support... " >&6; }
3248	if (srcdir=${srcdir}/libatomic; \
3249		. ${srcdir}/configure.tgt; \
3250		test -n "$UNSUPPORTED")
3251	then
3252	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254	    noconfigdirs="$noconfigdirs target-libatomic"
3255	else
3256	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257$as_echo "yes" >&6; }
3258	fi
3259    fi
3260fi
3261
3262# Disable liboffloadmic on unsupported systems.
3263if test -d ${srcdir}/liboffloadmic; then
3264    if test x$enable_liboffloadmic != xno; then
3265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3266$as_echo_n "checking for liboffloadmic support... " >&6; }
3267	if (srcdir=${srcdir}/liboffloadmic; \
3268		. ${srcdir}/configure.tgt; \
3269		test -n "$UNSUPPORTED")
3270	then
3271	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273	    noconfigdirs="$noconfigdirs target-liboffloadmic"
3274	else
3275	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276$as_echo "yes" >&6; }
3277	fi
3278    fi
3279fi
3280
3281# Disable libitm on unsupported systems.
3282if test -d ${srcdir}/libitm; then
3283    if test x$enable_libitm = x; then
3284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3285$as_echo_n "checking for libitm support... " >&6; }
3286	if (srcdir=${srcdir}/libitm; \
3287		. ${srcdir}/configure.tgt; \
3288		test -n "$UNSUPPORTED")
3289	then
3290	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292	    noconfigdirs="$noconfigdirs target-libitm"
3293	else
3294	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295$as_echo "yes" >&6; }
3296	fi
3297    fi
3298fi
3299
3300# Disable libsanitizer on unsupported systems.
3301if test -d ${srcdir}/libsanitizer; then
3302    if test x$enable_libsanitizer = x; then
3303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3304$as_echo_n "checking for libsanitizer support... " >&6; }
3305	if (srcdir=${srcdir}/libsanitizer; \
3306		. ${srcdir}/configure.tgt; \
3307		test -n "$UNSUPPORTED")
3308	then
3309	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311	    noconfigdirs="$noconfigdirs target-libsanitizer"
3312	else
3313	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
3315	fi
3316    fi
3317fi
3318
3319# Disable libvtv on unsupported systems.
3320if test -d ${srcdir}/libvtv; then
3321    if test x$enable_libvtv = x; then
3322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3323$as_echo_n "checking for libvtv support... " >&6; }
3324	if (srcdir=${srcdir}/libvtv; \
3325		. ${srcdir}/configure.tgt; \
3326		test "$VTV_SUPPORTED" != "yes")
3327	then
3328	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329$as_echo "no" >&6; }
3330	    noconfigdirs="$noconfigdirs target-libvtv"
3331	else
3332	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333$as_echo "yes" >&6; }
3334	fi
3335    fi
3336fi
3337
3338
3339# Disable libhsail-rt on unsupported systems.
3340if test -d ${srcdir}/libhsail-rt; then
3341    if test x$enable_libhsail_rt = x; then
3342        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3343$as_echo_n "checking for libhsail-rt support... " >&6; }
3344        if (srcdir=${srcdir}/libhsail-rt; \
3345                . ${srcdir}/configure.tgt; \
3346                test -n "$UNSUPPORTED")
3347        then
3348            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349$as_echo "no" >&6; }
3350            unsupported_languages="$unsupported_languages brig"
3351            # This implicitly disables also target-libhsail-rt as it won't
3352            # get added to the build without BRIG FE.
3353        else
3354            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355$as_echo "yes" >&6; }
3356        fi
3357    fi
3358fi
3359
3360
3361# Disable libquadmath for some systems.
3362case "${target}" in
3363  avr-*-*)
3364    noconfigdirs="$noconfigdirs target-libquadmath"
3365    ;;
3366  # libquadmath is unused on AIX and libquadmath build process use of
3367  # LD_LIBRARY_PATH can break AIX bootstrap.
3368  powerpc-*-aix* | rs6000-*-aix*)
3369    noconfigdirs="$noconfigdirs target-libquadmath"
3370    ;;
3371esac
3372
3373# Disable libssp for some systems.
3374case "${target}" in
3375  avr-*-*)
3376    # No hosted I/O support.
3377    noconfigdirs="$noconfigdirs target-libssp"
3378    ;;
3379  powerpc-*-aix* | rs6000-*-aix*)
3380    noconfigdirs="$noconfigdirs target-libssp"
3381    ;;
3382  rl78-*-*)
3383    # libssp uses a misaligned load to trigger a fault, but the RL78
3384    # doesn't fault for those - instead, it gives a build-time error
3385    # for explicit misaligned loads.
3386    noconfigdirs="$noconfigdirs target-libssp"
3387    ;;
3388  visium-*-*)
3389    # No hosted I/O support.
3390    noconfigdirs="$noconfigdirs target-libssp"
3391    ;;
3392esac
3393
3394# Disable libstdc++-v3 for some systems.
3395# Allow user to override this if they pass --enable-libstdc++-v3
3396if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3397  case "${target}" in
3398    *-*-vxworks*)
3399      # VxWorks uses the Dinkumware C++ library.
3400      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401      ;;
3402    arm*-wince-pe*)
3403      # the C++ libraries don't build on top of CE's C libraries
3404      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405      ;;
3406    avr-*-*)
3407      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408      ;;
3409    ft32-*-*)
3410      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3411      ;;
3412  esac
3413fi
3414
3415# Disable Fortran for some systems.
3416case "${target}" in
3417  mmix-*-*)
3418    # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3419    unsupported_languages="$unsupported_languages fortran"
3420    ;;
3421esac
3422
3423# Disable libffi for some systems.
3424case "${target}" in
3425  powerpc-*-darwin*)
3426    ;;
3427  i[3456789]86-*-darwin*)
3428    ;;
3429  x86_64-*-darwin[912]*)
3430    ;;
3431  *-*-darwin*)
3432    noconfigdirs="$noconfigdirs target-libffi"
3433    ;;
3434  *-*-netware*)
3435    noconfigdirs="$noconfigdirs target-libffi"
3436    ;;
3437  *-*-phoenix*)
3438    noconfigdirs="$noconfigdirs target-libffi"
3439    ;;
3440  *-*-rtems*)
3441    noconfigdirs="$noconfigdirs target-libffi"
3442    ;;
3443  *-*-tpf*)
3444    noconfigdirs="$noconfigdirs target-libffi"
3445    ;;
3446  *-*-uclinux*)
3447    noconfigdirs="$noconfigdirs target-libffi"
3448    ;;
3449  *-*-vxworks*)
3450    noconfigdirs="$noconfigdirs target-libffi"
3451    ;;
3452  aarch64*-*-freebsd*)
3453    noconfigdirs="$noconfigdirs target-libffi"
3454    ;;
3455  alpha*-*-*vms*)
3456    noconfigdirs="$noconfigdirs target-libffi"
3457    ;;
3458  arm*-*-freebsd*)
3459    noconfigdirs="$noconfigdirs target-libffi"
3460    ;;
3461  arm-wince-pe)
3462    noconfigdirs="$noconfigdirs target-libffi"
3463    ;;
3464  cris-*-* | crisv32-*-*)
3465    case "${target}" in
3466      *-*-linux*)
3467	;;
3468      *) # See PR46792 regarding target-libffi.
3469	noconfigdirs="$noconfigdirs target-libffi";;
3470    esac
3471    ;;
3472  hppa*64*-*-hpux*)
3473    noconfigdirs="$noconfigdirs target-libffi"
3474    ;;
3475  hppa*-hp-hpux11*)
3476    ;;
3477  hppa*-*-hpux*)
3478    noconfigdirs="$noconfigdirs target-libffi"
3479    ;;
3480  ia64*-*-*vms*)
3481    noconfigdirs="$noconfigdirs target-libffi"
3482    ;;
3483  i[3456789]86-w64-mingw*)
3484    noconfigdirs="$noconfigdirs target-libffi"
3485    ;;
3486  i[3456789]86-*-mingw*)
3487    noconfigdirs="$noconfigdirs target-libffi"
3488    ;;
3489  x86_64-*-mingw*)
3490    noconfigdirs="$noconfigdirs target-libffi"
3491    ;;
3492  mmix-*-*)
3493    noconfigdirs="$noconfigdirs target-libffi"
3494    ;;
3495  powerpc-*-aix*)
3496    ;;
3497  rs6000-*-aix*)
3498    ;;
3499  ft32-*-*)
3500    noconfigdirs="$noconfigdirs target-libffi"
3501    ;;
3502  *-*-lynxos*)
3503    noconfigdirs="$noconfigdirs target-libffi"
3504    ;;
3505esac
3506
3507# Disable the go frontend on systems where it is known to not work. Please keep
3508# this in sync with contrib/config-list.mk.
3509case "${target}" in
3510*-*-darwin* | *-*-cygwin* | *-*-mingw*)
3511    unsupported_languages="$unsupported_languages go"
3512    ;;
3513esac
3514
3515# Only allow gdbserver on some systems.
3516if test -d ${srcdir}/gdbserver; then
3517    if test x$enable_gdbserver = x; then
3518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3519$as_echo_n "checking for gdbserver support... " >&6; }
3520	if (srcdir=${srcdir}/gdbserver; \
3521		. ${srcdir}/configure.srv; \
3522		test -n "$UNSUPPORTED")
3523	then
3524	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525$as_echo "no" >&6; }
3526	    noconfigdirs="$noconfigdirs gdbserver"
3527	else
3528	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3529$as_echo "yes" >&6; }
3530	fi
3531    fi
3532fi
3533
3534# Disable libgo for some systems where it is known to not work.
3535# For testing, you can easily override this with --enable-libgo.
3536if test x$enable_libgo = x; then
3537    case "${target}" in
3538    *-*-darwin*)
3539	# PR 46986
3540	noconfigdirs="$noconfigdirs target-libgo"
3541	;;
3542    *-*-cygwin* | *-*-mingw*)
3543	noconfigdirs="$noconfigdirs target-libgo"
3544	;;
3545    esac
3546fi
3547
3548# Default libgloss CPU subdirectory.
3549libgloss_dir="$target_cpu"
3550
3551case "${target}" in
3552  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3553    libgloss_dir=wince
3554    ;;
3555  aarch64*-*-* )
3556    libgloss_dir=aarch64
3557    ;;
3558  arm*-*-*)
3559    libgloss_dir=arm
3560    ;;
3561  cris-*-* | crisv32-*-*)
3562    libgloss_dir=cris
3563    ;;
3564  hppa*-*-*)
3565    libgloss_dir=pa
3566    ;;
3567  i[3456789]86-*-*)
3568    libgloss_dir=i386
3569    ;;
3570  m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3571    libgloss_dir=m68hc11
3572    ;;
3573  m68*-*-* | fido-*-*)
3574    libgloss_dir=m68k
3575    ;;
3576  mips*-*-*)
3577    libgloss_dir=mips
3578    ;;
3579  powerpc*-*-*)
3580    libgloss_dir=rs6000
3581    ;;
3582  sparc*-*-*)
3583    libgloss_dir=sparc
3584    ;;
3585esac
3586
3587# Disable newlib and libgloss for various target OSes.
3588case "${target}" in
3589  alpha*-dec-osf*)
3590    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3591    ;;
3592  i[3456789]86-*-linux*)
3593    # This section makes it possible to build newlib natively on linux.
3594    # If we are using a cross compiler then don't configure newlib.
3595    if test x${is_cross_compiler} != xno ; then
3596      noconfigdirs="$noconfigdirs target-newlib"
3597    fi
3598    noconfigdirs="$noconfigdirs target-libgloss"
3599    # If we are not using a cross compiler, do configure newlib.
3600    # Note however, that newlib will only be configured in this situation
3601    # if the --with-newlib option has been given, because otherwise
3602    # 'target-newlib' will appear in skipdirs.
3603    ;;
3604  i[3456789]86-*-rdos*)
3605    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3606    ;;
3607  sh*-*-pe|mips*-*-pe|arm-wince-pe)
3608    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3609    ;;
3610  sparc-*-sunos4*)
3611    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612    ;;
3613  *-*-aix*)
3614    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3615    ;;
3616  *-*-beos*)
3617    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3618    ;;
3619  *-*-chorusos)
3620    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3621    ;;
3622  *-*-dragonfly*)
3623    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624    ;;
3625  *-*-freebsd*)
3626    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3627    ;;
3628  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3629    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630    ;;
3631  *-*-lynxos*)
3632    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3633    ;;
3634  *-*-mingw*)
3635    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636    ;;
3637  *-*-netbsd*)
3638    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639    ;;
3640  *-*-netware*)
3641    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642    ;;
3643  *-*-tpf*)
3644    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645    ;;
3646  *-*-uclinux*)
3647    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648    ;;
3649  *-*-vxworks*)
3650    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651    ;;
3652esac
3653
3654case "${target}" in
3655  *-*-chorusos)
3656    ;;
3657  aarch64-*-darwin*)
3658    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3659    noconfigdirs="$noconfigdirs sim target-rda"
3660    ;;
3661  arm-*-darwin*)
3662    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3663    noconfigdirs="$noconfigdirs sim target-rda"
3664    ;;
3665  powerpc-*-darwin*)
3666    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3667    noconfigdirs="$noconfigdirs sim target-rda"
3668    ;;
3669  i[3456789]86-*-darwin*)
3670    noconfigdirs="$noconfigdirs ld gprof"
3671    noconfigdirs="$noconfigdirs sim target-rda"
3672    ;;
3673  x86_64-*-darwin[912]*)
3674    noconfigdirs="$noconfigdirs ld gas gprof"
3675    noconfigdirs="$noconfigdirs sim target-rda"
3676    ;;
3677  *-*-darwin*)
3678    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3679    noconfigdirs="$noconfigdirs sim target-rda"
3680    ;;
3681  *-*-dragonfly*)
3682    ;;
3683  *-*-freebsd*)
3684    if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3685	&& test -f /usr/local/include/gmp.h; then
3686      with_gmp=/usr/local
3687    fi
3688    ;;
3689  *-*-kaos*)
3690    # Remove unsupported stuff on all kaOS configurations.
3691    noconfigdirs="$noconfigdirs target-libgloss"
3692    ;;
3693  *-*-netbsd*)
3694    ;;
3695  *-*-netware*)
3696    ;;
3697  *-*-phoenix*)
3698    noconfigdirs="$noconfigdirs target-libgloss"
3699    ;;
3700  *-*-rtems*)
3701    noconfigdirs="$noconfigdirs target-libgloss"
3702    ;;
3703    # The tpf target doesn't support gdb yet.
3704  *-*-tpf*)
3705    noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3706    ;;
3707  *-*-uclinux*)
3708    noconfigdirs="$noconfigdirs target-rda"
3709    ;;
3710  *-*-vxworks*)
3711    ;;
3712  alpha*-dec-osf*)
3713    # ld works, but does not support shared libraries.
3714    # gas doesn't generate exception information.
3715    noconfigdirs="$noconfigdirs gas ld"
3716    ;;
3717  alpha*-*-*vms*)
3718    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3719    ;;
3720  alpha*-*-*)
3721    # newlib is not 64 bit ready
3722    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723    ;;
3724  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3725    noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3726    ;;
3727  arc*-*-*)
3728    noconfigdirs="$noconfigdirs sim"
3729    ;;
3730  arm-*-pe*)
3731    noconfigdirs="$noconfigdirs target-libgloss"
3732    ;;
3733  arm-*-riscix*)
3734    noconfigdirs="$noconfigdirs ld target-libgloss"
3735    ;;
3736  avr-*-*)
3737    if test x${with_avrlibc} != xno; then
3738      noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3739    fi
3740    ;;
3741  c4x-*-* | tic4x-*-*)
3742    noconfigdirs="$noconfigdirs target-libgloss"
3743    ;;
3744  tic54x-*-*)
3745    noconfigdirs="$noconfigdirs target-libgloss gdb"
3746    ;;
3747  d10v-*-*)
3748    noconfigdirs="$noconfigdirs target-libgloss"
3749    ;;
3750  d30v-*-*)
3751    noconfigdirs="$noconfigdirs gdb"
3752    ;;
3753  fr30-*-elf*)
3754    noconfigdirs="$noconfigdirs gdb"
3755    ;;
3756  ft32-*-*)
3757    noconfigdirs="$noconfigdirs target-rda gprof"
3758    ;;
3759  moxie-*-*)
3760    noconfigdirs="$noconfigdirs"
3761    ;;
3762  h8300*-*-*)
3763    noconfigdirs="$noconfigdirs target-libgloss"
3764    ;;
3765  h8500-*-*)
3766    noconfigdirs="$noconfigdirs target-libgloss"
3767    ;;
3768  hppa1.1-*-osf* | hppa1.1-*-bsd* )
3769    ;;
3770  hppa*64*-*-hpux*)
3771    noconfigdirs="$noconfigdirs gdb"
3772    ;;
3773  hppa*-*-hpux11*)
3774    noconfigdirs="$noconfigdirs gdb ld"
3775    ;;
3776  hppa*64*-*-linux*)
3777    ;;
3778  hppa*-*-linux*)
3779    ;;
3780  hppa*-*-*elf* | \
3781  hppa*-*-lites* | \
3782  hppa*-*-openbsd* | \
3783  hppa*64*-*-*)
3784    ;;
3785  hppa*-*-pro*)
3786    ;;
3787  hppa*-*-*)
3788    noconfigdirs="$noconfigdirs ld"
3789    ;;
3790  i960-*-*)
3791    noconfigdirs="$noconfigdirs gdb"
3792    ;;
3793  ia64*-*-elf*)
3794    # No gdb support yet.
3795    noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3796    ;;
3797  ia64*-**-hpux*)
3798    # No ld support yet.
3799    noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3800    ;;
3801  ia64*-*-*vms*)
3802    # No ld support yet.
3803    noconfigdirs="$noconfigdirs libgui itcl ld"
3804    ;;
3805  i[3456789]86-w64-mingw*)
3806    ;;
3807  i[3456789]86-*-mingw*)
3808    target_configdirs="$target_configdirs target-winsup"
3809    ;;
3810  *-*-cygwin*)
3811    target_configdirs="$target_configdirs target-libtermcap target-winsup"
3812    noconfigdirs="$noconfigdirs target-libgloss"
3813    # always build newlib if winsup directory is present.
3814    if test -d "$srcdir/winsup/cygwin"; then
3815      skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3816    elif test -d "$srcdir/newlib"; then
3817      echo "Warning: winsup/cygwin is missing so newlib can't be built."
3818    fi
3819    ;;
3820  i[3456789]86-*-pe)
3821    noconfigdirs="$noconfigdirs target-libgloss"
3822    ;;
3823  i[3456789]86-*-sco3.2v5*)
3824    # The linker does not yet know about weak symbols in COFF,
3825    # and is not configured to handle mixed ELF and COFF.
3826    noconfigdirs="$noconfigdirs ld target-libgloss"
3827    ;;
3828  i[3456789]86-*-sco*)
3829    noconfigdirs="$noconfigdirs gprof target-libgloss"
3830    ;;
3831  i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3832    noconfigdirs="$noconfigdirs target-libgloss"
3833    ;;
3834  i[3456789]86-*-sysv4*)
3835    noconfigdirs="$noconfigdirs target-libgloss"
3836    ;;
3837  i[3456789]86-*-beos*)
3838    noconfigdirs="$noconfigdirs gdb"
3839    ;;
3840  i[3456789]86-*-rdos*)
3841    noconfigdirs="$noconfigdirs gdb"
3842    ;;
3843  mmix-*-*)
3844    noconfigdirs="$noconfigdirs gdb"
3845    ;;
3846  mt-*-*)
3847    noconfigdirs="$noconfigdirs sim"
3848    ;;
3849  nfp-*-*)
3850    noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3851    noconfigdirs="$noconfigdirs $target_libraries"
3852    ;;
3853  pdp11-*-*)
3854    noconfigdirs="$noconfigdirs gdb gprof"
3855    ;;
3856  powerpc-*-aix*)
3857    # copied from rs6000-*-* entry
3858    noconfigdirs="$noconfigdirs gprof"
3859    ;;
3860  powerpc*-*-winnt* | powerpc*-*-pe*)
3861    target_configdirs="$target_configdirs target-winsup"
3862    noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3863    # always build newlib.
3864    skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3865    ;;
3866    # This is temporary until we can link against shared libraries
3867  powerpcle-*-solaris*)
3868    noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3869    ;;
3870  powerpc-*-beos*)
3871    noconfigdirs="$noconfigdirs gdb"
3872    ;;
3873  rs6000-*-lynxos*)
3874    noconfigdirs="$noconfigdirs gprof"
3875    ;;
3876  rs6000-*-aix*)
3877    noconfigdirs="$noconfigdirs gprof"
3878    ;;
3879  rs6000-*-*)
3880    noconfigdirs="$noconfigdirs gprof"
3881    ;;
3882  m68k-apollo-*)
3883    noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3884    ;;
3885  microblaze*)
3886    noconfigdirs="$noconfigdirs gprof"
3887    ;;
3888  mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3889    if test x$with_newlib = xyes; then
3890      noconfigdirs="$noconfigdirs gprof"
3891    fi
3892    ;;
3893  mips*-*-irix5*)
3894    noconfigdirs="$noconfigdirs gprof target-libgloss"
3895    ;;
3896  mips*-*-irix6*)
3897    noconfigdirs="$noconfigdirs gprof target-libgloss"
3898    ;;
3899  mips*-*-bsd*)
3900    noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3901    ;;
3902  mips*-*-linux*)
3903    ;;
3904  mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3905  | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3906    noconfigdirs="$noconfigdirs ld gas gprof"
3907    ;;
3908  mips*-*-*)
3909    noconfigdirs="$noconfigdirs gprof"
3910    ;;
3911  nvptx*-*-*)
3912    noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3913    ;;
3914  sh-*-*)
3915    case "${target}" in
3916      sh*-*-elf)
3917         ;;
3918      *)
3919         noconfigdirs="$noconfigdirs target-libgloss" ;;
3920    esac
3921    ;;
3922  sparc-*-sunos4*)
3923    if test x${is_cross_compiler} = xno ; then
3924           use_gnu_ld=no
3925    fi
3926    ;;
3927  tic6x-*-*)
3928    noconfigdirs="$noconfigdirs sim"
3929    ;;
3930  tilepro*-*-* | tilegx*-*-*)
3931    noconfigdirs="$noconfigdirs sim"
3932    ;;
3933  v810-*-*)
3934    noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3935    ;;
3936  vax-*-*)
3937    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3938    ;;
3939  wasm32-*-*)
3940    noconfigdirs="$noconfigdirs ld"
3941    ;;
3942esac
3943
3944# If we aren't building newlib, then don't build libgloss, since libgloss
3945# depends upon some newlib header files.
3946case "${noconfigdirs}" in
3947  *target-libgloss*) ;;
3948  *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3949esac
3950
3951# Work in distributions that contain no compiler tools, like Autoconf.
3952host_makefile_frag=/dev/null
3953if test -d ${srcdir}/config ; then
3954case "${host}" in
3955  i[3456789]86-*-msdosdjgpp*)
3956    host_makefile_frag="config/mh-djgpp"
3957    ;;
3958  *-cygwin*)
3959
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3961$as_echo_n "checking to see if cat works as expected... " >&6; }
3962echo a >cygwin-cat-check
3963if test `cat cygwin-cat-check` = a ; then
3964  rm cygwin-cat-check
3965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966$as_echo "yes" >&6; }
3967else
3968  rm cygwin-cat-check
3969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970$as_echo "no" >&6; }
3971  as_fn_error $? "The cat command does not ignore carriage return characters.
3972  Please either mount the build directory in binary mode or run the following
3973  commands before running any configure script:
3974set -o igncr
3975export SHELLOPTS
3976  " "$LINENO" 5
3977fi
3978
3979    host_makefile_frag="config/mh-cygwin"
3980    ;;
3981  *-mingw*)
3982    host_makefile_frag="config/mh-mingw"
3983    ;;
3984  alpha*-linux*)
3985    host_makefile_frag="config/mh-alpha-linux"
3986    ;;
3987  hppa*-hp-hpux10*)
3988    host_makefile_frag="config/mh-pa-hpux10"
3989    ;;
3990  hppa*-hp-hpux*)
3991    host_makefile_frag="config/mh-pa"
3992    ;;
3993  hppa*-*)
3994    host_makefile_frag="config/mh-pa"
3995    ;;
3996  *-*-darwin*)
3997    host_makefile_frag="config/mh-darwin"
3998    ;;
3999  powerpc-*-aix*)
4000    host_makefile_frag="config/mh-ppc-aix"
4001    ;;
4002  rs6000-*-aix*)
4003    host_makefile_frag="config/mh-ppc-aix"
4004    ;;
4005esac
4006fi
4007
4008if test "${build}" != "${host}" ; then
4009  AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4010  AS_FOR_BUILD=${AS_FOR_BUILD-as}
4011  CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4012  CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4013  GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4014  GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4015  DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4016  LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4017  NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4018  RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4019  WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4020  WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4021else
4022  AR_FOR_BUILD="\$(AR)"
4023  AS_FOR_BUILD="\$(AS)"
4024  CC_FOR_BUILD="\$(CC)"
4025  CXX_FOR_BUILD="\$(CXX)"
4026  GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4027  GOC_FOR_BUILD="\$(GOC)"
4028  DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4029  LD_FOR_BUILD="\$(LD)"
4030  NM_FOR_BUILD="\$(NM)"
4031  RANLIB_FOR_BUILD="\$(RANLIB)"
4032  WINDRES_FOR_BUILD="\$(WINDRES)"
4033  WINDMC_FOR_BUILD="\$(WINDMC)"
4034fi
4035
4036ac_ext=c
4037ac_cpp='$CPP $CPPFLAGS'
4038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041if test -n "$ac_tool_prefix"; then
4042  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4043set dummy ${ac_tool_prefix}gcc; ac_word=$2
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045$as_echo_n "checking for $ac_word... " >&6; }
4046if ${ac_cv_prog_CC+:} false; then :
4047  $as_echo_n "(cached) " >&6
4048else
4049  if test -n "$CC"; then
4050  ac_cv_prog_CC="$CC" # Let the user override the test.
4051else
4052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053for as_dir in $PATH
4054do
4055  IFS=$as_save_IFS
4056  test -z "$as_dir" && as_dir=.
4057    for ac_exec_ext in '' $ac_executable_extensions; do
4058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061    break 2
4062  fi
4063done
4064  done
4065IFS=$as_save_IFS
4066
4067fi
4068fi
4069CC=$ac_cv_prog_CC
4070if test -n "$CC"; then
4071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072$as_echo "$CC" >&6; }
4073else
4074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075$as_echo "no" >&6; }
4076fi
4077
4078
4079fi
4080if test -z "$ac_cv_prog_CC"; then
4081  ac_ct_CC=$CC
4082  # Extract the first word of "gcc", so it can be a program name with args.
4083set dummy gcc; ac_word=$2
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085$as_echo_n "checking for $ac_word... " >&6; }
4086if ${ac_cv_prog_ac_ct_CC+:} false; then :
4087  $as_echo_n "(cached) " >&6
4088else
4089  if test -n "$ac_ct_CC"; then
4090  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4091else
4092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093for as_dir in $PATH
4094do
4095  IFS=$as_save_IFS
4096  test -z "$as_dir" && as_dir=.
4097    for ac_exec_ext in '' $ac_executable_extensions; do
4098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099    ac_cv_prog_ac_ct_CC="gcc"
4100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4101    break 2
4102  fi
4103done
4104  done
4105IFS=$as_save_IFS
4106
4107fi
4108fi
4109ac_ct_CC=$ac_cv_prog_ac_ct_CC
4110if test -n "$ac_ct_CC"; then
4111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4112$as_echo "$ac_ct_CC" >&6; }
4113else
4114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115$as_echo "no" >&6; }
4116fi
4117
4118  if test "x$ac_ct_CC" = x; then
4119    CC=""
4120  else
4121    case $cross_compiling:$ac_tool_warned in
4122yes:)
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4125ac_tool_warned=yes ;;
4126esac
4127    CC=$ac_ct_CC
4128  fi
4129else
4130  CC="$ac_cv_prog_CC"
4131fi
4132
4133if test -z "$CC"; then
4134          if test -n "$ac_tool_prefix"; then
4135    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4136set dummy ${ac_tool_prefix}cc; ac_word=$2
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138$as_echo_n "checking for $ac_word... " >&6; }
4139if ${ac_cv_prog_CC+:} false; then :
4140  $as_echo_n "(cached) " >&6
4141else
4142  if test -n "$CC"; then
4143  ac_cv_prog_CC="$CC" # Let the user override the test.
4144else
4145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146for as_dir in $PATH
4147do
4148  IFS=$as_save_IFS
4149  test -z "$as_dir" && as_dir=.
4150    for ac_exec_ext in '' $ac_executable_extensions; do
4151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4152    ac_cv_prog_CC="${ac_tool_prefix}cc"
4153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154    break 2
4155  fi
4156done
4157  done
4158IFS=$as_save_IFS
4159
4160fi
4161fi
4162CC=$ac_cv_prog_CC
4163if test -n "$CC"; then
4164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4165$as_echo "$CC" >&6; }
4166else
4167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168$as_echo "no" >&6; }
4169fi
4170
4171
4172  fi
4173fi
4174if test -z "$CC"; then
4175  # Extract the first word of "cc", so it can be a program name with args.
4176set dummy cc; ac_word=$2
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178$as_echo_n "checking for $ac_word... " >&6; }
4179if ${ac_cv_prog_CC+:} false; then :
4180  $as_echo_n "(cached) " >&6
4181else
4182  if test -n "$CC"; then
4183  ac_cv_prog_CC="$CC" # Let the user override the test.
4184else
4185  ac_prog_rejected=no
4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH
4188do
4189  IFS=$as_save_IFS
4190  test -z "$as_dir" && as_dir=.
4191    for ac_exec_ext in '' $ac_executable_extensions; do
4192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4194       ac_prog_rejected=yes
4195       continue
4196     fi
4197    ac_cv_prog_CC="cc"
4198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199    break 2
4200  fi
4201done
4202  done
4203IFS=$as_save_IFS
4204
4205if test $ac_prog_rejected = yes; then
4206  # We found a bogon in the path, so make sure we never use it.
4207  set dummy $ac_cv_prog_CC
4208  shift
4209  if test $# != 0; then
4210    # We chose a different compiler from the bogus one.
4211    # However, it has the same basename, so the bogon will be chosen
4212    # first if we set CC to just the basename; use the full file name.
4213    shift
4214    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4215  fi
4216fi
4217fi
4218fi
4219CC=$ac_cv_prog_CC
4220if test -n "$CC"; then
4221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4222$as_echo "$CC" >&6; }
4223else
4224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225$as_echo "no" >&6; }
4226fi
4227
4228
4229fi
4230if test -z "$CC"; then
4231  if test -n "$ac_tool_prefix"; then
4232  for ac_prog in cl.exe
4233  do
4234    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4235set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237$as_echo_n "checking for $ac_word... " >&6; }
4238if ${ac_cv_prog_CC+:} false; then :
4239  $as_echo_n "(cached) " >&6
4240else
4241  if test -n "$CC"; then
4242  ac_cv_prog_CC="$CC" # Let the user override the test.
4243else
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247  IFS=$as_save_IFS
4248  test -z "$as_dir" && as_dir=.
4249    for ac_exec_ext in '' $ac_executable_extensions; do
4250  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253    break 2
4254  fi
4255done
4256  done
4257IFS=$as_save_IFS
4258
4259fi
4260fi
4261CC=$ac_cv_prog_CC
4262if test -n "$CC"; then
4263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264$as_echo "$CC" >&6; }
4265else
4266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267$as_echo "no" >&6; }
4268fi
4269
4270
4271    test -n "$CC" && break
4272  done
4273fi
4274if test -z "$CC"; then
4275  ac_ct_CC=$CC
4276  for ac_prog in cl.exe
4277do
4278  # Extract the first word of "$ac_prog", so it can be a program name with args.
4279set dummy $ac_prog; ac_word=$2
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281$as_echo_n "checking for $ac_word... " >&6; }
4282if ${ac_cv_prog_ac_ct_CC+:} false; then :
4283  $as_echo_n "(cached) " >&6
4284else
4285  if test -n "$ac_ct_CC"; then
4286  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4287else
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291  IFS=$as_save_IFS
4292  test -z "$as_dir" && as_dir=.
4293    for ac_exec_ext in '' $ac_executable_extensions; do
4294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295    ac_cv_prog_ac_ct_CC="$ac_prog"
4296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297    break 2
4298  fi
4299done
4300  done
4301IFS=$as_save_IFS
4302
4303fi
4304fi
4305ac_ct_CC=$ac_cv_prog_ac_ct_CC
4306if test -n "$ac_ct_CC"; then
4307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4308$as_echo "$ac_ct_CC" >&6; }
4309else
4310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311$as_echo "no" >&6; }
4312fi
4313
4314
4315  test -n "$ac_ct_CC" && break
4316done
4317
4318  if test "x$ac_ct_CC" = x; then
4319    CC=""
4320  else
4321    case $cross_compiling:$ac_tool_warned in
4322yes:)
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325ac_tool_warned=yes ;;
4326esac
4327    CC=$ac_ct_CC
4328  fi
4329fi
4330
4331fi
4332
4333
4334test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4336as_fn_error $? "no acceptable C compiler found in \$PATH
4337See \`config.log' for more details" "$LINENO" 5; }
4338
4339# Provide some information about the compiler.
4340$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4341set X $ac_compile
4342ac_compiler=$2
4343for ac_option in --version -v -V -qversion; do
4344  { { ac_try="$ac_compiler $ac_option >&5"
4345case "(($ac_try" in
4346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347  *) ac_try_echo=$ac_try;;
4348esac
4349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350$as_echo "$ac_try_echo"; } >&5
4351  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4352  ac_status=$?
4353  if test -s conftest.err; then
4354    sed '10a\
4355... rest of stderr output deleted ...
4356         10q' conftest.err >conftest.er1
4357    cat conftest.er1 >&5
4358  fi
4359  rm -f conftest.er1 conftest.err
4360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4361  test $ac_status = 0; }
4362done
4363
4364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365/* end confdefs.h.  */
4366
4367int
4368main ()
4369{
4370
4371  ;
4372  return 0;
4373}
4374_ACEOF
4375ac_clean_files_save=$ac_clean_files
4376ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4377# Try to create an executable without -o first, disregard a.out.
4378# It will help us diagnose broken compilers, and finding out an intuition
4379# of exeext.
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4381$as_echo_n "checking whether the C compiler works... " >&6; }
4382ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4383
4384# The possible output files:
4385ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4386
4387ac_rmfiles=
4388for ac_file in $ac_files
4389do
4390  case $ac_file in
4391    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4392    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4393  esac
4394done
4395rm -f $ac_rmfiles
4396
4397if { { ac_try="$ac_link_default"
4398case "(($ac_try" in
4399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400  *) ac_try_echo=$ac_try;;
4401esac
4402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403$as_echo "$ac_try_echo"; } >&5
4404  (eval "$ac_link_default") 2>&5
4405  ac_status=$?
4406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407  test $ac_status = 0; }; then :
4408  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4409# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4410# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4411# so that the user can short-circuit this test for compilers unknown to
4412# Autoconf.
4413for ac_file in $ac_files ''
4414do
4415  test -f "$ac_file" || continue
4416  case $ac_file in
4417    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4418	;;
4419    [ab].out )
4420	# We found the default executable, but exeext='' is most
4421	# certainly right.
4422	break;;
4423    *.* )
4424	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4425	then :; else
4426	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4427	fi
4428	# We set ac_cv_exeext here because the later test for it is not
4429	# safe: cross compilers may not add the suffix if given an `-o'
4430	# argument, so we may need to know it at that point already.
4431	# Even if this section looks crufty: it has the advantage of
4432	# actually working.
4433	break;;
4434    * )
4435	break;;
4436  esac
4437done
4438test "$ac_cv_exeext" = no && ac_cv_exeext=
4439
4440else
4441  ac_file=''
4442fi
4443if test -z "$ac_file"; then :
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445$as_echo "no" >&6; }
4446$as_echo "$as_me: failed program was:" >&5
4447sed 's/^/| /' conftest.$ac_ext >&5
4448
4449{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451as_fn_error 77 "C compiler cannot create executables
4452See \`config.log' for more details" "$LINENO" 5; }
4453else
4454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4455$as_echo "yes" >&6; }
4456fi
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4458$as_echo_n "checking for C compiler default output file name... " >&6; }
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4460$as_echo "$ac_file" >&6; }
4461ac_exeext=$ac_cv_exeext
4462
4463rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4464ac_clean_files=$ac_clean_files_save
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4466$as_echo_n "checking for suffix of executables... " >&6; }
4467if { { ac_try="$ac_link"
4468case "(($ac_try" in
4469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470  *) ac_try_echo=$ac_try;;
4471esac
4472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4473$as_echo "$ac_try_echo"; } >&5
4474  (eval "$ac_link") 2>&5
4475  ac_status=$?
4476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477  test $ac_status = 0; }; then :
4478  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4479# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4480# work properly (i.e., refer to `conftest.exe'), while it won't with
4481# `rm'.
4482for ac_file in conftest.exe conftest conftest.*; do
4483  test -f "$ac_file" || continue
4484  case $ac_file in
4485    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4486    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4487	  break;;
4488    * ) break;;
4489  esac
4490done
4491else
4492  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4494as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4495See \`config.log' for more details" "$LINENO" 5; }
4496fi
4497rm -f conftest conftest$ac_cv_exeext
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4499$as_echo "$ac_cv_exeext" >&6; }
4500
4501rm -f conftest.$ac_ext
4502EXEEXT=$ac_cv_exeext
4503ac_exeext=$EXEEXT
4504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h.  */
4506#include <stdio.h>
4507int
4508main ()
4509{
4510FILE *f = fopen ("conftest.out", "w");
4511 return ferror (f) || fclose (f) != 0;
4512
4513  ;
4514  return 0;
4515}
4516_ACEOF
4517ac_clean_files="$ac_clean_files conftest.out"
4518# Check that the compiler produces executables we can run.  If not, either
4519# the compiler is broken, or we cross compile.
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4521$as_echo_n "checking whether we are cross compiling... " >&6; }
4522if test "$cross_compiling" != yes; then
4523  { { ac_try="$ac_link"
4524case "(($ac_try" in
4525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526  *) ac_try_echo=$ac_try;;
4527esac
4528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4529$as_echo "$ac_try_echo"; } >&5
4530  (eval "$ac_link") 2>&5
4531  ac_status=$?
4532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4533  test $ac_status = 0; }
4534  if { ac_try='./conftest$ac_cv_exeext'
4535  { { case "(($ac_try" in
4536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537  *) ac_try_echo=$ac_try;;
4538esac
4539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4540$as_echo "$ac_try_echo"; } >&5
4541  (eval "$ac_try") 2>&5
4542  ac_status=$?
4543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544  test $ac_status = 0; }; }; then
4545    cross_compiling=no
4546  else
4547    if test "$cross_compiling" = maybe; then
4548	cross_compiling=yes
4549    else
4550	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4552as_fn_error $? "cannot run C compiled programs.
4553If you meant to cross compile, use \`--host'.
4554See \`config.log' for more details" "$LINENO" 5; }
4555    fi
4556  fi
4557fi
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4559$as_echo "$cross_compiling" >&6; }
4560
4561rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4562ac_clean_files=$ac_clean_files_save
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4564$as_echo_n "checking for suffix of object files... " >&6; }
4565if ${ac_cv_objext+:} false; then :
4566  $as_echo_n "(cached) " >&6
4567else
4568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569/* end confdefs.h.  */
4570
4571int
4572main ()
4573{
4574
4575  ;
4576  return 0;
4577}
4578_ACEOF
4579rm -f conftest.o conftest.obj
4580if { { ac_try="$ac_compile"
4581case "(($ac_try" in
4582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583  *) ac_try_echo=$ac_try;;
4584esac
4585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586$as_echo "$ac_try_echo"; } >&5
4587  (eval "$ac_compile") 2>&5
4588  ac_status=$?
4589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590  test $ac_status = 0; }; then :
4591  for ac_file in conftest.o conftest.obj conftest.*; do
4592  test -f "$ac_file" || continue;
4593  case $ac_file in
4594    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4595    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4596       break;;
4597  esac
4598done
4599else
4600  $as_echo "$as_me: failed program was:" >&5
4601sed 's/^/| /' conftest.$ac_ext >&5
4602
4603{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4605as_fn_error $? "cannot compute suffix of object files: cannot compile
4606See \`config.log' for more details" "$LINENO" 5; }
4607fi
4608rm -f conftest.$ac_cv_objext conftest.$ac_ext
4609fi
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4611$as_echo "$ac_cv_objext" >&6; }
4612OBJEXT=$ac_cv_objext
4613ac_objext=$OBJEXT
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4615$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4616if ${ac_cv_c_compiler_gnu+:} false; then :
4617  $as_echo_n "(cached) " >&6
4618else
4619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h.  */
4621
4622int
4623main ()
4624{
4625#ifndef __GNUC__
4626       choke me
4627#endif
4628
4629  ;
4630  return 0;
4631}
4632_ACEOF
4633if ac_fn_c_try_compile "$LINENO"; then :
4634  ac_compiler_gnu=yes
4635else
4636  ac_compiler_gnu=no
4637fi
4638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639ac_cv_c_compiler_gnu=$ac_compiler_gnu
4640
4641fi
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4643$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4644if test $ac_compiler_gnu = yes; then
4645  GCC=yes
4646else
4647  GCC=
4648fi
4649ac_test_CFLAGS=${CFLAGS+set}
4650ac_save_CFLAGS=$CFLAGS
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4652$as_echo_n "checking whether $CC accepts -g... " >&6; }
4653if ${ac_cv_prog_cc_g+:} false; then :
4654  $as_echo_n "(cached) " >&6
4655else
4656  ac_save_c_werror_flag=$ac_c_werror_flag
4657   ac_c_werror_flag=yes
4658   ac_cv_prog_cc_g=no
4659   CFLAGS="-g"
4660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661/* end confdefs.h.  */
4662
4663int
4664main ()
4665{
4666
4667  ;
4668  return 0;
4669}
4670_ACEOF
4671if ac_fn_c_try_compile "$LINENO"; then :
4672  ac_cv_prog_cc_g=yes
4673else
4674  CFLAGS=""
4675      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h.  */
4677
4678int
4679main ()
4680{
4681
4682  ;
4683  return 0;
4684}
4685_ACEOF
4686if ac_fn_c_try_compile "$LINENO"; then :
4687
4688else
4689  ac_c_werror_flag=$ac_save_c_werror_flag
4690	 CFLAGS="-g"
4691	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h.  */
4693
4694int
4695main ()
4696{
4697
4698  ;
4699  return 0;
4700}
4701_ACEOF
4702if ac_fn_c_try_compile "$LINENO"; then :
4703  ac_cv_prog_cc_g=yes
4704fi
4705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706fi
4707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708fi
4709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710   ac_c_werror_flag=$ac_save_c_werror_flag
4711fi
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4713$as_echo "$ac_cv_prog_cc_g" >&6; }
4714if test "$ac_test_CFLAGS" = set; then
4715  CFLAGS=$ac_save_CFLAGS
4716elif test $ac_cv_prog_cc_g = yes; then
4717  if test "$GCC" = yes; then
4718    CFLAGS="-g -O2"
4719  else
4720    CFLAGS="-g"
4721  fi
4722else
4723  if test "$GCC" = yes; then
4724    CFLAGS="-O2"
4725  else
4726    CFLAGS=
4727  fi
4728fi
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4730$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4731if ${ac_cv_prog_cc_c89+:} false; then :
4732  $as_echo_n "(cached) " >&6
4733else
4734  ac_cv_prog_cc_c89=no
4735ac_save_CC=$CC
4736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737/* end confdefs.h.  */
4738#include <stdarg.h>
4739#include <stdio.h>
4740struct stat;
4741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4742struct buf { int x; };
4743FILE * (*rcsopen) (struct buf *, struct stat *, int);
4744static char *e (p, i)
4745     char **p;
4746     int i;
4747{
4748  return p[i];
4749}
4750static char *f (char * (*g) (char **, int), char **p, ...)
4751{
4752  char *s;
4753  va_list v;
4754  va_start (v,p);
4755  s = g (p, va_arg (v,int));
4756  va_end (v);
4757  return s;
4758}
4759
4760/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4761   function prototypes and stuff, but not '\xHH' hex character constants.
4762   These don't provoke an error unfortunately, instead are silently treated
4763   as 'x'.  The following induces an error, until -std is added to get
4764   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4765   array size at least.  It's necessary to write '\x00'==0 to get something
4766   that's true only with -std.  */
4767int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4768
4769/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4770   inside strings and character constants.  */
4771#define FOO(x) 'x'
4772int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4773
4774int test (int i, double x);
4775struct s1 {int (*f) (int a);};
4776struct s2 {int (*f) (double a);};
4777int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4778int argc;
4779char **argv;
4780int
4781main ()
4782{
4783return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4784  ;
4785  return 0;
4786}
4787_ACEOF
4788for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4789	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4790do
4791  CC="$ac_save_CC $ac_arg"
4792  if ac_fn_c_try_compile "$LINENO"; then :
4793  ac_cv_prog_cc_c89=$ac_arg
4794fi
4795rm -f core conftest.err conftest.$ac_objext
4796  test "x$ac_cv_prog_cc_c89" != "xno" && break
4797done
4798rm -f conftest.$ac_ext
4799CC=$ac_save_CC
4800
4801fi
4802# AC_CACHE_VAL
4803case "x$ac_cv_prog_cc_c89" in
4804  x)
4805    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4806$as_echo "none needed" >&6; } ;;
4807  xno)
4808    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4809$as_echo "unsupported" >&6; } ;;
4810  *)
4811    CC="$CC $ac_cv_prog_cc_c89"
4812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4813$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4814esac
4815if test "x$ac_cv_prog_cc_c89" != xno; then :
4816
4817fi
4818
4819ac_ext=c
4820ac_cpp='$CPP $CPPFLAGS'
4821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824
4825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4826$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4827if ${ac_cv_prog_cc_c99+:} false; then :
4828  $as_echo_n "(cached) " >&6
4829else
4830  ac_cv_prog_cc_c99=no
4831ac_save_CC=$CC
4832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834#include <stdarg.h>
4835#include <stdbool.h>
4836#include <stdlib.h>
4837#include <wchar.h>
4838#include <stdio.h>
4839
4840// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4841#define debug(...) fprintf (stderr, __VA_ARGS__)
4842#define showlist(...) puts (#__VA_ARGS__)
4843#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4844static void
4845test_varargs_macros (void)
4846{
4847  int x = 1234;
4848  int y = 5678;
4849  debug ("Flag");
4850  debug ("X = %d\n", x);
4851  showlist (The first, second, and third items.);
4852  report (x>y, "x is %d but y is %d", x, y);
4853}
4854
4855// Check long long types.
4856#define BIG64 18446744073709551615ull
4857#define BIG32 4294967295ul
4858#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4859#if !BIG_OK
4860  your preprocessor is broken;
4861#endif
4862#if BIG_OK
4863#else
4864  your preprocessor is broken;
4865#endif
4866static long long int bignum = -9223372036854775807LL;
4867static unsigned long long int ubignum = BIG64;
4868
4869struct incomplete_array
4870{
4871  int datasize;
4872  double data[];
4873};
4874
4875struct named_init {
4876  int number;
4877  const wchar_t *name;
4878  double average;
4879};
4880
4881typedef const char *ccp;
4882
4883static inline int
4884test_restrict (ccp restrict text)
4885{
4886  // See if C++-style comments work.
4887  // Iterate through items via the restricted pointer.
4888  // Also check for declarations in for loops.
4889  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4890    continue;
4891  return 0;
4892}
4893
4894// Check varargs and va_copy.
4895static void
4896test_varargs (const char *format, ...)
4897{
4898  va_list args;
4899  va_start (args, format);
4900  va_list args_copy;
4901  va_copy (args_copy, args);
4902
4903  const char *str;
4904  int number;
4905  float fnumber;
4906
4907  while (*format)
4908    {
4909      switch (*format++)
4910	{
4911	case 's': // string
4912	  str = va_arg (args_copy, const char *);
4913	  break;
4914	case 'd': // int
4915	  number = va_arg (args_copy, int);
4916	  break;
4917	case 'f': // float
4918	  fnumber = va_arg (args_copy, double);
4919	  break;
4920	default:
4921	  break;
4922	}
4923    }
4924  va_end (args_copy);
4925  va_end (args);
4926}
4927
4928int
4929main ()
4930{
4931
4932  // Check bool.
4933  _Bool success = false;
4934
4935  // Check restrict.
4936  if (test_restrict ("String literal") == 0)
4937    success = true;
4938  char *restrict newvar = "Another string";
4939
4940  // Check varargs.
4941  test_varargs ("s, d' f .", "string", 65, 34.234);
4942  test_varargs_macros ();
4943
4944  // Check flexible array members.
4945  struct incomplete_array *ia =
4946    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4947  ia->datasize = 10;
4948  for (int i = 0; i < ia->datasize; ++i)
4949    ia->data[i] = i * 1.234;
4950
4951  // Check named initializers.
4952  struct named_init ni = {
4953    .number = 34,
4954    .name = L"Test wide string",
4955    .average = 543.34343,
4956  };
4957
4958  ni.number = 58;
4959
4960  int dynamic_array[ni.number];
4961  dynamic_array[ni.number - 1] = 543;
4962
4963  // work around unused variable warnings
4964  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4965	  || dynamic_array[ni.number - 1] != 543);
4966
4967  ;
4968  return 0;
4969}
4970_ACEOF
4971for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4972do
4973  CC="$ac_save_CC $ac_arg"
4974  if ac_fn_c_try_compile "$LINENO"; then :
4975  ac_cv_prog_cc_c99=$ac_arg
4976fi
4977rm -f core conftest.err conftest.$ac_objext
4978  test "x$ac_cv_prog_cc_c99" != "xno" && break
4979done
4980rm -f conftest.$ac_ext
4981CC=$ac_save_CC
4982
4983fi
4984# AC_CACHE_VAL
4985case "x$ac_cv_prog_cc_c99" in
4986  x)
4987    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4988$as_echo "none needed" >&6; } ;;
4989  xno)
4990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4991$as_echo "unsupported" >&6; } ;;
4992  *)
4993    CC="$CC $ac_cv_prog_cc_c99"
4994    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4995$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4996esac
4997if test "x$ac_cv_prog_cc_c99" != xno; then :
4998
4999fi
5000
5001
5002ac_ext=cpp
5003ac_cpp='$CXXCPP $CPPFLAGS'
5004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5007if test -z "$CXX"; then
5008  if test -n "$CCC"; then
5009    CXX=$CCC
5010  else
5011    if test -n "$ac_tool_prefix"; then
5012  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5013  do
5014    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017$as_echo_n "checking for $ac_word... " >&6; }
5018if ${ac_cv_prog_CXX+:} false; then :
5019  $as_echo_n "(cached) " >&6
5020else
5021  if test -n "$CXX"; then
5022  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027  IFS=$as_save_IFS
5028  test -z "$as_dir" && as_dir=.
5029    for ac_exec_ext in '' $ac_executable_extensions; do
5030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033    break 2
5034  fi
5035done
5036  done
5037IFS=$as_save_IFS
5038
5039fi
5040fi
5041CXX=$ac_cv_prog_CXX
5042if test -n "$CXX"; then
5043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5044$as_echo "$CXX" >&6; }
5045else
5046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047$as_echo "no" >&6; }
5048fi
5049
5050
5051    test -n "$CXX" && break
5052  done
5053fi
5054if test -z "$CXX"; then
5055  ac_ct_CXX=$CXX
5056  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5057do
5058  # Extract the first word of "$ac_prog", so it can be a program name with args.
5059set dummy $ac_prog; ac_word=$2
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061$as_echo_n "checking for $ac_word... " >&6; }
5062if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5063  $as_echo_n "(cached) " >&6
5064else
5065  if test -n "$ac_ct_CXX"; then
5066  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5067else
5068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071  IFS=$as_save_IFS
5072  test -z "$as_dir" && as_dir=.
5073    for ac_exec_ext in '' $ac_executable_extensions; do
5074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075    ac_cv_prog_ac_ct_CXX="$ac_prog"
5076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077    break 2
5078  fi
5079done
5080  done
5081IFS=$as_save_IFS
5082
5083fi
5084fi
5085ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5086if test -n "$ac_ct_CXX"; then
5087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5088$as_echo "$ac_ct_CXX" >&6; }
5089else
5090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091$as_echo "no" >&6; }
5092fi
5093
5094
5095  test -n "$ac_ct_CXX" && break
5096done
5097
5098  if test "x$ac_ct_CXX" = x; then
5099    CXX="g++"
5100  else
5101    case $cross_compiling:$ac_tool_warned in
5102yes:)
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105ac_tool_warned=yes ;;
5106esac
5107    CXX=$ac_ct_CXX
5108  fi
5109fi
5110
5111  fi
5112fi
5113# Provide some information about the compiler.
5114$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5115set X $ac_compile
5116ac_compiler=$2
5117for ac_option in --version -v -V -qversion; do
5118  { { ac_try="$ac_compiler $ac_option >&5"
5119case "(($ac_try" in
5120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121  *) ac_try_echo=$ac_try;;
5122esac
5123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5124$as_echo "$ac_try_echo"; } >&5
5125  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5126  ac_status=$?
5127  if test -s conftest.err; then
5128    sed '10a\
5129... rest of stderr output deleted ...
5130         10q' conftest.err >conftest.er1
5131    cat conftest.er1 >&5
5132  fi
5133  rm -f conftest.er1 conftest.err
5134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5135  test $ac_status = 0; }
5136done
5137
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5139$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5140if ${ac_cv_cxx_compiler_gnu+:} false; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h.  */
5145
5146int
5147main ()
5148{
5149#ifndef __GNUC__
5150       choke me
5151#endif
5152
5153  ;
5154  return 0;
5155}
5156_ACEOF
5157if ac_fn_cxx_try_compile "$LINENO"; then :
5158  ac_compiler_gnu=yes
5159else
5160  ac_compiler_gnu=no
5161fi
5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5164
5165fi
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5167$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5168if test $ac_compiler_gnu = yes; then
5169  GXX=yes
5170else
5171  GXX=
5172fi
5173ac_test_CXXFLAGS=${CXXFLAGS+set}
5174ac_save_CXXFLAGS=$CXXFLAGS
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5176$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5177if ${ac_cv_prog_cxx_g+:} false; then :
5178  $as_echo_n "(cached) " >&6
5179else
5180  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5181   ac_cxx_werror_flag=yes
5182   ac_cv_prog_cxx_g=no
5183   CXXFLAGS="-g"
5184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185/* end confdefs.h.  */
5186
5187int
5188main ()
5189{
5190
5191  ;
5192  return 0;
5193}
5194_ACEOF
5195if ac_fn_cxx_try_compile "$LINENO"; then :
5196  ac_cv_prog_cxx_g=yes
5197else
5198  CXXFLAGS=""
5199      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h.  */
5201
5202int
5203main ()
5204{
5205
5206  ;
5207  return 0;
5208}
5209_ACEOF
5210if ac_fn_cxx_try_compile "$LINENO"; then :
5211
5212else
5213  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5214	 CXXFLAGS="-g"
5215	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216/* end confdefs.h.  */
5217
5218int
5219main ()
5220{
5221
5222  ;
5223  return 0;
5224}
5225_ACEOF
5226if ac_fn_cxx_try_compile "$LINENO"; then :
5227  ac_cv_prog_cxx_g=yes
5228fi
5229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230fi
5231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232fi
5233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5235fi
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5237$as_echo "$ac_cv_prog_cxx_g" >&6; }
5238if test "$ac_test_CXXFLAGS" = set; then
5239  CXXFLAGS=$ac_save_CXXFLAGS
5240elif test $ac_cv_prog_cxx_g = yes; then
5241  if test "$GXX" = yes; then
5242    CXXFLAGS="-g -O2"
5243  else
5244    CXXFLAGS="-g"
5245  fi
5246else
5247  if test "$GXX" = yes; then
5248    CXXFLAGS="-O2"
5249  else
5250    CXXFLAGS=
5251  fi
5252fi
5253ac_ext=c
5254ac_cpp='$CPP $CPPFLAGS'
5255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258
5259
5260# We must set the default linker to the linker used by gcc for the correct
5261# operation of libtool.  If LD is not defined and we are using gcc, try to
5262# set the LD default to the ld used by gcc.
5263if test -z "$LD"; then
5264  if test "$GCC" = yes; then
5265    case $build in
5266    *-*-mingw*)
5267      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5268    *)
5269      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5270    esac
5271    case $gcc_prog_ld in
5272    # Accept absolute paths.
5273    [\\/]* | [A-Za-z]:[\\/]*)
5274      LD="$gcc_prog_ld" ;;
5275    esac
5276  fi
5277fi
5278
5279# Check whether -static-libstdc++ -static-libgcc is supported.
5280have_static_libs=no
5281if test "$GCC" = yes; then
5282  saved_LDFLAGS="$LDFLAGS"
5283
5284  LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5286$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5287  ac_ext=cpp
5288ac_cpp='$CXXCPP $CPPFLAGS'
5289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5292
5293
5294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h.  */
5296
5297#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5298#error -static-libstdc++ not implemented
5299#endif
5300int main() {}
5301_ACEOF
5302if ac_fn_cxx_try_link "$LINENO"; then :
5303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5304$as_echo "yes" >&6; }; have_static_libs=yes
5305else
5306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307$as_echo "no" >&6; }
5308fi
5309rm -f core conftest.err conftest.$ac_objext \
5310    conftest$ac_exeext conftest.$ac_ext
5311  ac_ext=c
5312ac_cpp='$CPP $CPPFLAGS'
5313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5315ac_compiler_gnu=$ac_cv_c_compiler_gnu
5316
5317
5318  LDFLAGS="$saved_LDFLAGS"
5319fi
5320
5321
5322
5323
5324if test -n "$ac_tool_prefix"; then
5325  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5326set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328$as_echo_n "checking for $ac_word... " >&6; }
5329if ${ac_cv_prog_GNATBIND+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  if test -n "$GNATBIND"; then
5333  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5334else
5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338  IFS=$as_save_IFS
5339  test -z "$as_dir" && as_dir=.
5340    for ac_exec_ext in '' $ac_executable_extensions; do
5341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344    break 2
5345  fi
5346done
5347  done
5348IFS=$as_save_IFS
5349
5350fi
5351fi
5352GNATBIND=$ac_cv_prog_GNATBIND
5353if test -n "$GNATBIND"; then
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5355$as_echo "$GNATBIND" >&6; }
5356else
5357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358$as_echo "no" >&6; }
5359fi
5360
5361
5362fi
5363if test -z "$ac_cv_prog_GNATBIND"; then
5364  ac_ct_GNATBIND=$GNATBIND
5365  # Extract the first word of "gnatbind", so it can be a program name with args.
5366set dummy gnatbind; ac_word=$2
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368$as_echo_n "checking for $ac_word... " >&6; }
5369if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5370  $as_echo_n "(cached) " >&6
5371else
5372  if test -n "$ac_ct_GNATBIND"; then
5373  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5374else
5375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376for as_dir in $PATH
5377do
5378  IFS=$as_save_IFS
5379  test -z "$as_dir" && as_dir=.
5380    for ac_exec_ext in '' $ac_executable_extensions; do
5381  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384    break 2
5385  fi
5386done
5387  done
5388IFS=$as_save_IFS
5389
5390fi
5391fi
5392ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5393if test -n "$ac_ct_GNATBIND"; then
5394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5395$as_echo "$ac_ct_GNATBIND" >&6; }
5396else
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398$as_echo "no" >&6; }
5399fi
5400
5401  if test "x$ac_ct_GNATBIND" = x; then
5402    GNATBIND="no"
5403  else
5404    case $cross_compiling:$ac_tool_warned in
5405yes:)
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408ac_tool_warned=yes ;;
5409esac
5410    GNATBIND=$ac_ct_GNATBIND
5411  fi
5412else
5413  GNATBIND="$ac_cv_prog_GNATBIND"
5414fi
5415
5416if test -n "$ac_tool_prefix"; then
5417  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5418set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420$as_echo_n "checking for $ac_word... " >&6; }
5421if ${ac_cv_prog_GNATMAKE+:} false; then :
5422  $as_echo_n "(cached) " >&6
5423else
5424  if test -n "$GNATMAKE"; then
5425  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5426else
5427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH
5429do
5430  IFS=$as_save_IFS
5431  test -z "$as_dir" && as_dir=.
5432    for ac_exec_ext in '' $ac_executable_extensions; do
5433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436    break 2
5437  fi
5438done
5439  done
5440IFS=$as_save_IFS
5441
5442fi
5443fi
5444GNATMAKE=$ac_cv_prog_GNATMAKE
5445if test -n "$GNATMAKE"; then
5446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5447$as_echo "$GNATMAKE" >&6; }
5448else
5449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450$as_echo "no" >&6; }
5451fi
5452
5453
5454fi
5455if test -z "$ac_cv_prog_GNATMAKE"; then
5456  ac_ct_GNATMAKE=$GNATMAKE
5457  # Extract the first word of "gnatmake", so it can be a program name with args.
5458set dummy gnatmake; ac_word=$2
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460$as_echo_n "checking for $ac_word... " >&6; }
5461if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5462  $as_echo_n "(cached) " >&6
5463else
5464  if test -n "$ac_ct_GNATMAKE"; then
5465  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470  IFS=$as_save_IFS
5471  test -z "$as_dir" && as_dir=.
5472    for ac_exec_ext in '' $ac_executable_extensions; do
5473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476    break 2
5477  fi
5478done
5479  done
5480IFS=$as_save_IFS
5481
5482fi
5483fi
5484ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5485if test -n "$ac_ct_GNATMAKE"; then
5486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5487$as_echo "$ac_ct_GNATMAKE" >&6; }
5488else
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490$as_echo "no" >&6; }
5491fi
5492
5493  if test "x$ac_ct_GNATMAKE" = x; then
5494    GNATMAKE="no"
5495  else
5496    case $cross_compiling:$ac_tool_warned in
5497yes:)
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500ac_tool_warned=yes ;;
5501esac
5502    GNATMAKE=$ac_ct_GNATMAKE
5503  fi
5504else
5505  GNATMAKE="$ac_cv_prog_GNATMAKE"
5506fi
5507
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5509$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5510if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5511  $as_echo_n "(cached) " >&6
5512else
5513  cat >conftest.adb <<EOF
5514procedure conftest is begin null; end conftest;
5515EOF
5516acx_cv_cc_gcc_supports_ada=no
5517# There is a bug in old released versions of GCC which causes the
5518# driver to exit successfully when the appropriate language module
5519# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5520# Therefore we must check for the error message as well as an
5521# unsuccessful exit.
5522# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5523# given a .adb file, but produce no object file.  So we must check
5524# if an object file was really produced to guard against this.
5525errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5526if test x"$errors" = x && test -f conftest.$ac_objext; then
5527  acx_cv_cc_gcc_supports_ada=yes
5528fi
5529rm -f conftest.*
5530fi
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5532$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5533
5534if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5535  have_gnat=yes
5536else
5537  have_gnat=no
5538fi
5539
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5541$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5542if ${gcc_cv_prog_cmp_skip+:} false; then :
5543  $as_echo_n "(cached) " >&6
5544else
5545   echo abfoo >t1
5546  echo cdfoo >t2
5547  gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5548  if cmp t1 t2 2 2 > /dev/null 2>&1; then
5549    if cmp t1 t2 1 1 > /dev/null 2>&1; then
5550      :
5551    else
5552      gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5553    fi
5554  fi
5555  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5556    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5557      :
5558    else
5559      gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5560    fi
5561  fi
5562  rm t1 t2
5563
5564fi
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5566$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5567do_compare="$gcc_cv_prog_cmp_skip"
5568
5569
5570
5571# Check whether --enable-bootstrap was given.
5572if test "${enable_bootstrap+set}" = set; then :
5573  enableval=$enable_bootstrap;
5574else
5575  enable_bootstrap=default
5576fi
5577
5578
5579# Issue errors and warnings for invalid/strange bootstrap combinations.
5580if test -r $srcdir/gcc/configure; then
5581  have_compiler=yes
5582else
5583  have_compiler=no
5584fi
5585
5586case "$have_compiler:$host:$target:$enable_bootstrap" in
5587  *:*:*:no) ;;
5588
5589  # Default behavior.  Enable bootstrap if we have a compiler
5590  # and we are in a native configuration.
5591  yes:$build:$build:default)
5592    enable_bootstrap=yes ;;
5593
5594  *:*:*:default)
5595    enable_bootstrap=no ;;
5596
5597  # We have a compiler and we are in a native configuration, bootstrap is ok
5598  yes:$build:$build:yes)
5599    ;;
5600
5601  # Other configurations, but we have a compiler.  Assume the user knows
5602  # what he's doing.
5603  yes:*:*:yes)
5604    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5605$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5606    ;;
5607
5608  # No compiler: if they passed --enable-bootstrap explicitly, fail
5609  no:*:*:yes)
5610    as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5611
5612  # Fail if wrong command line
5613  *)
5614    as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5615    ;;
5616esac
5617
5618# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5619# C++98 compiler can still start the bootstrap.
5620if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5621  CXX="$CXX -std=gnu++98"
5622fi
5623
5624# Check whether --enable-pgo-build was given.
5625if test "${enable_pgo_build+set}" = set; then :
5626  enableval=$enable_pgo_build; enable_pgo_build=$enableval
5627else
5628  enable_pgo_build=no
5629fi
5630
5631
5632# Issue errors and warnings for invalid/strange PGO build combinations.
5633case "$have_compiler:$host:$target:$enable_pgo_build" in
5634  *:*:*:no) ;;
5635
5636  # Allow the PGO build only if we aren't building a compiler and
5637  # we are in a native configuration.
5638  no:$build:$build:yes | no:$build:$build:lto) ;;
5639
5640  # Disallow the PGO bootstrap if we are building a compiler.
5641  yes:*:*:yes | yes:*:*:lto)
5642    as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5643
5644  *)
5645    as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5646    ;;
5647esac
5648
5649if test "$enable_pgo_build" != "no"; then
5650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5651$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5652  old_CFLAGS="$CFLAGS"
5653  PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5654  CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5655
5656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h.  */
5658int foo;
5659_ACEOF
5660if ac_fn_c_try_compile "$LINENO"; then :
5661
5662else
5663  PGO_BUILD_GEN_CFLAGS=
5664fi
5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666  CFLAGS="$old_CFLAGS"
5667  if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5668    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5669$as_echo "yes" >&6; }
5670    PGO_BUILD_USE_CFLAGS="-fprofile-use"
5671  else
5672    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673$as_echo "no" >&6; }
5674    as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5675  fi
5676
5677  if test "$enable_pgo_build" = "lto"; then
5678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5679$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5680    old_CFLAGS="$CFLAGS"
5681    PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5682    CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5683    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h.  */
5685int foo;
5686_ACEOF
5687if ac_fn_c_try_compile "$LINENO"; then :
5688
5689else
5690  PGO_BUILD_LTO_CFLAGS=
5691fi
5692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693    CFLAGS="$old_CFLAGS"
5694    if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5695      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696$as_echo "yes" >&6; }
5697    else
5698      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699$as_echo "no" >&6; }
5700      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5701$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5702    fi
5703  fi
5704fi
5705
5706
5707
5708
5709# Used for setting $lt_cv_objdir
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5711$as_echo_n "checking for objdir... " >&6; }
5712if ${lt_cv_objdir+:} false; then :
5713  $as_echo_n "(cached) " >&6
5714else
5715  rm -f .libs 2>/dev/null
5716mkdir .libs 2>/dev/null
5717if test -d .libs; then
5718  lt_cv_objdir=.libs
5719else
5720  # MS-DOS does not allow filenames that begin with a dot.
5721  lt_cv_objdir=_libs
5722fi
5723rmdir .libs 2>/dev/null
5724fi
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5726$as_echo "$lt_cv_objdir" >&6; }
5727objdir=$lt_cv_objdir
5728
5729
5730
5731
5732
5733cat >>confdefs.h <<_ACEOF
5734#define LT_OBJDIR "$lt_cv_objdir/"
5735_ACEOF
5736
5737
5738
5739# Check for GMP, MPFR and MPC
5740gmplibs="-lmpc -lmpfr -lgmp"
5741gmpinc=
5742have_gmp=no
5743
5744# Specify a location for mpc
5745# check for this first so it ends up on the link line before mpfr.
5746
5747# Check whether --with-mpc was given.
5748if test "${with_mpc+set}" = set; then :
5749  withval=$with_mpc;
5750fi
5751
5752
5753# Check whether --with-mpc-include was given.
5754if test "${with_mpc_include+set}" = set; then :
5755  withval=$with_mpc_include;
5756fi
5757
5758
5759# Check whether --with-mpc-lib was given.
5760if test "${with_mpc_lib+set}" = set; then :
5761  withval=$with_mpc_lib;
5762fi
5763
5764
5765if test "x$with_mpc" != x; then
5766  gmplibs="-L$with_mpc/lib $gmplibs"
5767  gmpinc="-I$with_mpc/include $gmpinc"
5768fi
5769if test "x$with_mpc_include" != x; then
5770  gmpinc="-I$with_mpc_include $gmpinc"
5771fi
5772if test "x$with_mpc_lib" != x; then
5773  gmplibs="-L$with_mpc_lib $gmplibs"
5774fi
5775if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5776  gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5777  gmpinc='-I$$s/mpc/src '"$gmpinc"
5778  # Do not test the mpc version.  Assume that it is sufficient, since
5779  # it is in the source tree, and the library has not been built yet
5780  # but it would be included on the link line in the version check below
5781  # hence making the test fail.
5782  have_gmp=yes
5783fi
5784
5785# Specify a location for mpfr
5786# check for this first so it ends up on the link line before gmp.
5787
5788# Check whether --with-mpfr-dir was given.
5789if test "${with_mpfr_dir+set}" = set; then :
5790  withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5791Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5792fi
5793
5794
5795
5796# Check whether --with-mpfr was given.
5797if test "${with_mpfr+set}" = set; then :
5798  withval=$with_mpfr;
5799fi
5800
5801
5802# Check whether --with-mpfr-include was given.
5803if test "${with_mpfr_include+set}" = set; then :
5804  withval=$with_mpfr_include;
5805fi
5806
5807
5808# Check whether --with-mpfr-lib was given.
5809if test "${with_mpfr_lib+set}" = set; then :
5810  withval=$with_mpfr_lib;
5811fi
5812
5813
5814if test "x$with_mpfr" != x; then
5815  gmplibs="-L$with_mpfr/lib $gmplibs"
5816  gmpinc="-I$with_mpfr/include $gmpinc"
5817fi
5818if test "x$with_mpfr_include" != x; then
5819  gmpinc="-I$with_mpfr_include $gmpinc"
5820fi
5821if test "x$with_mpfr_lib" != x; then
5822  gmplibs="-L$with_mpfr_lib $gmplibs"
5823fi
5824if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5825  # MPFR v3.1.0 moved the sources into a src sub-directory.
5826  if ! test -d ${srcdir}/mpfr/src; then
5827    as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5828  fi
5829  gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5830  gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5831  extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5832  # Do not test the mpfr version.  Assume that it is sufficient, since
5833  # it is in the source tree, and the library has not been built yet
5834  # but it would be included on the link line in the version check below
5835  # hence making the test fail.
5836  have_gmp=yes
5837fi
5838
5839# Specify a location for gmp
5840
5841# Check whether --with-gmp-dir was given.
5842if test "${with_gmp_dir+set}" = set; then :
5843  withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5844Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5845fi
5846
5847
5848
5849# Check whether --with-gmp was given.
5850if test "${with_gmp+set}" = set; then :
5851  withval=$with_gmp;
5852fi
5853
5854
5855# Check whether --with-gmp-include was given.
5856if test "${with_gmp_include+set}" = set; then :
5857  withval=$with_gmp_include;
5858fi
5859
5860
5861# Check whether --with-gmp-lib was given.
5862if test "${with_gmp_lib+set}" = set; then :
5863  withval=$with_gmp_lib;
5864fi
5865
5866
5867
5868if test "x$with_gmp" != x; then
5869  gmplibs="-L$with_gmp/lib $gmplibs"
5870  gmpinc="-I$with_gmp/include $gmpinc"
5871fi
5872if test "x$with_gmp_include" != x; then
5873  gmpinc="-I$with_gmp_include $gmpinc"
5874fi
5875if test "x$with_gmp_lib" != x; then
5876  gmplibs="-L$with_gmp_lib $gmplibs"
5877fi
5878if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5879  gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5880  gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5881  extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5882  extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5883  extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5884  # Do not test the gmp version.  Assume that it is sufficient, since
5885  # it is in the source tree, and the library has not been built yet
5886  # but it would be included on the link line in the version check below
5887  # hence making the test fail.
5888  have_gmp=yes
5889fi
5890
5891if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5892  have_gmp=yes
5893  saved_CFLAGS="$CFLAGS"
5894  CFLAGS="$CFLAGS $gmpinc"
5895  # Check for the recommended and required versions of GMP.
5896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5897$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899/* end confdefs.h.  */
5900#include "gmp.h"
5901int
5902main ()
5903{
5904
5905  #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5906  #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5907  #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5908  choke me
5909  #endif
5910
5911  ;
5912  return 0;
5913}
5914_ACEOF
5915if ac_fn_c_try_compile "$LINENO"; then :
5916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917/* end confdefs.h.  */
5918#include <gmp.h>
5919int
5920main ()
5921{
5922
5923  #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5924  #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5925  #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5926  choke me
5927  #endif
5928
5929  ;
5930  return 0;
5931}
5932_ACEOF
5933if ac_fn_c_try_compile "$LINENO"; then :
5934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5935$as_echo "yes" >&6; }
5936else
5937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5938$as_echo "buggy but acceptable" >&6; }
5939fi
5940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941else
5942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943$as_echo "no" >&6; }; have_gmp=no
5944fi
5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946
5947  # If we have GMP, check the MPFR version.
5948  if test x"$have_gmp" = xyes; then
5949    # Check for the recommended and required versions of MPFR.
5950    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5951$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h.  */
5954#include <gmp.h>
5955    #include <mpfr.h>
5956int
5957main ()
5958{
5959
5960    #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5961    choke me
5962    #endif
5963
5964  ;
5965  return 0;
5966}
5967_ACEOF
5968if ac_fn_c_try_compile "$LINENO"; then :
5969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970/* end confdefs.h.  */
5971#include <gmp.h>
5972    #include <mpfr.h>
5973int
5974main ()
5975{
5976
5977    #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5978    choke me
5979    #endif
5980
5981  ;
5982  return 0;
5983}
5984_ACEOF
5985if ac_fn_c_try_compile "$LINENO"; then :
5986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5987$as_echo "yes" >&6; }
5988else
5989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5990$as_echo "buggy but acceptable" >&6; }
5991fi
5992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993else
5994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }; have_gmp=no
5996fi
5997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998  fi
5999
6000  # Check for the MPC header version.
6001  if test x"$have_gmp" = xyes ; then
6002    # Check for the recommended and required versions of MPC.
6003    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
6004$as_echo_n "checking for the correct version of mpc.h... " >&6; }
6005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006/* end confdefs.h.  */
6007#include <mpc.h>
6008int
6009main ()
6010{
6011
6012    #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
6013    choke me
6014    #endif
6015
6016  ;
6017  return 0;
6018}
6019_ACEOF
6020if ac_fn_c_try_compile "$LINENO"; then :
6021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h.  */
6023#include <mpc.h>
6024int
6025main ()
6026{
6027
6028    #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
6029    choke me
6030    #endif
6031
6032  ;
6033  return 0;
6034}
6035_ACEOF
6036if ac_fn_c_try_compile "$LINENO"; then :
6037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6038$as_echo "yes" >&6; }
6039else
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6041$as_echo "buggy but acceptable" >&6; }
6042fi
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044else
6045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046$as_echo "no" >&6; }; have_gmp=no
6047fi
6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049  fi
6050
6051  # Now check the MPFR library.
6052  if test x"$have_gmp" = xyes; then
6053    saved_LIBS="$LIBS"
6054    LIBS="$LIBS $gmplibs"
6055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6056$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
6057    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058/* end confdefs.h.  */
6059#include <mpc.h>
6060int
6061main ()
6062{
6063
6064    mpfr_t n;
6065    mpfr_t x;
6066    mpc_t c;
6067    int t;
6068    mpfr_init (n);
6069    mpfr_init (x);
6070    mpfr_atan2 (n, n, x, GMP_RNDN);
6071    mpfr_erfc (n, x, GMP_RNDN);
6072    mpfr_subnormalize (x, t, GMP_RNDN);
6073    mpfr_clear(n);
6074    mpfr_clear(x);
6075    mpc_init2 (c, 53);
6076    mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6077    mpc_cosh (c, c, MPC_RNDNN);
6078    mpc_pow (c, c, c, MPC_RNDNN);
6079    mpc_acosh (c, c, MPC_RNDNN);
6080    mpc_clear (c);
6081
6082  ;
6083  return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_link "$LINENO"; then :
6087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6088$as_echo "yes" >&6; }
6089else
6090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091$as_echo "no" >&6; }; have_gmp=no
6092fi
6093rm -f core conftest.err conftest.$ac_objext \
6094    conftest$ac_exeext conftest.$ac_ext
6095    LIBS="$saved_LIBS"
6096  fi
6097
6098  CFLAGS="$saved_CFLAGS"
6099
6100# The library versions listed in the error message below should match
6101# the HARD-minimums enforced above.
6102  if test x$have_gmp != xyes; then
6103    as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
6104Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6105their locations.  Source code for these libraries can be found at
6106their respective hosting sites as well as at
6107ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
6108http://gcc.gnu.org/install/prerequisites.html for additional info.  If
6109you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6110make sure that you have installed both the libraries and the header
6111files.  They may be located in separate packages." "$LINENO" 5
6112  fi
6113fi
6114
6115# Flags needed for both GMP, MPFR and/or MPC.
6116
6117
6118
6119
6120
6121
6122
6123# Libraries to use for stage1 or when not bootstrapping.
6124
6125# Check whether --with-stage1-libs was given.
6126if test "${with_stage1_libs+set}" = set; then :
6127  withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6128   stage1_libs=
6129 else
6130   stage1_libs=$withval
6131 fi
6132else
6133  stage1_libs=
6134fi
6135
6136
6137
6138# Whether or not to use -static-libstdc++ and -static-libgcc.  The
6139# default is yes if gcc is being built; no otherwise.  The reason for
6140# this default is that gdb is sometimes linked against GNU Source
6141# Highlight, which is a shared library that uses C++ exceptions.  In
6142# this case, -static-libstdc++ will cause crashes.
6143
6144# Check whether --with-static-standard-libraries was given.
6145if test "${with_static_standard_libraries+set}" = set; then :
6146  withval=$with_static_standard_libraries;
6147else
6148  with_static_standard_libraries=auto
6149fi
6150
6151if test "$with_static_standard_libraries" = auto; then
6152  with_static_standard_libraries=$have_compiler
6153fi
6154
6155# Linker flags to use for stage1 or when not bootstrapping.
6156
6157# Check whether --with-stage1-ldflags was given.
6158if test "${with_stage1_ldflags+set}" = set; then :
6159  withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6160   stage1_ldflags=
6161 else
6162   stage1_ldflags=$withval
6163 fi
6164else
6165  stage1_ldflags=
6166 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6167 # if supported.  But if the user explicitly specified the libraries to use,
6168 # trust that they are doing what they want.
6169 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6170     -a "$have_static_libs" = yes; then
6171   stage1_ldflags="-static-libstdc++ -static-libgcc"
6172 fi
6173fi
6174
6175
6176
6177# Libraries to use for stage2 and later builds.
6178
6179# Check whether --with-boot-libs was given.
6180if test "${with_boot_libs+set}" = set; then :
6181  withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6182   poststage1_libs=
6183 else
6184   poststage1_libs=$withval
6185 fi
6186else
6187  poststage1_libs=
6188fi
6189
6190
6191
6192# Linker flags to use for stage2 and later builds.
6193
6194# Check whether --with-boot-ldflags was given.
6195if test "${with_boot_ldflags+set}" = set; then :
6196  withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6197   poststage1_ldflags=
6198 else
6199   poststage1_ldflags=$withval
6200 fi
6201else
6202  poststage1_ldflags=
6203 # In stages 2 and 3, default to linking libstdc++ and libgcc
6204 # statically.  But if the user explicitly specified the libraries to
6205 # use, trust that they are doing what they want.
6206 if test "$poststage1_libs" = ""; then
6207   poststage1_ldflags="-static-libstdc++ -static-libgcc"
6208 fi
6209fi
6210
6211
6212
6213# GCC GRAPHITE dependency isl.
6214# Basic setup is inlined here, actual checks are in config/isl.m4
6215
6216
6217# Check whether --with-isl was given.
6218if test "${with_isl+set}" = set; then :
6219  withval=$with_isl;
6220fi
6221
6222
6223# Treat --without-isl as a request to disable
6224# GRAPHITE support and skip all following checks.
6225if test "x$with_isl" != "xno"; then
6226  # Check for isl
6227
6228
6229# Check whether --with-isl-include was given.
6230if test "${with_isl_include+set}" = set; then :
6231  withval=$with_isl_include;
6232fi
6233
6234
6235# Check whether --with-isl-lib was given.
6236if test "${with_isl_lib+set}" = set; then :
6237  withval=$with_isl_lib;
6238fi
6239
6240
6241  # Check whether --enable-isl-version-check was given.
6242if test "${enable_isl_version_check+set}" = set; then :
6243  enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6244else
6245  ENABLE_ISL_CHECK=yes
6246fi
6247
6248
6249  # Initialize isllibs and islinc.
6250  case $with_isl in
6251    no)
6252      isllibs=
6253      islinc=
6254      ;;
6255    "" | yes)
6256      ;;
6257    *)
6258      isllibs="-L$with_isl/lib"
6259      islinc="-I$with_isl/include"
6260      ;;
6261  esac
6262  if test "x${with_isl_include}" != x ; then
6263    islinc="-I$with_isl_include"
6264  fi
6265  if test "x${with_isl_lib}" != x; then
6266    isllibs="-L$with_isl_lib"
6267  fi
6268        if test "x${islinc}" = x && test "x${isllibs}" = x \
6269     && test -d ${srcdir}/isl; then
6270    isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6271    islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6272    ENABLE_ISL_CHECK=no
6273    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6274$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6275  fi
6276
6277  isllibs="${isllibs} -lisl"
6278
6279
6280
6281  if test "${ENABLE_ISL_CHECK}" = yes ; then
6282    _isl_saved_CFLAGS=$CFLAGS
6283    _isl_saved_LDFLAGS=$LDFLAGS
6284    _isl_saved_LIBS=$LIBS
6285
6286    CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6287    LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6288    LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6289
6290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6291$as_echo_n "checking for isl 0.15 or later... " >&6; }
6292    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293/* end confdefs.h.  */
6294#include <isl/schedule.h>
6295int
6296main ()
6297{
6298isl_options_set_schedule_serialize_sccs (NULL, 0);
6299  ;
6300  return 0;
6301}
6302_ACEOF
6303if ac_fn_c_try_link "$LINENO"; then :
6304  gcc_cv_isl=yes
6305else
6306  gcc_cv_isl=no
6307fi
6308rm -f core conftest.err conftest.$ac_objext \
6309    conftest$ac_exeext conftest.$ac_ext
6310    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6311$as_echo "$gcc_cv_isl" >&6; }
6312
6313    if test "${gcc_cv_isl}" = no ; then
6314      { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6315$as_echo "required isl version is 0.15 or later" >&6; }
6316    fi
6317
6318    CFLAGS=$_isl_saved_CFLAGS
6319    LDFLAGS=$_isl_saved_LDFLAGS
6320    LIBS=$_isl_saved_LIBS
6321  fi
6322
6323
6324
6325
6326
6327
6328  if test "x${with_isl}" = xno; then
6329    graphite_requested=no
6330  elif test "x${with_isl}" != x \
6331    || test "x${with_isl_include}" != x \
6332    || test "x${with_isl_lib}" != x ; then
6333    graphite_requested=yes
6334  else
6335    graphite_requested=no
6336  fi
6337
6338
6339
6340  if test "${gcc_cv_isl}" = no ; then
6341    isllibs=
6342    islinc=
6343  fi
6344
6345  if test "${graphite_requested}" = yes \
6346    && test "x${isllibs}" = x \
6347    && test "x${islinc}" = x ; then
6348
6349    as_fn_error $? "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
6350  fi
6351
6352
6353fi
6354
6355# If the isl check failed, disable builds of in-tree variant of isl
6356if test "x$with_isl" = xno ||
6357   test "x$gcc_cv_isl" = xno; then
6358  noconfigdirs="$noconfigdirs isl"
6359  islinc=
6360fi
6361
6362
6363
6364
6365# Check for LTO support.
6366# Check whether --enable-lto was given.
6367if test "${enable_lto+set}" = set; then :
6368  enableval=$enable_lto; enable_lto=$enableval
6369else
6370  enable_lto=yes; default_enable_lto=yes
6371fi
6372
6373
6374
6375
6376
6377target_elf=no
6378case $target in
6379  *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6380  *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6381  alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6382  nvptx-*-none)
6383    target_elf=no
6384    ;;
6385  *)
6386    target_elf=yes
6387    ;;
6388esac
6389
6390if test $target_elf = yes; then :
6391  # ELF platforms build the lto-plugin always.
6392  build_lto_plugin=yes
6393
6394else
6395  if test x"$default_enable_lto" = x"yes" ; then
6396    case $target in
6397      *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6398      # On other non-ELF platforms, LTO has yet to be validated.
6399      *) enable_lto=no ;;
6400    esac
6401  else
6402  # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6403  # It would also be nice to check the binutils support, but we don't
6404  # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6405  # warn during gcc/ subconfigure; unless you're bootstrapping with
6406  # -flto it won't be needed until after installation anyway.
6407    case $target in
6408      *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6409      *) if test x"$enable_lto" = x"yes"; then
6410	as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6411        fi
6412      ;;
6413    esac
6414  fi
6415  # Among non-ELF, only Windows platforms support the lto-plugin so far.
6416  # Build it unless LTO was explicitly disabled.
6417  case $target in
6418    *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6419    *) ;;
6420  esac
6421
6422fi
6423
6424
6425# Check whether --enable-linker-plugin-configure-flags was given.
6426if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6427  enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6428else
6429  extra_linker_plugin_configure_flags=
6430fi
6431
6432
6433# Check whether --enable-linker-plugin-flags was given.
6434if test "${enable_linker_plugin_flags+set}" = set; then :
6435  enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6436else
6437  extra_linker_plugin_flags=
6438fi
6439
6440
6441
6442# Enable --enable-host-shared.
6443# Checked early to determine whether jit is an 'all' language
6444# Check whether --enable-host-shared was given.
6445if test "${enable_host_shared+set}" = set; then :
6446  enableval=$enable_host_shared; host_shared=$enableval
6447else
6448  host_shared=no
6449fi
6450
6451
6452
6453# By default, C and C++ are the only stage 1 languages.
6454stage1_languages=,c,
6455
6456# Target libraries that we bootstrap.
6457bootstrap_target_libs=,target-libgcc,
6458
6459# Figure out what language subdirectories are present.
6460# Look if the user specified --enable-languages="..."; if not, use
6461# the environment variable $LANGUAGES if defined. $LANGUAGES might
6462# go away some day.
6463# NB:  embedded tabs in this IF block -- do not untabify
6464if test -d ${srcdir}/gcc; then
6465  if test x"${enable_languages+set}" != xset; then
6466    if test x"${LANGUAGES+set}" = xset; then
6467      enable_languages="${LANGUAGES}"
6468        echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6469    else
6470      enable_languages=default
6471    fi
6472  else
6473    if test x"${enable_languages}" = x ||
6474       test x"${enable_languages}" = xyes;
6475       then
6476      echo configure.ac: --enable-languages needs at least one language argument 1>&2
6477      exit 1
6478    fi
6479  fi
6480  enable_languages=`echo "${enable_languages}" | sed -e 's/[ 	,][ 	,]*/,/g' -e 's/,$//'`
6481
6482  # 'f95' is the old name for the 'fortran' language. We issue a warning
6483  # and make the substitution.
6484  case ,${enable_languages}, in
6485    *,f95,*)
6486      echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6487      enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6488      ;;
6489  esac
6490
6491  # If bootstrapping, C++ must be enabled.
6492  case ",$enable_languages,:$enable_bootstrap" in
6493    *,c++,*:*) ;;
6494    *:yes)
6495      if test -f ${srcdir}/gcc/cp/config-lang.in; then
6496        enable_languages="${enable_languages},c++"
6497      else
6498        as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6499      fi
6500      ;;
6501  esac
6502
6503  # First scan to see if an enabled language requires some other language.
6504  # We assume that a given config-lang.in will list all the language
6505  # front ends it requires, even if some are required indirectly.
6506  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6507    case ${lang_frag} in
6508      ..) ;;
6509      # The odd quoting in the next line works around
6510      # an apparent bug in bash 1.12 on linux.
6511      ${srcdir}/gcc/[*]/config-lang.in) ;;
6512      *)
6513        # From the config-lang.in, get $language, $lang_requires, and
6514        # $lang_requires_boot_languages.
6515        language=
6516        lang_requires=
6517        lang_requires_boot_languages=
6518        # set srcdir during sourcing lang_frag to the gcc dir.
6519        # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6520        # polutes this shell
6521        saved_srcdir=${srcdir}
6522        srcdir=${srcdir}/gcc . ${lang_frag}
6523        srcdir=${saved_srcdir}
6524        for other in ${lang_requires} ${lang_requires_boot_languages}; do
6525          case ,${enable_languages}, in
6526	    *,$other,*) ;;
6527	    *,default,*) ;;
6528	    *,all,*) ;;
6529	    *,$language,*)
6530	      echo " \`$other' language required by \`$language'; enabling" 1>&2
6531	      enable_languages="${enable_languages},${other}"
6532	      ;;
6533	  esac
6534        done
6535	for other in ${lang_requires_boot_languages} ; do
6536	  if test "$other" != "c"; then
6537	    case ,${enable_stage1_languages}, in
6538	      *,$other,*) ;;
6539	      *,default,*) ;;
6540	      *,all,*) ;;
6541	      *)
6542		case ,${enable_languages}, in
6543		  *,$language,*)
6544		    echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6545		    enable_stage1_languages="$enable_stage1_languages,${other}"
6546		    ;;
6547		esac
6548		;;
6549	    esac
6550          fi
6551        done
6552        ;;
6553    esac
6554  done
6555
6556  new_enable_languages=,c,
6557
6558  # If LTO is enabled, add the LTO front end.
6559  if test "$enable_lto" = "yes" ; then
6560    case ,${enable_languages}, in
6561      *,lto,*) ;;
6562      *) enable_languages="${enable_languages},lto" ;;
6563    esac
6564    if test "${build_lto_plugin}" = "yes" ; then
6565      configdirs="$configdirs lto-plugin"
6566    fi
6567  fi
6568
6569  # If we're building an offloading compiler, add the LTO front end.
6570  if test x"$enable_as_accelerator_for" != x ; then
6571    case ,${enable_languages}, in
6572      *,lto,*) ;;
6573      *) enable_languages="${enable_languages},lto" ;;
6574    esac
6575  fi
6576
6577  missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6578  potential_languages=,c,
6579
6580  enabled_target_libs=
6581  disabled_target_libs=
6582
6583  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6584    case ${lang_frag} in
6585      ..) ;;
6586      # The odd quoting in the next line works around
6587      # an apparent bug in bash 1.12 on linux.
6588      ${srcdir}/gcc/[*]/config-lang.in) ;;
6589      *)
6590        # From the config-lang.in, get $language, $target_libs,
6591        # $lang_dirs, $boot_language, and $build_by_default
6592        language=
6593        target_libs=
6594        lang_dirs=
6595        subdir_requires=
6596        boot_language=no
6597        build_by_default=yes
6598        # set srcdir during sourcing.  See above about save & restore
6599        saved_srcdir=${srcdir}
6600        srcdir=${srcdir}/gcc . ${lang_frag}
6601        srcdir=${saved_srcdir}
6602        if test x${language} = x; then
6603          echo "${lang_frag} doesn't set \$language." 1>&2
6604          exit 1
6605        fi
6606
6607	if test "$language" = "c++"; then
6608	  boot_language=yes
6609	fi
6610
6611        add_this_lang=no
6612        # C is always enabled, so no need to add it again
6613        if test "$language" != "c"; then
6614          case ,${enable_languages}, in
6615            *,${language},*)
6616              # Language was explicitly selected; include it
6617	      add_this_lang=yes
6618              ;;
6619	    *,all,*)
6620	      # All languages are enabled
6621	      add_this_lang=all
6622              ;;
6623            *,default,*)
6624              # 'default' was selected, select it if it is a default language
6625	      add_this_lang=${build_by_default}
6626              ;;
6627          esac
6628        fi
6629
6630        # Disable languages that need other directories if these aren't available.
6631	for i in $subdir_requires; do
6632	  test -f "$srcdir/gcc/$i/config-lang.in" && continue
6633	  case ${add_this_lang} in
6634	    yes)
6635              # Specifically requested language; tell them.
6636              as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6637              ;;
6638            all)
6639              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6640$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6641              add_this_lang=unsupported
6642              ;;
6643            *)
6644              # Silently disable.
6645              add_this_lang=unsupported
6646              ;;
6647          esac
6648	done
6649
6650        # Disable Ada if no preexisting GNAT is available.
6651        case ${add_this_lang}:${language}:${have_gnat} in
6652          yes:ada:no)
6653            # Specifically requested language; tell them.
6654            as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6655            ;;
6656          all:ada:no)
6657            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6658$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6659            add_this_lang=unsupported
6660            ;;
6661          *:ada:no)
6662            # Silently disable.
6663            add_this_lang=unsupported
6664            ;;
6665        esac
6666
6667        # Disable jit if -enable-host-shared not specified
6668        case ${add_this_lang}:${language}:${host_shared} in
6669          yes:jit:no)
6670	    # PR jit/64780: explicitly specify --enable-host-shared
6671	    as_fn_error $? "
6672Enabling language \"jit\" requires --enable-host-shared.
6673
6674--enable-host-shared typically slows the rest of the compiler down by
6675a few %, so you must explicitly enable it.
6676
6677If you want to build both the jit and the regular compiler, it is often
6678best to do this via two separate configure/builds, in separate
6679directories, to avoid imposing the performance cost of
6680--enable-host-shared on the regular compiler." "$LINENO" 5
6681	    ;;
6682          all:jit:no)
6683	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6684$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6685            add_this_lang=unsupported
6686            ;;
6687          *:jit:no)
6688            # Silently disable.
6689            add_this_lang=unsupported
6690            ;;
6691	esac
6692
6693        # Disable a language that is unsupported by the target.
6694	case "${add_this_lang}: $unsupported_languages " in
6695	  no:*) ;;
6696	  unsupported:*) ;;
6697	  *:*" $language "*)
6698	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6699$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6700	    add_this_lang=unsupported
6701	    ;;
6702	esac
6703
6704	case $add_this_lang in
6705	  unsupported)
6706            # Remove language-dependent dirs.
6707	    disabled_target_libs="$disabled_target_libs $target_libs"
6708	    noconfigdirs="$noconfigdirs $lang_dirs"
6709	    ;;
6710	  no)
6711            # Remove language-dependent dirs; still show language as supported.
6712	    disabled_target_libs="$disabled_target_libs $target_libs"
6713	    noconfigdirs="$noconfigdirs $lang_dirs"
6714            potential_languages="${potential_languages}${language},"
6715	    ;;
6716          all|yes)
6717	    new_enable_languages="${new_enable_languages}${language},"
6718            potential_languages="${potential_languages}${language},"
6719	    missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6720	    enabled_target_libs="$enabled_target_libs $target_libs"
6721	    case "${boot_language}:,$enable_stage1_languages," in
6722	      yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6723		# Add to (comma-separated) list of stage 1 languages.
6724		case ",$stage1_languages," in
6725		  *,$language,* | ,yes, | ,all,) ;;
6726		  *) stage1_languages="${stage1_languages}${language}," ;;
6727		esac
6728		# We need to bootstrap any supporting libraries.
6729		bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6730		;;
6731	    esac
6732	    ;;
6733        esac
6734        ;;
6735    esac
6736  done
6737
6738  # Add target libraries which are only needed for disabled languages
6739  # to noconfigdirs.
6740  if test -n "$disabled_target_libs"; then
6741    for dir in $disabled_target_libs; do
6742      case " $enabled_target_libs " in
6743      *" ${dir} "*) ;;
6744      *) noconfigdirs="$noconfigdirs $dir" ;;
6745      esac
6746    done
6747  fi
6748
6749  # Check whether --enable-stage1-languages was given.
6750if test "${enable_stage1_languages+set}" = set; then :
6751  enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6752    ,no,|,,)
6753      # Set it to something that will have no effect in the loop below
6754      enable_stage1_languages=c ;;
6755    ,yes,)
6756      enable_stage1_languages=`echo $new_enable_languages | \
6757	sed -e "s/^,//" -e "s/,$//" ` ;;
6758    *,all,*)
6759      enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6760	sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6761  esac
6762
6763  # Add "good" languages from enable_stage1_languages to stage1_languages,
6764  # while "bad" languages go in missing_languages.  Leave no duplicates.
6765  for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6766    case $potential_languages in
6767      *,$i,*)
6768        case $stage1_languages in
6769          *,$i,*) ;;
6770          *) stage1_languages="$stage1_languages$i," ;;
6771        esac ;;
6772      *)
6773        case $missing_languages in
6774          *,$i,*) ;;
6775          *) missing_languages="$missing_languages$i," ;;
6776        esac ;;
6777     esac
6778  done
6779fi
6780
6781
6782  # Remove leading/trailing commas that were added for simplicity
6783  potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6784  missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6785  stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6786  new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6787
6788  if test "x$missing_languages" != x; then
6789    as_fn_error $? "
6790The following requested languages could not be built: ${missing_languages}
6791Supported languages are: ${potential_languages}" "$LINENO" 5
6792  fi
6793  if test "x$new_enable_languages" != "x$enable_languages"; then
6794    echo The following languages will be built: ${new_enable_languages}
6795    enable_languages="$new_enable_languages"
6796  fi
6797
6798
6799  ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6800fi
6801
6802# Handle --disable-<component> generically.
6803for dir in $configdirs $build_configdirs $target_configdirs ; do
6804  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6805  varname=`echo $dirname | sed -e s/+/_/g`
6806  if eval test x\${enable_${varname}} "=" xno ; then
6807    noconfigdirs="$noconfigdirs $dir"
6808  fi
6809done
6810
6811# Check for Boehm's garbage collector
6812# Check whether --enable-objc-gc was given.
6813if test "${enable_objc_gc+set}" = set; then :
6814  enableval=$enable_objc_gc;
6815fi
6816
6817
6818# Check whether --with-target-bdw-gc was given.
6819if test "${with_target_bdw_gc+set}" = set; then :
6820  withval=$with_target_bdw_gc;
6821fi
6822
6823
6824# Check whether --with-target-bdw-gc-include was given.
6825if test "${with_target_bdw_gc_include+set}" = set; then :
6826  withval=$with_target_bdw_gc_include;
6827fi
6828
6829
6830# Check whether --with-target-bdw-gc-lib was given.
6831if test "${with_target_bdw_gc_lib+set}" = set; then :
6832  withval=$with_target_bdw_gc_lib;
6833fi
6834
6835
6836case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6838$as_echo_n "checking for bdw garbage collector... " >&6; }
6839  if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6840        { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6841$as_echo "using bdw-gc in default locations" >&6; }
6842  else
6843        if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6844      as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6845    elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6846      as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6847    else
6848      { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6849$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6850    fi
6851  fi
6852esac
6853
6854# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6855case ,${enable_languages}, in
6856  *,c++,*)
6857    # Disable libitm, libsanitizer if we're not building libstdc++
6858    case "${noconfigdirs}" in
6859      *target-libstdc++-v3*)
6860        noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6861        ;;
6862      *) ;;
6863    esac
6864    ;;
6865  *)
6866    noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6867    ;;
6868esac
6869
6870# If gcc/ is not in the source tree then we'll not be building a
6871# target compiler, assume in that case we don't want to build any
6872# target libraries or tools.
6873#
6874# This was added primarily for the benefit for binutils-gdb who reuse
6875# this configure script, but don't always have target tools available.
6876if test ! -d ${srcdir}/gcc; then
6877   skipdirs="${skipdirs} ${target_configdirs}"
6878fi
6879
6880# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6881# $build_configdirs and $target_configdirs.
6882# If we have the source for $noconfigdirs entries, add them to $notsupp.
6883
6884notsupp=""
6885for dir in . $skipdirs $noconfigdirs ; do
6886  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6887  if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6888    configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6889    if test -r $srcdir/$dirname/configure ; then
6890      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6891	true
6892      else
6893	notsupp="$notsupp $dir"
6894      fi
6895    fi
6896  fi
6897  if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6898    build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6899    if test -r $srcdir/$dirname/configure ; then
6900      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6901	true
6902      else
6903	notsupp="$notsupp $dir"
6904      fi
6905    fi
6906  fi
6907  if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6908    target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6909    if test -r $srcdir/$dirname/configure ; then
6910      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6911	true
6912      else
6913	notsupp="$notsupp $dir"
6914      fi
6915    fi
6916  fi
6917done
6918
6919# Quietly strip out all directories which aren't configurable in this tree.
6920# This relies on all configurable subdirectories being autoconfiscated, which
6921# is now the case.
6922build_configdirs_all="$build_configdirs"
6923build_configdirs=
6924for i in ${build_configdirs_all} ; do
6925  j=`echo $i | sed -e s/build-//g`
6926  if test -f ${srcdir}/$j/configure ; then
6927    build_configdirs="${build_configdirs} $i"
6928  fi
6929done
6930
6931configdirs_all="$configdirs"
6932configdirs=
6933for i in ${configdirs_all} ; do
6934  if test -f ${srcdir}/$i/configure ; then
6935    configdirs="${configdirs} $i"
6936  fi
6937done
6938
6939target_configdirs_all="$target_configdirs"
6940target_configdirs=
6941for i in ${target_configdirs_all} ; do
6942  j=`echo $i | sed -e s/target-//g`
6943  if test -f ${srcdir}/$j/configure ; then
6944    target_configdirs="${target_configdirs} $i"
6945  fi
6946done
6947
6948# libiberty-linker-plugin is special: it doesn't have its own source directory,
6949# so we have to add it after the preceding checks.
6950if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6951then
6952  case " $configdirs " in
6953    *" libiberty "*)
6954      # If we can build libiberty, we can also build libiberty-linker-plugin.
6955      configdirs="$configdirs libiberty-linker-plugin"
6956      extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6957        --with-libiberty=../libiberty-linker-plugin";;
6958    *)
6959      as_fn_error $? "libiberty missing" "$LINENO" 5;;
6960  esac
6961fi
6962
6963# Sometimes we have special requirements for the host libiberty.
6964extra_host_libiberty_configure_flags=
6965case " $configdirs " in
6966  *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
6967    # When these are to be built as shared libraries, the same applies to
6968    # libiberty.
6969    extra_host_libiberty_configure_flags=--enable-shared
6970    ;;
6971esac
6972
6973
6974# Sometimes we have special requirements for the host zlib.
6975extra_host_zlib_configure_flags=
6976case " $configdirs " in
6977  *" bfd "*)
6978    # When bfd is to be built as a shared library, the same applies to
6979    # zlib.
6980    if test "$enable_shared" = "yes"; then
6981      extra_host_zlib_configure_flags=--enable-host-shared
6982    fi
6983    ;;
6984esac
6985
6986
6987# Produce a warning message for the subdirs we can't configure.
6988# This isn't especially interesting in the Cygnus tree, but in the individual
6989# FSF releases, it's important to let people know when their machine isn't
6990# supported by the one or two programs in a package.
6991
6992if test -n "${notsupp}" && test -z "${norecursion}" ; then
6993  # If $appdirs is non-empty, at least one of those directories must still
6994  # be configured, or we error out.  (E.g., if the gas release supports a
6995  # specified target in some subdirs but not the gas subdir, we shouldn't
6996  # pretend that all is well.)
6997  if test -n "$appdirs" ; then
6998    for dir in $appdirs ; do
6999      if test -r $dir/Makefile.in ; then
7000	if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7001	  appdirs=""
7002	  break
7003	fi
7004	if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
7005	  appdirs=""
7006	  break
7007	fi
7008      fi
7009    done
7010    if test -n "$appdirs" ; then
7011      echo "*** This configuration is not supported by this package." 1>&2
7012      exit 1
7013    fi
7014  fi
7015  # Okay, some application will build, or we don't care to check.  Still
7016  # notify of subdirs not getting built.
7017  echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7018  echo "    ${notsupp}" 1>&2
7019  echo "    (Any other directories should still work fine.)" 1>&2
7020fi
7021
7022case "$host" in
7023  *msdosdjgpp*)
7024    enable_gdbtk=no ;;
7025esac
7026
7027# To find our prefix, in gcc_cv_tool_prefix.
7028
7029# The user is always right.
7030if test "${PATH_SEPARATOR+set}" != set; then
7031  echo "#! /bin/sh" >conf$$.sh
7032  echo  "exit 0"   >>conf$$.sh
7033  chmod +x conf$$.sh
7034  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7035    PATH_SEPARATOR=';'
7036  else
7037    PATH_SEPARATOR=:
7038  fi
7039  rm -f conf$$.sh
7040fi
7041
7042
7043  get_gcc_base_ver="cat"
7044
7045# Check whether --with-gcc-major-version-only was given.
7046if test "${with_gcc_major_version_only+set}" = set; then :
7047  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
7048        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
7049      fi
7050
7051fi
7052
7053
7054
7055
7056
7057
7058if test "x$exec_prefix" = xNONE; then
7059        if test "x$prefix" = xNONE; then
7060                gcc_cv_tool_prefix=$ac_default_prefix
7061        else
7062                gcc_cv_tool_prefix=$prefix
7063        fi
7064else
7065        gcc_cv_tool_prefix=$exec_prefix
7066fi
7067
7068# If there is no compiler in the tree, use the PATH only.  In any
7069# case, if there is no compiler in the tree nobody should use
7070# AS_FOR_TARGET and LD_FOR_TARGET.
7071if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7072    if test x$with_gcc_major_version_only = xyes ; then
7073                gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7074            else
7075        gcc_version=`cat $srcdir/gcc/BASE-VER`
7076    fi
7077    gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7078    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7079    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7080    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7081    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7082    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7083else
7084    gcc_cv_tool_dirs=
7085fi
7086
7087if test x$build = x$target && test -n "$md_exec_prefix"; then
7088        gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7089fi
7090
7091
7092
7093copy_dirs=
7094
7095
7096# Check whether --with-build-sysroot was given.
7097if test "${with_build_sysroot+set}" = set; then :
7098  withval=$with_build_sysroot; if test x"$withval" != x ; then
7099     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7100   fi
7101else
7102  SYSROOT_CFLAGS_FOR_TARGET=
7103fi
7104
7105
7106
7107
7108# Check whether --with-debug-prefix-map was given.
7109if test "${with_debug_prefix_map+set}" = set; then :
7110  withval=$with_debug_prefix_map; if test x"$withval" != x; then
7111     DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7112     for debug_map in $withval; do
7113       DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7114     done
7115   fi
7116else
7117  DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7118fi
7119
7120
7121
7122# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7123# might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
7124# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7125# We want to ensure that TARGET libraries (which we know are built with
7126# gcc) are built with "-O2 -g", so include those options when setting
7127# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7128if test "x$CFLAGS_FOR_TARGET" = x; then
7129  if test "x${is_cross_compiler}" = xyes; then
7130    CFLAGS_FOR_TARGET="-g -O2"
7131  else
7132    CFLAGS_FOR_TARGET=$CFLAGS
7133    case " $CFLAGS " in
7134      *" -O2 "*) ;;
7135      *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7136    esac
7137    case " $CFLAGS " in
7138      *" -g "* | *" -g3 "*) ;;
7139      *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7140    esac
7141  fi
7142fi
7143
7144
7145if test "x$CXXFLAGS_FOR_TARGET" = x; then
7146  if test "x${is_cross_compiler}" = xyes; then
7147    CXXFLAGS_FOR_TARGET="-g -O2"
7148  else
7149    CXXFLAGS_FOR_TARGET=$CXXFLAGS
7150    case " $CXXFLAGS " in
7151      *" -O2 "*) ;;
7152      *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7153    esac
7154    case " $CXXFLAGS " in
7155      *" -g "* | *" -g3 "*) ;;
7156      *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7157    esac
7158  fi
7159fi
7160
7161
7162
7163
7164# Handle --with-headers=XXX.  If the value is not "yes", the contents of
7165# the named directory are copied to $(tooldir)/sys-include.
7166if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7167  if test x${is_cross_compiler} = xno ; then
7168    echo 1>&2 '***' --with-headers is only supported when cross compiling
7169    exit 1
7170  fi
7171  if test x"${with_headers}" != xyes ; then
7172    x=${gcc_cv_tool_prefix}
7173    copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7174  fi
7175fi
7176
7177# Handle --with-libs=XXX.  If the value is not "yes", the contents of
7178# the name directories are copied to $(tooldir)/lib.  Multiple directories
7179# are permitted.
7180if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7181  if test x${is_cross_compiler} = xno ; then
7182    echo 1>&2 '***' --with-libs is only supported when cross compiling
7183    exit 1
7184  fi
7185  if test x"${with_libs}" != xyes ; then
7186    # Copy the libraries in reverse order, so that files in the first named
7187    # library override files in subsequent libraries.
7188    x=${gcc_cv_tool_prefix}
7189    for l in ${with_libs}; do
7190      copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7191    done
7192  fi
7193fi
7194
7195# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7196#
7197# This is done by determining whether or not the appropriate directory
7198# is available, and by checking whether or not specific configurations
7199# have requested that this magic not happen.
7200#
7201# The command line options always override the explicit settings in
7202# configure.ac, and the settings in configure.ac override this magic.
7203#
7204# If the default for a toolchain is to use GNU as and ld, and you don't
7205# want to do that, then you should use the --without-gnu-as and
7206# --without-gnu-ld options for the configure script.  Similarly, if
7207# the default is to use the included zlib and you don't want to do that,
7208# you should use the --with-system-zlib option for the configure script.
7209
7210if test x${use_gnu_as} = x &&
7211   echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7212  with_gnu_as=yes
7213  extra_host_args="$extra_host_args --with-gnu-as"
7214fi
7215
7216if test x${use_gnu_ld} = x &&
7217   echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7218  with_gnu_ld=yes
7219  extra_host_args="$extra_host_args --with-gnu-ld"
7220fi
7221
7222if test x${use_included_zlib} = x &&
7223   echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7224  :
7225else
7226  with_system_zlib=yes
7227  extra_host_args="$extra_host_args --with-system-zlib"
7228fi
7229
7230# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7231# can detect this case.
7232
7233if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7234  with_newlib=yes
7235  extra_host_args="$extra_host_args --with-newlib"
7236fi
7237
7238# Handle ${copy_dirs}
7239set fnord ${copy_dirs}
7240shift
7241while test $# != 0 ; do
7242  if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7243    :
7244  else
7245    echo Copying $1 to $2
7246
7247    # Use the install script to create the directory and all required
7248    # parent directories.
7249    if test -d $2 ; then
7250      :
7251    else
7252      echo >config.temp
7253      ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7254    fi
7255
7256    # Copy the directory, assuming we have tar.
7257    # FIXME: Should we use B in the second tar?  Not all systems support it.
7258    (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7259
7260    # It is the responsibility of the user to correctly adjust all
7261    # symlinks.  If somebody can figure out how to handle them correctly
7262    # here, feel free to add the code.
7263
7264    echo $1 > $2/COPIED
7265  fi
7266  shift; shift
7267done
7268
7269# Determine a target-dependent exec_prefix that the installed
7270# gcc will search in.  Keep this list sorted by triplet, with
7271# the *-*-osname triplets last.
7272md_exec_prefix=
7273case "${target}" in
7274  i[34567]86-pc-msdosdjgpp*)
7275    md_exec_prefix=/dev/env/DJDIR/bin
7276    ;;
7277  *-*-hpux* | \
7278  *-*-nto-qnx* | \
7279  *-*-solaris2*)
7280    md_exec_prefix=/usr/ccs/bin
7281    ;;
7282esac
7283
7284extra_arflags_for_target=
7285extra_nmflags_for_target=
7286extra_ranlibflags_for_target=
7287target_makefile_frag=/dev/null
7288case "${target}" in
7289  spu-*-*)
7290    target_makefile_frag="config/mt-spu"
7291    ;;
7292  mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7293    target_makefile_frag="config/mt-sde"
7294    ;;
7295  mipsisa*-*-elfoabi*)
7296    target_makefile_frag="config/mt-mips-elfoabi"
7297    ;;
7298  mips*-*-*linux* | mips*-*-gnu*)
7299    target_makefile_frag="config/mt-mips-gnu"
7300    ;;
7301  nios2-*-elf*)
7302    target_makefile_frag="config/mt-nios2-elf"
7303    ;;
7304  *-*-linux-android*)
7305    target_makefile_frag="config/mt-android"
7306    ;;
7307  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7308    target_makefile_frag="config/mt-gnu"
7309    ;;
7310  *-*-aix4.[3456789]* | *-*-aix[56789].*)
7311    # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7312    # commands to handle both 32-bit and 64-bit objects.  These flags are
7313    # harmless if we're using GNU nm or ar.
7314    extra_arflags_for_target=" -X32_64"
7315    extra_nmflags_for_target=" -B -X32_64"
7316    ;;
7317esac
7318
7319alphaieee_frag=/dev/null
7320case $target in
7321  alpha*-*-*)
7322    # This just makes sure to use the -mieee option to build target libs.
7323    # This should probably be set individually by each library.
7324    alphaieee_frag="config/mt-alphaieee"
7325    ;;
7326esac
7327
7328# If --enable-target-optspace always use -Os instead of -O2 to build
7329# the target libraries, similarly if it is not specified, use -Os
7330# on selected platforms.
7331ospace_frag=/dev/null
7332case "${enable_target_optspace}:${target}" in
7333  yes:*)
7334    ospace_frag="config/mt-ospace"
7335    ;;
7336  :d30v-*)
7337    ospace_frag="config/mt-d30v"
7338    ;;
7339  :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7340    ospace_frag="config/mt-ospace"
7341    ;;
7342  no:* | :*)
7343    ;;
7344  *)
7345    echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7346    ;;
7347esac
7348
7349# Some systems (e.g., one of the i386-aix systems the gas testers are
7350# using) don't handle "\$" correctly, so don't use it here.
7351tooldir='${exec_prefix}'/${target_noncanonical}
7352build_tooldir=${tooldir}
7353
7354# Create a .gdbinit file which runs the one in srcdir
7355# and tells GDB to look there for source files.
7356
7357if test -r ${srcdir}/.gdbinit ; then
7358  case ${srcdir} in
7359    .) ;;
7360    *) cat > ./.gdbinit <<EOF
7361# ${NO_EDIT}
7362dir ${srcdir}
7363dir .
7364source ${srcdir}/.gdbinit
7365EOF
7366    ;;
7367  esac
7368fi
7369
7370# Make sure that the compiler is able to generate an executable.  If it
7371# can't, we are probably in trouble.  We don't care whether we can run the
7372# executable--we might be using a cross compiler--we only care whether it
7373# can be created.  At this point the main configure script has set CC.
7374we_are_ok=no
7375echo "int main () { return 0; }" > conftest.c
7376${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7377if test $? = 0 ; then
7378  if test -s conftest || test -s conftest.exe ; then
7379    we_are_ok=yes
7380  fi
7381fi
7382case $we_are_ok in
7383  no)
7384    echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7385    echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7386    rm -f conftest*
7387    exit 1
7388    ;;
7389esac
7390rm -f conftest*
7391
7392# Decide which environment variable is used to find dynamic libraries.
7393case "${host}" in
7394  *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7395  *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7396  *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7397  *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7398esac
7399
7400# On systems where the dynamic library environment variable is PATH,
7401# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7402# built executables to PATH.
7403if test "$RPATH_ENVVAR" = PATH; then
7404  GCC_SHLIB_SUBDIR=/shlib
7405else
7406  GCC_SHLIB_SUBDIR=
7407fi
7408
7409# Adjust the toplevel makefile according to whether bootstrap was selected.
7410case $enable_bootstrap in
7411  yes)
7412    bootstrap_suffix=bootstrap
7413    BUILD_CONFIG=bootstrap-debug
7414    ;;
7415  no)
7416    bootstrap_suffix=no-bootstrap
7417    BUILD_CONFIG=
7418    ;;
7419esac
7420
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7422$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7423
7424
7425# Check whether --with-build-config was given.
7426if test "${with_build_config+set}" = set; then :
7427  withval=$with_build_config; case $with_build_config in
7428   yes) with_build_config= ;;
7429   no) with_build_config= BUILD_CONFIG= ;;
7430   esac
7431fi
7432
7433
7434if test "x${with_build_config}" != x; then
7435  BUILD_CONFIG=$with_build_config
7436else
7437  case $BUILD_CONFIG in
7438  bootstrap-debug)
7439    if echo "int f (void) { return 0; }" > conftest.c &&
7440       ${CC} -c conftest.c &&
7441       mv conftest.o conftest.o.g0 &&
7442       ${CC} -c -g conftest.c &&
7443       mv conftest.o conftest.o.g &&
7444       ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7445      :
7446    else
7447      BUILD_CONFIG=
7448    fi
7449    rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7450    ;;
7451  esac
7452fi
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7454$as_echo "$BUILD_CONFIG" >&6; }
7455
7456
7457# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7459$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7460# Check whether --enable-vtable-verify was given.
7461if test "${enable_vtable_verify+set}" = set; then :
7462  enableval=$enable_vtable_verify; case "$enableval" in
7463 yes) enable_vtable_verify=yes ;;
7464 no)  enable_vtable_verify=no ;;
7465 *)   enable_vtable_verify=no;;
7466 esac
7467else
7468  enable_vtable_verify=no
7469fi
7470
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7472$as_echo "$enable_vtable_verify" >&6; }
7473
7474# Record target_configdirs and the configure arguments for target and
7475# build configuration in Makefile.
7476target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7477build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7478bootstrap_fixincludes=no
7479
7480# If we are building libgomp, bootstrap it.
7481if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7482  bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7483fi
7484
7485# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7486# or bootstrap-ubsan, bootstrap it.
7487if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7488  case "$BUILD_CONFIG" in
7489    *bootstrap-asan* | *bootstrap-ubsan* )
7490      bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7491      bootstrap_fixincludes=yes
7492      ;;
7493  esac
7494fi
7495
7496# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7497if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7498   test "$enable_vtable_verify" != no; then
7499  bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7500fi
7501
7502# Determine whether gdb needs tk/tcl or not.
7503# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7504# and in that case we want gdb to be built without tk.  Ugh!
7505# In fact I believe gdb is the *only* package directly dependent on tk,
7506# so we should be able to put the 'maybe's in unconditionally and
7507# leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7508# 100% sure that that's safe though.
7509
7510gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7511case "$enable_gdbtk" in
7512  no)
7513    GDB_TK="" ;;
7514  yes)
7515    GDB_TK="${gdb_tk}" ;;
7516  *)
7517    # Only add the dependency on gdbtk when GDBtk is part of the gdb
7518    # distro.  Eventually someone will fix this and move Insight, nee
7519    # gdbtk to a separate directory.
7520    if test -d ${srcdir}/gdb/gdbtk ; then
7521      GDB_TK="${gdb_tk}"
7522    else
7523      GDB_TK=""
7524    fi
7525    ;;
7526esac
7527CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7528INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7529
7530# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7531# else does, only include them if one of these is built.  The Makefile
7532# provides the ordering, so it's enough here to add to the list.
7533case " ${configdirs} " in
7534  *\ gdb\ *)
7535    configdirs="${configdirs} gnulib gdbsupport"
7536    ;;
7537  *\ gdbserver\ *)
7538    configdirs="${configdirs} gnulib gdbsupport"
7539    ;;
7540  *\ sim\ *)
7541    configdirs="${configdirs} gnulib"
7542    ;;
7543esac
7544
7545# Strip out unwanted targets.
7546
7547# While at that, we remove Makefiles if we were started for recursive
7548# configuration, so that the top-level Makefile reconfigures them,
7549# like we used to do when configure itself was recursive.
7550
7551# Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7552# but now we're fixing up the Makefile ourselves with the additional
7553# commands passed to AC_CONFIG_FILES.  Use separate variables
7554# extrasub-{build,host,target} not because there is any reason to split
7555# the substitutions up that way, but only to remain below the limit of
7556# 99 commands in a script, for HP-UX sed.
7557
7558# Do not nest @if/@endif or @unless/@endunless pairs, because
7559# configure will not warn you at all.
7560
7561case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7562  yes:yes:*\ gold\ *:*,c++,*) ;;
7563  yes:yes:*\ gold\ *:*)
7564    as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7565    ;;
7566esac
7567
7568extrasub_build=
7569for module in ${build_configdirs} ; do
7570  if test -z "${no_recursion}" \
7571     && test -f ${build_subdir}/${module}/Makefile; then
7572    echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7573    rm -f ${build_subdir}/${module}/Makefile
7574  fi
7575  extrasub_build="$extrasub_build
7576/^@if build-$module\$/d
7577/^@endif build-$module\$/d
7578/^@unless build-$module\$/,/^@endunless build-$module\$/d
7579/^@if build-$module-$bootstrap_suffix\$/d
7580/^@endif build-$module-$bootstrap_suffix\$/d
7581/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7582done
7583extrasub_host=
7584for module in ${configdirs} ; do
7585  if test -z "${no_recursion}"; then
7586    for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7587      if test -f ${file}; then
7588	echo 1>&2 "*** removing ${file} to force reconfigure"
7589	rm -f ${file}
7590      fi
7591    done
7592  fi
7593  case ${module},${bootstrap_fixincludes} in
7594    fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7595    *) host_bootstrap_suffix=$bootstrap_suffix ;;
7596  esac
7597  extrasub_host="$extrasub_host
7598/^@if $module\$/d
7599/^@endif $module\$/d
7600/^@unless $module\$/,/^@endunless $module\$/d
7601/^@if $module-$host_bootstrap_suffix\$/d
7602/^@endif $module-$host_bootstrap_suffix\$/d
7603/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7604done
7605extrasub_target=
7606for module in ${target_configdirs} ; do
7607  if test -z "${no_recursion}" \
7608     && test -f ${target_subdir}/${module}/Makefile; then
7609    echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7610    rm -f ${target_subdir}/${module}/Makefile
7611  fi
7612
7613  # We only bootstrap target libraries listed in bootstrap_target_libs.
7614  case $bootstrap_target_libs in
7615    *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7616    *) target_bootstrap_suffix=no-bootstrap ;;
7617  esac
7618
7619  extrasub_target="$extrasub_target
7620/^@if target-$module\$/d
7621/^@endif target-$module\$/d
7622/^@unless target-$module\$/,/^@endunless target-$module\$/d
7623/^@if target-$module-$target_bootstrap_suffix\$/d
7624/^@endif target-$module-$target_bootstrap_suffix\$/d
7625/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7626done
7627
7628# Do the final fixup along with target modules.
7629extrasub_target="$extrasub_target
7630/^@if /,/^@endif /d
7631/^@unless /d
7632/^@endunless /d"
7633
7634if test "$enable_pgo_build" != "no"; then
7635  extrasub_build="$extrasub_build
7636/^@if pgo-build\$/d
7637/^@endif pgo-build\$/d"
7638fi
7639
7640# Create the serialization dependencies.  This uses a temporary file.
7641
7642# Check whether --enable-serial-configure was given.
7643if test "${enable_serial_configure+set}" = set; then :
7644  enableval=$enable_serial_configure;
7645fi
7646
7647
7648case ${enable_serial_configure} in
7649  yes)
7650    enable_serial_build_configure=yes
7651    enable_serial_host_configure=yes
7652    enable_serial_target_configure=yes
7653    ;;
7654esac
7655
7656# These force 'configure's to be done one at a time, to avoid problems
7657# with contention over a shared config.cache.
7658rm -f serdep.tmp
7659echo '# serdep.tmp' > serdep.tmp
7660olditem=
7661test "x${enable_serial_build_configure}" = xyes &&
7662for item in ${build_configdirs} ; do
7663  case ${olditem} in
7664    "") ;;
7665    *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7666  esac
7667  olditem=${item}
7668done
7669olditem=
7670test "x${enable_serial_host_configure}" = xyes &&
7671for item in ${configdirs} ; do
7672  case ${olditem} in
7673    "") ;;
7674    *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7675  esac
7676  olditem=${item}
7677done
7678olditem=
7679test "x${enable_serial_target_configure}" = xyes &&
7680for item in ${target_configdirs} ; do
7681  case ${olditem} in
7682    "") ;;
7683    *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7684  esac
7685  olditem=${item}
7686done
7687serialization_dependencies=serdep.tmp
7688
7689
7690# Base args.  Strip norecursion, cache-file, srcdir, host, build,
7691# target, nonopt, and variable assignments.  These are the ones we
7692# might not want to pass down to subconfigures.  The exception being
7693# --cache-file=/dev/null, which is used to turn off the use of cache
7694# files altogether, and which should be passed on to subconfigures.
7695# Also strip program-prefix, program-suffix, and program-transform-name,
7696# so that we can pass down a consistent program-transform-name.
7697baseargs=
7698tbaseargs=
7699keep_next=no
7700skip_next=no
7701eval "set -- $ac_configure_args"
7702for ac_arg
7703do
7704  if test X"$skip_next" = X"yes"; then
7705    skip_next=no
7706    continue
7707  fi
7708  if test X"$keep_next" = X"yes"; then
7709    case $ac_arg in
7710      *\'*)
7711	ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7712    esac
7713    baseargs="$baseargs '$ac_arg'"
7714    tbaseargs="$tbaseargs '$ac_arg'"
7715    keep_next=no
7716    continue
7717  fi
7718
7719  # Handle separated arguments.  Based on the logic generated by
7720  # autoconf 2.59.
7721  case $ac_arg in
7722    *=* | --config-cache | -C | -disable-* | --disable-* \
7723      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7724      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7725      | -with-* | --with-* | -without-* | --without-* | --x)
7726      separate_arg=no
7727      ;;
7728    -*)
7729      separate_arg=yes
7730      ;;
7731    *)
7732      separate_arg=no
7733      ;;
7734  esac
7735
7736  skip_targ=no
7737  case $ac_arg in
7738
7739  --with-* | --without-*)
7740    libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7741
7742    case $libopt in
7743    *[-_]include)
7744      lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7745      ;;
7746    *[-_]lib)
7747      lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7748      ;;
7749    *)
7750      lib=$libopt
7751      ;;
7752    esac
7753
7754
7755    case $lib in
7756    mpc | mpfr | gmp | isl)
7757      # If we're processing --with-$lib, --with-$lib-include or
7758      # --with-$lib-lib, for one of the libs above, and target is
7759      # different from host, don't pass the current argument to any
7760      # target library's configure.
7761      if test x$is_cross_compiler = xyes; then
7762        skip_targ=yes
7763      fi
7764      ;;
7765    esac
7766    ;;
7767  esac
7768
7769  case "$ac_arg" in
7770    --cache-file=/dev/null | \
7771    -cache-file=/dev/null )
7772      # Handled here to avoid the test to skip args below.
7773      baseargs="$baseargs '$ac_arg'"
7774      tbaseargs="$tbaseargs '$ac_arg'"
7775      # Assert: $separate_arg should always be no.
7776      keep_next=$separate_arg
7777      ;;
7778    --no*)
7779      continue
7780      ;;
7781    --c* | \
7782    --sr* | \
7783    --ho* | \
7784    --bu* | \
7785    --t* | \
7786    --program-* | \
7787    -cache_file* | \
7788    -srcdir* | \
7789    -host* | \
7790    -build* | \
7791    -target* | \
7792    -program-prefix* | \
7793    -program-suffix* | \
7794    -program-transform-name* )
7795      skip_next=$separate_arg
7796      continue
7797      ;;
7798    -*)
7799      # An option.  Add it.
7800      case $ac_arg in
7801	*\'*)
7802	  ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7803      esac
7804      baseargs="$baseargs '$ac_arg'"
7805      if test X"$skip_targ" = Xno; then
7806        tbaseargs="$tbaseargs '$ac_arg'"
7807      fi
7808      keep_next=$separate_arg
7809      ;;
7810    *)
7811      # Either a variable assignment, or a nonopt (triplet).  Don't
7812      # pass it down; let the Makefile handle this.
7813      continue
7814      ;;
7815  esac
7816done
7817# Remove the initial space we just introduced and, as these will be
7818# expanded by make, quote '$'.
7819baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7820
7821# Add in --program-transform-name, after --program-prefix and
7822# --program-suffix have been applied to it.  Autoconf has already
7823# doubled dollar signs and backslashes in program_transform_name; we want
7824# the backslashes un-doubled, and then the entire thing wrapped in single
7825# quotes, because this will be expanded first by make and then by the shell.
7826# Also, because we want to override the logic in subdir configure scripts to
7827# choose program_transform_name, replace any s,x,x, with s,y,y,.
7828sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7829${program_transform_name}
7830EOF_SED
7831gcc_transform_name=`cat conftestsed.out`
7832rm -f conftestsed.out
7833baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7834tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7835if test "$silent" = yes; then
7836  baseargs="$baseargs --silent"
7837  tbaseargs="$tbaseargs --silent"
7838fi
7839baseargs="$baseargs --disable-option-checking"
7840tbaseargs="$tbaseargs --disable-option-checking"
7841
7842# Record and document user additions to sub configure arguments.
7843
7844
7845
7846
7847# For the build-side libraries, we just need to pretend we're native,
7848# and not use the same cache file.  Multilibs are neither needed nor
7849# desired.  We can't even use the same cache file for all build-side
7850# libraries, as they're compiled differently; some with C, some with
7851# C++ or with different feature-enabling options.
7852build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7853
7854# For host modules, accept cache file option, or specification as blank.
7855case "${cache_file}" in
7856"") # empty
7857  cache_file_option="" ;;
7858/* | [A-Za-z]:[\\/]* ) # absolute path
7859  cache_file_option="--cache-file=${cache_file}" ;;
7860*) # relative path
7861  cache_file_option="--cache-file=../${cache_file}" ;;
7862esac
7863
7864# Host dirs don't like to share a cache file either, horribly enough.
7865# This seems to be due to autoconf 2.5x stupidity.
7866host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7867
7868target_configargs="$target_configargs ${tbaseargs}"
7869
7870# Passing a --with-cross-host argument lets the target libraries know
7871# whether they are being built with a cross-compiler or being built
7872# native.  However, it would be better to use other mechanisms to make the
7873# sorts of decisions they want to make on this basis.  Please consider
7874# this option to be deprecated.  FIXME.
7875if test x${is_cross_compiler} = xyes ; then
7876  target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7877fi
7878
7879# Special user-friendly check for native x86_64-linux build, if
7880# multilib is not explicitly enabled.
7881case "$target:$have_compiler:$host:$target:$enable_multilib" in
7882  x86_64-*linux*:yes:$build:$build:)
7883    # Make sure we have a development environment that handles 32-bit
7884    dev64=no
7885    echo "int main () { return 0; }" > conftest.c
7886    ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7887    if test $? = 0 ; then
7888      if test -s conftest || test -s conftest.exe ; then
7889	dev64=yes
7890      fi
7891    fi
7892    rm -f conftest*
7893    if test x${dev64} != xyes ; then
7894      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
7895    fi
7896    ;;
7897esac
7898
7899# Default to --enable-multilib.
7900if test x${enable_multilib} = x ; then
7901  target_configargs="--enable-multilib ${target_configargs}"
7902fi
7903
7904# Pass --with-newlib if appropriate.  Note that target_configdirs has
7905# changed from the earlier setting of with_newlib.
7906if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7907  target_configargs="--with-newlib ${target_configargs}"
7908fi
7909
7910# Different target subdirs use different values of certain variables
7911# (notably CXX).  Worse, multilibs use *lots* of different values.
7912# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7913# it doesn't automatically accept command-line overrides of them.
7914# This means it's not safe for target subdirs to share a cache file,
7915# which is disgusting, but there you have it.  Hopefully this can be
7916# fixed in future.  It's still worthwhile to use a cache file for each
7917# directory.  I think.
7918
7919# Pass the appropriate --build, --host, --target and --cache-file arguments.
7920# We need to pass --target, as newer autoconf's requires consistency
7921# for target_alias and gcc doesn't manage it consistently.
7922target_configargs="--cache-file=./config.cache ${target_configargs}"
7923
7924FLAGS_FOR_TARGET=
7925case " $target_configdirs " in
7926 *" newlib "*)
7927  case " $target_configargs " in
7928  *" --with-newlib "*)
7929   case "$target" in
7930    *-cygwin*)
7931      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7932      ;;
7933   esac
7934
7935   # If we're not building GCC, don't discard standard headers.
7936   if test -d ${srcdir}/gcc; then
7937     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7938
7939     if test "${build}" != "${host}"; then
7940       # On Canadian crosses, CC_FOR_TARGET will have already been set
7941       # by `configure', so we won't have an opportunity to add -Bgcc/
7942       # to it.  This is right: we don't want to search that directory
7943       # for binaries, but we want the header files in there, so add
7944       # them explicitly.
7945       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7946
7947       # Someone might think of using the pre-installed headers on
7948       # Canadian crosses, in case the installed compiler is not fully
7949       # compatible with the compiler being built.  In this case, it
7950       # would be better to flag an error than risking having
7951       # incompatible object files being constructed.  We can't
7952       # guarantee that an error will be flagged, but let's hope the
7953       # compiler will do it, when presented with incompatible header
7954       # files.
7955     fi
7956   fi
7957
7958   case "${target}-${is_cross_compiler}" in
7959   i[3456789]86-*-linux*-no)
7960      # Here host == target, so we don't need to build gcc,
7961      # so we don't want to discard standard headers.
7962      FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7963      ;;
7964   *)
7965      # If we're building newlib, use its generic headers last, but search
7966      # for any libc-related directories first (so make it the last -B
7967      # switch).
7968      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7969
7970      # If we're building libgloss, find the startup file, simulator library
7971      # and linker script.
7972      case " $target_configdirs " in
7973	*" libgloss "*)
7974	# Look for startup file, simulator library and maybe linker script.
7975	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7976	# Look for libnosys.a in case the target needs it.
7977	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7978	# Most targets have the linker script in the source directory.
7979	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7980	;;
7981      esac
7982      ;;
7983   esac
7984   ;;
7985  esac
7986  ;;
7987esac
7988
7989case "$target" in
7990  x86_64-*mingw* | *-w64-mingw*)
7991  # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7992  # however, use a symlink named 'mingw' in ${prefix} .
7993    FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7994    ;;
7995  *-mingw*)
7996  # MinGW can't be handled as Cygwin above since it does not use newlib.
7997    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'
7998    ;;
7999esac
8000
8001# Allow the user to override the flags for
8002# our build compiler if desired.
8003if test x"${build}" = x"${host}" ; then
8004  CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8005  CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8006  LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8007fi
8008
8009# On Canadian crosses, we'll be searching the right directories for
8010# the previously-installed cross compiler, so don't bother to add
8011# flags for directories within the install tree of the compiler
8012# being built; programs in there won't even run.
8013if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8014  # Search for pre-installed headers if nothing else fits.
8015  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8016fi
8017
8018if test "x${use_gnu_ld}" = x &&
8019   echo " ${configdirs} " | grep " ld " > /dev/null ; then
8020  # Arrange for us to find uninstalled linker scripts.
8021  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8022fi
8023
8024# Search for other target-specific linker scripts and such.
8025case "${target}" in
8026  mep*)
8027    FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8028    ;;
8029esac
8030
8031# Makefile fragments.
8032for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8033do
8034  eval fragval=\$$frag
8035  if test $fragval != /dev/null; then
8036    eval $frag=${srcdir}/$fragval
8037  fi
8038done
8039
8040
8041
8042
8043
8044# Miscellanea: directories, flags, etc.
8045
8046
8047
8048
8049
8050
8051
8052
8053# Build module lists & subconfigure args.
8054
8055
8056
8057# Host module lists & subconfigure args.
8058
8059
8060
8061
8062# Target module lists & subconfigure args.
8063
8064
8065
8066# Build tools.
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083# Generate default definitions for YACC, M4, LEX and other programs that run
8084# on the build machine.  These are used if the Makefile can't locate these
8085# programs in objdir.
8086MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8087
8088for ac_prog in 'bison -y' byacc yacc
8089do
8090  # Extract the first word of "$ac_prog", so it can be a program name with args.
8091set dummy $ac_prog; ac_word=$2
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093$as_echo_n "checking for $ac_word... " >&6; }
8094if ${ac_cv_prog_YACC+:} false; then :
8095  $as_echo_n "(cached) " >&6
8096else
8097  if test -n "$YACC"; then
8098  ac_cv_prog_YACC="$YACC" # Let the user override the test.
8099else
8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103  IFS=$as_save_IFS
8104  test -z "$as_dir" && as_dir=.
8105    for ac_exec_ext in '' $ac_executable_extensions; do
8106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107    ac_cv_prog_YACC="$ac_prog"
8108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109    break 2
8110  fi
8111done
8112  done
8113IFS=$as_save_IFS
8114
8115fi
8116fi
8117YACC=$ac_cv_prog_YACC
8118if test -n "$YACC"; then
8119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8120$as_echo "$YACC" >&6; }
8121else
8122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123$as_echo "no" >&6; }
8124fi
8125
8126
8127  test -n "$YACC" && break
8128done
8129test -n "$YACC" || YACC="$MISSING bison -y"
8130
8131case " $build_configdirs " in
8132  *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8133esac
8134
8135for ac_prog in bison
8136do
8137  # Extract the first word of "$ac_prog", so it can be a program name with args.
8138set dummy $ac_prog; ac_word=$2
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140$as_echo_n "checking for $ac_word... " >&6; }
8141if ${ac_cv_prog_BISON+:} false; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  if test -n "$BISON"; then
8145  ac_cv_prog_BISON="$BISON" # Let the user override the test.
8146else
8147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150  IFS=$as_save_IFS
8151  test -z "$as_dir" && as_dir=.
8152    for ac_exec_ext in '' $ac_executable_extensions; do
8153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8154    ac_cv_prog_BISON="$ac_prog"
8155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156    break 2
8157  fi
8158done
8159  done
8160IFS=$as_save_IFS
8161
8162fi
8163fi
8164BISON=$ac_cv_prog_BISON
8165if test -n "$BISON"; then
8166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8167$as_echo "$BISON" >&6; }
8168else
8169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170$as_echo "no" >&6; }
8171fi
8172
8173
8174  test -n "$BISON" && break
8175done
8176test -n "$BISON" || BISON="$MISSING bison"
8177
8178case " $build_configdirs " in
8179  *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8180esac
8181
8182for ac_prog in gm4 gnum4 m4
8183do
8184  # Extract the first word of "$ac_prog", so it can be a program name with args.
8185set dummy $ac_prog; ac_word=$2
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187$as_echo_n "checking for $ac_word... " >&6; }
8188if ${ac_cv_prog_M4+:} false; then :
8189  $as_echo_n "(cached) " >&6
8190else
8191  if test -n "$M4"; then
8192  ac_cv_prog_M4="$M4" # Let the user override the test.
8193else
8194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195for as_dir in $PATH
8196do
8197  IFS=$as_save_IFS
8198  test -z "$as_dir" && as_dir=.
8199    for ac_exec_ext in '' $ac_executable_extensions; do
8200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8201    ac_cv_prog_M4="$ac_prog"
8202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203    break 2
8204  fi
8205done
8206  done
8207IFS=$as_save_IFS
8208
8209fi
8210fi
8211M4=$ac_cv_prog_M4
8212if test -n "$M4"; then
8213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8214$as_echo "$M4" >&6; }
8215else
8216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217$as_echo "no" >&6; }
8218fi
8219
8220
8221  test -n "$M4" && break
8222done
8223test -n "$M4" || M4="$MISSING m4"
8224
8225case " $build_configdirs " in
8226  *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8227esac
8228
8229for ac_prog in flex lex
8230do
8231  # Extract the first word of "$ac_prog", so it can be a program name with args.
8232set dummy $ac_prog; ac_word=$2
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234$as_echo_n "checking for $ac_word... " >&6; }
8235if ${ac_cv_prog_LEX+:} false; then :
8236  $as_echo_n "(cached) " >&6
8237else
8238  if test -n "$LEX"; then
8239  ac_cv_prog_LEX="$LEX" # Let the user override the test.
8240else
8241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242for as_dir in $PATH
8243do
8244  IFS=$as_save_IFS
8245  test -z "$as_dir" && as_dir=.
8246    for ac_exec_ext in '' $ac_executable_extensions; do
8247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8248    ac_cv_prog_LEX="$ac_prog"
8249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250    break 2
8251  fi
8252done
8253  done
8254IFS=$as_save_IFS
8255
8256fi
8257fi
8258LEX=$ac_cv_prog_LEX
8259if test -n "$LEX"; then
8260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8261$as_echo "$LEX" >&6; }
8262else
8263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264$as_echo "no" >&6; }
8265fi
8266
8267
8268  test -n "$LEX" && break
8269done
8270test -n "$LEX" || LEX="$MISSING flex"
8271
8272case " $build_configdirs " in
8273  *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8274  *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8275esac
8276
8277for ac_prog in flex
8278do
8279  # Extract the first word of "$ac_prog", so it can be a program name with args.
8280set dummy $ac_prog; ac_word=$2
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8282$as_echo_n "checking for $ac_word... " >&6; }
8283if ${ac_cv_prog_FLEX+:} false; then :
8284  $as_echo_n "(cached) " >&6
8285else
8286  if test -n "$FLEX"; then
8287  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8288else
8289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290for as_dir in $PATH
8291do
8292  IFS=$as_save_IFS
8293  test -z "$as_dir" && as_dir=.
8294    for ac_exec_ext in '' $ac_executable_extensions; do
8295  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296    ac_cv_prog_FLEX="$ac_prog"
8297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298    break 2
8299  fi
8300done
8301  done
8302IFS=$as_save_IFS
8303
8304fi
8305fi
8306FLEX=$ac_cv_prog_FLEX
8307if test -n "$FLEX"; then
8308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8309$as_echo "$FLEX" >&6; }
8310else
8311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312$as_echo "no" >&6; }
8313fi
8314
8315
8316  test -n "$FLEX" && break
8317done
8318test -n "$FLEX" || FLEX="$MISSING flex"
8319
8320case " $build_configdirs " in
8321  *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8322esac
8323
8324for ac_prog in makeinfo
8325do
8326  # Extract the first word of "$ac_prog", so it can be a program name with args.
8327set dummy $ac_prog; ac_word=$2
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329$as_echo_n "checking for $ac_word... " >&6; }
8330if ${ac_cv_prog_MAKEINFO+:} false; then :
8331  $as_echo_n "(cached) " >&6
8332else
8333  if test -n "$MAKEINFO"; then
8334  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8335else
8336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337for as_dir in $PATH
8338do
8339  IFS=$as_save_IFS
8340  test -z "$as_dir" && as_dir=.
8341    for ac_exec_ext in '' $ac_executable_extensions; do
8342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8343    ac_cv_prog_MAKEINFO="$ac_prog"
8344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8345    break 2
8346  fi
8347done
8348  done
8349IFS=$as_save_IFS
8350
8351fi
8352fi
8353MAKEINFO=$ac_cv_prog_MAKEINFO
8354if test -n "$MAKEINFO"; then
8355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8356$as_echo "$MAKEINFO" >&6; }
8357else
8358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359$as_echo "no" >&6; }
8360fi
8361
8362
8363  test -n "$MAKEINFO" && break
8364done
8365test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8366
8367case " $build_configdirs " in
8368  *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8369  *)
8370
8371    # For an installed makeinfo, we require it to be from texinfo 4.7 or
8372    # higher, else we use the "missing" dummy.
8373    if ${MAKEINFO} --version \
8374       | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8375      :
8376    else
8377      MAKEINFO="$MISSING makeinfo"
8378    fi
8379    ;;
8380
8381esac
8382
8383# FIXME: expect and dejagnu may become build tools?
8384
8385for ac_prog in expect
8386do
8387  # Extract the first word of "$ac_prog", so it can be a program name with args.
8388set dummy $ac_prog; ac_word=$2
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390$as_echo_n "checking for $ac_word... " >&6; }
8391if ${ac_cv_prog_EXPECT+:} false; then :
8392  $as_echo_n "(cached) " >&6
8393else
8394  if test -n "$EXPECT"; then
8395  ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8396else
8397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398for as_dir in $PATH
8399do
8400  IFS=$as_save_IFS
8401  test -z "$as_dir" && as_dir=.
8402    for ac_exec_ext in '' $ac_executable_extensions; do
8403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8404    ac_cv_prog_EXPECT="$ac_prog"
8405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406    break 2
8407  fi
8408done
8409  done
8410IFS=$as_save_IFS
8411
8412fi
8413fi
8414EXPECT=$ac_cv_prog_EXPECT
8415if test -n "$EXPECT"; then
8416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8417$as_echo "$EXPECT" >&6; }
8418else
8419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420$as_echo "no" >&6; }
8421fi
8422
8423
8424  test -n "$EXPECT" && break
8425done
8426test -n "$EXPECT" || EXPECT="expect"
8427
8428case " $configdirs " in
8429  *" expect "*)
8430    test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8431    ;;
8432esac
8433
8434for ac_prog in runtest
8435do
8436  # Extract the first word of "$ac_prog", so it can be a program name with args.
8437set dummy $ac_prog; ac_word=$2
8438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439$as_echo_n "checking for $ac_word... " >&6; }
8440if ${ac_cv_prog_RUNTEST+:} false; then :
8441  $as_echo_n "(cached) " >&6
8442else
8443  if test -n "$RUNTEST"; then
8444  ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8445else
8446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447for as_dir in $PATH
8448do
8449  IFS=$as_save_IFS
8450  test -z "$as_dir" && as_dir=.
8451    for ac_exec_ext in '' $ac_executable_extensions; do
8452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453    ac_cv_prog_RUNTEST="$ac_prog"
8454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455    break 2
8456  fi
8457done
8458  done
8459IFS=$as_save_IFS
8460
8461fi
8462fi
8463RUNTEST=$ac_cv_prog_RUNTEST
8464if test -n "$RUNTEST"; then
8465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8466$as_echo "$RUNTEST" >&6; }
8467else
8468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469$as_echo "no" >&6; }
8470fi
8471
8472
8473  test -n "$RUNTEST" && break
8474done
8475test -n "$RUNTEST" || RUNTEST="runtest"
8476
8477case " $configdirs " in
8478  *" dejagnu "*)
8479    test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8480    ;;
8481esac
8482
8483
8484# Host tools.
8485ncn_tool_prefix=
8486test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8487ncn_target_tool_prefix=
8488test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8489
8490
8491
8492if test -n "$AR"; then
8493  ac_cv_prog_AR=$AR
8494elif test -n "$ac_cv_prog_AR"; then
8495  AR=$ac_cv_prog_AR
8496fi
8497
8498if test -n "$ac_cv_prog_AR"; then
8499  for ncn_progname in ar; do
8500    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8501set dummy ${ncn_progname}; ac_word=$2
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503$as_echo_n "checking for $ac_word... " >&6; }
8504if ${ac_cv_prog_AR+:} false; then :
8505  $as_echo_n "(cached) " >&6
8506else
8507  if test -n "$AR"; then
8508  ac_cv_prog_AR="$AR" # Let the user override the test.
8509else
8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511for as_dir in $PATH
8512do
8513  IFS=$as_save_IFS
8514  test -z "$as_dir" && as_dir=.
8515    for ac_exec_ext in '' $ac_executable_extensions; do
8516  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8517    ac_cv_prog_AR="${ncn_progname}"
8518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519    break 2
8520  fi
8521done
8522  done
8523IFS=$as_save_IFS
8524
8525fi
8526fi
8527AR=$ac_cv_prog_AR
8528if test -n "$AR"; then
8529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8530$as_echo "$AR" >&6; }
8531else
8532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533$as_echo "no" >&6; }
8534fi
8535
8536
8537  done
8538fi
8539
8540for ncn_progname in ar; do
8541  if test -n "$ncn_tool_prefix"; then
8542    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8543set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545$as_echo_n "checking for $ac_word... " >&6; }
8546if ${ac_cv_prog_AR+:} false; then :
8547  $as_echo_n "(cached) " >&6
8548else
8549  if test -n "$AR"; then
8550  ac_cv_prog_AR="$AR" # Let the user override the test.
8551else
8552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553for as_dir in $PATH
8554do
8555  IFS=$as_save_IFS
8556  test -z "$as_dir" && as_dir=.
8557    for ac_exec_ext in '' $ac_executable_extensions; do
8558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559    ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561    break 2
8562  fi
8563done
8564  done
8565IFS=$as_save_IFS
8566
8567fi
8568fi
8569AR=$ac_cv_prog_AR
8570if test -n "$AR"; then
8571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8572$as_echo "$AR" >&6; }
8573else
8574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575$as_echo "no" >&6; }
8576fi
8577
8578
8579  fi
8580  if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8581    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8582set dummy ${ncn_progname}; ac_word=$2
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584$as_echo_n "checking for $ac_word... " >&6; }
8585if ${ac_cv_prog_AR+:} false; then :
8586  $as_echo_n "(cached) " >&6
8587else
8588  if test -n "$AR"; then
8589  ac_cv_prog_AR="$AR" # Let the user override the test.
8590else
8591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592for as_dir in $PATH
8593do
8594  IFS=$as_save_IFS
8595  test -z "$as_dir" && as_dir=.
8596    for ac_exec_ext in '' $ac_executable_extensions; do
8597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598    ac_cv_prog_AR="${ncn_progname}"
8599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600    break 2
8601  fi
8602done
8603  done
8604IFS=$as_save_IFS
8605
8606fi
8607fi
8608AR=$ac_cv_prog_AR
8609if test -n "$AR"; then
8610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8611$as_echo "$AR" >&6; }
8612else
8613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614$as_echo "no" >&6; }
8615fi
8616
8617
8618  fi
8619  test -n "$ac_cv_prog_AR" && break
8620done
8621
8622if test -z "$ac_cv_prog_AR" ; then
8623  set dummy ar
8624  if test $build = $host ; then
8625    AR="$2"
8626  else
8627    AR="${ncn_tool_prefix}$2"
8628  fi
8629fi
8630
8631
8632
8633if test -n "$AS"; then
8634  ac_cv_prog_AS=$AS
8635elif test -n "$ac_cv_prog_AS"; then
8636  AS=$ac_cv_prog_AS
8637fi
8638
8639if test -n "$ac_cv_prog_AS"; then
8640  for ncn_progname in as; do
8641    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8642set dummy ${ncn_progname}; ac_word=$2
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644$as_echo_n "checking for $ac_word... " >&6; }
8645if ${ac_cv_prog_AS+:} false; then :
8646  $as_echo_n "(cached) " >&6
8647else
8648  if test -n "$AS"; then
8649  ac_cv_prog_AS="$AS" # Let the user override the test.
8650else
8651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652for as_dir in $PATH
8653do
8654  IFS=$as_save_IFS
8655  test -z "$as_dir" && as_dir=.
8656    for ac_exec_ext in '' $ac_executable_extensions; do
8657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8658    ac_cv_prog_AS="${ncn_progname}"
8659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660    break 2
8661  fi
8662done
8663  done
8664IFS=$as_save_IFS
8665
8666fi
8667fi
8668AS=$ac_cv_prog_AS
8669if test -n "$AS"; then
8670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8671$as_echo "$AS" >&6; }
8672else
8673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674$as_echo "no" >&6; }
8675fi
8676
8677
8678  done
8679fi
8680
8681for ncn_progname in as; do
8682  if test -n "$ncn_tool_prefix"; then
8683    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8684set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686$as_echo_n "checking for $ac_word... " >&6; }
8687if ${ac_cv_prog_AS+:} false; then :
8688  $as_echo_n "(cached) " >&6
8689else
8690  if test -n "$AS"; then
8691  ac_cv_prog_AS="$AS" # Let the user override the test.
8692else
8693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694for as_dir in $PATH
8695do
8696  IFS=$as_save_IFS
8697  test -z "$as_dir" && as_dir=.
8698    for ac_exec_ext in '' $ac_executable_extensions; do
8699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8700    ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702    break 2
8703  fi
8704done
8705  done
8706IFS=$as_save_IFS
8707
8708fi
8709fi
8710AS=$ac_cv_prog_AS
8711if test -n "$AS"; then
8712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8713$as_echo "$AS" >&6; }
8714else
8715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716$as_echo "no" >&6; }
8717fi
8718
8719
8720  fi
8721  if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8722    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8723set dummy ${ncn_progname}; ac_word=$2
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725$as_echo_n "checking for $ac_word... " >&6; }
8726if ${ac_cv_prog_AS+:} false; then :
8727  $as_echo_n "(cached) " >&6
8728else
8729  if test -n "$AS"; then
8730  ac_cv_prog_AS="$AS" # Let the user override the test.
8731else
8732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733for as_dir in $PATH
8734do
8735  IFS=$as_save_IFS
8736  test -z "$as_dir" && as_dir=.
8737    for ac_exec_ext in '' $ac_executable_extensions; do
8738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8739    ac_cv_prog_AS="${ncn_progname}"
8740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741    break 2
8742  fi
8743done
8744  done
8745IFS=$as_save_IFS
8746
8747fi
8748fi
8749AS=$ac_cv_prog_AS
8750if test -n "$AS"; then
8751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8752$as_echo "$AS" >&6; }
8753else
8754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755$as_echo "no" >&6; }
8756fi
8757
8758
8759  fi
8760  test -n "$ac_cv_prog_AS" && break
8761done
8762
8763if test -z "$ac_cv_prog_AS" ; then
8764  set dummy as
8765  if test $build = $host ; then
8766    AS="$2"
8767  else
8768    AS="${ncn_tool_prefix}$2"
8769  fi
8770fi
8771
8772
8773
8774if test -n "$DLLTOOL"; then
8775  ac_cv_prog_DLLTOOL=$DLLTOOL
8776elif test -n "$ac_cv_prog_DLLTOOL"; then
8777  DLLTOOL=$ac_cv_prog_DLLTOOL
8778fi
8779
8780if test -n "$ac_cv_prog_DLLTOOL"; then
8781  for ncn_progname in dlltool; do
8782    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8783set dummy ${ncn_progname}; ac_word=$2
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785$as_echo_n "checking for $ac_word... " >&6; }
8786if ${ac_cv_prog_DLLTOOL+:} false; then :
8787  $as_echo_n "(cached) " >&6
8788else
8789  if test -n "$DLLTOOL"; then
8790  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8791else
8792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793for as_dir in $PATH
8794do
8795  IFS=$as_save_IFS
8796  test -z "$as_dir" && as_dir=.
8797    for ac_exec_ext in '' $ac_executable_extensions; do
8798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799    ac_cv_prog_DLLTOOL="${ncn_progname}"
8800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801    break 2
8802  fi
8803done
8804  done
8805IFS=$as_save_IFS
8806
8807fi
8808fi
8809DLLTOOL=$ac_cv_prog_DLLTOOL
8810if test -n "$DLLTOOL"; then
8811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8812$as_echo "$DLLTOOL" >&6; }
8813else
8814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815$as_echo "no" >&6; }
8816fi
8817
8818
8819  done
8820fi
8821
8822for ncn_progname in dlltool; do
8823  if test -n "$ncn_tool_prefix"; then
8824    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8825set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827$as_echo_n "checking for $ac_word... " >&6; }
8828if ${ac_cv_prog_DLLTOOL+:} false; then :
8829  $as_echo_n "(cached) " >&6
8830else
8831  if test -n "$DLLTOOL"; then
8832  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8833else
8834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835for as_dir in $PATH
8836do
8837  IFS=$as_save_IFS
8838  test -z "$as_dir" && as_dir=.
8839    for ac_exec_ext in '' $ac_executable_extensions; do
8840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841    ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843    break 2
8844  fi
8845done
8846  done
8847IFS=$as_save_IFS
8848
8849fi
8850fi
8851DLLTOOL=$ac_cv_prog_DLLTOOL
8852if test -n "$DLLTOOL"; then
8853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8854$as_echo "$DLLTOOL" >&6; }
8855else
8856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857$as_echo "no" >&6; }
8858fi
8859
8860
8861  fi
8862  if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8863    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8864set dummy ${ncn_progname}; ac_word=$2
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866$as_echo_n "checking for $ac_word... " >&6; }
8867if ${ac_cv_prog_DLLTOOL+:} false; then :
8868  $as_echo_n "(cached) " >&6
8869else
8870  if test -n "$DLLTOOL"; then
8871  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8872else
8873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874for as_dir in $PATH
8875do
8876  IFS=$as_save_IFS
8877  test -z "$as_dir" && as_dir=.
8878    for ac_exec_ext in '' $ac_executable_extensions; do
8879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8880    ac_cv_prog_DLLTOOL="${ncn_progname}"
8881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8882    break 2
8883  fi
8884done
8885  done
8886IFS=$as_save_IFS
8887
8888fi
8889fi
8890DLLTOOL=$ac_cv_prog_DLLTOOL
8891if test -n "$DLLTOOL"; then
8892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8893$as_echo "$DLLTOOL" >&6; }
8894else
8895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896$as_echo "no" >&6; }
8897fi
8898
8899
8900  fi
8901  test -n "$ac_cv_prog_DLLTOOL" && break
8902done
8903
8904if test -z "$ac_cv_prog_DLLTOOL" ; then
8905  set dummy dlltool
8906  if test $build = $host ; then
8907    DLLTOOL="$2"
8908  else
8909    DLLTOOL="${ncn_tool_prefix}$2"
8910  fi
8911fi
8912
8913
8914
8915if test -n "$LD"; then
8916  ac_cv_prog_LD=$LD
8917elif test -n "$ac_cv_prog_LD"; then
8918  LD=$ac_cv_prog_LD
8919fi
8920
8921if test -n "$ac_cv_prog_LD"; then
8922  for ncn_progname in ld; do
8923    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8924set dummy ${ncn_progname}; ac_word=$2
8925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926$as_echo_n "checking for $ac_word... " >&6; }
8927if ${ac_cv_prog_LD+:} false; then :
8928  $as_echo_n "(cached) " >&6
8929else
8930  if test -n "$LD"; then
8931  ac_cv_prog_LD="$LD" # Let the user override the test.
8932else
8933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934for as_dir in $PATH
8935do
8936  IFS=$as_save_IFS
8937  test -z "$as_dir" && as_dir=.
8938    for ac_exec_ext in '' $ac_executable_extensions; do
8939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8940    ac_cv_prog_LD="${ncn_progname}"
8941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8942    break 2
8943  fi
8944done
8945  done
8946IFS=$as_save_IFS
8947
8948fi
8949fi
8950LD=$ac_cv_prog_LD
8951if test -n "$LD"; then
8952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8953$as_echo "$LD" >&6; }
8954else
8955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956$as_echo "no" >&6; }
8957fi
8958
8959
8960  done
8961fi
8962
8963for ncn_progname in ld; do
8964  if test -n "$ncn_tool_prefix"; then
8965    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8966set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968$as_echo_n "checking for $ac_word... " >&6; }
8969if ${ac_cv_prog_LD+:} false; then :
8970  $as_echo_n "(cached) " >&6
8971else
8972  if test -n "$LD"; then
8973  ac_cv_prog_LD="$LD" # Let the user override the test.
8974else
8975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976for as_dir in $PATH
8977do
8978  IFS=$as_save_IFS
8979  test -z "$as_dir" && as_dir=.
8980    for ac_exec_ext in '' $ac_executable_extensions; do
8981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8982    ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984    break 2
8985  fi
8986done
8987  done
8988IFS=$as_save_IFS
8989
8990fi
8991fi
8992LD=$ac_cv_prog_LD
8993if test -n "$LD"; then
8994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8995$as_echo "$LD" >&6; }
8996else
8997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998$as_echo "no" >&6; }
8999fi
9000
9001
9002  fi
9003  if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9004    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9005set dummy ${ncn_progname}; ac_word=$2
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007$as_echo_n "checking for $ac_word... " >&6; }
9008if ${ac_cv_prog_LD+:} false; then :
9009  $as_echo_n "(cached) " >&6
9010else
9011  if test -n "$LD"; then
9012  ac_cv_prog_LD="$LD" # Let the user override the test.
9013else
9014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015for as_dir in $PATH
9016do
9017  IFS=$as_save_IFS
9018  test -z "$as_dir" && as_dir=.
9019    for ac_exec_ext in '' $ac_executable_extensions; do
9020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9021    ac_cv_prog_LD="${ncn_progname}"
9022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9023    break 2
9024  fi
9025done
9026  done
9027IFS=$as_save_IFS
9028
9029fi
9030fi
9031LD=$ac_cv_prog_LD
9032if test -n "$LD"; then
9033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9034$as_echo "$LD" >&6; }
9035else
9036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037$as_echo "no" >&6; }
9038fi
9039
9040
9041  fi
9042  test -n "$ac_cv_prog_LD" && break
9043done
9044
9045if test -z "$ac_cv_prog_LD" ; then
9046  set dummy ld
9047  if test $build = $host ; then
9048    LD="$2"
9049  else
9050    LD="${ncn_tool_prefix}$2"
9051  fi
9052fi
9053
9054
9055
9056if test -n "$LIPO"; then
9057  ac_cv_prog_LIPO=$LIPO
9058elif test -n "$ac_cv_prog_LIPO"; then
9059  LIPO=$ac_cv_prog_LIPO
9060fi
9061
9062if test -n "$ac_cv_prog_LIPO"; then
9063  for ncn_progname in lipo; do
9064    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9065set dummy ${ncn_progname}; ac_word=$2
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067$as_echo_n "checking for $ac_word... " >&6; }
9068if ${ac_cv_prog_LIPO+:} false; then :
9069  $as_echo_n "(cached) " >&6
9070else
9071  if test -n "$LIPO"; then
9072  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9073else
9074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075for as_dir in $PATH
9076do
9077  IFS=$as_save_IFS
9078  test -z "$as_dir" && as_dir=.
9079    for ac_exec_ext in '' $ac_executable_extensions; do
9080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9081    ac_cv_prog_LIPO="${ncn_progname}"
9082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083    break 2
9084  fi
9085done
9086  done
9087IFS=$as_save_IFS
9088
9089fi
9090fi
9091LIPO=$ac_cv_prog_LIPO
9092if test -n "$LIPO"; then
9093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9094$as_echo "$LIPO" >&6; }
9095else
9096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097$as_echo "no" >&6; }
9098fi
9099
9100
9101  done
9102fi
9103
9104for ncn_progname in lipo; do
9105  if test -n "$ncn_tool_prefix"; then
9106    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9107set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109$as_echo_n "checking for $ac_word... " >&6; }
9110if ${ac_cv_prog_LIPO+:} false; then :
9111  $as_echo_n "(cached) " >&6
9112else
9113  if test -n "$LIPO"; then
9114  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9115else
9116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117for as_dir in $PATH
9118do
9119  IFS=$as_save_IFS
9120  test -z "$as_dir" && as_dir=.
9121    for ac_exec_ext in '' $ac_executable_extensions; do
9122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9123    ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125    break 2
9126  fi
9127done
9128  done
9129IFS=$as_save_IFS
9130
9131fi
9132fi
9133LIPO=$ac_cv_prog_LIPO
9134if test -n "$LIPO"; then
9135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9136$as_echo "$LIPO" >&6; }
9137else
9138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139$as_echo "no" >&6; }
9140fi
9141
9142
9143  fi
9144  if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9145    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9146set dummy ${ncn_progname}; ac_word=$2
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148$as_echo_n "checking for $ac_word... " >&6; }
9149if ${ac_cv_prog_LIPO+:} false; then :
9150  $as_echo_n "(cached) " >&6
9151else
9152  if test -n "$LIPO"; then
9153  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9154else
9155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156for as_dir in $PATH
9157do
9158  IFS=$as_save_IFS
9159  test -z "$as_dir" && as_dir=.
9160    for ac_exec_ext in '' $ac_executable_extensions; do
9161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9162    ac_cv_prog_LIPO="${ncn_progname}"
9163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9164    break 2
9165  fi
9166done
9167  done
9168IFS=$as_save_IFS
9169
9170fi
9171fi
9172LIPO=$ac_cv_prog_LIPO
9173if test -n "$LIPO"; then
9174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9175$as_echo "$LIPO" >&6; }
9176else
9177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178$as_echo "no" >&6; }
9179fi
9180
9181
9182  fi
9183  test -n "$ac_cv_prog_LIPO" && break
9184done
9185
9186if test -z "$ac_cv_prog_LIPO" ; then
9187  set dummy lipo
9188  if test $build = $host ; then
9189    LIPO="$2"
9190  else
9191    LIPO="${ncn_tool_prefix}$2"
9192  fi
9193fi
9194
9195
9196
9197if test -n "$NM"; then
9198  ac_cv_prog_NM=$NM
9199elif test -n "$ac_cv_prog_NM"; then
9200  NM=$ac_cv_prog_NM
9201fi
9202
9203if test -n "$ac_cv_prog_NM"; then
9204  for ncn_progname in nm; do
9205    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9206set dummy ${ncn_progname}; ac_word=$2
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9208$as_echo_n "checking for $ac_word... " >&6; }
9209if ${ac_cv_prog_NM+:} false; then :
9210  $as_echo_n "(cached) " >&6
9211else
9212  if test -n "$NM"; then
9213  ac_cv_prog_NM="$NM" # Let the user override the test.
9214else
9215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216for as_dir in $PATH
9217do
9218  IFS=$as_save_IFS
9219  test -z "$as_dir" && as_dir=.
9220    for ac_exec_ext in '' $ac_executable_extensions; do
9221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9222    ac_cv_prog_NM="${ncn_progname}"
9223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9224    break 2
9225  fi
9226done
9227  done
9228IFS=$as_save_IFS
9229
9230fi
9231fi
9232NM=$ac_cv_prog_NM
9233if test -n "$NM"; then
9234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9235$as_echo "$NM" >&6; }
9236else
9237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238$as_echo "no" >&6; }
9239fi
9240
9241
9242  done
9243fi
9244
9245for ncn_progname in nm; do
9246  if test -n "$ncn_tool_prefix"; then
9247    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9248set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250$as_echo_n "checking for $ac_word... " >&6; }
9251if ${ac_cv_prog_NM+:} false; then :
9252  $as_echo_n "(cached) " >&6
9253else
9254  if test -n "$NM"; then
9255  ac_cv_prog_NM="$NM" # Let the user override the test.
9256else
9257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258for as_dir in $PATH
9259do
9260  IFS=$as_save_IFS
9261  test -z "$as_dir" && as_dir=.
9262    for ac_exec_ext in '' $ac_executable_extensions; do
9263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9264    ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266    break 2
9267  fi
9268done
9269  done
9270IFS=$as_save_IFS
9271
9272fi
9273fi
9274NM=$ac_cv_prog_NM
9275if test -n "$NM"; then
9276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9277$as_echo "$NM" >&6; }
9278else
9279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280$as_echo "no" >&6; }
9281fi
9282
9283
9284  fi
9285  if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9286    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9287set dummy ${ncn_progname}; ac_word=$2
9288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289$as_echo_n "checking for $ac_word... " >&6; }
9290if ${ac_cv_prog_NM+:} false; then :
9291  $as_echo_n "(cached) " >&6
9292else
9293  if test -n "$NM"; then
9294  ac_cv_prog_NM="$NM" # Let the user override the test.
9295else
9296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297for as_dir in $PATH
9298do
9299  IFS=$as_save_IFS
9300  test -z "$as_dir" && as_dir=.
9301    for ac_exec_ext in '' $ac_executable_extensions; do
9302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9303    ac_cv_prog_NM="${ncn_progname}"
9304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9305    break 2
9306  fi
9307done
9308  done
9309IFS=$as_save_IFS
9310
9311fi
9312fi
9313NM=$ac_cv_prog_NM
9314if test -n "$NM"; then
9315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9316$as_echo "$NM" >&6; }
9317else
9318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319$as_echo "no" >&6; }
9320fi
9321
9322
9323  fi
9324  test -n "$ac_cv_prog_NM" && break
9325done
9326
9327if test -z "$ac_cv_prog_NM" ; then
9328  set dummy nm
9329  if test $build = $host ; then
9330    NM="$2"
9331  else
9332    NM="${ncn_tool_prefix}$2"
9333  fi
9334fi
9335
9336
9337
9338if test -n "$RANLIB"; then
9339  ac_cv_prog_RANLIB=$RANLIB
9340elif test -n "$ac_cv_prog_RANLIB"; then
9341  RANLIB=$ac_cv_prog_RANLIB
9342fi
9343
9344if test -n "$ac_cv_prog_RANLIB"; then
9345  for ncn_progname in ranlib; do
9346    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9347set dummy ${ncn_progname}; ac_word=$2
9348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349$as_echo_n "checking for $ac_word... " >&6; }
9350if ${ac_cv_prog_RANLIB+:} false; then :
9351  $as_echo_n "(cached) " >&6
9352else
9353  if test -n "$RANLIB"; then
9354  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9355else
9356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357for as_dir in $PATH
9358do
9359  IFS=$as_save_IFS
9360  test -z "$as_dir" && as_dir=.
9361    for ac_exec_ext in '' $ac_executable_extensions; do
9362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9363    ac_cv_prog_RANLIB="${ncn_progname}"
9364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9365    break 2
9366  fi
9367done
9368  done
9369IFS=$as_save_IFS
9370
9371fi
9372fi
9373RANLIB=$ac_cv_prog_RANLIB
9374if test -n "$RANLIB"; then
9375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9376$as_echo "$RANLIB" >&6; }
9377else
9378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379$as_echo "no" >&6; }
9380fi
9381
9382
9383  done
9384fi
9385
9386for ncn_progname in ranlib; do
9387  if test -n "$ncn_tool_prefix"; then
9388    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9389set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391$as_echo_n "checking for $ac_word... " >&6; }
9392if ${ac_cv_prog_RANLIB+:} false; then :
9393  $as_echo_n "(cached) " >&6
9394else
9395  if test -n "$RANLIB"; then
9396  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9397else
9398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399for as_dir in $PATH
9400do
9401  IFS=$as_save_IFS
9402  test -z "$as_dir" && as_dir=.
9403    for ac_exec_ext in '' $ac_executable_extensions; do
9404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9405    ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9407    break 2
9408  fi
9409done
9410  done
9411IFS=$as_save_IFS
9412
9413fi
9414fi
9415RANLIB=$ac_cv_prog_RANLIB
9416if test -n "$RANLIB"; then
9417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9418$as_echo "$RANLIB" >&6; }
9419else
9420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421$as_echo "no" >&6; }
9422fi
9423
9424
9425  fi
9426  if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9427    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9428set dummy ${ncn_progname}; ac_word=$2
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9430$as_echo_n "checking for $ac_word... " >&6; }
9431if ${ac_cv_prog_RANLIB+:} false; then :
9432  $as_echo_n "(cached) " >&6
9433else
9434  if test -n "$RANLIB"; then
9435  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9436else
9437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438for as_dir in $PATH
9439do
9440  IFS=$as_save_IFS
9441  test -z "$as_dir" && as_dir=.
9442    for ac_exec_ext in '' $ac_executable_extensions; do
9443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9444    ac_cv_prog_RANLIB="${ncn_progname}"
9445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9446    break 2
9447  fi
9448done
9449  done
9450IFS=$as_save_IFS
9451
9452fi
9453fi
9454RANLIB=$ac_cv_prog_RANLIB
9455if test -n "$RANLIB"; then
9456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9457$as_echo "$RANLIB" >&6; }
9458else
9459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460$as_echo "no" >&6; }
9461fi
9462
9463
9464  fi
9465  test -n "$ac_cv_prog_RANLIB" && break
9466done
9467
9468if test -z "$ac_cv_prog_RANLIB" ; then
9469  RANLIB="true"
9470fi
9471
9472
9473
9474if test -n "$STRIP"; then
9475  ac_cv_prog_STRIP=$STRIP
9476elif test -n "$ac_cv_prog_STRIP"; then
9477  STRIP=$ac_cv_prog_STRIP
9478fi
9479
9480if test -n "$ac_cv_prog_STRIP"; then
9481  for ncn_progname in strip; do
9482    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9483set dummy ${ncn_progname}; ac_word=$2
9484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9485$as_echo_n "checking for $ac_word... " >&6; }
9486if ${ac_cv_prog_STRIP+:} false; then :
9487  $as_echo_n "(cached) " >&6
9488else
9489  if test -n "$STRIP"; then
9490  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9491else
9492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493for as_dir in $PATH
9494do
9495  IFS=$as_save_IFS
9496  test -z "$as_dir" && as_dir=.
9497    for ac_exec_ext in '' $ac_executable_extensions; do
9498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9499    ac_cv_prog_STRIP="${ncn_progname}"
9500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501    break 2
9502  fi
9503done
9504  done
9505IFS=$as_save_IFS
9506
9507fi
9508fi
9509STRIP=$ac_cv_prog_STRIP
9510if test -n "$STRIP"; then
9511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9512$as_echo "$STRIP" >&6; }
9513else
9514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515$as_echo "no" >&6; }
9516fi
9517
9518
9519  done
9520fi
9521
9522for ncn_progname in strip; do
9523  if test -n "$ncn_tool_prefix"; then
9524    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9525set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9527$as_echo_n "checking for $ac_word... " >&6; }
9528if ${ac_cv_prog_STRIP+:} false; then :
9529  $as_echo_n "(cached) " >&6
9530else
9531  if test -n "$STRIP"; then
9532  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9533else
9534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535for as_dir in $PATH
9536do
9537  IFS=$as_save_IFS
9538  test -z "$as_dir" && as_dir=.
9539    for ac_exec_ext in '' $ac_executable_extensions; do
9540  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9541    ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543    break 2
9544  fi
9545done
9546  done
9547IFS=$as_save_IFS
9548
9549fi
9550fi
9551STRIP=$ac_cv_prog_STRIP
9552if test -n "$STRIP"; then
9553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9554$as_echo "$STRIP" >&6; }
9555else
9556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557$as_echo "no" >&6; }
9558fi
9559
9560
9561  fi
9562  if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9563    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9564set dummy ${ncn_progname}; ac_word=$2
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566$as_echo_n "checking for $ac_word... " >&6; }
9567if ${ac_cv_prog_STRIP+:} false; then :
9568  $as_echo_n "(cached) " >&6
9569else
9570  if test -n "$STRIP"; then
9571  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9572else
9573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574for as_dir in $PATH
9575do
9576  IFS=$as_save_IFS
9577  test -z "$as_dir" && as_dir=.
9578    for ac_exec_ext in '' $ac_executable_extensions; do
9579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9580    ac_cv_prog_STRIP="${ncn_progname}"
9581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582    break 2
9583  fi
9584done
9585  done
9586IFS=$as_save_IFS
9587
9588fi
9589fi
9590STRIP=$ac_cv_prog_STRIP
9591if test -n "$STRIP"; then
9592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9593$as_echo "$STRIP" >&6; }
9594else
9595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9596$as_echo "no" >&6; }
9597fi
9598
9599
9600  fi
9601  test -n "$ac_cv_prog_STRIP" && break
9602done
9603
9604if test -z "$ac_cv_prog_STRIP" ; then
9605  STRIP="true"
9606fi
9607
9608
9609
9610if test -n "$WINDRES"; then
9611  ac_cv_prog_WINDRES=$WINDRES
9612elif test -n "$ac_cv_prog_WINDRES"; then
9613  WINDRES=$ac_cv_prog_WINDRES
9614fi
9615
9616if test -n "$ac_cv_prog_WINDRES"; then
9617  for ncn_progname in windres; do
9618    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9619set dummy ${ncn_progname}; ac_word=$2
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9621$as_echo_n "checking for $ac_word... " >&6; }
9622if ${ac_cv_prog_WINDRES+:} false; then :
9623  $as_echo_n "(cached) " >&6
9624else
9625  if test -n "$WINDRES"; then
9626  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9627else
9628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629for as_dir in $PATH
9630do
9631  IFS=$as_save_IFS
9632  test -z "$as_dir" && as_dir=.
9633    for ac_exec_ext in '' $ac_executable_extensions; do
9634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9635    ac_cv_prog_WINDRES="${ncn_progname}"
9636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637    break 2
9638  fi
9639done
9640  done
9641IFS=$as_save_IFS
9642
9643fi
9644fi
9645WINDRES=$ac_cv_prog_WINDRES
9646if test -n "$WINDRES"; then
9647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9648$as_echo "$WINDRES" >&6; }
9649else
9650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651$as_echo "no" >&6; }
9652fi
9653
9654
9655  done
9656fi
9657
9658for ncn_progname in windres; do
9659  if test -n "$ncn_tool_prefix"; then
9660    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9661set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663$as_echo_n "checking for $ac_word... " >&6; }
9664if ${ac_cv_prog_WINDRES+:} false; then :
9665  $as_echo_n "(cached) " >&6
9666else
9667  if test -n "$WINDRES"; then
9668  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9669else
9670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671for as_dir in $PATH
9672do
9673  IFS=$as_save_IFS
9674  test -z "$as_dir" && as_dir=.
9675    for ac_exec_ext in '' $ac_executable_extensions; do
9676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9677    ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679    break 2
9680  fi
9681done
9682  done
9683IFS=$as_save_IFS
9684
9685fi
9686fi
9687WINDRES=$ac_cv_prog_WINDRES
9688if test -n "$WINDRES"; then
9689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9690$as_echo "$WINDRES" >&6; }
9691else
9692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693$as_echo "no" >&6; }
9694fi
9695
9696
9697  fi
9698  if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9699    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9700set dummy ${ncn_progname}; ac_word=$2
9701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702$as_echo_n "checking for $ac_word... " >&6; }
9703if ${ac_cv_prog_WINDRES+:} false; then :
9704  $as_echo_n "(cached) " >&6
9705else
9706  if test -n "$WINDRES"; then
9707  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9708else
9709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710for as_dir in $PATH
9711do
9712  IFS=$as_save_IFS
9713  test -z "$as_dir" && as_dir=.
9714    for ac_exec_ext in '' $ac_executable_extensions; do
9715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9716    ac_cv_prog_WINDRES="${ncn_progname}"
9717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718    break 2
9719  fi
9720done
9721  done
9722IFS=$as_save_IFS
9723
9724fi
9725fi
9726WINDRES=$ac_cv_prog_WINDRES
9727if test -n "$WINDRES"; then
9728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9729$as_echo "$WINDRES" >&6; }
9730else
9731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732$as_echo "no" >&6; }
9733fi
9734
9735
9736  fi
9737  test -n "$ac_cv_prog_WINDRES" && break
9738done
9739
9740if test -z "$ac_cv_prog_WINDRES" ; then
9741  set dummy windres
9742  if test $build = $host ; then
9743    WINDRES="$2"
9744  else
9745    WINDRES="${ncn_tool_prefix}$2"
9746  fi
9747fi
9748
9749
9750
9751if test -n "$WINDMC"; then
9752  ac_cv_prog_WINDMC=$WINDMC
9753elif test -n "$ac_cv_prog_WINDMC"; then
9754  WINDMC=$ac_cv_prog_WINDMC
9755fi
9756
9757if test -n "$ac_cv_prog_WINDMC"; then
9758  for ncn_progname in windmc; do
9759    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9760set dummy ${ncn_progname}; ac_word=$2
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762$as_echo_n "checking for $ac_word... " >&6; }
9763if ${ac_cv_prog_WINDMC+:} false; then :
9764  $as_echo_n "(cached) " >&6
9765else
9766  if test -n "$WINDMC"; then
9767  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9768else
9769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770for as_dir in $PATH
9771do
9772  IFS=$as_save_IFS
9773  test -z "$as_dir" && as_dir=.
9774    for ac_exec_ext in '' $ac_executable_extensions; do
9775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9776    ac_cv_prog_WINDMC="${ncn_progname}"
9777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778    break 2
9779  fi
9780done
9781  done
9782IFS=$as_save_IFS
9783
9784fi
9785fi
9786WINDMC=$ac_cv_prog_WINDMC
9787if test -n "$WINDMC"; then
9788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9789$as_echo "$WINDMC" >&6; }
9790else
9791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792$as_echo "no" >&6; }
9793fi
9794
9795
9796  done
9797fi
9798
9799for ncn_progname in windmc; do
9800  if test -n "$ncn_tool_prefix"; then
9801    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9802set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804$as_echo_n "checking for $ac_word... " >&6; }
9805if ${ac_cv_prog_WINDMC+:} false; then :
9806  $as_echo_n "(cached) " >&6
9807else
9808  if test -n "$WINDMC"; then
9809  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9810else
9811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812for as_dir in $PATH
9813do
9814  IFS=$as_save_IFS
9815  test -z "$as_dir" && as_dir=.
9816    for ac_exec_ext in '' $ac_executable_extensions; do
9817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9818    ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820    break 2
9821  fi
9822done
9823  done
9824IFS=$as_save_IFS
9825
9826fi
9827fi
9828WINDMC=$ac_cv_prog_WINDMC
9829if test -n "$WINDMC"; then
9830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9831$as_echo "$WINDMC" >&6; }
9832else
9833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834$as_echo "no" >&6; }
9835fi
9836
9837
9838  fi
9839  if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9840    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9841set dummy ${ncn_progname}; ac_word=$2
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843$as_echo_n "checking for $ac_word... " >&6; }
9844if ${ac_cv_prog_WINDMC+:} false; then :
9845  $as_echo_n "(cached) " >&6
9846else
9847  if test -n "$WINDMC"; then
9848  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9849else
9850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851for as_dir in $PATH
9852do
9853  IFS=$as_save_IFS
9854  test -z "$as_dir" && as_dir=.
9855    for ac_exec_ext in '' $ac_executable_extensions; do
9856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9857    ac_cv_prog_WINDMC="${ncn_progname}"
9858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859    break 2
9860  fi
9861done
9862  done
9863IFS=$as_save_IFS
9864
9865fi
9866fi
9867WINDMC=$ac_cv_prog_WINDMC
9868if test -n "$WINDMC"; then
9869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9870$as_echo "$WINDMC" >&6; }
9871else
9872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873$as_echo "no" >&6; }
9874fi
9875
9876
9877  fi
9878  test -n "$ac_cv_prog_WINDMC" && break
9879done
9880
9881if test -z "$ac_cv_prog_WINDMC" ; then
9882  set dummy windmc
9883  if test $build = $host ; then
9884    WINDMC="$2"
9885  else
9886    WINDMC="${ncn_tool_prefix}$2"
9887  fi
9888fi
9889
9890
9891
9892if test -n "$OBJCOPY"; then
9893  ac_cv_prog_OBJCOPY=$OBJCOPY
9894elif test -n "$ac_cv_prog_OBJCOPY"; then
9895  OBJCOPY=$ac_cv_prog_OBJCOPY
9896fi
9897
9898if test -n "$ac_cv_prog_OBJCOPY"; then
9899  for ncn_progname in objcopy; do
9900    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9901set dummy ${ncn_progname}; ac_word=$2
9902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903$as_echo_n "checking for $ac_word... " >&6; }
9904if ${ac_cv_prog_OBJCOPY+:} false; then :
9905  $as_echo_n "(cached) " >&6
9906else
9907  if test -n "$OBJCOPY"; then
9908  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9909else
9910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911for as_dir in $PATH
9912do
9913  IFS=$as_save_IFS
9914  test -z "$as_dir" && as_dir=.
9915    for ac_exec_ext in '' $ac_executable_extensions; do
9916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9917    ac_cv_prog_OBJCOPY="${ncn_progname}"
9918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9919    break 2
9920  fi
9921done
9922  done
9923IFS=$as_save_IFS
9924
9925fi
9926fi
9927OBJCOPY=$ac_cv_prog_OBJCOPY
9928if test -n "$OBJCOPY"; then
9929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9930$as_echo "$OBJCOPY" >&6; }
9931else
9932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933$as_echo "no" >&6; }
9934fi
9935
9936
9937  done
9938fi
9939
9940for ncn_progname in objcopy; do
9941  if test -n "$ncn_tool_prefix"; then
9942    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9943set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9945$as_echo_n "checking for $ac_word... " >&6; }
9946if ${ac_cv_prog_OBJCOPY+:} false; then :
9947  $as_echo_n "(cached) " >&6
9948else
9949  if test -n "$OBJCOPY"; then
9950  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9951else
9952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953for as_dir in $PATH
9954do
9955  IFS=$as_save_IFS
9956  test -z "$as_dir" && as_dir=.
9957    for ac_exec_ext in '' $ac_executable_extensions; do
9958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9959    ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9961    break 2
9962  fi
9963done
9964  done
9965IFS=$as_save_IFS
9966
9967fi
9968fi
9969OBJCOPY=$ac_cv_prog_OBJCOPY
9970if test -n "$OBJCOPY"; then
9971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9972$as_echo "$OBJCOPY" >&6; }
9973else
9974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975$as_echo "no" >&6; }
9976fi
9977
9978
9979  fi
9980  if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9981    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9982set dummy ${ncn_progname}; ac_word=$2
9983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984$as_echo_n "checking for $ac_word... " >&6; }
9985if ${ac_cv_prog_OBJCOPY+:} false; then :
9986  $as_echo_n "(cached) " >&6
9987else
9988  if test -n "$OBJCOPY"; then
9989  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9990else
9991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992for as_dir in $PATH
9993do
9994  IFS=$as_save_IFS
9995  test -z "$as_dir" && as_dir=.
9996    for ac_exec_ext in '' $ac_executable_extensions; do
9997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9998    ac_cv_prog_OBJCOPY="${ncn_progname}"
9999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10000    break 2
10001  fi
10002done
10003  done
10004IFS=$as_save_IFS
10005
10006fi
10007fi
10008OBJCOPY=$ac_cv_prog_OBJCOPY
10009if test -n "$OBJCOPY"; then
10010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10011$as_echo "$OBJCOPY" >&6; }
10012else
10013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014$as_echo "no" >&6; }
10015fi
10016
10017
10018  fi
10019  test -n "$ac_cv_prog_OBJCOPY" && break
10020done
10021
10022if test -z "$ac_cv_prog_OBJCOPY" ; then
10023  set dummy objcopy
10024  if test $build = $host ; then
10025    OBJCOPY="$2"
10026  else
10027    OBJCOPY="${ncn_tool_prefix}$2"
10028  fi
10029fi
10030
10031
10032
10033if test -n "$OBJDUMP"; then
10034  ac_cv_prog_OBJDUMP=$OBJDUMP
10035elif test -n "$ac_cv_prog_OBJDUMP"; then
10036  OBJDUMP=$ac_cv_prog_OBJDUMP
10037fi
10038
10039if test -n "$ac_cv_prog_OBJDUMP"; then
10040  for ncn_progname in objdump; do
10041    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10042set dummy ${ncn_progname}; ac_word=$2
10043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044$as_echo_n "checking for $ac_word... " >&6; }
10045if ${ac_cv_prog_OBJDUMP+:} false; then :
10046  $as_echo_n "(cached) " >&6
10047else
10048  if test -n "$OBJDUMP"; then
10049  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10050else
10051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052for as_dir in $PATH
10053do
10054  IFS=$as_save_IFS
10055  test -z "$as_dir" && as_dir=.
10056    for ac_exec_ext in '' $ac_executable_extensions; do
10057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10058    ac_cv_prog_OBJDUMP="${ncn_progname}"
10059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10060    break 2
10061  fi
10062done
10063  done
10064IFS=$as_save_IFS
10065
10066fi
10067fi
10068OBJDUMP=$ac_cv_prog_OBJDUMP
10069if test -n "$OBJDUMP"; then
10070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10071$as_echo "$OBJDUMP" >&6; }
10072else
10073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074$as_echo "no" >&6; }
10075fi
10076
10077
10078  done
10079fi
10080
10081for ncn_progname in objdump; do
10082  if test -n "$ncn_tool_prefix"; then
10083    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10084set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086$as_echo_n "checking for $ac_word... " >&6; }
10087if ${ac_cv_prog_OBJDUMP+:} false; then :
10088  $as_echo_n "(cached) " >&6
10089else
10090  if test -n "$OBJDUMP"; then
10091  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10092else
10093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094for as_dir in $PATH
10095do
10096  IFS=$as_save_IFS
10097  test -z "$as_dir" && as_dir=.
10098    for ac_exec_ext in '' $ac_executable_extensions; do
10099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10100    ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102    break 2
10103  fi
10104done
10105  done
10106IFS=$as_save_IFS
10107
10108fi
10109fi
10110OBJDUMP=$ac_cv_prog_OBJDUMP
10111if test -n "$OBJDUMP"; then
10112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10113$as_echo "$OBJDUMP" >&6; }
10114else
10115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116$as_echo "no" >&6; }
10117fi
10118
10119
10120  fi
10121  if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10122    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10123set dummy ${ncn_progname}; ac_word=$2
10124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10125$as_echo_n "checking for $ac_word... " >&6; }
10126if ${ac_cv_prog_OBJDUMP+:} false; then :
10127  $as_echo_n "(cached) " >&6
10128else
10129  if test -n "$OBJDUMP"; then
10130  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10131else
10132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133for as_dir in $PATH
10134do
10135  IFS=$as_save_IFS
10136  test -z "$as_dir" && as_dir=.
10137    for ac_exec_ext in '' $ac_executable_extensions; do
10138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10139    ac_cv_prog_OBJDUMP="${ncn_progname}"
10140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10141    break 2
10142  fi
10143done
10144  done
10145IFS=$as_save_IFS
10146
10147fi
10148fi
10149OBJDUMP=$ac_cv_prog_OBJDUMP
10150if test -n "$OBJDUMP"; then
10151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10152$as_echo "$OBJDUMP" >&6; }
10153else
10154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155$as_echo "no" >&6; }
10156fi
10157
10158
10159  fi
10160  test -n "$ac_cv_prog_OBJDUMP" && break
10161done
10162
10163if test -z "$ac_cv_prog_OBJDUMP" ; then
10164  set dummy objdump
10165  if test $build = $host ; then
10166    OBJDUMP="$2"
10167  else
10168    OBJDUMP="${ncn_tool_prefix}$2"
10169  fi
10170fi
10171
10172
10173
10174if test -n "$READELF"; then
10175  ac_cv_prog_READELF=$READELF
10176elif test -n "$ac_cv_prog_READELF"; then
10177  READELF=$ac_cv_prog_READELF
10178fi
10179
10180if test -n "$ac_cv_prog_READELF"; then
10181  for ncn_progname in readelf; do
10182    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10183set dummy ${ncn_progname}; ac_word=$2
10184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185$as_echo_n "checking for $ac_word... " >&6; }
10186if ${ac_cv_prog_READELF+:} false; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  if test -n "$READELF"; then
10190  ac_cv_prog_READELF="$READELF" # Let the user override the test.
10191else
10192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193for as_dir in $PATH
10194do
10195  IFS=$as_save_IFS
10196  test -z "$as_dir" && as_dir=.
10197    for ac_exec_ext in '' $ac_executable_extensions; do
10198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10199    ac_cv_prog_READELF="${ncn_progname}"
10200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201    break 2
10202  fi
10203done
10204  done
10205IFS=$as_save_IFS
10206
10207fi
10208fi
10209READELF=$ac_cv_prog_READELF
10210if test -n "$READELF"; then
10211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10212$as_echo "$READELF" >&6; }
10213else
10214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215$as_echo "no" >&6; }
10216fi
10217
10218
10219  done
10220fi
10221
10222for ncn_progname in readelf; do
10223  if test -n "$ncn_tool_prefix"; then
10224    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10225set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10227$as_echo_n "checking for $ac_word... " >&6; }
10228if ${ac_cv_prog_READELF+:} false; then :
10229  $as_echo_n "(cached) " >&6
10230else
10231  if test -n "$READELF"; then
10232  ac_cv_prog_READELF="$READELF" # Let the user override the test.
10233else
10234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235for as_dir in $PATH
10236do
10237  IFS=$as_save_IFS
10238  test -z "$as_dir" && as_dir=.
10239    for ac_exec_ext in '' $ac_executable_extensions; do
10240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10241    ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10243    break 2
10244  fi
10245done
10246  done
10247IFS=$as_save_IFS
10248
10249fi
10250fi
10251READELF=$ac_cv_prog_READELF
10252if test -n "$READELF"; then
10253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10254$as_echo "$READELF" >&6; }
10255else
10256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10257$as_echo "no" >&6; }
10258fi
10259
10260
10261  fi
10262  if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10263    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10264set dummy ${ncn_progname}; ac_word=$2
10265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266$as_echo_n "checking for $ac_word... " >&6; }
10267if ${ac_cv_prog_READELF+:} false; then :
10268  $as_echo_n "(cached) " >&6
10269else
10270  if test -n "$READELF"; then
10271  ac_cv_prog_READELF="$READELF" # Let the user override the test.
10272else
10273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274for as_dir in $PATH
10275do
10276  IFS=$as_save_IFS
10277  test -z "$as_dir" && as_dir=.
10278    for ac_exec_ext in '' $ac_executable_extensions; do
10279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10280    ac_cv_prog_READELF="${ncn_progname}"
10281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282    break 2
10283  fi
10284done
10285  done
10286IFS=$as_save_IFS
10287
10288fi
10289fi
10290READELF=$ac_cv_prog_READELF
10291if test -n "$READELF"; then
10292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10293$as_echo "$READELF" >&6; }
10294else
10295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296$as_echo "no" >&6; }
10297fi
10298
10299
10300  fi
10301  test -n "$ac_cv_prog_READELF" && break
10302done
10303
10304if test -z "$ac_cv_prog_READELF" ; then
10305  set dummy readelf
10306  if test $build = $host ; then
10307    READELF="$2"
10308  else
10309    READELF="${ncn_tool_prefix}$2"
10310  fi
10311fi
10312
10313
10314
10315
10316
10317
10318
10319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10320$as_echo_n "checking for -plugin option... " >&6; }
10321
10322plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10323plugin_option=
10324for plugin in $plugin_names; do
10325  plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10326  if test x$plugin_so = x$plugin; then
10327    plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10328  fi
10329  if test x$plugin_so != x$plugin; then
10330    plugin_option="--plugin $plugin_so"
10331    break
10332  fi
10333done
10334if test -n "$ac_tool_prefix"; then
10335  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10336set dummy ${ac_tool_prefix}ar; ac_word=$2
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338$as_echo_n "checking for $ac_word... " >&6; }
10339if ${ac_cv_prog_AR+:} false; then :
10340  $as_echo_n "(cached) " >&6
10341else
10342  if test -n "$AR"; then
10343  ac_cv_prog_AR="$AR" # Let the user override the test.
10344else
10345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346for as_dir in $PATH
10347do
10348  IFS=$as_save_IFS
10349  test -z "$as_dir" && as_dir=.
10350    for ac_exec_ext in '' $ac_executable_extensions; do
10351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10352    ac_cv_prog_AR="${ac_tool_prefix}ar"
10353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10354    break 2
10355  fi
10356done
10357  done
10358IFS=$as_save_IFS
10359
10360fi
10361fi
10362AR=$ac_cv_prog_AR
10363if test -n "$AR"; then
10364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10365$as_echo "$AR" >&6; }
10366else
10367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368$as_echo "no" >&6; }
10369fi
10370
10371
10372fi
10373if test -z "$ac_cv_prog_AR"; then
10374  ac_ct_AR=$AR
10375  # Extract the first word of "ar", so it can be a program name with args.
10376set dummy ar; ac_word=$2
10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378$as_echo_n "checking for $ac_word... " >&6; }
10379if ${ac_cv_prog_ac_ct_AR+:} false; then :
10380  $as_echo_n "(cached) " >&6
10381else
10382  if test -n "$ac_ct_AR"; then
10383  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10384else
10385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386for as_dir in $PATH
10387do
10388  IFS=$as_save_IFS
10389  test -z "$as_dir" && as_dir=.
10390    for ac_exec_ext in '' $ac_executable_extensions; do
10391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10392    ac_cv_prog_ac_ct_AR="ar"
10393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394    break 2
10395  fi
10396done
10397  done
10398IFS=$as_save_IFS
10399
10400fi
10401fi
10402ac_ct_AR=$ac_cv_prog_ac_ct_AR
10403if test -n "$ac_ct_AR"; then
10404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10405$as_echo "$ac_ct_AR" >&6; }
10406else
10407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408$as_echo "no" >&6; }
10409fi
10410
10411  if test "x$ac_ct_AR" = x; then
10412    AR=""
10413  else
10414    case $cross_compiling:$ac_tool_warned in
10415yes:)
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10418ac_tool_warned=yes ;;
10419esac
10420    AR=$ac_ct_AR
10421  fi
10422else
10423  AR="$ac_cv_prog_AR"
10424fi
10425
10426if test "${AR}" = "" ; then
10427  as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10428fi
10429touch conftest.c
10430${AR} $plugin_option rc conftest.a conftest.c
10431if test "$?" != 0; then
10432  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10433$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10434  plugin_option=
10435fi
10436rm -f conftest.*
10437if test -n "$plugin_option"; then
10438  PLUGIN_OPTION="$plugin_option"
10439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10440$as_echo "$plugin_option" >&6; }
10441else
10442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443$as_echo "no" >&6; }
10444fi
10445
10446AR_PLUGIN_OPTION=
10447RANLIB_PLUGIN_OPTION=
10448if test -n "$PLUGIN_OPTION"; then
10449  if $AR --help 2>&1 | grep -q "\--plugin"; then
10450    AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10451  fi
10452  if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10453    RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10454  fi
10455else
10456  if test "$enable_pgo_build" != "no"; then
10457    as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10458  fi
10459fi
10460
10461
10462
10463# Target tools.
10464
10465# Check whether --with-build-time-tools was given.
10466if test "${with_build_time_tools+set}" = set; then :
10467  withval=$with_build_time_tools; case x"$withval" in
10468     x/*) ;;
10469     *)
10470       with_build_time_tools=
10471       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10472$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10473       ;;
10474   esac
10475else
10476  with_build_time_tools=
10477fi
10478
10479
10480
10481
10482if test -n "$CC_FOR_TARGET"; then
10483  ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10484elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10485  CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10486fi
10487
10488if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10489  for ncn_progname in cc gcc; do
10490    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10491set dummy ${ncn_progname}; ac_word=$2
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493$as_echo_n "checking for $ac_word... " >&6; }
10494if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10495  $as_echo_n "(cached) " >&6
10496else
10497  if test -n "$CC_FOR_TARGET"; then
10498  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10499else
10500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501for as_dir in $PATH
10502do
10503  IFS=$as_save_IFS
10504  test -z "$as_dir" && as_dir=.
10505    for ac_exec_ext in '' $ac_executable_extensions; do
10506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507    ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10509    break 2
10510  fi
10511done
10512  done
10513IFS=$as_save_IFS
10514
10515fi
10516fi
10517CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10518if test -n "$CC_FOR_TARGET"; then
10519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10520$as_echo "$CC_FOR_TARGET" >&6; }
10521else
10522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523$as_echo "no" >&6; }
10524fi
10525
10526
10527  done
10528fi
10529
10530if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10531  for ncn_progname in cc gcc; do
10532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10533$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10534    if test -x $with_build_time_tools/${ncn_progname}; then
10535      ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10536      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10537$as_echo "yes" >&6; }
10538      break
10539    else
10540      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541$as_echo "no" >&6; }
10542    fi
10543  done
10544fi
10545
10546if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10547  for ncn_progname in cc gcc; do
10548    if test -n "$ncn_target_tool_prefix"; then
10549      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10550set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10552$as_echo_n "checking for $ac_word... " >&6; }
10553if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10554  $as_echo_n "(cached) " >&6
10555else
10556  if test -n "$CC_FOR_TARGET"; then
10557  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10558else
10559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560for as_dir in $PATH
10561do
10562  IFS=$as_save_IFS
10563  test -z "$as_dir" && as_dir=.
10564    for ac_exec_ext in '' $ac_executable_extensions; do
10565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10566    ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568    break 2
10569  fi
10570done
10571  done
10572IFS=$as_save_IFS
10573
10574fi
10575fi
10576CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10577if test -n "$CC_FOR_TARGET"; then
10578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10579$as_echo "$CC_FOR_TARGET" >&6; }
10580else
10581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582$as_echo "no" >&6; }
10583fi
10584
10585
10586    fi
10587    if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10588      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10589set dummy ${ncn_progname}; ac_word=$2
10590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10591$as_echo_n "checking for $ac_word... " >&6; }
10592if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10593  $as_echo_n "(cached) " >&6
10594else
10595  if test -n "$CC_FOR_TARGET"; then
10596  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10597else
10598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599for as_dir in $PATH
10600do
10601  IFS=$as_save_IFS
10602  test -z "$as_dir" && as_dir=.
10603    for ac_exec_ext in '' $ac_executable_extensions; do
10604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10605    ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10607    break 2
10608  fi
10609done
10610  done
10611IFS=$as_save_IFS
10612
10613fi
10614fi
10615CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10616if test -n "$CC_FOR_TARGET"; then
10617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10618$as_echo "$CC_FOR_TARGET" >&6; }
10619else
10620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621$as_echo "no" >&6; }
10622fi
10623
10624
10625    fi
10626    test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10627  done
10628fi
10629
10630if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10631  set dummy cc gcc
10632  if test $build = $target ; then
10633    CC_FOR_TARGET="$2"
10634  else
10635    CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10636  fi
10637else
10638  CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10639fi
10640
10641
10642
10643if test -n "$CXX_FOR_TARGET"; then
10644  ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10645elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10646  CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10647fi
10648
10649if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10650  for ncn_progname in c++ g++ cxx gxx; do
10651    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10652set dummy ${ncn_progname}; ac_word=$2
10653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10654$as_echo_n "checking for $ac_word... " >&6; }
10655if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10656  $as_echo_n "(cached) " >&6
10657else
10658  if test -n "$CXX_FOR_TARGET"; then
10659  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10660else
10661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662for as_dir in $PATH
10663do
10664  IFS=$as_save_IFS
10665  test -z "$as_dir" && as_dir=.
10666    for ac_exec_ext in '' $ac_executable_extensions; do
10667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10668    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10670    break 2
10671  fi
10672done
10673  done
10674IFS=$as_save_IFS
10675
10676fi
10677fi
10678CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10679if test -n "$CXX_FOR_TARGET"; then
10680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10681$as_echo "$CXX_FOR_TARGET" >&6; }
10682else
10683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684$as_echo "no" >&6; }
10685fi
10686
10687
10688  done
10689fi
10690
10691if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10692  for ncn_progname in c++ g++ cxx gxx; do
10693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10694$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10695    if test -x $with_build_time_tools/${ncn_progname}; then
10696      ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10697      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10698$as_echo "yes" >&6; }
10699      break
10700    else
10701      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702$as_echo "no" >&6; }
10703    fi
10704  done
10705fi
10706
10707if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10708  for ncn_progname in c++ g++ cxx gxx; do
10709    if test -n "$ncn_target_tool_prefix"; then
10710      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10711set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10713$as_echo_n "checking for $ac_word... " >&6; }
10714if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10715  $as_echo_n "(cached) " >&6
10716else
10717  if test -n "$CXX_FOR_TARGET"; then
10718  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10719else
10720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721for as_dir in $PATH
10722do
10723  IFS=$as_save_IFS
10724  test -z "$as_dir" && as_dir=.
10725    for ac_exec_ext in '' $ac_executable_extensions; do
10726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10727    ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10729    break 2
10730  fi
10731done
10732  done
10733IFS=$as_save_IFS
10734
10735fi
10736fi
10737CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10738if test -n "$CXX_FOR_TARGET"; then
10739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10740$as_echo "$CXX_FOR_TARGET" >&6; }
10741else
10742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743$as_echo "no" >&6; }
10744fi
10745
10746
10747    fi
10748    if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10749      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10750set dummy ${ncn_progname}; ac_word=$2
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10752$as_echo_n "checking for $ac_word... " >&6; }
10753if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10754  $as_echo_n "(cached) " >&6
10755else
10756  if test -n "$CXX_FOR_TARGET"; then
10757  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10758else
10759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $PATH
10761do
10762  IFS=$as_save_IFS
10763  test -z "$as_dir" && as_dir=.
10764    for ac_exec_ext in '' $ac_executable_extensions; do
10765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768    break 2
10769  fi
10770done
10771  done
10772IFS=$as_save_IFS
10773
10774fi
10775fi
10776CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10777if test -n "$CXX_FOR_TARGET"; then
10778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10779$as_echo "$CXX_FOR_TARGET" >&6; }
10780else
10781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782$as_echo "no" >&6; }
10783fi
10784
10785
10786    fi
10787    test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10788  done
10789fi
10790
10791if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10792  set dummy c++ g++ cxx gxx
10793  if test $build = $target ; then
10794    CXX_FOR_TARGET="$2"
10795  else
10796    CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10797  fi
10798else
10799  CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10800fi
10801
10802
10803
10804if test -n "$GCC_FOR_TARGET"; then
10805  ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10806elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10807  GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10808fi
10809
10810if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10811  for ncn_progname in gcc; do
10812    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10813set dummy ${ncn_progname}; ac_word=$2
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10815$as_echo_n "checking for $ac_word... " >&6; }
10816if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10817  $as_echo_n "(cached) " >&6
10818else
10819  if test -n "$GCC_FOR_TARGET"; then
10820  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10821else
10822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823for as_dir in $PATH
10824do
10825  IFS=$as_save_IFS
10826  test -z "$as_dir" && as_dir=.
10827    for ac_exec_ext in '' $ac_executable_extensions; do
10828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10829    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831    break 2
10832  fi
10833done
10834  done
10835IFS=$as_save_IFS
10836
10837fi
10838fi
10839GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10840if test -n "$GCC_FOR_TARGET"; then
10841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10842$as_echo "$GCC_FOR_TARGET" >&6; }
10843else
10844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845$as_echo "no" >&6; }
10846fi
10847
10848
10849  done
10850fi
10851
10852if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10853  for ncn_progname in gcc; do
10854    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10855$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10856    if test -x $with_build_time_tools/${ncn_progname}; then
10857      ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10858      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10859$as_echo "yes" >&6; }
10860      break
10861    else
10862      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863$as_echo "no" >&6; }
10864    fi
10865  done
10866fi
10867
10868if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10869  for ncn_progname in gcc; do
10870    if test -n "$ncn_target_tool_prefix"; then
10871      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10872set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874$as_echo_n "checking for $ac_word... " >&6; }
10875if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10876  $as_echo_n "(cached) " >&6
10877else
10878  if test -n "$GCC_FOR_TARGET"; then
10879  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10880else
10881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882for as_dir in $PATH
10883do
10884  IFS=$as_save_IFS
10885  test -z "$as_dir" && as_dir=.
10886    for ac_exec_ext in '' $ac_executable_extensions; do
10887  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10888    ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10890    break 2
10891  fi
10892done
10893  done
10894IFS=$as_save_IFS
10895
10896fi
10897fi
10898GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10899if test -n "$GCC_FOR_TARGET"; then
10900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10901$as_echo "$GCC_FOR_TARGET" >&6; }
10902else
10903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904$as_echo "no" >&6; }
10905fi
10906
10907
10908    fi
10909    if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10910      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10911set dummy ${ncn_progname}; ac_word=$2
10912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10913$as_echo_n "checking for $ac_word... " >&6; }
10914if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10915  $as_echo_n "(cached) " >&6
10916else
10917  if test -n "$GCC_FOR_TARGET"; then
10918  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10919else
10920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923  IFS=$as_save_IFS
10924  test -z "$as_dir" && as_dir=.
10925    for ac_exec_ext in '' $ac_executable_extensions; do
10926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10929    break 2
10930  fi
10931done
10932  done
10933IFS=$as_save_IFS
10934
10935fi
10936fi
10937GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10938if test -n "$GCC_FOR_TARGET"; then
10939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10940$as_echo "$GCC_FOR_TARGET" >&6; }
10941else
10942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943$as_echo "no" >&6; }
10944fi
10945
10946
10947    fi
10948    test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10949  done
10950fi
10951
10952if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10953  GCC_FOR_TARGET="${CC_FOR_TARGET}"
10954else
10955  GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10956fi
10957
10958
10959
10960if test -n "$GFORTRAN_FOR_TARGET"; then
10961  ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10962elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10963  GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10964fi
10965
10966if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10967  for ncn_progname in gfortran; do
10968    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10969set dummy ${ncn_progname}; ac_word=$2
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971$as_echo_n "checking for $ac_word... " >&6; }
10972if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10973  $as_echo_n "(cached) " >&6
10974else
10975  if test -n "$GFORTRAN_FOR_TARGET"; then
10976  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10977else
10978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979for as_dir in $PATH
10980do
10981  IFS=$as_save_IFS
10982  test -z "$as_dir" && as_dir=.
10983    for ac_exec_ext in '' $ac_executable_extensions; do
10984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10985    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987    break 2
10988  fi
10989done
10990  done
10991IFS=$as_save_IFS
10992
10993fi
10994fi
10995GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10996if test -n "$GFORTRAN_FOR_TARGET"; then
10997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10998$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10999else
11000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001$as_echo "no" >&6; }
11002fi
11003
11004
11005  done
11006fi
11007
11008if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
11009  for ncn_progname in gfortran; do
11010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11011$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11012    if test -x $with_build_time_tools/${ncn_progname}; then
11013      ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11014      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11015$as_echo "yes" >&6; }
11016      break
11017    else
11018      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019$as_echo "no" >&6; }
11020    fi
11021  done
11022fi
11023
11024if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11025  for ncn_progname in gfortran; do
11026    if test -n "$ncn_target_tool_prefix"; then
11027      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11028set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11030$as_echo_n "checking for $ac_word... " >&6; }
11031if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11032  $as_echo_n "(cached) " >&6
11033else
11034  if test -n "$GFORTRAN_FOR_TARGET"; then
11035  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11036else
11037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038for as_dir in $PATH
11039do
11040  IFS=$as_save_IFS
11041  test -z "$as_dir" && as_dir=.
11042    for ac_exec_ext in '' $ac_executable_extensions; do
11043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11044    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11046    break 2
11047  fi
11048done
11049  done
11050IFS=$as_save_IFS
11051
11052fi
11053fi
11054GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11055if test -n "$GFORTRAN_FOR_TARGET"; then
11056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11057$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11058else
11059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060$as_echo "no" >&6; }
11061fi
11062
11063
11064    fi
11065    if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11066      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11067set dummy ${ncn_progname}; ac_word=$2
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069$as_echo_n "checking for $ac_word... " >&6; }
11070if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11071  $as_echo_n "(cached) " >&6
11072else
11073  if test -n "$GFORTRAN_FOR_TARGET"; then
11074  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11075else
11076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077for as_dir in $PATH
11078do
11079  IFS=$as_save_IFS
11080  test -z "$as_dir" && as_dir=.
11081    for ac_exec_ext in '' $ac_executable_extensions; do
11082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085    break 2
11086  fi
11087done
11088  done
11089IFS=$as_save_IFS
11090
11091fi
11092fi
11093GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11094if test -n "$GFORTRAN_FOR_TARGET"; then
11095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11096$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11097else
11098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099$as_echo "no" >&6; }
11100fi
11101
11102
11103    fi
11104    test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11105  done
11106fi
11107
11108if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11109  set dummy gfortran
11110  if test $build = $target ; then
11111    GFORTRAN_FOR_TARGET="$2"
11112  else
11113    GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11114  fi
11115else
11116  GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11117fi
11118
11119
11120
11121if test -n "$GOC_FOR_TARGET"; then
11122  ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11123elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11124  GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11125fi
11126
11127if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11128  for ncn_progname in gccgo; do
11129    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11130set dummy ${ncn_progname}; ac_word=$2
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132$as_echo_n "checking for $ac_word... " >&6; }
11133if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11134  $as_echo_n "(cached) " >&6
11135else
11136  if test -n "$GOC_FOR_TARGET"; then
11137  ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11138else
11139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140for as_dir in $PATH
11141do
11142  IFS=$as_save_IFS
11143  test -z "$as_dir" && as_dir=.
11144    for ac_exec_ext in '' $ac_executable_extensions; do
11145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146    ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11148    break 2
11149  fi
11150done
11151  done
11152IFS=$as_save_IFS
11153
11154fi
11155fi
11156GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11157if test -n "$GOC_FOR_TARGET"; then
11158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11159$as_echo "$GOC_FOR_TARGET" >&6; }
11160else
11161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162$as_echo "no" >&6; }
11163fi
11164
11165
11166  done
11167fi
11168
11169if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11170  for ncn_progname in gccgo; do
11171    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11172$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11173    if test -x $with_build_time_tools/${ncn_progname}; then
11174      ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11175      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176$as_echo "yes" >&6; }
11177      break
11178    else
11179      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180$as_echo "no" >&6; }
11181    fi
11182  done
11183fi
11184
11185if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11186  for ncn_progname in gccgo; do
11187    if test -n "$ncn_target_tool_prefix"; then
11188      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11189set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191$as_echo_n "checking for $ac_word... " >&6; }
11192if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11193  $as_echo_n "(cached) " >&6
11194else
11195  if test -n "$GOC_FOR_TARGET"; then
11196  ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11197else
11198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199for as_dir in $PATH
11200do
11201  IFS=$as_save_IFS
11202  test -z "$as_dir" && as_dir=.
11203    for ac_exec_ext in '' $ac_executable_extensions; do
11204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11205    ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207    break 2
11208  fi
11209done
11210  done
11211IFS=$as_save_IFS
11212
11213fi
11214fi
11215GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11216if test -n "$GOC_FOR_TARGET"; then
11217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11218$as_echo "$GOC_FOR_TARGET" >&6; }
11219else
11220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221$as_echo "no" >&6; }
11222fi
11223
11224
11225    fi
11226    if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11227      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11228set dummy ${ncn_progname}; ac_word=$2
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11230$as_echo_n "checking for $ac_word... " >&6; }
11231if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11232  $as_echo_n "(cached) " >&6
11233else
11234  if test -n "$GOC_FOR_TARGET"; then
11235  ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11236else
11237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238for as_dir in $PATH
11239do
11240  IFS=$as_save_IFS
11241  test -z "$as_dir" && as_dir=.
11242    for ac_exec_ext in '' $ac_executable_extensions; do
11243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11244    ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11246    break 2
11247  fi
11248done
11249  done
11250IFS=$as_save_IFS
11251
11252fi
11253fi
11254GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11255if test -n "$GOC_FOR_TARGET"; then
11256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11257$as_echo "$GOC_FOR_TARGET" >&6; }
11258else
11259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260$as_echo "no" >&6; }
11261fi
11262
11263
11264    fi
11265    test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11266  done
11267fi
11268
11269if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11270  set dummy gccgo
11271  if test $build = $target ; then
11272    GOC_FOR_TARGET="$2"
11273  else
11274    GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11275  fi
11276else
11277  GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11278fi
11279
11280
11281
11282cat > conftest.c << \EOF
11283#ifdef __GNUC__
11284  gcc_yay;
11285#endif
11286EOF
11287if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11288  have_gcc_for_target=yes
11289else
11290  GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11291  have_gcc_for_target=no
11292fi
11293rm conftest.c
11294
11295
11296
11297
11298if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11299  if test -n "$with_build_time_tools"; then
11300    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11301$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11302    if test -x $with_build_time_tools/ar; then
11303      AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11304      ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11305      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11306$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11307    else
11308      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309$as_echo "no" >&6; }
11310    fi
11311  elif test $build != $host && test $have_gcc_for_target = yes; then
11312    AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11313    test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11314    test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11315  fi
11316fi
11317if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11318  # Extract the first word of "ar", so it can be a program name with args.
11319set dummy ar; ac_word=$2
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321$as_echo_n "checking for $ac_word... " >&6; }
11322if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11323  $as_echo_n "(cached) " >&6
11324else
11325  case $AR_FOR_TARGET in
11326  [\\/]* | ?:[\\/]*)
11327  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11328  ;;
11329  *)
11330  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331for as_dir in $gcc_cv_tool_dirs
11332do
11333  IFS=$as_save_IFS
11334  test -z "$as_dir" && as_dir=.
11335    for ac_exec_ext in '' $ac_executable_extensions; do
11336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11337    ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339    break 2
11340  fi
11341done
11342  done
11343IFS=$as_save_IFS
11344
11345  ;;
11346esac
11347fi
11348AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11349if test -n "$AR_FOR_TARGET"; then
11350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11351$as_echo "$AR_FOR_TARGET" >&6; }
11352else
11353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354$as_echo "no" >&6; }
11355fi
11356
11357
11358fi
11359if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11360
11361
11362if test -n "$AR_FOR_TARGET"; then
11363  ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11364elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11365  AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11366fi
11367
11368if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11369  for ncn_progname in ar; do
11370    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11371set dummy ${ncn_progname}; ac_word=$2
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373$as_echo_n "checking for $ac_word... " >&6; }
11374if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11375  $as_echo_n "(cached) " >&6
11376else
11377  if test -n "$AR_FOR_TARGET"; then
11378  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11379else
11380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381for as_dir in $PATH
11382do
11383  IFS=$as_save_IFS
11384  test -z "$as_dir" && as_dir=.
11385    for ac_exec_ext in '' $ac_executable_extensions; do
11386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11387    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11389    break 2
11390  fi
11391done
11392  done
11393IFS=$as_save_IFS
11394
11395fi
11396fi
11397AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11398if test -n "$AR_FOR_TARGET"; then
11399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11400$as_echo "$AR_FOR_TARGET" >&6; }
11401else
11402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403$as_echo "no" >&6; }
11404fi
11405
11406
11407  done
11408fi
11409
11410if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11411  for ncn_progname in ar; do
11412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11413$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11414    if test -x $with_build_time_tools/${ncn_progname}; then
11415      ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11416      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11417$as_echo "yes" >&6; }
11418      break
11419    else
11420      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421$as_echo "no" >&6; }
11422    fi
11423  done
11424fi
11425
11426if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11427  for ncn_progname in ar; do
11428    if test -n "$ncn_target_tool_prefix"; then
11429      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11430set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432$as_echo_n "checking for $ac_word... " >&6; }
11433if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11434  $as_echo_n "(cached) " >&6
11435else
11436  if test -n "$AR_FOR_TARGET"; then
11437  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442  IFS=$as_save_IFS
11443  test -z "$as_dir" && as_dir=.
11444    for ac_exec_ext in '' $ac_executable_extensions; do
11445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446    ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11448    break 2
11449  fi
11450done
11451  done
11452IFS=$as_save_IFS
11453
11454fi
11455fi
11456AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11457if test -n "$AR_FOR_TARGET"; then
11458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11459$as_echo "$AR_FOR_TARGET" >&6; }
11460else
11461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462$as_echo "no" >&6; }
11463fi
11464
11465
11466    fi
11467    if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11468      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11469set dummy ${ncn_progname}; ac_word=$2
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471$as_echo_n "checking for $ac_word... " >&6; }
11472if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11473  $as_echo_n "(cached) " >&6
11474else
11475  if test -n "$AR_FOR_TARGET"; then
11476  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11477else
11478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479for as_dir in $PATH
11480do
11481  IFS=$as_save_IFS
11482  test -z "$as_dir" && as_dir=.
11483    for ac_exec_ext in '' $ac_executable_extensions; do
11484  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11485    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487    break 2
11488  fi
11489done
11490  done
11491IFS=$as_save_IFS
11492
11493fi
11494fi
11495AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11496if test -n "$AR_FOR_TARGET"; then
11497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11498$as_echo "$AR_FOR_TARGET" >&6; }
11499else
11500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
11502fi
11503
11504
11505    fi
11506    test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11507  done
11508fi
11509
11510if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11511  set dummy ar
11512  if test $build = $target ; then
11513    AR_FOR_TARGET="$2"
11514  else
11515    AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11516  fi
11517else
11518  AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11519fi
11520
11521else
11522  AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11523fi
11524
11525
11526
11527
11528if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11529  if test -n "$with_build_time_tools"; then
11530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11531$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11532    if test -x $with_build_time_tools/as; then
11533      AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11534      ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11535      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11536$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11537    else
11538      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539$as_echo "no" >&6; }
11540    fi
11541  elif test $build != $host && test $have_gcc_for_target = yes; then
11542    AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11543    test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11544    test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11545  fi
11546fi
11547if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11548  # Extract the first word of "as", so it can be a program name with args.
11549set dummy as; ac_word=$2
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11551$as_echo_n "checking for $ac_word... " >&6; }
11552if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11553  $as_echo_n "(cached) " >&6
11554else
11555  case $AS_FOR_TARGET in
11556  [\\/]* | ?:[\\/]*)
11557  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11558  ;;
11559  *)
11560  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561for as_dir in $gcc_cv_tool_dirs
11562do
11563  IFS=$as_save_IFS
11564  test -z "$as_dir" && as_dir=.
11565    for ac_exec_ext in '' $ac_executable_extensions; do
11566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11567    ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569    break 2
11570  fi
11571done
11572  done
11573IFS=$as_save_IFS
11574
11575  ;;
11576esac
11577fi
11578AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11579if test -n "$AS_FOR_TARGET"; then
11580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11581$as_echo "$AS_FOR_TARGET" >&6; }
11582else
11583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584$as_echo "no" >&6; }
11585fi
11586
11587
11588fi
11589if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11590
11591
11592if test -n "$AS_FOR_TARGET"; then
11593  ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11594elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11595  AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11596fi
11597
11598if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11599  for ncn_progname in as; do
11600    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11601set dummy ${ncn_progname}; ac_word=$2
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603$as_echo_n "checking for $ac_word... " >&6; }
11604if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11605  $as_echo_n "(cached) " >&6
11606else
11607  if test -n "$AS_FOR_TARGET"; then
11608  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11609else
11610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611for as_dir in $PATH
11612do
11613  IFS=$as_save_IFS
11614  test -z "$as_dir" && as_dir=.
11615    for ac_exec_ext in '' $ac_executable_extensions; do
11616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11617    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619    break 2
11620  fi
11621done
11622  done
11623IFS=$as_save_IFS
11624
11625fi
11626fi
11627AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11628if test -n "$AS_FOR_TARGET"; then
11629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11630$as_echo "$AS_FOR_TARGET" >&6; }
11631else
11632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633$as_echo "no" >&6; }
11634fi
11635
11636
11637  done
11638fi
11639
11640if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11641  for ncn_progname in as; do
11642    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11643$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11644    if test -x $with_build_time_tools/${ncn_progname}; then
11645      ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11646      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647$as_echo "yes" >&6; }
11648      break
11649    else
11650      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
11652    fi
11653  done
11654fi
11655
11656if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11657  for ncn_progname in as; do
11658    if test -n "$ncn_target_tool_prefix"; then
11659      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11660set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662$as_echo_n "checking for $ac_word... " >&6; }
11663if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11664  $as_echo_n "(cached) " >&6
11665else
11666  if test -n "$AS_FOR_TARGET"; then
11667  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11668else
11669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670for as_dir in $PATH
11671do
11672  IFS=$as_save_IFS
11673  test -z "$as_dir" && as_dir=.
11674    for ac_exec_ext in '' $ac_executable_extensions; do
11675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11676    ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11678    break 2
11679  fi
11680done
11681  done
11682IFS=$as_save_IFS
11683
11684fi
11685fi
11686AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11687if test -n "$AS_FOR_TARGET"; then
11688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11689$as_echo "$AS_FOR_TARGET" >&6; }
11690else
11691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692$as_echo "no" >&6; }
11693fi
11694
11695
11696    fi
11697    if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11698      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11699set dummy ${ncn_progname}; ac_word=$2
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701$as_echo_n "checking for $ac_word... " >&6; }
11702if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11703  $as_echo_n "(cached) " >&6
11704else
11705  if test -n "$AS_FOR_TARGET"; then
11706  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11707else
11708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709for as_dir in $PATH
11710do
11711  IFS=$as_save_IFS
11712  test -z "$as_dir" && as_dir=.
11713    for ac_exec_ext in '' $ac_executable_extensions; do
11714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11715    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717    break 2
11718  fi
11719done
11720  done
11721IFS=$as_save_IFS
11722
11723fi
11724fi
11725AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11726if test -n "$AS_FOR_TARGET"; then
11727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11728$as_echo "$AS_FOR_TARGET" >&6; }
11729else
11730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731$as_echo "no" >&6; }
11732fi
11733
11734
11735    fi
11736    test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11737  done
11738fi
11739
11740if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11741  set dummy as
11742  if test $build = $target ; then
11743    AS_FOR_TARGET="$2"
11744  else
11745    AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11746  fi
11747else
11748  AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11749fi
11750
11751else
11752  AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11753fi
11754
11755
11756
11757
11758if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11759  if test -n "$with_build_time_tools"; then
11760    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11761$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11762    if test -x $with_build_time_tools/dlltool; then
11763      DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11764      ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11765      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11766$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11767    else
11768      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
11770    fi
11771  elif test $build != $host && test $have_gcc_for_target = yes; then
11772    DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11773    test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11774    test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11775  fi
11776fi
11777if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11778  # Extract the first word of "dlltool", so it can be a program name with args.
11779set dummy dlltool; ac_word=$2
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781$as_echo_n "checking for $ac_word... " >&6; }
11782if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11783  $as_echo_n "(cached) " >&6
11784else
11785  case $DLLTOOL_FOR_TARGET in
11786  [\\/]* | ?:[\\/]*)
11787  ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11788  ;;
11789  *)
11790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791for as_dir in $gcc_cv_tool_dirs
11792do
11793  IFS=$as_save_IFS
11794  test -z "$as_dir" && as_dir=.
11795    for ac_exec_ext in '' $ac_executable_extensions; do
11796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11797    ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799    break 2
11800  fi
11801done
11802  done
11803IFS=$as_save_IFS
11804
11805  ;;
11806esac
11807fi
11808DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11809if test -n "$DLLTOOL_FOR_TARGET"; then
11810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11811$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11812else
11813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814$as_echo "no" >&6; }
11815fi
11816
11817
11818fi
11819if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11820
11821
11822if test -n "$DLLTOOL_FOR_TARGET"; then
11823  ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11824elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11825  DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11826fi
11827
11828if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11829  for ncn_progname in dlltool; do
11830    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11831set dummy ${ncn_progname}; ac_word=$2
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833$as_echo_n "checking for $ac_word... " >&6; }
11834if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11835  $as_echo_n "(cached) " >&6
11836else
11837  if test -n "$DLLTOOL_FOR_TARGET"; then
11838  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11839else
11840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841for as_dir in $PATH
11842do
11843  IFS=$as_save_IFS
11844  test -z "$as_dir" && as_dir=.
11845    for ac_exec_ext in '' $ac_executable_extensions; do
11846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11847    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11849    break 2
11850  fi
11851done
11852  done
11853IFS=$as_save_IFS
11854
11855fi
11856fi
11857DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11858if test -n "$DLLTOOL_FOR_TARGET"; then
11859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11860$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11861else
11862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863$as_echo "no" >&6; }
11864fi
11865
11866
11867  done
11868fi
11869
11870if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11871  for ncn_progname in dlltool; do
11872    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11873$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11874    if test -x $with_build_time_tools/${ncn_progname}; then
11875      ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11876      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11877$as_echo "yes" >&6; }
11878      break
11879    else
11880      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
11882    fi
11883  done
11884fi
11885
11886if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11887  for ncn_progname in dlltool; do
11888    if test -n "$ncn_target_tool_prefix"; then
11889      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11890set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892$as_echo_n "checking for $ac_word... " >&6; }
11893if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11894  $as_echo_n "(cached) " >&6
11895else
11896  if test -n "$DLLTOOL_FOR_TARGET"; then
11897  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11898else
11899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900for as_dir in $PATH
11901do
11902  IFS=$as_save_IFS
11903  test -z "$as_dir" && as_dir=.
11904    for ac_exec_ext in '' $ac_executable_extensions; do
11905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11906    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908    break 2
11909  fi
11910done
11911  done
11912IFS=$as_save_IFS
11913
11914fi
11915fi
11916DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11917if test -n "$DLLTOOL_FOR_TARGET"; then
11918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11919$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11920else
11921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922$as_echo "no" >&6; }
11923fi
11924
11925
11926    fi
11927    if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11928      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11929set dummy ${ncn_progname}; ac_word=$2
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931$as_echo_n "checking for $ac_word... " >&6; }
11932if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11933  $as_echo_n "(cached) " >&6
11934else
11935  if test -n "$DLLTOOL_FOR_TARGET"; then
11936  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11937else
11938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939for as_dir in $PATH
11940do
11941  IFS=$as_save_IFS
11942  test -z "$as_dir" && as_dir=.
11943    for ac_exec_ext in '' $ac_executable_extensions; do
11944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11945    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11947    break 2
11948  fi
11949done
11950  done
11951IFS=$as_save_IFS
11952
11953fi
11954fi
11955DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11956if test -n "$DLLTOOL_FOR_TARGET"; then
11957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11958$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11959else
11960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961$as_echo "no" >&6; }
11962fi
11963
11964
11965    fi
11966    test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11967  done
11968fi
11969
11970if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11971  set dummy dlltool
11972  if test $build = $target ; then
11973    DLLTOOL_FOR_TARGET="$2"
11974  else
11975    DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11976  fi
11977else
11978  DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11979fi
11980
11981else
11982  DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11983fi
11984
11985
11986
11987
11988if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11989  if test -n "$with_build_time_tools"; then
11990    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11991$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11992    if test -x $with_build_time_tools/ld; then
11993      LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11994      ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11995      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11996$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11997    else
11998      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999$as_echo "no" >&6; }
12000    fi
12001  elif test $build != $host && test $have_gcc_for_target = yes; then
12002    LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
12003    test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12004    test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12005  fi
12006fi
12007if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12008  # Extract the first word of "ld", so it can be a program name with args.
12009set dummy ld; ac_word=$2
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011$as_echo_n "checking for $ac_word... " >&6; }
12012if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
12013  $as_echo_n "(cached) " >&6
12014else
12015  case $LD_FOR_TARGET in
12016  [\\/]* | ?:[\\/]*)
12017  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12018  ;;
12019  *)
12020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021for as_dir in $gcc_cv_tool_dirs
12022do
12023  IFS=$as_save_IFS
12024  test -z "$as_dir" && as_dir=.
12025    for ac_exec_ext in '' $ac_executable_extensions; do
12026  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12027    ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029    break 2
12030  fi
12031done
12032  done
12033IFS=$as_save_IFS
12034
12035  ;;
12036esac
12037fi
12038LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12039if test -n "$LD_FOR_TARGET"; then
12040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12041$as_echo "$LD_FOR_TARGET" >&6; }
12042else
12043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044$as_echo "no" >&6; }
12045fi
12046
12047
12048fi
12049if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12050
12051
12052if test -n "$LD_FOR_TARGET"; then
12053  ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12054elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12055  LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12056fi
12057
12058if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12059  for ncn_progname in ld; do
12060    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12061set dummy ${ncn_progname}; ac_word=$2
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12063$as_echo_n "checking for $ac_word... " >&6; }
12064if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12065  $as_echo_n "(cached) " >&6
12066else
12067  if test -n "$LD_FOR_TARGET"; then
12068  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12069else
12070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071for as_dir in $PATH
12072do
12073  IFS=$as_save_IFS
12074  test -z "$as_dir" && as_dir=.
12075    for ac_exec_ext in '' $ac_executable_extensions; do
12076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079    break 2
12080  fi
12081done
12082  done
12083IFS=$as_save_IFS
12084
12085fi
12086fi
12087LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12088if test -n "$LD_FOR_TARGET"; then
12089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12090$as_echo "$LD_FOR_TARGET" >&6; }
12091else
12092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093$as_echo "no" >&6; }
12094fi
12095
12096
12097  done
12098fi
12099
12100if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12101  for ncn_progname in ld; do
12102    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12103$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12104    if test -x $with_build_time_tools/${ncn_progname}; then
12105      ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12106      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12107$as_echo "yes" >&6; }
12108      break
12109    else
12110      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111$as_echo "no" >&6; }
12112    fi
12113  done
12114fi
12115
12116if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12117  for ncn_progname in ld; do
12118    if test -n "$ncn_target_tool_prefix"; then
12119      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12120set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122$as_echo_n "checking for $ac_word... " >&6; }
12123if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12124  $as_echo_n "(cached) " >&6
12125else
12126  if test -n "$LD_FOR_TARGET"; then
12127  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12128else
12129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12130for as_dir in $PATH
12131do
12132  IFS=$as_save_IFS
12133  test -z "$as_dir" && as_dir=.
12134    for ac_exec_ext in '' $ac_executable_extensions; do
12135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12136    ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12138    break 2
12139  fi
12140done
12141  done
12142IFS=$as_save_IFS
12143
12144fi
12145fi
12146LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12147if test -n "$LD_FOR_TARGET"; then
12148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12149$as_echo "$LD_FOR_TARGET" >&6; }
12150else
12151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152$as_echo "no" >&6; }
12153fi
12154
12155
12156    fi
12157    if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12158      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12159set dummy ${ncn_progname}; ac_word=$2
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161$as_echo_n "checking for $ac_word... " >&6; }
12162if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12163  $as_echo_n "(cached) " >&6
12164else
12165  if test -n "$LD_FOR_TARGET"; then
12166  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12167else
12168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169for as_dir in $PATH
12170do
12171  IFS=$as_save_IFS
12172  test -z "$as_dir" && as_dir=.
12173    for ac_exec_ext in '' $ac_executable_extensions; do
12174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177    break 2
12178  fi
12179done
12180  done
12181IFS=$as_save_IFS
12182
12183fi
12184fi
12185LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12186if test -n "$LD_FOR_TARGET"; then
12187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12188$as_echo "$LD_FOR_TARGET" >&6; }
12189else
12190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191$as_echo "no" >&6; }
12192fi
12193
12194
12195    fi
12196    test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12197  done
12198fi
12199
12200if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12201  set dummy ld
12202  if test $build = $target ; then
12203    LD_FOR_TARGET="$2"
12204  else
12205    LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12206  fi
12207else
12208  LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12209fi
12210
12211else
12212  LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12213fi
12214
12215
12216
12217
12218if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12219  if test -n "$with_build_time_tools"; then
12220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12221$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12222    if test -x $with_build_time_tools/lipo; then
12223      LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12224      ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12225      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12226$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12227    else
12228      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
12230    fi
12231  elif test $build != $host && test $have_gcc_for_target = yes; then
12232    LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12233    test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12234    test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12235  fi
12236fi
12237if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12238  # Extract the first word of "lipo", so it can be a program name with args.
12239set dummy lipo; ac_word=$2
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241$as_echo_n "checking for $ac_word... " >&6; }
12242if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12243  $as_echo_n "(cached) " >&6
12244else
12245  case $LIPO_FOR_TARGET in
12246  [\\/]* | ?:[\\/]*)
12247  ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12248  ;;
12249  *)
12250  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251for as_dir in $gcc_cv_tool_dirs
12252do
12253  IFS=$as_save_IFS
12254  test -z "$as_dir" && as_dir=.
12255    for ac_exec_ext in '' $ac_executable_extensions; do
12256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12257    ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259    break 2
12260  fi
12261done
12262  done
12263IFS=$as_save_IFS
12264
12265  ;;
12266esac
12267fi
12268LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12269if test -n "$LIPO_FOR_TARGET"; then
12270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12271$as_echo "$LIPO_FOR_TARGET" >&6; }
12272else
12273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274$as_echo "no" >&6; }
12275fi
12276
12277
12278fi
12279if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12280
12281
12282if test -n "$LIPO_FOR_TARGET"; then
12283  ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12284elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12285  LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12286fi
12287
12288if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12289  for ncn_progname in lipo; do
12290    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12291set dummy ${ncn_progname}; ac_word=$2
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293$as_echo_n "checking for $ac_word... " >&6; }
12294if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12295  $as_echo_n "(cached) " >&6
12296else
12297  if test -n "$LIPO_FOR_TARGET"; then
12298  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12299else
12300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301for as_dir in $PATH
12302do
12303  IFS=$as_save_IFS
12304  test -z "$as_dir" && as_dir=.
12305    for ac_exec_ext in '' $ac_executable_extensions; do
12306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12307    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309    break 2
12310  fi
12311done
12312  done
12313IFS=$as_save_IFS
12314
12315fi
12316fi
12317LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12318if test -n "$LIPO_FOR_TARGET"; then
12319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12320$as_echo "$LIPO_FOR_TARGET" >&6; }
12321else
12322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323$as_echo "no" >&6; }
12324fi
12325
12326
12327  done
12328fi
12329
12330if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12331  for ncn_progname in lipo; do
12332    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12333$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12334    if test -x $with_build_time_tools/${ncn_progname}; then
12335      ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12336      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12337$as_echo "yes" >&6; }
12338      break
12339    else
12340      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341$as_echo "no" >&6; }
12342    fi
12343  done
12344fi
12345
12346if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12347  for ncn_progname in lipo; do
12348    if test -n "$ncn_target_tool_prefix"; then
12349      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12350set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352$as_echo_n "checking for $ac_word... " >&6; }
12353if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12354  $as_echo_n "(cached) " >&6
12355else
12356  if test -n "$LIPO_FOR_TARGET"; then
12357  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12358else
12359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360for as_dir in $PATH
12361do
12362  IFS=$as_save_IFS
12363  test -z "$as_dir" && as_dir=.
12364    for ac_exec_ext in '' $ac_executable_extensions; do
12365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12366    ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368    break 2
12369  fi
12370done
12371  done
12372IFS=$as_save_IFS
12373
12374fi
12375fi
12376LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12377if test -n "$LIPO_FOR_TARGET"; then
12378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12379$as_echo "$LIPO_FOR_TARGET" >&6; }
12380else
12381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382$as_echo "no" >&6; }
12383fi
12384
12385
12386    fi
12387    if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12388      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12389set dummy ${ncn_progname}; ac_word=$2
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391$as_echo_n "checking for $ac_word... " >&6; }
12392if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12393  $as_echo_n "(cached) " >&6
12394else
12395  if test -n "$LIPO_FOR_TARGET"; then
12396  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12397else
12398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399for as_dir in $PATH
12400do
12401  IFS=$as_save_IFS
12402  test -z "$as_dir" && as_dir=.
12403    for ac_exec_ext in '' $ac_executable_extensions; do
12404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12405    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12407    break 2
12408  fi
12409done
12410  done
12411IFS=$as_save_IFS
12412
12413fi
12414fi
12415LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12416if test -n "$LIPO_FOR_TARGET"; then
12417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12418$as_echo "$LIPO_FOR_TARGET" >&6; }
12419else
12420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421$as_echo "no" >&6; }
12422fi
12423
12424
12425    fi
12426    test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12427  done
12428fi
12429
12430if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12431  set dummy lipo
12432  if test $build = $target ; then
12433    LIPO_FOR_TARGET="$2"
12434  else
12435    LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12436  fi
12437else
12438  LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12439fi
12440
12441else
12442  LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12443fi
12444
12445
12446
12447
12448if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12449  if test -n "$with_build_time_tools"; then
12450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12451$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12452    if test -x $with_build_time_tools/nm; then
12453      NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12454      ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12455      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12456$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12457    else
12458      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459$as_echo "no" >&6; }
12460    fi
12461  elif test $build != $host && test $have_gcc_for_target = yes; then
12462    NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12463    test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12464    test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12465  fi
12466fi
12467if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12468  # Extract the first word of "nm", so it can be a program name with args.
12469set dummy nm; ac_word=$2
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471$as_echo_n "checking for $ac_word... " >&6; }
12472if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12473  $as_echo_n "(cached) " >&6
12474else
12475  case $NM_FOR_TARGET in
12476  [\\/]* | ?:[\\/]*)
12477  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12478  ;;
12479  *)
12480  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481for as_dir in $gcc_cv_tool_dirs
12482do
12483  IFS=$as_save_IFS
12484  test -z "$as_dir" && as_dir=.
12485    for ac_exec_ext in '' $ac_executable_extensions; do
12486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12487    ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489    break 2
12490  fi
12491done
12492  done
12493IFS=$as_save_IFS
12494
12495  ;;
12496esac
12497fi
12498NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12499if test -n "$NM_FOR_TARGET"; then
12500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12501$as_echo "$NM_FOR_TARGET" >&6; }
12502else
12503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504$as_echo "no" >&6; }
12505fi
12506
12507
12508fi
12509if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12510
12511
12512if test -n "$NM_FOR_TARGET"; then
12513  ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12514elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12515  NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12516fi
12517
12518if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12519  for ncn_progname in nm; do
12520    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12521set dummy ${ncn_progname}; ac_word=$2
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523$as_echo_n "checking for $ac_word... " >&6; }
12524if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12525  $as_echo_n "(cached) " >&6
12526else
12527  if test -n "$NM_FOR_TARGET"; then
12528  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12529else
12530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531for as_dir in $PATH
12532do
12533  IFS=$as_save_IFS
12534  test -z "$as_dir" && as_dir=.
12535    for ac_exec_ext in '' $ac_executable_extensions; do
12536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12537    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12539    break 2
12540  fi
12541done
12542  done
12543IFS=$as_save_IFS
12544
12545fi
12546fi
12547NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12548if test -n "$NM_FOR_TARGET"; then
12549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12550$as_echo "$NM_FOR_TARGET" >&6; }
12551else
12552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553$as_echo "no" >&6; }
12554fi
12555
12556
12557  done
12558fi
12559
12560if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12561  for ncn_progname in nm; do
12562    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12563$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12564    if test -x $with_build_time_tools/${ncn_progname}; then
12565      ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12566      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12567$as_echo "yes" >&6; }
12568      break
12569    else
12570      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571$as_echo "no" >&6; }
12572    fi
12573  done
12574fi
12575
12576if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12577  for ncn_progname in nm; do
12578    if test -n "$ncn_target_tool_prefix"; then
12579      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12580set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12582$as_echo_n "checking for $ac_word... " >&6; }
12583if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12584  $as_echo_n "(cached) " >&6
12585else
12586  if test -n "$NM_FOR_TARGET"; then
12587  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12588else
12589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590for as_dir in $PATH
12591do
12592  IFS=$as_save_IFS
12593  test -z "$as_dir" && as_dir=.
12594    for ac_exec_ext in '' $ac_executable_extensions; do
12595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12596    ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598    break 2
12599  fi
12600done
12601  done
12602IFS=$as_save_IFS
12603
12604fi
12605fi
12606NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12607if test -n "$NM_FOR_TARGET"; then
12608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12609$as_echo "$NM_FOR_TARGET" >&6; }
12610else
12611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612$as_echo "no" >&6; }
12613fi
12614
12615
12616    fi
12617    if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12618      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12619set dummy ${ncn_progname}; ac_word=$2
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621$as_echo_n "checking for $ac_word... " >&6; }
12622if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12623  $as_echo_n "(cached) " >&6
12624else
12625  if test -n "$NM_FOR_TARGET"; then
12626  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12627else
12628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629for as_dir in $PATH
12630do
12631  IFS=$as_save_IFS
12632  test -z "$as_dir" && as_dir=.
12633    for ac_exec_ext in '' $ac_executable_extensions; do
12634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12635    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637    break 2
12638  fi
12639done
12640  done
12641IFS=$as_save_IFS
12642
12643fi
12644fi
12645NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12646if test -n "$NM_FOR_TARGET"; then
12647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12648$as_echo "$NM_FOR_TARGET" >&6; }
12649else
12650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651$as_echo "no" >&6; }
12652fi
12653
12654
12655    fi
12656    test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12657  done
12658fi
12659
12660if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12661  set dummy nm
12662  if test $build = $target ; then
12663    NM_FOR_TARGET="$2"
12664  else
12665    NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12666  fi
12667else
12668  NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12669fi
12670
12671else
12672  NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12673fi
12674
12675
12676
12677
12678if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12679  if test -n "$with_build_time_tools"; then
12680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12681$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12682    if test -x $with_build_time_tools/objcopy; then
12683      OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12684      ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12685      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12686$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12687    else
12688      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689$as_echo "no" >&6; }
12690    fi
12691  elif test $build != $host && test $have_gcc_for_target = yes; then
12692    OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12693    test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12694    test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12695  fi
12696fi
12697if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12698  # Extract the first word of "objcopy", so it can be a program name with args.
12699set dummy objcopy; ac_word=$2
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12701$as_echo_n "checking for $ac_word... " >&6; }
12702if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12703  $as_echo_n "(cached) " >&6
12704else
12705  case $OBJCOPY_FOR_TARGET in
12706  [\\/]* | ?:[\\/]*)
12707  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12708  ;;
12709  *)
12710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711for as_dir in $gcc_cv_tool_dirs
12712do
12713  IFS=$as_save_IFS
12714  test -z "$as_dir" && as_dir=.
12715    for ac_exec_ext in '' $ac_executable_extensions; do
12716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12717    ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12719    break 2
12720  fi
12721done
12722  done
12723IFS=$as_save_IFS
12724
12725  ;;
12726esac
12727fi
12728OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12729if test -n "$OBJCOPY_FOR_TARGET"; then
12730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12731$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12732else
12733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734$as_echo "no" >&6; }
12735fi
12736
12737
12738fi
12739if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12740
12741
12742if test -n "$OBJCOPY_FOR_TARGET"; then
12743  ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12744elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12745  OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12746fi
12747
12748if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12749  for ncn_progname in objcopy; do
12750    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12751set dummy ${ncn_progname}; ac_word=$2
12752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753$as_echo_n "checking for $ac_word... " >&6; }
12754if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12755  $as_echo_n "(cached) " >&6
12756else
12757  if test -n "$OBJCOPY_FOR_TARGET"; then
12758  ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12759else
12760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761for as_dir in $PATH
12762do
12763  IFS=$as_save_IFS
12764  test -z "$as_dir" && as_dir=.
12765    for ac_exec_ext in '' $ac_executable_extensions; do
12766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12767    ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12769    break 2
12770  fi
12771done
12772  done
12773IFS=$as_save_IFS
12774
12775fi
12776fi
12777OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12778if test -n "$OBJCOPY_FOR_TARGET"; then
12779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12780$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12781else
12782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783$as_echo "no" >&6; }
12784fi
12785
12786
12787  done
12788fi
12789
12790if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12791  for ncn_progname in objcopy; do
12792    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12793$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12794    if test -x $with_build_time_tools/${ncn_progname}; then
12795      ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12796      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12797$as_echo "yes" >&6; }
12798      break
12799    else
12800      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801$as_echo "no" >&6; }
12802    fi
12803  done
12804fi
12805
12806if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12807  for ncn_progname in objcopy; do
12808    if test -n "$ncn_target_tool_prefix"; then
12809      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12810set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12812$as_echo_n "checking for $ac_word... " >&6; }
12813if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12814  $as_echo_n "(cached) " >&6
12815else
12816  if test -n "$OBJCOPY_FOR_TARGET"; then
12817  ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12818else
12819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820for as_dir in $PATH
12821do
12822  IFS=$as_save_IFS
12823  test -z "$as_dir" && as_dir=.
12824    for ac_exec_ext in '' $ac_executable_extensions; do
12825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12826    ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12828    break 2
12829  fi
12830done
12831  done
12832IFS=$as_save_IFS
12833
12834fi
12835fi
12836OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12837if test -n "$OBJCOPY_FOR_TARGET"; then
12838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12839$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12840else
12841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842$as_echo "no" >&6; }
12843fi
12844
12845
12846    fi
12847    if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12848      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12849set dummy ${ncn_progname}; ac_word=$2
12850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851$as_echo_n "checking for $ac_word... " >&6; }
12852if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12853  $as_echo_n "(cached) " >&6
12854else
12855  if test -n "$OBJCOPY_FOR_TARGET"; then
12856  ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12857else
12858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859for as_dir in $PATH
12860do
12861  IFS=$as_save_IFS
12862  test -z "$as_dir" && as_dir=.
12863    for ac_exec_ext in '' $ac_executable_extensions; do
12864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12865    ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12867    break 2
12868  fi
12869done
12870  done
12871IFS=$as_save_IFS
12872
12873fi
12874fi
12875OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12876if test -n "$OBJCOPY_FOR_TARGET"; then
12877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12878$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12879else
12880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881$as_echo "no" >&6; }
12882fi
12883
12884
12885    fi
12886    test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12887  done
12888fi
12889
12890if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12891  set dummy objcopy
12892  if test $build = $target ; then
12893    OBJCOPY_FOR_TARGET="$2"
12894  else
12895    OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12896  fi
12897else
12898  OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12899fi
12900
12901else
12902  OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12903fi
12904
12905
12906
12907
12908if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12909  if test -n "$with_build_time_tools"; then
12910    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12911$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12912    if test -x $with_build_time_tools/objdump; then
12913      OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12914      ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12915      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12916$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12917    else
12918      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919$as_echo "no" >&6; }
12920    fi
12921  elif test $build != $host && test $have_gcc_for_target = yes; then
12922    OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12923    test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12924    test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12925  fi
12926fi
12927if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12928  # Extract the first word of "objdump", so it can be a program name with args.
12929set dummy objdump; ac_word=$2
12930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12931$as_echo_n "checking for $ac_word... " >&6; }
12932if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12933  $as_echo_n "(cached) " >&6
12934else
12935  case $OBJDUMP_FOR_TARGET in
12936  [\\/]* | ?:[\\/]*)
12937  ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12938  ;;
12939  *)
12940  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941for as_dir in $gcc_cv_tool_dirs
12942do
12943  IFS=$as_save_IFS
12944  test -z "$as_dir" && as_dir=.
12945    for ac_exec_ext in '' $ac_executable_extensions; do
12946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12947    ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949    break 2
12950  fi
12951done
12952  done
12953IFS=$as_save_IFS
12954
12955  ;;
12956esac
12957fi
12958OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12959if test -n "$OBJDUMP_FOR_TARGET"; then
12960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12961$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12962else
12963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12964$as_echo "no" >&6; }
12965fi
12966
12967
12968fi
12969if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12970
12971
12972if test -n "$OBJDUMP_FOR_TARGET"; then
12973  ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12974elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12975  OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12976fi
12977
12978if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12979  for ncn_progname in objdump; do
12980    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12981set dummy ${ncn_progname}; ac_word=$2
12982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12983$as_echo_n "checking for $ac_word... " >&6; }
12984if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12985  $as_echo_n "(cached) " >&6
12986else
12987  if test -n "$OBJDUMP_FOR_TARGET"; then
12988  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12989else
12990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991for as_dir in $PATH
12992do
12993  IFS=$as_save_IFS
12994  test -z "$as_dir" && as_dir=.
12995    for ac_exec_ext in '' $ac_executable_extensions; do
12996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12997    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12999    break 2
13000  fi
13001done
13002  done
13003IFS=$as_save_IFS
13004
13005fi
13006fi
13007OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13008if test -n "$OBJDUMP_FOR_TARGET"; then
13009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13010$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13011else
13012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013$as_echo "no" >&6; }
13014fi
13015
13016
13017  done
13018fi
13019
13020if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13021  for ncn_progname in objdump; do
13022    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13023$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13024    if test -x $with_build_time_tools/${ncn_progname}; then
13025      ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13026      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13027$as_echo "yes" >&6; }
13028      break
13029    else
13030      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031$as_echo "no" >&6; }
13032    fi
13033  done
13034fi
13035
13036if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13037  for ncn_progname in objdump; do
13038    if test -n "$ncn_target_tool_prefix"; then
13039      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13040set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042$as_echo_n "checking for $ac_word... " >&6; }
13043if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13044  $as_echo_n "(cached) " >&6
13045else
13046  if test -n "$OBJDUMP_FOR_TARGET"; then
13047  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13048else
13049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050for as_dir in $PATH
13051do
13052  IFS=$as_save_IFS
13053  test -z "$as_dir" && as_dir=.
13054    for ac_exec_ext in '' $ac_executable_extensions; do
13055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13056    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13058    break 2
13059  fi
13060done
13061  done
13062IFS=$as_save_IFS
13063
13064fi
13065fi
13066OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13067if test -n "$OBJDUMP_FOR_TARGET"; then
13068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13069$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13070else
13071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072$as_echo "no" >&6; }
13073fi
13074
13075
13076    fi
13077    if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13078      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13079set dummy ${ncn_progname}; ac_word=$2
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081$as_echo_n "checking for $ac_word... " >&6; }
13082if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13083  $as_echo_n "(cached) " >&6
13084else
13085  if test -n "$OBJDUMP_FOR_TARGET"; then
13086  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13087else
13088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089for as_dir in $PATH
13090do
13091  IFS=$as_save_IFS
13092  test -z "$as_dir" && as_dir=.
13093    for ac_exec_ext in '' $ac_executable_extensions; do
13094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13095    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097    break 2
13098  fi
13099done
13100  done
13101IFS=$as_save_IFS
13102
13103fi
13104fi
13105OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13106if test -n "$OBJDUMP_FOR_TARGET"; then
13107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13108$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13109else
13110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
13112fi
13113
13114
13115    fi
13116    test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13117  done
13118fi
13119
13120if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13121  set dummy objdump
13122  if test $build = $target ; then
13123    OBJDUMP_FOR_TARGET="$2"
13124  else
13125    OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13126  fi
13127else
13128  OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13129fi
13130
13131else
13132  OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13133fi
13134
13135
13136
13137
13138if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13139  if test -n "$with_build_time_tools"; then
13140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13141$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13142    if test -x $with_build_time_tools/ranlib; then
13143      RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13144      ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13145      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13146$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13147    else
13148      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
13150    fi
13151  elif test $build != $host && test $have_gcc_for_target = yes; then
13152    RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13153    test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13154    test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13155  fi
13156fi
13157if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13158  # Extract the first word of "ranlib", so it can be a program name with args.
13159set dummy ranlib; ac_word=$2
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161$as_echo_n "checking for $ac_word... " >&6; }
13162if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13163  $as_echo_n "(cached) " >&6
13164else
13165  case $RANLIB_FOR_TARGET in
13166  [\\/]* | ?:[\\/]*)
13167  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13168  ;;
13169  *)
13170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171for as_dir in $gcc_cv_tool_dirs
13172do
13173  IFS=$as_save_IFS
13174  test -z "$as_dir" && as_dir=.
13175    for ac_exec_ext in '' $ac_executable_extensions; do
13176  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13177    ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179    break 2
13180  fi
13181done
13182  done
13183IFS=$as_save_IFS
13184
13185  ;;
13186esac
13187fi
13188RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13189if test -n "$RANLIB_FOR_TARGET"; then
13190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13191$as_echo "$RANLIB_FOR_TARGET" >&6; }
13192else
13193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194$as_echo "no" >&6; }
13195fi
13196
13197
13198fi
13199if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13200
13201
13202if test -n "$RANLIB_FOR_TARGET"; then
13203  ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13204elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13205  RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13206fi
13207
13208if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13209  for ncn_progname in ranlib; do
13210    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13211set dummy ${ncn_progname}; ac_word=$2
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13213$as_echo_n "checking for $ac_word... " >&6; }
13214if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13215  $as_echo_n "(cached) " >&6
13216else
13217  if test -n "$RANLIB_FOR_TARGET"; then
13218  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13219else
13220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221for as_dir in $PATH
13222do
13223  IFS=$as_save_IFS
13224  test -z "$as_dir" && as_dir=.
13225    for ac_exec_ext in '' $ac_executable_extensions; do
13226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13227    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229    break 2
13230  fi
13231done
13232  done
13233IFS=$as_save_IFS
13234
13235fi
13236fi
13237RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13238if test -n "$RANLIB_FOR_TARGET"; then
13239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13240$as_echo "$RANLIB_FOR_TARGET" >&6; }
13241else
13242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243$as_echo "no" >&6; }
13244fi
13245
13246
13247  done
13248fi
13249
13250if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13251  for ncn_progname in ranlib; do
13252    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13253$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13254    if test -x $with_build_time_tools/${ncn_progname}; then
13255      ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13256      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13257$as_echo "yes" >&6; }
13258      break
13259    else
13260      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261$as_echo "no" >&6; }
13262    fi
13263  done
13264fi
13265
13266if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13267  for ncn_progname in ranlib; do
13268    if test -n "$ncn_target_tool_prefix"; then
13269      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13270set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13272$as_echo_n "checking for $ac_word... " >&6; }
13273if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13274  $as_echo_n "(cached) " >&6
13275else
13276  if test -n "$RANLIB_FOR_TARGET"; then
13277  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13278else
13279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280for as_dir in $PATH
13281do
13282  IFS=$as_save_IFS
13283  test -z "$as_dir" && as_dir=.
13284    for ac_exec_ext in '' $ac_executable_extensions; do
13285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13286    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13288    break 2
13289  fi
13290done
13291  done
13292IFS=$as_save_IFS
13293
13294fi
13295fi
13296RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13297if test -n "$RANLIB_FOR_TARGET"; then
13298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13299$as_echo "$RANLIB_FOR_TARGET" >&6; }
13300else
13301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302$as_echo "no" >&6; }
13303fi
13304
13305
13306    fi
13307    if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13308      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13309set dummy ${ncn_progname}; ac_word=$2
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311$as_echo_n "checking for $ac_word... " >&6; }
13312if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13313  $as_echo_n "(cached) " >&6
13314else
13315  if test -n "$RANLIB_FOR_TARGET"; then
13316  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13317else
13318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319for as_dir in $PATH
13320do
13321  IFS=$as_save_IFS
13322  test -z "$as_dir" && as_dir=.
13323    for ac_exec_ext in '' $ac_executable_extensions; do
13324  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13325    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327    break 2
13328  fi
13329done
13330  done
13331IFS=$as_save_IFS
13332
13333fi
13334fi
13335RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13336if test -n "$RANLIB_FOR_TARGET"; then
13337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13338$as_echo "$RANLIB_FOR_TARGET" >&6; }
13339else
13340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341$as_echo "no" >&6; }
13342fi
13343
13344
13345    fi
13346    test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13347  done
13348fi
13349
13350if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13351  set dummy ranlib
13352  if test $build = $target ; then
13353    RANLIB_FOR_TARGET="$2"
13354  else
13355    RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13356  fi
13357else
13358  RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13359fi
13360
13361else
13362  RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13363fi
13364
13365
13366
13367
13368if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13369  if test -n "$with_build_time_tools"; then
13370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13371$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13372    if test -x $with_build_time_tools/readelf; then
13373      READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13374      ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13375      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13376$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13377    else
13378      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379$as_echo "no" >&6; }
13380    fi
13381  elif test $build != $host && test $have_gcc_for_target = yes; then
13382    READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13383    test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13384    test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13385  fi
13386fi
13387if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13388  # Extract the first word of "readelf", so it can be a program name with args.
13389set dummy readelf; ac_word=$2
13390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13391$as_echo_n "checking for $ac_word... " >&6; }
13392if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13393  $as_echo_n "(cached) " >&6
13394else
13395  case $READELF_FOR_TARGET in
13396  [\\/]* | ?:[\\/]*)
13397  ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13398  ;;
13399  *)
13400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401for as_dir in $gcc_cv_tool_dirs
13402do
13403  IFS=$as_save_IFS
13404  test -z "$as_dir" && as_dir=.
13405    for ac_exec_ext in '' $ac_executable_extensions; do
13406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13407    ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13409    break 2
13410  fi
13411done
13412  done
13413IFS=$as_save_IFS
13414
13415  ;;
13416esac
13417fi
13418READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13419if test -n "$READELF_FOR_TARGET"; then
13420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13421$as_echo "$READELF_FOR_TARGET" >&6; }
13422else
13423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424$as_echo "no" >&6; }
13425fi
13426
13427
13428fi
13429if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13430
13431
13432if test -n "$READELF_FOR_TARGET"; then
13433  ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13434elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13435  READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13436fi
13437
13438if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13439  for ncn_progname in readelf; do
13440    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13441set dummy ${ncn_progname}; ac_word=$2
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13443$as_echo_n "checking for $ac_word... " >&6; }
13444if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13445  $as_echo_n "(cached) " >&6
13446else
13447  if test -n "$READELF_FOR_TARGET"; then
13448  ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13449else
13450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451for as_dir in $PATH
13452do
13453  IFS=$as_save_IFS
13454  test -z "$as_dir" && as_dir=.
13455    for ac_exec_ext in '' $ac_executable_extensions; do
13456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13457    ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13459    break 2
13460  fi
13461done
13462  done
13463IFS=$as_save_IFS
13464
13465fi
13466fi
13467READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13468if test -n "$READELF_FOR_TARGET"; then
13469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13470$as_echo "$READELF_FOR_TARGET" >&6; }
13471else
13472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473$as_echo "no" >&6; }
13474fi
13475
13476
13477  done
13478fi
13479
13480if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13481  for ncn_progname in readelf; do
13482    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13483$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13484    if test -x $with_build_time_tools/${ncn_progname}; then
13485      ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13486      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13487$as_echo "yes" >&6; }
13488      break
13489    else
13490      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491$as_echo "no" >&6; }
13492    fi
13493  done
13494fi
13495
13496if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13497  for ncn_progname in readelf; do
13498    if test -n "$ncn_target_tool_prefix"; then
13499      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13500set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13502$as_echo_n "checking for $ac_word... " >&6; }
13503if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13504  $as_echo_n "(cached) " >&6
13505else
13506  if test -n "$READELF_FOR_TARGET"; then
13507  ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13508else
13509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13510for as_dir in $PATH
13511do
13512  IFS=$as_save_IFS
13513  test -z "$as_dir" && as_dir=.
13514    for ac_exec_ext in '' $ac_executable_extensions; do
13515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13516    ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13518    break 2
13519  fi
13520done
13521  done
13522IFS=$as_save_IFS
13523
13524fi
13525fi
13526READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13527if test -n "$READELF_FOR_TARGET"; then
13528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13529$as_echo "$READELF_FOR_TARGET" >&6; }
13530else
13531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13532$as_echo "no" >&6; }
13533fi
13534
13535
13536    fi
13537    if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13538      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13539set dummy ${ncn_progname}; ac_word=$2
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541$as_echo_n "checking for $ac_word... " >&6; }
13542if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13543  $as_echo_n "(cached) " >&6
13544else
13545  if test -n "$READELF_FOR_TARGET"; then
13546  ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13547else
13548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549for as_dir in $PATH
13550do
13551  IFS=$as_save_IFS
13552  test -z "$as_dir" && as_dir=.
13553    for ac_exec_ext in '' $ac_executable_extensions; do
13554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13555    ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557    break 2
13558  fi
13559done
13560  done
13561IFS=$as_save_IFS
13562
13563fi
13564fi
13565READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13566if test -n "$READELF_FOR_TARGET"; then
13567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13568$as_echo "$READELF_FOR_TARGET" >&6; }
13569else
13570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571$as_echo "no" >&6; }
13572fi
13573
13574
13575    fi
13576    test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13577  done
13578fi
13579
13580if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13581  set dummy readelf
13582  if test $build = $target ; then
13583    READELF_FOR_TARGET="$2"
13584  else
13585    READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13586  fi
13587else
13588  READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13589fi
13590
13591else
13592  READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13593fi
13594
13595
13596
13597
13598if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13599  if test -n "$with_build_time_tools"; then
13600    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13601$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13602    if test -x $with_build_time_tools/strip; then
13603      STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13604      ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13605      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13606$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13607    else
13608      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609$as_echo "no" >&6; }
13610    fi
13611  elif test $build != $host && test $have_gcc_for_target = yes; then
13612    STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13613    test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13614    test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13615  fi
13616fi
13617if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13618  # Extract the first word of "strip", so it can be a program name with args.
13619set dummy strip; ac_word=$2
13620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621$as_echo_n "checking for $ac_word... " >&6; }
13622if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13623  $as_echo_n "(cached) " >&6
13624else
13625  case $STRIP_FOR_TARGET in
13626  [\\/]* | ?:[\\/]*)
13627  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13628  ;;
13629  *)
13630  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631for as_dir in $gcc_cv_tool_dirs
13632do
13633  IFS=$as_save_IFS
13634  test -z "$as_dir" && as_dir=.
13635    for ac_exec_ext in '' $ac_executable_extensions; do
13636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13637    ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639    break 2
13640  fi
13641done
13642  done
13643IFS=$as_save_IFS
13644
13645  ;;
13646esac
13647fi
13648STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13649if test -n "$STRIP_FOR_TARGET"; then
13650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13651$as_echo "$STRIP_FOR_TARGET" >&6; }
13652else
13653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654$as_echo "no" >&6; }
13655fi
13656
13657
13658fi
13659if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13660
13661
13662if test -n "$STRIP_FOR_TARGET"; then
13663  ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13664elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13665  STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13666fi
13667
13668if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13669  for ncn_progname in strip; do
13670    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13671set dummy ${ncn_progname}; ac_word=$2
13672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13673$as_echo_n "checking for $ac_word... " >&6; }
13674if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13675  $as_echo_n "(cached) " >&6
13676else
13677  if test -n "$STRIP_FOR_TARGET"; then
13678  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13679else
13680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681for as_dir in $PATH
13682do
13683  IFS=$as_save_IFS
13684  test -z "$as_dir" && as_dir=.
13685    for ac_exec_ext in '' $ac_executable_extensions; do
13686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13687    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689    break 2
13690  fi
13691done
13692  done
13693IFS=$as_save_IFS
13694
13695fi
13696fi
13697STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13698if test -n "$STRIP_FOR_TARGET"; then
13699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13700$as_echo "$STRIP_FOR_TARGET" >&6; }
13701else
13702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703$as_echo "no" >&6; }
13704fi
13705
13706
13707  done
13708fi
13709
13710if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13711  for ncn_progname in strip; do
13712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13713$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13714    if test -x $with_build_time_tools/${ncn_progname}; then
13715      ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13716      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13717$as_echo "yes" >&6; }
13718      break
13719    else
13720      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721$as_echo "no" >&6; }
13722    fi
13723  done
13724fi
13725
13726if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13727  for ncn_progname in strip; do
13728    if test -n "$ncn_target_tool_prefix"; then
13729      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13730set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13732$as_echo_n "checking for $ac_word... " >&6; }
13733if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13734  $as_echo_n "(cached) " >&6
13735else
13736  if test -n "$STRIP_FOR_TARGET"; then
13737  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13738else
13739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13740for as_dir in $PATH
13741do
13742  IFS=$as_save_IFS
13743  test -z "$as_dir" && as_dir=.
13744    for ac_exec_ext in '' $ac_executable_extensions; do
13745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13746    ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13748    break 2
13749  fi
13750done
13751  done
13752IFS=$as_save_IFS
13753
13754fi
13755fi
13756STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13757if test -n "$STRIP_FOR_TARGET"; then
13758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13759$as_echo "$STRIP_FOR_TARGET" >&6; }
13760else
13761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762$as_echo "no" >&6; }
13763fi
13764
13765
13766    fi
13767    if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13768      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13769set dummy ${ncn_progname}; ac_word=$2
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13771$as_echo_n "checking for $ac_word... " >&6; }
13772if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13773  $as_echo_n "(cached) " >&6
13774else
13775  if test -n "$STRIP_FOR_TARGET"; then
13776  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13777else
13778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13779for as_dir in $PATH
13780do
13781  IFS=$as_save_IFS
13782  test -z "$as_dir" && as_dir=.
13783    for ac_exec_ext in '' $ac_executable_extensions; do
13784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13785    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13787    break 2
13788  fi
13789done
13790  done
13791IFS=$as_save_IFS
13792
13793fi
13794fi
13795STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13796if test -n "$STRIP_FOR_TARGET"; then
13797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13798$as_echo "$STRIP_FOR_TARGET" >&6; }
13799else
13800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13801$as_echo "no" >&6; }
13802fi
13803
13804
13805    fi
13806    test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13807  done
13808fi
13809
13810if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13811  set dummy strip
13812  if test $build = $target ; then
13813    STRIP_FOR_TARGET="$2"
13814  else
13815    STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13816  fi
13817else
13818  STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13819fi
13820
13821else
13822  STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13823fi
13824
13825
13826
13827
13828if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13829  if test -n "$with_build_time_tools"; then
13830    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13831$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13832    if test -x $with_build_time_tools/windres; then
13833      WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13834      ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13835      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13836$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13837    else
13838      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839$as_echo "no" >&6; }
13840    fi
13841  elif test $build != $host && test $have_gcc_for_target = yes; then
13842    WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13843    test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13844    test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13845  fi
13846fi
13847if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13848  # Extract the first word of "windres", so it can be a program name with args.
13849set dummy windres; ac_word=$2
13850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13851$as_echo_n "checking for $ac_word... " >&6; }
13852if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13853  $as_echo_n "(cached) " >&6
13854else
13855  case $WINDRES_FOR_TARGET in
13856  [\\/]* | ?:[\\/]*)
13857  ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13858  ;;
13859  *)
13860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861for as_dir in $gcc_cv_tool_dirs
13862do
13863  IFS=$as_save_IFS
13864  test -z "$as_dir" && as_dir=.
13865    for ac_exec_ext in '' $ac_executable_extensions; do
13866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13867    ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13869    break 2
13870  fi
13871done
13872  done
13873IFS=$as_save_IFS
13874
13875  ;;
13876esac
13877fi
13878WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13879if test -n "$WINDRES_FOR_TARGET"; then
13880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13881$as_echo "$WINDRES_FOR_TARGET" >&6; }
13882else
13883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884$as_echo "no" >&6; }
13885fi
13886
13887
13888fi
13889if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13890
13891
13892if test -n "$WINDRES_FOR_TARGET"; then
13893  ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13894elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13895  WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13896fi
13897
13898if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13899  for ncn_progname in windres; do
13900    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13901set dummy ${ncn_progname}; ac_word=$2
13902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13903$as_echo_n "checking for $ac_word... " >&6; }
13904if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13905  $as_echo_n "(cached) " >&6
13906else
13907  if test -n "$WINDRES_FOR_TARGET"; then
13908  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13909else
13910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13911for as_dir in $PATH
13912do
13913  IFS=$as_save_IFS
13914  test -z "$as_dir" && as_dir=.
13915    for ac_exec_ext in '' $ac_executable_extensions; do
13916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13917    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13919    break 2
13920  fi
13921done
13922  done
13923IFS=$as_save_IFS
13924
13925fi
13926fi
13927WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13928if test -n "$WINDRES_FOR_TARGET"; then
13929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13930$as_echo "$WINDRES_FOR_TARGET" >&6; }
13931else
13932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933$as_echo "no" >&6; }
13934fi
13935
13936
13937  done
13938fi
13939
13940if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13941  for ncn_progname in windres; do
13942    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13943$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13944    if test -x $with_build_time_tools/${ncn_progname}; then
13945      ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13946      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13947$as_echo "yes" >&6; }
13948      break
13949    else
13950      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13951$as_echo "no" >&6; }
13952    fi
13953  done
13954fi
13955
13956if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13957  for ncn_progname in windres; do
13958    if test -n "$ncn_target_tool_prefix"; then
13959      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13960set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13962$as_echo_n "checking for $ac_word... " >&6; }
13963if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13964  $as_echo_n "(cached) " >&6
13965else
13966  if test -n "$WINDRES_FOR_TARGET"; then
13967  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13968else
13969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13970for as_dir in $PATH
13971do
13972  IFS=$as_save_IFS
13973  test -z "$as_dir" && as_dir=.
13974    for ac_exec_ext in '' $ac_executable_extensions; do
13975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13976    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13978    break 2
13979  fi
13980done
13981  done
13982IFS=$as_save_IFS
13983
13984fi
13985fi
13986WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13987if test -n "$WINDRES_FOR_TARGET"; then
13988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13989$as_echo "$WINDRES_FOR_TARGET" >&6; }
13990else
13991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992$as_echo "no" >&6; }
13993fi
13994
13995
13996    fi
13997    if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13998      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13999set dummy ${ncn_progname}; ac_word=$2
14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14001$as_echo_n "checking for $ac_word... " >&6; }
14002if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14003  $as_echo_n "(cached) " >&6
14004else
14005  if test -n "$WINDRES_FOR_TARGET"; then
14006  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14007else
14008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14009for as_dir in $PATH
14010do
14011  IFS=$as_save_IFS
14012  test -z "$as_dir" && as_dir=.
14013    for ac_exec_ext in '' $ac_executable_extensions; do
14014  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14015    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14017    break 2
14018  fi
14019done
14020  done
14021IFS=$as_save_IFS
14022
14023fi
14024fi
14025WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14026if test -n "$WINDRES_FOR_TARGET"; then
14027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14028$as_echo "$WINDRES_FOR_TARGET" >&6; }
14029else
14030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031$as_echo "no" >&6; }
14032fi
14033
14034
14035    fi
14036    test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14037  done
14038fi
14039
14040if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14041  set dummy windres
14042  if test $build = $target ; then
14043    WINDRES_FOR_TARGET="$2"
14044  else
14045    WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14046  fi
14047else
14048  WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14049fi
14050
14051else
14052  WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14053fi
14054
14055
14056
14057
14058if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14059  if test -n "$with_build_time_tools"; then
14060    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14061$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
14062    if test -x $with_build_time_tools/windmc; then
14063      WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14064      ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14065      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14066$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14067    else
14068      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069$as_echo "no" >&6; }
14070    fi
14071  elif test $build != $host && test $have_gcc_for_target = yes; then
14072    WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14073    test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14074    test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14075  fi
14076fi
14077if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14078  # Extract the first word of "windmc", so it can be a program name with args.
14079set dummy windmc; ac_word=$2
14080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14081$as_echo_n "checking for $ac_word... " >&6; }
14082if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14083  $as_echo_n "(cached) " >&6
14084else
14085  case $WINDMC_FOR_TARGET in
14086  [\\/]* | ?:[\\/]*)
14087  ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14088  ;;
14089  *)
14090  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14091for as_dir in $gcc_cv_tool_dirs
14092do
14093  IFS=$as_save_IFS
14094  test -z "$as_dir" && as_dir=.
14095    for ac_exec_ext in '' $ac_executable_extensions; do
14096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14097    ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14099    break 2
14100  fi
14101done
14102  done
14103IFS=$as_save_IFS
14104
14105  ;;
14106esac
14107fi
14108WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14109if test -n "$WINDMC_FOR_TARGET"; then
14110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14111$as_echo "$WINDMC_FOR_TARGET" >&6; }
14112else
14113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114$as_echo "no" >&6; }
14115fi
14116
14117
14118fi
14119if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14120
14121
14122if test -n "$WINDMC_FOR_TARGET"; then
14123  ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14124elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14125  WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14126fi
14127
14128if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14129  for ncn_progname in windmc; do
14130    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14131set dummy ${ncn_progname}; ac_word=$2
14132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14133$as_echo_n "checking for $ac_word... " >&6; }
14134if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14135  $as_echo_n "(cached) " >&6
14136else
14137  if test -n "$WINDMC_FOR_TARGET"; then
14138  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14139else
14140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141for as_dir in $PATH
14142do
14143  IFS=$as_save_IFS
14144  test -z "$as_dir" && as_dir=.
14145    for ac_exec_ext in '' $ac_executable_extensions; do
14146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14147    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14149    break 2
14150  fi
14151done
14152  done
14153IFS=$as_save_IFS
14154
14155fi
14156fi
14157WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14158if test -n "$WINDMC_FOR_TARGET"; then
14159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14160$as_echo "$WINDMC_FOR_TARGET" >&6; }
14161else
14162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14163$as_echo "no" >&6; }
14164fi
14165
14166
14167  done
14168fi
14169
14170if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14171  for ncn_progname in windmc; do
14172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14173$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14174    if test -x $with_build_time_tools/${ncn_progname}; then
14175      ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14176      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14177$as_echo "yes" >&6; }
14178      break
14179    else
14180      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181$as_echo "no" >&6; }
14182    fi
14183  done
14184fi
14185
14186if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14187  for ncn_progname in windmc; do
14188    if test -n "$ncn_target_tool_prefix"; then
14189      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14190set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14192$as_echo_n "checking for $ac_word... " >&6; }
14193if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14194  $as_echo_n "(cached) " >&6
14195else
14196  if test -n "$WINDMC_FOR_TARGET"; then
14197  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14198else
14199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14200for as_dir in $PATH
14201do
14202  IFS=$as_save_IFS
14203  test -z "$as_dir" && as_dir=.
14204    for ac_exec_ext in '' $ac_executable_extensions; do
14205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14206    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14208    break 2
14209  fi
14210done
14211  done
14212IFS=$as_save_IFS
14213
14214fi
14215fi
14216WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14217if test -n "$WINDMC_FOR_TARGET"; then
14218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14219$as_echo "$WINDMC_FOR_TARGET" >&6; }
14220else
14221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222$as_echo "no" >&6; }
14223fi
14224
14225
14226    fi
14227    if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14228      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14229set dummy ${ncn_progname}; ac_word=$2
14230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14231$as_echo_n "checking for $ac_word... " >&6; }
14232if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14233  $as_echo_n "(cached) " >&6
14234else
14235  if test -n "$WINDMC_FOR_TARGET"; then
14236  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14237else
14238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239for as_dir in $PATH
14240do
14241  IFS=$as_save_IFS
14242  test -z "$as_dir" && as_dir=.
14243    for ac_exec_ext in '' $ac_executable_extensions; do
14244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14245    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14247    break 2
14248  fi
14249done
14250  done
14251IFS=$as_save_IFS
14252
14253fi
14254fi
14255WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14256if test -n "$WINDMC_FOR_TARGET"; then
14257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14258$as_echo "$WINDMC_FOR_TARGET" >&6; }
14259else
14260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14261$as_echo "no" >&6; }
14262fi
14263
14264
14265    fi
14266    test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14267  done
14268fi
14269
14270if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14271  set dummy windmc
14272  if test $build = $target ; then
14273    WINDMC_FOR_TARGET="$2"
14274  else
14275    WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14276  fi
14277else
14278  WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14279fi
14280
14281else
14282  WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14283fi
14284
14285
14286RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14287
14288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14289$as_echo_n "checking where to find the target ar... " >&6; }
14290if test "x${build}" != "x${host}" ; then
14291  if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14292    # We already found the complete path
14293    ac_dir=`dirname $AR_FOR_TARGET`
14294    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14295$as_echo "pre-installed in $ac_dir" >&6; }
14296  else
14297    # Canadian cross, just use what we found
14298    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14299$as_echo "pre-installed" >&6; }
14300  fi
14301else
14302  ok=yes
14303  case " ${configdirs} " in
14304    *" binutils "*) ;;
14305    *) ok=no ;;
14306  esac
14307
14308  if test $ok = yes; then
14309    # An in-tree tool is available and we can use it
14310    AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14312$as_echo "just compiled" >&6; }
14313  elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14314    # We already found the complete path
14315    ac_dir=`dirname $AR_FOR_TARGET`
14316    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14317$as_echo "pre-installed in $ac_dir" >&6; }
14318  elif test "x$target" = "x$host"; then
14319    # We can use an host tool
14320    AR_FOR_TARGET='$(AR)'
14321    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14322$as_echo "host tool" >&6; }
14323  else
14324    # We need a cross tool
14325    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14326$as_echo "pre-installed" >&6; }
14327  fi
14328fi
14329
14330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14331$as_echo_n "checking where to find the target as... " >&6; }
14332if test "x${build}" != "x${host}" ; then
14333  if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14334    # We already found the complete path
14335    ac_dir=`dirname $AS_FOR_TARGET`
14336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14337$as_echo "pre-installed in $ac_dir" >&6; }
14338  else
14339    # Canadian cross, just use what we found
14340    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14341$as_echo "pre-installed" >&6; }
14342  fi
14343else
14344  ok=yes
14345  case " ${configdirs} " in
14346    *" gas "*) ;;
14347    *) ok=no ;;
14348  esac
14349
14350  if test $ok = yes; then
14351    # An in-tree tool is available and we can use it
14352    AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14353    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14354$as_echo "just compiled" >&6; }
14355  elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14356    # We already found the complete path
14357    ac_dir=`dirname $AS_FOR_TARGET`
14358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14359$as_echo "pre-installed in $ac_dir" >&6; }
14360  elif test "x$target" = "x$host"; then
14361    # We can use an host tool
14362    AS_FOR_TARGET='$(AS)'
14363    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14364$as_echo "host tool" >&6; }
14365  else
14366    # We need a cross tool
14367    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14368$as_echo "pre-installed" >&6; }
14369  fi
14370fi
14371
14372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14373$as_echo_n "checking where to find the target cc... " >&6; }
14374if test "x${build}" != "x${host}" ; then
14375  if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14376    # We already found the complete path
14377    ac_dir=`dirname $CC_FOR_TARGET`
14378    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14379$as_echo "pre-installed in $ac_dir" >&6; }
14380  else
14381    # Canadian cross, just use what we found
14382    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14383$as_echo "pre-installed" >&6; }
14384  fi
14385else
14386  ok=yes
14387  case " ${configdirs} " in
14388    *" gcc "*) ;;
14389    *) ok=no ;;
14390  esac
14391
14392  if test $ok = yes; then
14393    # An in-tree tool is available and we can use it
14394    CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14395    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14396$as_echo "just compiled" >&6; }
14397  elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14398    # We already found the complete path
14399    ac_dir=`dirname $CC_FOR_TARGET`
14400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14401$as_echo "pre-installed in $ac_dir" >&6; }
14402  elif test "x$target" = "x$host"; then
14403    # We can use an host tool
14404    CC_FOR_TARGET='$(CC)'
14405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14406$as_echo "host tool" >&6; }
14407  else
14408    # We need a cross tool
14409    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14410$as_echo "pre-installed" >&6; }
14411  fi
14412fi
14413
14414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14415$as_echo_n "checking where to find the target c++... " >&6; }
14416if test "x${build}" != "x${host}" ; then
14417  if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14418    # We already found the complete path
14419    ac_dir=`dirname $CXX_FOR_TARGET`
14420    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14421$as_echo "pre-installed in $ac_dir" >&6; }
14422  else
14423    # Canadian cross, just use what we found
14424    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14425$as_echo "pre-installed" >&6; }
14426  fi
14427else
14428  ok=yes
14429  case " ${configdirs} " in
14430    *" gcc "*) ;;
14431    *) ok=no ;;
14432  esac
14433  case ,${enable_languages}, in
14434    *,c++,*) ;;
14435    *) ok=no ;;
14436  esac
14437  if test $ok = yes; then
14438    # An in-tree tool is available and we can use it
14439    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'
14440    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14441$as_echo "just compiled" >&6; }
14442  elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14443    # We already found the complete path
14444    ac_dir=`dirname $CXX_FOR_TARGET`
14445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14446$as_echo "pre-installed in $ac_dir" >&6; }
14447  elif test "x$target" = "x$host"; then
14448    # We can use an host tool
14449    CXX_FOR_TARGET='$(CXX)'
14450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14451$as_echo "host tool" >&6; }
14452  else
14453    # We need a cross tool
14454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14455$as_echo "pre-installed" >&6; }
14456  fi
14457fi
14458
14459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14460$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14461if test "x${build}" != "x${host}" ; then
14462  if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14463    # We already found the complete path
14464    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14466$as_echo "pre-installed in $ac_dir" >&6; }
14467  else
14468    # Canadian cross, just use what we found
14469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14470$as_echo "pre-installed" >&6; }
14471  fi
14472else
14473  ok=yes
14474  case " ${configdirs} " in
14475    *" gcc "*) ;;
14476    *) ok=no ;;
14477  esac
14478  case ,${enable_languages}, in
14479    *,c++,*) ;;
14480    *) ok=no ;;
14481  esac
14482  if test $ok = yes; then
14483    # An in-tree tool is available and we can use it
14484    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'
14485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14486$as_echo "just compiled" >&6; }
14487  elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14488    # We already found the complete path
14489    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14490    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14491$as_echo "pre-installed in $ac_dir" >&6; }
14492  elif test "x$target" = "x$host"; then
14493    # We can use an host tool
14494    RAW_CXX_FOR_TARGET='$(CXX)'
14495    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14496$as_echo "host tool" >&6; }
14497  else
14498    # We need a cross tool
14499    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14500$as_echo "pre-installed" >&6; }
14501  fi
14502fi
14503
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14505$as_echo_n "checking where to find the target dlltool... " >&6; }
14506if test "x${build}" != "x${host}" ; then
14507  if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14508    # We already found the complete path
14509    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14511$as_echo "pre-installed in $ac_dir" >&6; }
14512  else
14513    # Canadian cross, just use what we found
14514    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14515$as_echo "pre-installed" >&6; }
14516  fi
14517else
14518  ok=yes
14519  case " ${configdirs} " in
14520    *" binutils "*) ;;
14521    *) ok=no ;;
14522  esac
14523
14524  if test $ok = yes; then
14525    # An in-tree tool is available and we can use it
14526    DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14527    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14528$as_echo "just compiled" >&6; }
14529  elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14530    # We already found the complete path
14531    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14532    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14533$as_echo "pre-installed in $ac_dir" >&6; }
14534  elif test "x$target" = "x$host"; then
14535    # We can use an host tool
14536    DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14537    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14538$as_echo "host tool" >&6; }
14539  else
14540    # We need a cross tool
14541    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14542$as_echo "pre-installed" >&6; }
14543  fi
14544fi
14545
14546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14547$as_echo_n "checking where to find the target gcc... " >&6; }
14548if test "x${build}" != "x${host}" ; then
14549  if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14550    # We already found the complete path
14551    ac_dir=`dirname $GCC_FOR_TARGET`
14552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14553$as_echo "pre-installed in $ac_dir" >&6; }
14554  else
14555    # Canadian cross, just use what we found
14556    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14557$as_echo "pre-installed" >&6; }
14558  fi
14559else
14560  ok=yes
14561  case " ${configdirs} " in
14562    *" gcc "*) ;;
14563    *) ok=no ;;
14564  esac
14565
14566  if test $ok = yes; then
14567    # An in-tree tool is available and we can use it
14568    GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14570$as_echo "just compiled" >&6; }
14571  elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14572    # We already found the complete path
14573    ac_dir=`dirname $GCC_FOR_TARGET`
14574    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14575$as_echo "pre-installed in $ac_dir" >&6; }
14576  elif test "x$target" = "x$host"; then
14577    # We can use an host tool
14578    GCC_FOR_TARGET='$()'
14579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14580$as_echo "host tool" >&6; }
14581  else
14582    # We need a cross tool
14583    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14584$as_echo "pre-installed" >&6; }
14585  fi
14586fi
14587
14588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14589$as_echo_n "checking where to find the target gfortran... " >&6; }
14590if test "x${build}" != "x${host}" ; then
14591  if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14592    # We already found the complete path
14593    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14595$as_echo "pre-installed in $ac_dir" >&6; }
14596  else
14597    # Canadian cross, just use what we found
14598    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14599$as_echo "pre-installed" >&6; }
14600  fi
14601else
14602  ok=yes
14603  case " ${configdirs} " in
14604    *" gcc "*) ;;
14605    *) ok=no ;;
14606  esac
14607  case ,${enable_languages}, in
14608    *,fortran,*) ;;
14609    *) ok=no ;;
14610  esac
14611  if test $ok = yes; then
14612    # An in-tree tool is available and we can use it
14613    GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14614    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14615$as_echo "just compiled" >&6; }
14616  elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14617    # We already found the complete path
14618    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14619    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14620$as_echo "pre-installed in $ac_dir" >&6; }
14621  elif test "x$target" = "x$host"; then
14622    # We can use an host tool
14623    GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14625$as_echo "host tool" >&6; }
14626  else
14627    # We need a cross tool
14628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14629$as_echo "pre-installed" >&6; }
14630  fi
14631fi
14632
14633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14634$as_echo_n "checking where to find the target gccgo... " >&6; }
14635if test "x${build}" != "x${host}" ; then
14636  if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14637    # We already found the complete path
14638    ac_dir=`dirname $GOC_FOR_TARGET`
14639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14640$as_echo "pre-installed in $ac_dir" >&6; }
14641  else
14642    # Canadian cross, just use what we found
14643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14644$as_echo "pre-installed" >&6; }
14645  fi
14646else
14647  ok=yes
14648  case " ${configdirs} " in
14649    *" gcc "*) ;;
14650    *) ok=no ;;
14651  esac
14652  case ,${enable_languages}, in
14653    *,go,*) ;;
14654    *) ok=no ;;
14655  esac
14656  if test $ok = yes; then
14657    # An in-tree tool is available and we can use it
14658    GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14659    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14660$as_echo "just compiled" >&6; }
14661  elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14662    # We already found the complete path
14663    ac_dir=`dirname $GOC_FOR_TARGET`
14664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14665$as_echo "pre-installed in $ac_dir" >&6; }
14666  elif test "x$target" = "x$host"; then
14667    # We can use an host tool
14668    GOC_FOR_TARGET='$(GOC)'
14669    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14670$as_echo "host tool" >&6; }
14671  else
14672    # We need a cross tool
14673    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14674$as_echo "pre-installed" >&6; }
14675  fi
14676fi
14677
14678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14679$as_echo_n "checking where to find the target ld... " >&6; }
14680if test "x${build}" != "x${host}" ; then
14681  if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14682    # We already found the complete path
14683    ac_dir=`dirname $LD_FOR_TARGET`
14684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14685$as_echo "pre-installed in $ac_dir" >&6; }
14686  else
14687    # Canadian cross, just use what we found
14688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14689$as_echo "pre-installed" >&6; }
14690  fi
14691else
14692  ok=yes
14693  case " ${configdirs} " in
14694    *" ld "*) ;;
14695    *) ok=no ;;
14696  esac
14697
14698  if test $ok = yes; then
14699    # An in-tree tool is available and we can use it
14700    LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14701    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14702$as_echo "just compiled" >&6; }
14703  elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14704    # We already found the complete path
14705    ac_dir=`dirname $LD_FOR_TARGET`
14706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14707$as_echo "pre-installed in $ac_dir" >&6; }
14708  elif test "x$target" = "x$host"; then
14709    # We can use an host tool
14710    LD_FOR_TARGET='$(LD)'
14711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14712$as_echo "host tool" >&6; }
14713  else
14714    # We need a cross tool
14715    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14716$as_echo "pre-installed" >&6; }
14717  fi
14718fi
14719
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14721$as_echo_n "checking where to find the target lipo... " >&6; }
14722if test "x${build}" != "x${host}" ; then
14723  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14724    # We already found the complete path
14725    ac_dir=`dirname $LIPO_FOR_TARGET`
14726    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14727$as_echo "pre-installed in $ac_dir" >&6; }
14728  else
14729    # Canadian cross, just use what we found
14730    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14731$as_echo "pre-installed" >&6; }
14732  fi
14733else
14734  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14735    # We already found the complete path
14736    ac_dir=`dirname $LIPO_FOR_TARGET`
14737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14738$as_echo "pre-installed in $ac_dir" >&6; }
14739  elif test "x$target" = "x$host"; then
14740    # We can use an host tool
14741    LIPO_FOR_TARGET='$(LIPO)'
14742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14743$as_echo "host tool" >&6; }
14744  else
14745    # We need a cross tool
14746    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14747$as_echo "pre-installed" >&6; }
14748  fi
14749fi
14750
14751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14752$as_echo_n "checking where to find the target nm... " >&6; }
14753if test "x${build}" != "x${host}" ; then
14754  if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14755    # We already found the complete path
14756    ac_dir=`dirname $NM_FOR_TARGET`
14757    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14758$as_echo "pre-installed in $ac_dir" >&6; }
14759  else
14760    # Canadian cross, just use what we found
14761    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14762$as_echo "pre-installed" >&6; }
14763  fi
14764else
14765  ok=yes
14766  case " ${configdirs} " in
14767    *" binutils "*) ;;
14768    *) ok=no ;;
14769  esac
14770
14771  if test $ok = yes; then
14772    # An in-tree tool is available and we can use it
14773    NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14774    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14775$as_echo "just compiled" >&6; }
14776  elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14777    # We already found the complete path
14778    ac_dir=`dirname $NM_FOR_TARGET`
14779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14780$as_echo "pre-installed in $ac_dir" >&6; }
14781  elif test "x$target" = "x$host"; then
14782    # We can use an host tool
14783    NM_FOR_TARGET='$(NM)'
14784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14785$as_echo "host tool" >&6; }
14786  else
14787    # We need a cross tool
14788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14789$as_echo "pre-installed" >&6; }
14790  fi
14791fi
14792
14793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14794$as_echo_n "checking where to find the target objcopy... " >&6; }
14795if test "x${build}" != "x${host}" ; then
14796  if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14797    # We already found the complete path
14798    ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14800$as_echo "pre-installed in $ac_dir" >&6; }
14801  else
14802    # Canadian cross, just use what we found
14803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14804$as_echo "pre-installed" >&6; }
14805  fi
14806else
14807  ok=yes
14808  case " ${configdirs} " in
14809    *" binutils "*) ;;
14810    *) ok=no ;;
14811  esac
14812
14813  if test $ok = yes; then
14814    # An in-tree tool is available and we can use it
14815    OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14817$as_echo "just compiled" >&6; }
14818  elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14819    # We already found the complete path
14820    ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14822$as_echo "pre-installed in $ac_dir" >&6; }
14823  elif test "x$target" = "x$host"; then
14824    # We can use an host tool
14825    OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14826    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14827$as_echo "host tool" >&6; }
14828  else
14829    # We need a cross tool
14830    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14831$as_echo "pre-installed" >&6; }
14832  fi
14833fi
14834
14835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14836$as_echo_n "checking where to find the target objdump... " >&6; }
14837if test "x${build}" != "x${host}" ; then
14838  if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14839    # We already found the complete path
14840    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14842$as_echo "pre-installed in $ac_dir" >&6; }
14843  else
14844    # Canadian cross, just use what we found
14845    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14846$as_echo "pre-installed" >&6; }
14847  fi
14848else
14849  ok=yes
14850  case " ${configdirs} " in
14851    *" binutils "*) ;;
14852    *) ok=no ;;
14853  esac
14854
14855  if test $ok = yes; then
14856    # An in-tree tool is available and we can use it
14857    OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14858    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14859$as_echo "just compiled" >&6; }
14860  elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14861    # We already found the complete path
14862    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14864$as_echo "pre-installed in $ac_dir" >&6; }
14865  elif test "x$target" = "x$host"; then
14866    # We can use an host tool
14867    OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14868    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14869$as_echo "host tool" >&6; }
14870  else
14871    # We need a cross tool
14872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14873$as_echo "pre-installed" >&6; }
14874  fi
14875fi
14876
14877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14878$as_echo_n "checking where to find the target ranlib... " >&6; }
14879if test "x${build}" != "x${host}" ; then
14880  if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14881    # We already found the complete path
14882    ac_dir=`dirname $RANLIB_FOR_TARGET`
14883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14884$as_echo "pre-installed in $ac_dir" >&6; }
14885  else
14886    # Canadian cross, just use what we found
14887    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14888$as_echo "pre-installed" >&6; }
14889  fi
14890else
14891  ok=yes
14892  case " ${configdirs} " in
14893    *" binutils "*) ;;
14894    *) ok=no ;;
14895  esac
14896
14897  if test $ok = yes; then
14898    # An in-tree tool is available and we can use it
14899    RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14900    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14901$as_echo "just compiled" >&6; }
14902  elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14903    # We already found the complete path
14904    ac_dir=`dirname $RANLIB_FOR_TARGET`
14905    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14906$as_echo "pre-installed in $ac_dir" >&6; }
14907  elif test "x$target" = "x$host"; then
14908    # We can use an host tool
14909    RANLIB_FOR_TARGET='$(RANLIB)'
14910    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14911$as_echo "host tool" >&6; }
14912  else
14913    # We need a cross tool
14914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14915$as_echo "pre-installed" >&6; }
14916  fi
14917fi
14918
14919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14920$as_echo_n "checking where to find the target readelf... " >&6; }
14921if test "x${build}" != "x${host}" ; then
14922  if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14923    # We already found the complete path
14924    ac_dir=`dirname $READELF_FOR_TARGET`
14925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14926$as_echo "pre-installed in $ac_dir" >&6; }
14927  else
14928    # Canadian cross, just use what we found
14929    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14930$as_echo "pre-installed" >&6; }
14931  fi
14932else
14933  ok=yes
14934  case " ${configdirs} " in
14935    *" binutils "*) ;;
14936    *) ok=no ;;
14937  esac
14938
14939  if test $ok = yes; then
14940    # An in-tree tool is available and we can use it
14941    READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14943$as_echo "just compiled" >&6; }
14944  elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14945    # We already found the complete path
14946    ac_dir=`dirname $READELF_FOR_TARGET`
14947    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14948$as_echo "pre-installed in $ac_dir" >&6; }
14949  elif test "x$target" = "x$host"; then
14950    # We can use an host tool
14951    READELF_FOR_TARGET='$(READELF)'
14952    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14953$as_echo "host tool" >&6; }
14954  else
14955    # We need a cross tool
14956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14957$as_echo "pre-installed" >&6; }
14958  fi
14959fi
14960
14961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14962$as_echo_n "checking where to find the target strip... " >&6; }
14963if test "x${build}" != "x${host}" ; then
14964  if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14965    # We already found the complete path
14966    ac_dir=`dirname $STRIP_FOR_TARGET`
14967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14968$as_echo "pre-installed in $ac_dir" >&6; }
14969  else
14970    # Canadian cross, just use what we found
14971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14972$as_echo "pre-installed" >&6; }
14973  fi
14974else
14975  ok=yes
14976  case " ${configdirs} " in
14977    *" binutils "*) ;;
14978    *) ok=no ;;
14979  esac
14980
14981  if test $ok = yes; then
14982    # An in-tree tool is available and we can use it
14983    STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14985$as_echo "just compiled" >&6; }
14986  elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14987    # We already found the complete path
14988    ac_dir=`dirname $STRIP_FOR_TARGET`
14989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14990$as_echo "pre-installed in $ac_dir" >&6; }
14991  elif test "x$target" = "x$host"; then
14992    # We can use an host tool
14993    STRIP_FOR_TARGET='$(STRIP)'
14994    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14995$as_echo "host tool" >&6; }
14996  else
14997    # We need a cross tool
14998    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14999$as_echo "pre-installed" >&6; }
15000  fi
15001fi
15002
15003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15004$as_echo_n "checking where to find the target windres... " >&6; }
15005if test "x${build}" != "x${host}" ; then
15006  if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15007    # We already found the complete path
15008    ac_dir=`dirname $WINDRES_FOR_TARGET`
15009    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15010$as_echo "pre-installed in $ac_dir" >&6; }
15011  else
15012    # Canadian cross, just use what we found
15013    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15014$as_echo "pre-installed" >&6; }
15015  fi
15016else
15017  ok=yes
15018  case " ${configdirs} " in
15019    *" binutils "*) ;;
15020    *) ok=no ;;
15021  esac
15022
15023  if test $ok = yes; then
15024    # An in-tree tool is available and we can use it
15025    WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
15026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15027$as_echo "just compiled" >&6; }
15028  elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15029    # We already found the complete path
15030    ac_dir=`dirname $WINDRES_FOR_TARGET`
15031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15032$as_echo "pre-installed in $ac_dir" >&6; }
15033  elif test "x$target" = "x$host"; then
15034    # We can use an host tool
15035    WINDRES_FOR_TARGET='$(WINDRES)'
15036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15037$as_echo "host tool" >&6; }
15038  else
15039    # We need a cross tool
15040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15041$as_echo "pre-installed" >&6; }
15042  fi
15043fi
15044
15045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15046$as_echo_n "checking where to find the target windmc... " >&6; }
15047if test "x${build}" != "x${host}" ; then
15048  if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15049    # We already found the complete path
15050    ac_dir=`dirname $WINDMC_FOR_TARGET`
15051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15052$as_echo "pre-installed in $ac_dir" >&6; }
15053  else
15054    # Canadian cross, just use what we found
15055    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15056$as_echo "pre-installed" >&6; }
15057  fi
15058else
15059  ok=yes
15060  case " ${configdirs} " in
15061    *" binutils "*) ;;
15062    *) ok=no ;;
15063  esac
15064
15065  if test $ok = yes; then
15066    # An in-tree tool is available and we can use it
15067    WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15069$as_echo "just compiled" >&6; }
15070  elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15071    # We already found the complete path
15072    ac_dir=`dirname $WINDMC_FOR_TARGET`
15073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15074$as_echo "pre-installed in $ac_dir" >&6; }
15075  elif test "x$target" = "x$host"; then
15076    # We can use an host tool
15077    WINDMC_FOR_TARGET='$(WINDMC)'
15078    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15079$as_echo "host tool" >&6; }
15080  else
15081    # We need a cross tool
15082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15083$as_echo "pre-installed" >&6; }
15084  fi
15085fi
15086
15087
15088
15089
15090
15091# Certain tools may need extra flags.
15092AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15093RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15094NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15095
15096# When building target libraries, except in a Canadian cross, we use
15097# the same toolchain as the compiler we just built.
15098COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15099COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15100COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15101if test $host = $build; then
15102  case " $configdirs " in
15103    *" gcc "*)
15104      COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15105      COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15106      COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15107      ;;
15108  esac
15109fi
15110
15111
15112
15113
15114
15115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15116$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15117# Check whether --enable-maintainer-mode was given.
15118if test "${enable_maintainer_mode+set}" = set; then :
15119  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15120else
15121  USE_MAINTAINER_MODE=no
15122fi
15123
15124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15125$as_echo "$USE_MAINTAINER_MODE" >&6; }
15126
15127
15128if test "$USE_MAINTAINER_MODE" = yes; then
15129  MAINTAINER_MODE_TRUE=
15130  MAINTAINER_MODE_FALSE='#'
15131else
15132  MAINTAINER_MODE_TRUE='#'
15133  MAINTAINER_MODE_FALSE=
15134fi
15135MAINT=$MAINTAINER_MODE_TRUE
15136
15137# ---------------------
15138# GCC bootstrap support
15139# ---------------------
15140
15141# Stage specific cflags for build.
15142stage1_cflags="-g"
15143case $build in
15144  vax-*-*)
15145    case ${GCC} in
15146      yes) stage1_cflags="-g -Wa,-J" ;;
15147      *) stage1_cflags="-g -J" ;;
15148    esac ;;
15149esac
15150
15151
15152
15153# Enable --enable-checking in stage1 of the compiler.
15154# Check whether --enable-stage1-checking was given.
15155if test "${enable_stage1_checking+set}" = set; then :
15156  enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15157else
15158  if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15159  # For --disable-checking or implicit --enable-checking=release, avoid
15160  # setting --enable-checking=gc in the default stage1 checking for LTO
15161  # bootstraps.  See PR62077.
15162  case $BUILD_CONFIG in
15163    *lto*)
15164      stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15165    *)
15166      stage1_checking=--enable-checking=yes,types;;
15167  esac
15168  if test "x$enable_checking" = x && \
15169     test -d ${srcdir}/gcc && \
15170     test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15171    stage1_checking=--enable-checking=yes,types,extra
15172  fi
15173else
15174  stage1_checking=--enable-checking=$enable_checking,types
15175fi
15176fi
15177
15178
15179
15180# Enable -Werror in bootstrap stage2 and later.
15181# Check whether --enable-werror was given.
15182if test "${enable_werror+set}" = set; then :
15183  enableval=$enable_werror;
15184case ${enable_werror} in
15185  yes) stage2_werror_flag="--enable-werror-always" ;;
15186  *) stage2_werror_flag="" ;;
15187esac
15188
15189else
15190
15191if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15192  case $BUILD_CONFIG in
15193  bootstrap-debug)
15194      stage2_werror_flag="--enable-werror-always" ;;
15195  "")
15196      stage2_werror_flag="--enable-werror-always" ;;
15197  esac
15198fi
15199
15200fi
15201
15202
15203
15204
15205# Specify what files to not compare during bootstrap.
15206
15207compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15208case "$target" in
15209  hppa*64*-*-hpux*) ;;
15210  hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
15211  powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15212esac
15213
15214
15215ac_config_files="$ac_config_files Makefile"
15216
15217cat >confcache <<\_ACEOF
15218# This file is a shell script that caches the results of configure
15219# tests run on this system so they can be shared between configure
15220# scripts and configure runs, see configure's option --config-cache.
15221# It is not useful on other systems.  If it contains results you don't
15222# want to keep, you may remove or edit it.
15223#
15224# config.status only pays attention to the cache file if you give it
15225# the --recheck option to rerun configure.
15226#
15227# `ac_cv_env_foo' variables (set or unset) will be overridden when
15228# loading this file, other *unset* `ac_cv_foo' will be assigned the
15229# following values.
15230
15231_ACEOF
15232
15233# The following way of writing the cache mishandles newlines in values,
15234# but we know of no workaround that is simple, portable, and efficient.
15235# So, we kill variables containing newlines.
15236# Ultrix sh set writes to stderr and can't be redirected directly,
15237# and sets the high bit in the cache file unless we assign to the vars.
15238(
15239  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15240    eval ac_val=\$$ac_var
15241    case $ac_val in #(
15242    *${as_nl}*)
15243      case $ac_var in #(
15244      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15245$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15246      esac
15247      case $ac_var in #(
15248      _ | IFS | as_nl) ;; #(
15249      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15250      *) { eval $ac_var=; unset $ac_var;} ;;
15251      esac ;;
15252    esac
15253  done
15254
15255  (set) 2>&1 |
15256    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15257    *${as_nl}ac_space=\ *)
15258      # `set' does not quote correctly, so add quotes: double-quote
15259      # substitution turns \\\\ into \\, and sed turns \\ into \.
15260      sed -n \
15261	"s/'/'\\\\''/g;
15262	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15263      ;; #(
15264    *)
15265      # `set' quotes correctly as required by POSIX, so do not add quotes.
15266      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15267      ;;
15268    esac |
15269    sort
15270) |
15271  sed '
15272     /^ac_cv_env_/b end
15273     t clear
15274     :clear
15275     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15276     t end
15277     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15278     :end' >>confcache
15279if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15280  if test -w "$cache_file"; then
15281    if test "x$cache_file" != "x/dev/null"; then
15282      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15283$as_echo "$as_me: updating cache $cache_file" >&6;}
15284      if test ! -f "$cache_file" || test -h "$cache_file"; then
15285	cat confcache >"$cache_file"
15286      else
15287        case $cache_file in #(
15288        */* | ?:*)
15289	  mv -f confcache "$cache_file"$$ &&
15290	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15291        *)
15292	  mv -f confcache "$cache_file" ;;
15293	esac
15294      fi
15295    fi
15296  else
15297    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15298$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15299  fi
15300fi
15301rm -f confcache
15302
15303test "x$prefix" = xNONE && prefix=$ac_default_prefix
15304# Let make expand exec_prefix.
15305test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15306
15307# Transform confdefs.h into DEFS.
15308# Protect against shell expansion while executing Makefile rules.
15309# Protect against Makefile macro expansion.
15310#
15311# If the first sed substitution is executed (which looks for macros that
15312# take arguments), then branch to the quote section.  Otherwise,
15313# look for a macro that doesn't take arguments.
15314ac_script='
15315:mline
15316/\\$/{
15317 N
15318 s,\\\n,,
15319 b mline
15320}
15321t clear
15322:clear
15323s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
15324t quote
15325s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
15326t quote
15327b any
15328:quote
15329s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15330s/\[/\\&/g
15331s/\]/\\&/g
15332s/\$/$$/g
15333H
15334:any
15335${
15336	g
15337	s/^\n//
15338	s/\n/ /g
15339	p
15340}
15341'
15342DEFS=`sed -n "$ac_script" confdefs.h`
15343
15344
15345ac_libobjs=
15346ac_ltlibobjs=
15347U=
15348for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15349  # 1. Remove the extension, and $U if already installed.
15350  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15351  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15352  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15353  #    will be set to the directory where LIBOBJS objects are built.
15354  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15355  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15356done
15357LIBOBJS=$ac_libobjs
15358
15359LTLIBOBJS=$ac_ltlibobjs
15360
15361
15362
15363: "${CONFIG_STATUS=./config.status}"
15364ac_write_fail=0
15365ac_clean_files_save=$ac_clean_files
15366ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15367{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15368$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15369as_write_fail=0
15370cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15371#! $SHELL
15372# Generated by $as_me.
15373# Run this file to recreate the current configuration.
15374# Compiler output produced by configure, useful for debugging
15375# configure, is in config.log if it exists.
15376
15377debug=false
15378ac_cs_recheck=false
15379ac_cs_silent=false
15380
15381SHELL=\${CONFIG_SHELL-$SHELL}
15382export SHELL
15383_ASEOF
15384cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15385## -------------------- ##
15386## M4sh Initialization. ##
15387## -------------------- ##
15388
15389# Be more Bourne compatible
15390DUALCASE=1; export DUALCASE # for MKS sh
15391if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15392  emulate sh
15393  NULLCMD=:
15394  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15395  # is contrary to our usage.  Disable this feature.
15396  alias -g '${1+"$@"}'='"$@"'
15397  setopt NO_GLOB_SUBST
15398else
15399  case `(set -o) 2>/dev/null` in #(
15400  *posix*) :
15401    set -o posix ;; #(
15402  *) :
15403     ;;
15404esac
15405fi
15406
15407
15408as_nl='
15409'
15410export as_nl
15411# Printing a long string crashes Solaris 7 /usr/bin/printf.
15412as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15413as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15414as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15415# Prefer a ksh shell builtin over an external printf program on Solaris,
15416# but without wasting forks for bash or zsh.
15417if test -z "$BASH_VERSION$ZSH_VERSION" \
15418    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15419  as_echo='print -r --'
15420  as_echo_n='print -rn --'
15421elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15422  as_echo='printf %s\n'
15423  as_echo_n='printf %s'
15424else
15425  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15426    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15427    as_echo_n='/usr/ucb/echo -n'
15428  else
15429    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15430    as_echo_n_body='eval
15431      arg=$1;
15432      case $arg in #(
15433      *"$as_nl"*)
15434	expr "X$arg" : "X\\(.*\\)$as_nl";
15435	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15436      esac;
15437      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15438    '
15439    export as_echo_n_body
15440    as_echo_n='sh -c $as_echo_n_body as_echo'
15441  fi
15442  export as_echo_body
15443  as_echo='sh -c $as_echo_body as_echo'
15444fi
15445
15446# The user is always right.
15447if test "${PATH_SEPARATOR+set}" != set; then
15448  PATH_SEPARATOR=:
15449  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15450    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15451      PATH_SEPARATOR=';'
15452  }
15453fi
15454
15455
15456# IFS
15457# We need space, tab and new line, in precisely that order.  Quoting is
15458# there to prevent editors from complaining about space-tab.
15459# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15460# splitting by setting IFS to empty value.)
15461IFS=" ""	$as_nl"
15462
15463# Find who we are.  Look in the path if we contain no directory separator.
15464as_myself=
15465case $0 in #((
15466  *[\\/]* ) as_myself=$0 ;;
15467  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15468for as_dir in $PATH
15469do
15470  IFS=$as_save_IFS
15471  test -z "$as_dir" && as_dir=.
15472    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15473  done
15474IFS=$as_save_IFS
15475
15476     ;;
15477esac
15478# We did not find ourselves, most probably we were run as `sh COMMAND'
15479# in which case we are not to be found in the path.
15480if test "x$as_myself" = x; then
15481  as_myself=$0
15482fi
15483if test ! -f "$as_myself"; then
15484  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15485  exit 1
15486fi
15487
15488# Unset variables that we do not need and which cause bugs (e.g. in
15489# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15490# suppresses any "Segmentation fault" message there.  '((' could
15491# trigger a bug in pdksh 5.2.14.
15492for as_var in BASH_ENV ENV MAIL MAILPATH
15493do eval test x\${$as_var+set} = xset \
15494  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15495done
15496PS1='$ '
15497PS2='> '
15498PS4='+ '
15499
15500# NLS nuisances.
15501LC_ALL=C
15502export LC_ALL
15503LANGUAGE=C
15504export LANGUAGE
15505
15506# CDPATH.
15507(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15508
15509
15510# as_fn_error STATUS ERROR [LINENO LOG_FD]
15511# ----------------------------------------
15512# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15513# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15514# script with STATUS, using 1 if that was 0.
15515as_fn_error ()
15516{
15517  as_status=$1; test $as_status -eq 0 && as_status=1
15518  if test "$4"; then
15519    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15520    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15521  fi
15522  $as_echo "$as_me: error: $2" >&2
15523  as_fn_exit $as_status
15524} # as_fn_error
15525
15526
15527# as_fn_set_status STATUS
15528# -----------------------
15529# Set $? to STATUS, without forking.
15530as_fn_set_status ()
15531{
15532  return $1
15533} # as_fn_set_status
15534
15535# as_fn_exit STATUS
15536# -----------------
15537# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15538as_fn_exit ()
15539{
15540  set +e
15541  as_fn_set_status $1
15542  exit $1
15543} # as_fn_exit
15544
15545# as_fn_unset VAR
15546# ---------------
15547# Portably unset VAR.
15548as_fn_unset ()
15549{
15550  { eval $1=; unset $1;}
15551}
15552as_unset=as_fn_unset
15553# as_fn_append VAR VALUE
15554# ----------------------
15555# Append the text in VALUE to the end of the definition contained in VAR. Take
15556# advantage of any shell optimizations that allow amortized linear growth over
15557# repeated appends, instead of the typical quadratic growth present in naive
15558# implementations.
15559if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15560  eval 'as_fn_append ()
15561  {
15562    eval $1+=\$2
15563  }'
15564else
15565  as_fn_append ()
15566  {
15567    eval $1=\$$1\$2
15568  }
15569fi # as_fn_append
15570
15571# as_fn_arith ARG...
15572# ------------------
15573# Perform arithmetic evaluation on the ARGs, and store the result in the
15574# global $as_val. Take advantage of shells that can avoid forks. The arguments
15575# must be portable across $(()) and expr.
15576if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15577  eval 'as_fn_arith ()
15578  {
15579    as_val=$(( $* ))
15580  }'
15581else
15582  as_fn_arith ()
15583  {
15584    as_val=`expr "$@" || test $? -eq 1`
15585  }
15586fi # as_fn_arith
15587
15588
15589if expr a : '\(a\)' >/dev/null 2>&1 &&
15590   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15591  as_expr=expr
15592else
15593  as_expr=false
15594fi
15595
15596if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15597  as_basename=basename
15598else
15599  as_basename=false
15600fi
15601
15602if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15603  as_dirname=dirname
15604else
15605  as_dirname=false
15606fi
15607
15608as_me=`$as_basename -- "$0" ||
15609$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15610	 X"$0" : 'X\(//\)$' \| \
15611	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15612$as_echo X/"$0" |
15613    sed '/^.*\/\([^/][^/]*\)\/*$/{
15614	    s//\1/
15615	    q
15616	  }
15617	  /^X\/\(\/\/\)$/{
15618	    s//\1/
15619	    q
15620	  }
15621	  /^X\/\(\/\).*/{
15622	    s//\1/
15623	    q
15624	  }
15625	  s/.*/./; q'`
15626
15627# Avoid depending upon Character Ranges.
15628as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15629as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15630as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15631as_cr_digits='0123456789'
15632as_cr_alnum=$as_cr_Letters$as_cr_digits
15633
15634ECHO_C= ECHO_N= ECHO_T=
15635case `echo -n x` in #(((((
15636-n*)
15637  case `echo 'xy\c'` in
15638  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15639  xy)  ECHO_C='\c';;
15640  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15641       ECHO_T='	';;
15642  esac;;
15643*)
15644  ECHO_N='-n';;
15645esac
15646
15647rm -f conf$$ conf$$.exe conf$$.file
15648if test -d conf$$.dir; then
15649  rm -f conf$$.dir/conf$$.file
15650else
15651  rm -f conf$$.dir
15652  mkdir conf$$.dir 2>/dev/null
15653fi
15654if (echo >conf$$.file) 2>/dev/null; then
15655  if ln -s conf$$.file conf$$ 2>/dev/null; then
15656    as_ln_s='ln -s'
15657    # ... but there are two gotchas:
15658    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15659    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15660    # In both cases, we have to default to `cp -pR'.
15661    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15662      as_ln_s='cp -pR'
15663  elif ln conf$$.file conf$$ 2>/dev/null; then
15664    as_ln_s=ln
15665  else
15666    as_ln_s='cp -pR'
15667  fi
15668else
15669  as_ln_s='cp -pR'
15670fi
15671rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15672rmdir conf$$.dir 2>/dev/null
15673
15674
15675# as_fn_mkdir_p
15676# -------------
15677# Create "$as_dir" as a directory, including parents if necessary.
15678as_fn_mkdir_p ()
15679{
15680
15681  case $as_dir in #(
15682  -*) as_dir=./$as_dir;;
15683  esac
15684  test -d "$as_dir" || eval $as_mkdir_p || {
15685    as_dirs=
15686    while :; do
15687      case $as_dir in #(
15688      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15689      *) as_qdir=$as_dir;;
15690      esac
15691      as_dirs="'$as_qdir' $as_dirs"
15692      as_dir=`$as_dirname -- "$as_dir" ||
15693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15694	 X"$as_dir" : 'X\(//\)[^/]' \| \
15695	 X"$as_dir" : 'X\(//\)$' \| \
15696	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15697$as_echo X"$as_dir" |
15698    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15699	    s//\1/
15700	    q
15701	  }
15702	  /^X\(\/\/\)[^/].*/{
15703	    s//\1/
15704	    q
15705	  }
15706	  /^X\(\/\/\)$/{
15707	    s//\1/
15708	    q
15709	  }
15710	  /^X\(\/\).*/{
15711	    s//\1/
15712	    q
15713	  }
15714	  s/.*/./; q'`
15715      test -d "$as_dir" && break
15716    done
15717    test -z "$as_dirs" || eval "mkdir $as_dirs"
15718  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15719
15720
15721} # as_fn_mkdir_p
15722if mkdir -p . 2>/dev/null; then
15723  as_mkdir_p='mkdir -p "$as_dir"'
15724else
15725  test -d ./-p && rmdir ./-p
15726  as_mkdir_p=false
15727fi
15728
15729
15730# as_fn_executable_p FILE
15731# -----------------------
15732# Test if FILE is an executable regular file.
15733as_fn_executable_p ()
15734{
15735  test -f "$1" && test -x "$1"
15736} # as_fn_executable_p
15737as_test_x='test -x'
15738as_executable_p=as_fn_executable_p
15739
15740# Sed expression to map a string onto a valid CPP name.
15741as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15742
15743# Sed expression to map a string onto a valid variable name.
15744as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15745
15746
15747exec 6>&1
15748## ----------------------------------- ##
15749## Main body of $CONFIG_STATUS script. ##
15750## ----------------------------------- ##
15751_ASEOF
15752test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15753
15754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15755# Save the log message, to keep $0 and so on meaningful, and to
15756# report actual input values of CONFIG_FILES etc. instead of their
15757# values after options handling.
15758ac_log="
15759This file was extended by $as_me, which was
15760generated by GNU Autoconf 2.69.  Invocation command line was
15761
15762  CONFIG_FILES    = $CONFIG_FILES
15763  CONFIG_HEADERS  = $CONFIG_HEADERS
15764  CONFIG_LINKS    = $CONFIG_LINKS
15765  CONFIG_COMMANDS = $CONFIG_COMMANDS
15766  $ $0 $@
15767
15768on `(hostname || uname -n) 2>/dev/null | sed 1q`
15769"
15770
15771_ACEOF
15772
15773case $ac_config_files in *"
15774"*) set x $ac_config_files; shift; ac_config_files=$*;;
15775esac
15776
15777
15778
15779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15780# Files that config.status was made for.
15781config_files="$ac_config_files"
15782
15783_ACEOF
15784
15785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15786ac_cs_usage="\
15787\`$as_me' instantiates files and other configuration actions
15788from templates according to the current configuration.  Unless the files
15789and actions are specified as TAGs, all are instantiated by default.
15790
15791Usage: $0 [OPTION]... [TAG]...
15792
15793  -h, --help       print this help, then exit
15794  -V, --version    print version number and configuration settings, then exit
15795      --config     print configuration, then exit
15796  -q, --quiet, --silent
15797                   do not print progress messages
15798  -d, --debug      don't remove temporary files
15799      --recheck    update $as_me by reconfiguring in the same conditions
15800      --file=FILE[:TEMPLATE]
15801                   instantiate the configuration file FILE
15802
15803Configuration files:
15804$config_files
15805
15806Report bugs to the package provider."
15807
15808_ACEOF
15809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15810ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15811ac_cs_version="\\
15812config.status
15813configured by $0, generated by GNU Autoconf 2.69,
15814  with options \\"\$ac_cs_config\\"
15815
15816Copyright (C) 2012 Free Software Foundation, Inc.
15817This config.status script is free software; the Free Software Foundation
15818gives unlimited permission to copy, distribute and modify it."
15819
15820ac_pwd='$ac_pwd'
15821srcdir='$srcdir'
15822INSTALL='$INSTALL'
15823AWK='$AWK'
15824test -n "\$AWK" || AWK=awk
15825_ACEOF
15826
15827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15828# The default lists apply if the user does not specify any file.
15829ac_need_defaults=:
15830while test $# != 0
15831do
15832  case $1 in
15833  --*=?*)
15834    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15835    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15836    ac_shift=:
15837    ;;
15838  --*=)
15839    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15840    ac_optarg=
15841    ac_shift=:
15842    ;;
15843  *)
15844    ac_option=$1
15845    ac_optarg=$2
15846    ac_shift=shift
15847    ;;
15848  esac
15849
15850  case $ac_option in
15851  # Handling of the options.
15852  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15853    ac_cs_recheck=: ;;
15854  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15855    $as_echo "$ac_cs_version"; exit ;;
15856  --config | --confi | --conf | --con | --co | --c )
15857    $as_echo "$ac_cs_config"; exit ;;
15858  --debug | --debu | --deb | --de | --d | -d )
15859    debug=: ;;
15860  --file | --fil | --fi | --f )
15861    $ac_shift
15862    case $ac_optarg in
15863    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15864    '') as_fn_error $? "missing file argument" ;;
15865    esac
15866    as_fn_append CONFIG_FILES " '$ac_optarg'"
15867    ac_need_defaults=false;;
15868  --he | --h |  --help | --hel | -h )
15869    $as_echo "$ac_cs_usage"; exit ;;
15870  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15871  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15872    ac_cs_silent=: ;;
15873
15874  # This is an error.
15875  -*) as_fn_error $? "unrecognized option: \`$1'
15876Try \`$0 --help' for more information." ;;
15877
15878  *) as_fn_append ac_config_targets " $1"
15879     ac_need_defaults=false ;;
15880
15881  esac
15882  shift
15883done
15884
15885ac_configure_extra_args=
15886
15887if $ac_cs_silent; then
15888  exec 6>/dev/null
15889  ac_configure_extra_args="$ac_configure_extra_args --silent"
15890fi
15891
15892_ACEOF
15893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15894if \$ac_cs_recheck; then
15895  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15896  shift
15897  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15898  CONFIG_SHELL='$SHELL'
15899  export CONFIG_SHELL
15900  exec "\$@"
15901fi
15902
15903_ACEOF
15904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15905exec 5>>config.log
15906{
15907  echo
15908  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15909## Running $as_me. ##
15910_ASBOX
15911  $as_echo "$ac_log"
15912} >&5
15913
15914_ACEOF
15915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15916#
15917# INIT-COMMANDS
15918#
15919extrasub_build="$extrasub_build"
15920   extrasub_host="$extrasub_host"
15921   extrasub_target="$extrasub_target"
15922
15923_ACEOF
15924
15925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15926
15927# Handling of arguments.
15928for ac_config_target in $ac_config_targets
15929do
15930  case $ac_config_target in
15931    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15932
15933  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15934  esac
15935done
15936
15937
15938# If the user did not use the arguments to specify the items to instantiate,
15939# then the envvar interface is used.  Set only those that are not.
15940# We use the long form for the default assignment because of an extremely
15941# bizarre bug on SunOS 4.1.3.
15942if $ac_need_defaults; then
15943  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15944fi
15945
15946# Have a temporary directory for convenience.  Make it in the build tree
15947# simply because there is no reason against having it here, and in addition,
15948# creating and moving files from /tmp can sometimes cause problems.
15949# Hook for its removal unless debugging.
15950# Note that there is a small window in which the directory will not be cleaned:
15951# after its creation but before its name has been assigned to `$tmp'.
15952$debug ||
15953{
15954  tmp= ac_tmp=
15955  trap 'exit_status=$?
15956  : "${ac_tmp:=$tmp}"
15957  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15958' 0
15959  trap 'as_fn_exit 1' 1 2 13 15
15960}
15961# Create a (secure) tmp directory for tmp files.
15962
15963{
15964  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15965  test -d "$tmp"
15966}  ||
15967{
15968  tmp=./conf$$-$RANDOM
15969  (umask 077 && mkdir "$tmp")
15970} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15971ac_tmp=$tmp
15972
15973# Set up the scripts for CONFIG_FILES section.
15974# No need to generate them if there are no CONFIG_FILES.
15975# This happens for instance with `./config.status config.h'.
15976if test -n "$CONFIG_FILES"; then
15977
15978if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15979  ac_cs_awk_getline=:
15980  ac_cs_awk_pipe_init=
15981  ac_cs_awk_read_file='
15982      while ((getline aline < (F[key])) > 0)
15983	print(aline)
15984      close(F[key])'
15985  ac_cs_awk_pipe_fini=
15986else
15987  ac_cs_awk_getline=false
15988  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15989  ac_cs_awk_read_file='
15990      print "|#_!!_#|"
15991      print "cat " F[key] " &&"
15992      '$ac_cs_awk_pipe_init
15993  # The final `:' finishes the AND list.
15994  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15995fi
15996ac_cr=`echo X | tr X '\015'`
15997# On cygwin, bash can eat \r inside `` if the user requested igncr.
15998# But we know of no other shell where ac_cr would be empty at this
15999# point, so we can use a bashism as a fallback.
16000if test "x$ac_cr" = x; then
16001  eval ac_cr=\$\'\\r\'
16002fi
16003ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16004if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16005  ac_cs_awk_cr='\\r'
16006else
16007  ac_cs_awk_cr=$ac_cr
16008fi
16009
16010echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16011_ACEOF
16012
16013# Create commands to substitute file output variables.
16014{
16015  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16016  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16017  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16018  echo "_ACAWK" &&
16019  echo "_ACEOF"
16020} >conf$$files.sh &&
16021. ./conf$$files.sh ||
16022  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16023rm -f conf$$files.sh
16024
16025{
16026  echo "cat >conf$$subs.awk <<_ACEOF" &&
16027  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16028  echo "_ACEOF"
16029} >conf$$subs.sh ||
16030  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16031ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16032ac_delim='%!_!# '
16033for ac_last_try in false false false false false :; do
16034  . ./conf$$subs.sh ||
16035    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16036
16037  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16038  if test $ac_delim_n = $ac_delim_num; then
16039    break
16040  elif $ac_last_try; then
16041    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16042  else
16043    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16044  fi
16045done
16046rm -f conf$$subs.sh
16047
16048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16049cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16050_ACEOF
16051sed -n '
16052h
16053s/^/S["/; s/!.*/"]=/
16054p
16055g
16056s/^[^!]*!//
16057:repl
16058t repl
16059s/'"$ac_delim"'$//
16060t delim
16061:nl
16062h
16063s/\(.\{148\}\)..*/\1/
16064t more1
16065s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16066p
16067n
16068b repl
16069:more1
16070s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16071p
16072g
16073s/.\{148\}//
16074t nl
16075:delim
16076h
16077s/\(.\{148\}\)..*/\1/
16078t more2
16079s/["\\]/\\&/g; s/^/"/; s/$/"/
16080p
16081b
16082:more2
16083s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16084p
16085g
16086s/.\{148\}//
16087t delim
16088' <conf$$subs.awk | sed '
16089/^[^""]/{
16090  N
16091  s/\n//
16092}
16093' >>$CONFIG_STATUS || ac_write_fail=1
16094rm -f conf$$subs.awk
16095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16096_ACAWK
16097cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16098  for (key in S) S_is_set[key] = 1
16099  FS = ""
16100  \$ac_cs_awk_pipe_init
16101}
16102{
16103  line = $ 0
16104  nfields = split(line, field, "@")
16105  substed = 0
16106  len = length(field[1])
16107  for (i = 2; i < nfields; i++) {
16108    key = field[i]
16109    keylen = length(key)
16110    if (S_is_set[key]) {
16111      value = S[key]
16112      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16113      len += length(value) + length(field[++i])
16114      substed = 1
16115    } else
16116      len += 1 + keylen
16117  }
16118  if (nfields == 3 && !substed) {
16119    key = field[2]
16120    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
16121      \$ac_cs_awk_read_file
16122      next
16123    }
16124  }
16125  print line
16126}
16127\$ac_cs_awk_pipe_fini
16128_ACAWK
16129_ACEOF
16130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16131if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16132  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16133else
16134  cat
16135fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16136  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16137_ACEOF
16138
16139# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16140# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16141# trailing colons and then remove the whole line if VPATH becomes empty
16142# (actually we leave an empty line to preserve line numbers).
16143if test "x$srcdir" = x.; then
16144  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16145h
16146s///
16147s/^/:/
16148s/[	 ]*$/:/
16149s/:\$(srcdir):/:/g
16150s/:\${srcdir}:/:/g
16151s/:@srcdir@:/:/g
16152s/^:*//
16153s/:*$//
16154x
16155s/\(=[	 ]*\).*/\1/
16156G
16157s/\n//
16158s/^[^=]*=[	 ]*$//
16159}'
16160fi
16161
16162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16163fi # test -n "$CONFIG_FILES"
16164
16165
16166eval set X "  :F $CONFIG_FILES      "
16167shift
16168for ac_tag
16169do
16170  case $ac_tag in
16171  :[FHLC]) ac_mode=$ac_tag; continue;;
16172  esac
16173  case $ac_mode$ac_tag in
16174  :[FHL]*:*);;
16175  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16176  :[FH]-) ac_tag=-:-;;
16177  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16178  esac
16179  ac_save_IFS=$IFS
16180  IFS=:
16181  set x $ac_tag
16182  IFS=$ac_save_IFS
16183  shift
16184  ac_file=$1
16185  shift
16186
16187  case $ac_mode in
16188  :L) ac_source=$1;;
16189  :[FH])
16190    ac_file_inputs=
16191    for ac_f
16192    do
16193      case $ac_f in
16194      -) ac_f="$ac_tmp/stdin";;
16195      *) # Look for the file first in the build tree, then in the source tree
16196	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16197	 # because $ac_f cannot contain `:'.
16198	 test -f "$ac_f" ||
16199	   case $ac_f in
16200	   [\\/$]*) false;;
16201	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16202	   esac ||
16203	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16204      esac
16205      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16206      as_fn_append ac_file_inputs " '$ac_f'"
16207    done
16208
16209    # Let's still pretend it is `configure' which instantiates (i.e., don't
16210    # use $as_me), people would be surprised to read:
16211    #    /* config.h.  Generated by config.status.  */
16212    configure_input='Generated from '`
16213	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16214	`' by configure.'
16215    if test x"$ac_file" != x-; then
16216      configure_input="$ac_file.  $configure_input"
16217      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16218$as_echo "$as_me: creating $ac_file" >&6;}
16219    fi
16220    # Neutralize special characters interpreted by sed in replacement strings.
16221    case $configure_input in #(
16222    *\&* | *\|* | *\\* )
16223       ac_sed_conf_input=`$as_echo "$configure_input" |
16224       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16225    *) ac_sed_conf_input=$configure_input;;
16226    esac
16227
16228    case $ac_tag in
16229    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16230      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16231    esac
16232    ;;
16233  esac
16234
16235  ac_dir=`$as_dirname -- "$ac_file" ||
16236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16237	 X"$ac_file" : 'X\(//\)[^/]' \| \
16238	 X"$ac_file" : 'X\(//\)$' \| \
16239	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16240$as_echo X"$ac_file" |
16241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16242	    s//\1/
16243	    q
16244	  }
16245	  /^X\(\/\/\)[^/].*/{
16246	    s//\1/
16247	    q
16248	  }
16249	  /^X\(\/\/\)$/{
16250	    s//\1/
16251	    q
16252	  }
16253	  /^X\(\/\).*/{
16254	    s//\1/
16255	    q
16256	  }
16257	  s/.*/./; q'`
16258  as_dir="$ac_dir"; as_fn_mkdir_p
16259  ac_builddir=.
16260
16261case "$ac_dir" in
16262.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16263*)
16264  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16265  # A ".." for each directory in $ac_dir_suffix.
16266  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16267  case $ac_top_builddir_sub in
16268  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16269  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16270  esac ;;
16271esac
16272ac_abs_top_builddir=$ac_pwd
16273ac_abs_builddir=$ac_pwd$ac_dir_suffix
16274# for backward compatibility:
16275ac_top_builddir=$ac_top_build_prefix
16276
16277case $srcdir in
16278  .)  # We are building in place.
16279    ac_srcdir=.
16280    ac_top_srcdir=$ac_top_builddir_sub
16281    ac_abs_top_srcdir=$ac_pwd ;;
16282  [\\/]* | ?:[\\/]* )  # Absolute name.
16283    ac_srcdir=$srcdir$ac_dir_suffix;
16284    ac_top_srcdir=$srcdir
16285    ac_abs_top_srcdir=$srcdir ;;
16286  *) # Relative name.
16287    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16288    ac_top_srcdir=$ac_top_build_prefix$srcdir
16289    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16290esac
16291ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16292
16293
16294  case $ac_mode in
16295  :F)
16296  #
16297  # CONFIG_FILE
16298  #
16299
16300  case $INSTALL in
16301  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16302  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16303  esac
16304_ACEOF
16305
16306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16307# If the template does not know about datarootdir, expand it.
16308# FIXME: This hack should be removed a few years after 2.60.
16309ac_datarootdir_hack=; ac_datarootdir_seen=
16310ac_sed_dataroot='
16311/datarootdir/ {
16312  p
16313  q
16314}
16315/@datadir@/p
16316/@docdir@/p
16317/@infodir@/p
16318/@localedir@/p
16319/@mandir@/p'
16320case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16321*datarootdir*) ac_datarootdir_seen=yes;;
16322*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16323  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16324$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16325_ACEOF
16326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16327  ac_datarootdir_hack='
16328  s&@datadir@&$datadir&g
16329  s&@docdir@&$docdir&g
16330  s&@infodir@&$infodir&g
16331  s&@localedir@&$localedir&g
16332  s&@mandir@&$mandir&g
16333  s&\\\${datarootdir}&$datarootdir&g' ;;
16334esac
16335_ACEOF
16336
16337# Neutralize VPATH when `$srcdir' = `.'.
16338# Shell code in configure.ac might set extrasub.
16339# FIXME: do we really want to maintain this feature?
16340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16341ac_sed_extra="$ac_vpsub
16342$extrasub
16343_ACEOF
16344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16345:t
16346/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16347s|@configure_input@|$ac_sed_conf_input|;t t
16348s&@top_builddir@&$ac_top_builddir_sub&;t t
16349s&@top_build_prefix@&$ac_top_build_prefix&;t t
16350s&@srcdir@&$ac_srcdir&;t t
16351s&@abs_srcdir@&$ac_abs_srcdir&;t t
16352s&@top_srcdir@&$ac_top_srcdir&;t t
16353s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16354s&@builddir@&$ac_builddir&;t t
16355s&@abs_builddir@&$ac_abs_builddir&;t t
16356s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16357s&@INSTALL@&$ac_INSTALL&;t t
16358$ac_datarootdir_hack
16359"
16360eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16361if $ac_cs_awk_getline; then
16362  $AWK -f "$ac_tmp/subs.awk"
16363else
16364  $AWK -f "$ac_tmp/subs.awk" | $SHELL
16365fi \
16366  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16367
16368test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16369  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16370  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16371      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16372  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16373which seems to be undefined.  Please make sure it is defined" >&5
16374$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16375which seems to be undefined.  Please make sure it is defined" >&2;}
16376
16377  rm -f "$ac_tmp/stdin"
16378  case $ac_file in
16379  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16380  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16381  esac \
16382  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16383 ;;
16384
16385
16386
16387  esac
16388
16389
16390  case $ac_file$ac_mode in
16391    "Makefile":F) sed "$extrasub_build" Makefile |
16392   sed "$extrasub_host" |
16393   sed "$extrasub_target" > mf$$
16394   mv -f mf$$ Makefile ;;
16395
16396  esac
16397done # for ac_tag
16398
16399
16400as_fn_exit 0
16401_ACEOF
16402ac_clean_files=$ac_clean_files_save
16403
16404test $ac_write_fail = 0 ||
16405  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16406
16407
16408# configure is writing to config.log, and then calls config.status.
16409# config.status does its own redirection, appending to config.log.
16410# Unfortunately, on DOS this fails, as config.log is still kept open
16411# by configure, so config.status won't be able to write to it; its
16412# output is simply discarded.  So we exec the FD to /dev/null,
16413# effectively closing config.log, so it can be properly (re)opened and
16414# appended to by config.status.  When coming back to configure, we
16415# need to make the FD available again.
16416if test "$no_create" != yes; then
16417  ac_cs_success=:
16418  ac_config_status_args=
16419  test "$silent" = yes &&
16420    ac_config_status_args="$ac_config_status_args --quiet"
16421  exec 5>/dev/null
16422  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16423  exec 5>>config.log
16424  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16425  # would make configure fail if this is the last instruction.
16426  $ac_cs_success || as_fn_exit 1
16427fi
16428if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16429  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16430$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16431fi
16432
16433