xref: /netbsd-src/external/gpl3/gcc/dist/configure (revision 92e958de60c71aa0f2452bd7074cbb006fe6546b)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
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.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173  if (eval "$as_required") 2>/dev/null; then :
174  as_have_required=yes
175else
176  as_have_required=no
177fi
178  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185  IFS=$as_save_IFS
186  test -z "$as_dir" && as_dir=.
187  as_found=:
188  case $as_dir in #(
189	 /*)
190	   for as_base in sh bash ksh sh5; do
191	     # Try only shells that exist, to save several forks.
192	     as_shell=$as_dir/$as_base
193	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195  CONFIG_SHELL=$as_shell as_have_required=yes
196		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  break 2
198fi
199fi
200	   done;;
201       esac
202  as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206  CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211      if test "x$CONFIG_SHELL" != x; then :
212  # We cannot yet assume a decent shell, so we have to provide a
213	# neutralization value for shells without unset; and this also
214	# works around shells that cannot unset nonexistent variables.
215	BASH_ENV=/dev/null
216	ENV=/dev/null
217	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218	export CONFIG_SHELL
219	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222    if test x$as_have_required = xno; then :
223  $as_echo "$0: This script requires a shell more modern than all"
224  $as_echo "$0: the shells that I found on your system."
225  if test x${ZSH_VERSION+set} = xset ; then
226    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228  else
229    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233  fi
234  exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252  { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261  return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269  set +e
270  as_fn_set_status $1
271  exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280  case $as_dir in #(
281  -*) as_dir=./$as_dir;;
282  esac
283  test -d "$as_dir" || eval $as_mkdir_p || {
284    as_dirs=
285    while :; do
286      case $as_dir in #(
287      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288      *) as_qdir=$as_dir;;
289      esac
290      as_dirs="'$as_qdir' $as_dirs"
291      as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293	 X"$as_dir" : 'X\(//\)[^/]' \| \
294	 X"$as_dir" : 'X\(//\)$' \| \
295	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298	    s//\1/
299	    q
300	  }
301	  /^X\(\/\/\)[^/].*/{
302	    s//\1/
303	    q
304	  }
305	  /^X\(\/\/\)$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\).*/{
310	    s//\1/
311	    q
312	  }
313	  s/.*/./; q'`
314      test -d "$as_dir" && break
315    done
316    test -z "$as_dirs" || eval "mkdir $as_dirs"
317  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328  eval 'as_fn_append ()
329  {
330    eval $1+=\$2
331  }'
332else
333  as_fn_append ()
334  {
335    eval $1=\$$1\$2
336  }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345  eval 'as_fn_arith ()
346  {
347    as_val=$(( $* ))
348  }'
349else
350  as_fn_arith ()
351  {
352    as_val=`expr "$@" || test $? -eq 1`
353  }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364  as_status=$?; test $as_status -eq 0 && as_status=1
365  if test "$3"; then
366    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368  fi
369  $as_echo "$as_me: error: $1" >&2
370  as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375  as_expr=expr
376else
377  as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381  as_basename=basename
382else
383  as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387  as_dirname=dirname
388else
389  as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394	 X"$0" : 'X\(//\)$' \| \
395	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397    sed '/^.*\/\([^/][^/]*\)\/*$/{
398	    s//\1/
399	    q
400	  }
401	  /^X\/\(\/\/\)$/{
402	    s//\1/
403	    q
404	  }
405	  /^X\/\(\/\).*/{
406	    s//\1/
407	    q
408	  }
409	  s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424  sed -n '
425    p
426    /[$]LINENO/=
427  ' <$as_myself |
428    sed '
429      s/[$]LINENO.*/&-/
430      t lineno
431      b
432      :lineno
433      N
434      :loop
435      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436      t loop
437      s/-\n.*//
438    ' >$as_me.lineno &&
439  chmod +x "$as_me.lineno" ||
440    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442  # Don't try to exec as it changes $[0], causing all sort of problems
443  # (the dirname of $[0] is not the place where we might find the
444  # original and so on.  Autoconf is especially sensitive to this).
445  . "./$as_me.lineno"
446  # Exit status is that of the last command.
447  exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453  case `echo 'xy\c'` in
454  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
455  xy)  ECHO_C='\c';;
456  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457       ECHO_T='	';;
458  esac;;
459*)
460  ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465  rm -f conf$$.dir/conf$$.file
466else
467  rm -f conf$$.dir
468  mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471  if ln -s conf$$.file conf$$ 2>/dev/null; then
472    as_ln_s='ln -s'
473    # ... but there are two gotchas:
474    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476    # In both cases, we have to default to `cp -p'.
477    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478      as_ln_s='cp -p'
479  elif ln conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s=ln
481  else
482    as_ln_s='cp -p'
483  fi
484else
485  as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491  as_mkdir_p='mkdir -p "$as_dir"'
492else
493  test -d ./-p && rmdir ./-p
494  as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498  as_test_x='test -x'
499else
500  if ls -dL / >/dev/null 2>&1; then
501    as_ls_L_option=L
502  else
503    as_ls_L_option=
504  fi
505  as_test_x='
506    eval sh -c '\''
507      if test -d "$1"; then
508	test -d "$1/.";
509      else
510	case $1 in #(
511	-*)set "./$1";;
512	esac;
513	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514	???[sx]*):;;*)false;;esac;fi
515    '\'' sh
516  '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
554ac_unique_file="move-if-change"
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559host_shared
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
574READELF_FOR_TARGET
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
577OBJCOPY_FOR_TARGET
578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
584GOC_FOR_TARGET
585GFORTRAN_FOR_TARGET
586GCJ_FOR_TARGET
587GCC_FOR_TARGET
588CXX_FOR_TARGET
589CC_FOR_TARGET
590READELF
591OBJDUMP
592OBJCOPY
593WINDMC
594WINDRES
595STRIP
596RANLIB
597NM
598LIPO
599LD
600DLLTOOL
601AS
602AR
603RUNTEST
604EXPECT
605MAKEINFO
606FLEX
607LEX
608M4
609BISON
610YACC
611WINDRES_FOR_BUILD
612WINDMC_FOR_BUILD
613RANLIB_FOR_BUILD
614NM_FOR_BUILD
615LD_FOR_BUILD
616LDFLAGS_FOR_BUILD
617GOC_FOR_BUILD
618GFORTRAN_FOR_BUILD
619GCJ_FOR_BUILD
620DLLTOOL_FOR_BUILD
621CXX_FOR_BUILD
622CXXFLAGS_FOR_BUILD
623CFLAGS_FOR_BUILD
624CC_FOR_BUILD
625AS_FOR_BUILD
626AR_FOR_BUILD
627target_configdirs
628configdirs
629build_configdirs
630INSTALL_GDB_TK
631GDB_TK
632CONFIGURE_GDB_TK
633build_tooldir
634tooldir
635GCC_SHLIB_SUBDIR
636RPATH_ENVVAR
637target_configargs
638host_configargs
639build_configargs
640BUILD_CONFIG
641LDFLAGS_FOR_TARGET
642CXXFLAGS_FOR_TARGET
643CFLAGS_FOR_TARGET
644DEBUG_PREFIX_CFLAGS_FOR_TARGET
645SYSROOT_CFLAGS_FOR_TARGET
646extra_host_libiberty_configure_flags
647stage1_languages
648extra_linker_plugin_flags
649extra_linker_plugin_configure_flags
650islinc
651isllibs
652poststage1_ldflags
653poststage1_libs
654stage1_ldflags
655stage1_libs
656extra_isl_gmp_configure_flags
657extra_mpc_mpfr_configure_flags
658extra_mpc_gmp_configure_flags
659extra_mpfr_configure_flags
660gmpinc
661gmplibs
662do_compare
663GNATMAKE
664GNATBIND
665ac_ct_CXX
666CXXFLAGS
667CXX
668OBJEXT
669EXEEXT
670ac_ct_CC
671CPPFLAGS
672LDFLAGS
673CFLAGS
674CC
675EXTRA_CONFIGARGS_LIBJAVA
676extra_liboffloadmic_configure_flags
677target_subdir
678host_subdir
679build_subdir
680build_libsubdir
681AWK
682SED
683LN_S
684LN
685INSTALL_DATA
686INSTALL_SCRIPT
687INSTALL_PROGRAM
688target_os
689target_vendor
690target_cpu
691target
692host_os
693host_vendor
694host_cpu
695host
696target_noncanonical
697host_noncanonical
698build_noncanonical
699build_os
700build_vendor
701build_cpu
702build
703TOPLEVEL_CONFIGURE_ARGUMENTS
704target_alias
705host_alias
706build_alias
707LIBS
708ECHO_T
709ECHO_N
710ECHO_C
711DEFS
712mandir
713localedir
714libdir
715psdir
716pdfdir
717dvidir
718htmldir
719infodir
720docdir
721oldincludedir
722includedir
723localstatedir
724sharedstatedir
725sysconfdir
726datadir
727datarootdir
728libexecdir
729sbindir
730bindir
731program_transform_name
732prefix
733exec_prefix
734PACKAGE_URL
735PACKAGE_BUGREPORT
736PACKAGE_STRING
737PACKAGE_VERSION
738PACKAGE_TARNAME
739PACKAGE_NAME
740PATH_SEPARATOR
741SHELL'
742ac_subst_files='serialization_dependencies
743host_makefile_frag
744target_makefile_frag
745alphaieee_frag
746ospace_frag'
747ac_user_opts='
748enable_option_checking
749with_build_libsubdir
750enable_as_accelerator_for
751enable_offload_targets
752enable_gold
753enable_ld
754enable_libquadmath
755enable_libquadmath_support
756enable_libada
757enable_libssp
758enable_libstdcxx
759enable_liboffloadmic
760enable_static_libjava
761enable_bootstrap
762with_mpc
763with_mpc_include
764with_mpc_lib
765with_mpfr_dir
766with_mpfr
767with_mpfr_include
768with_mpfr_lib
769with_gmp_dir
770with_gmp
771with_gmp_include
772with_gmp_lib
773with_host_libstdcxx
774with_stage1_libs
775with_stage1_ldflags
776with_boot_libs
777with_boot_ldflags
778with_isl
779with_isl_include
780with_isl_lib
781enable_isl_version_check
782enable_lto
783enable_linker_plugin_configure_flags
784enable_linker_plugin_flags
785enable_stage1_languages
786enable_objc_gc
787with_build_sysroot
788with_debug_prefix_map
789with_build_config
790enable_vtable_verify
791enable_serial_configure
792with_build_time_tools
793enable_maintainer_mode
794enable_stage1_checking
795enable_werror
796enable_host_shared
797'
798      ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804LIBS
805CPPFLAGS
806CXX
807CXXFLAGS
808CCC
809build_configargs
810host_configargs
811target_configargs
812AR
813AS
814DLLTOOL
815LD
816LIPO
817NM
818RANLIB
819STRIP
820WINDRES
821WINDMC
822OBJCOPY
823OBJDUMP
824READELF
825CC_FOR_TARGET
826CXX_FOR_TARGET
827GCC_FOR_TARGET
828GCJ_FOR_TARGET
829GFORTRAN_FOR_TARGET
830GOC_FOR_TARGET
831AR_FOR_TARGET
832AS_FOR_TARGET
833DLLTOOL_FOR_TARGET
834LD_FOR_TARGET
835LIPO_FOR_TARGET
836NM_FOR_TARGET
837OBJCOPY_FOR_TARGET
838OBJDUMP_FOR_TARGET
839RANLIB_FOR_TARGET
840READELF_FOR_TARGET
841STRIP_FOR_TARGET
842WINDRES_FOR_TARGET
843WINDMC_FOR_TARGET'
844
845
846# Initialize some variables set by options.
847ac_init_help=
848ac_init_version=false
849ac_unrecognized_opts=
850ac_unrecognized_sep=
851# The variables have the same names as the options, with
852# dashes changed to underlines.
853cache_file=/dev/null
854exec_prefix=NONE
855no_create=
856no_recursion=
857prefix=NONE
858program_prefix=NONE
859program_suffix=NONE
860program_transform_name=s,x,x,
861silent=
862site=
863srcdir=
864verbose=
865x_includes=NONE
866x_libraries=NONE
867
868# Installation directory options.
869# These are left unexpanded so users can "make install exec_prefix=/foo"
870# and all the variables that are supposed to be based on exec_prefix
871# by default will actually change.
872# Use braces instead of parens because sh, perl, etc. also accept them.
873# (The list follows the same order as the GNU Coding Standards.)
874bindir='${exec_prefix}/bin'
875sbindir='${exec_prefix}/sbin'
876libexecdir='${exec_prefix}/libexec'
877datarootdir='${prefix}/share'
878datadir='${datarootdir}'
879sysconfdir='${prefix}/etc'
880sharedstatedir='${prefix}/com'
881localstatedir='${prefix}/var'
882includedir='${prefix}/include'
883oldincludedir='/usr/include'
884docdir='${datarootdir}/doc/${PACKAGE}'
885infodir='${datarootdir}/info'
886htmldir='${docdir}'
887dvidir='${docdir}'
888pdfdir='${docdir}'
889psdir='${docdir}'
890libdir='${exec_prefix}/lib'
891localedir='${datarootdir}/locale'
892mandir='${datarootdir}/man'
893
894ac_prev=
895ac_dashdash=
896for ac_option
897do
898  # If the previous option needs an argument, assign it.
899  if test -n "$ac_prev"; then
900    eval $ac_prev=\$ac_option
901    ac_prev=
902    continue
903  fi
904
905  case $ac_option in
906  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907  *)	ac_optarg=yes ;;
908  esac
909
910  # Accept the important Cygnus configure options, so we can diagnose typos.
911
912  case $ac_dashdash$ac_option in
913  --)
914    ac_dashdash=yes ;;
915
916  -bindir | --bindir | --bindi | --bind | --bin | --bi)
917    ac_prev=bindir ;;
918  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919    bindir=$ac_optarg ;;
920
921  -build | --build | --buil | --bui | --bu)
922    ac_prev=build_alias ;;
923  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924    build_alias=$ac_optarg ;;
925
926  -cache-file | --cache-file | --cache-fil | --cache-fi \
927  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928    ac_prev=cache_file ;;
929  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931    cache_file=$ac_optarg ;;
932
933  --config-cache | -C)
934    cache_file=config.cache ;;
935
936  -datadir | --datadir | --datadi | --datad)
937    ac_prev=datadir ;;
938  -datadir=* | --datadir=* | --datadi=* | --datad=*)
939    datadir=$ac_optarg ;;
940
941  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942  | --dataroo | --dataro | --datar)
943    ac_prev=datarootdir ;;
944  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946    datarootdir=$ac_optarg ;;
947
948  -disable-* | --disable-*)
949    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950    # Reject names that are not valid shell variable names.
951    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952      as_fn_error "invalid feature name: $ac_useropt"
953    ac_useropt_orig=$ac_useropt
954    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955    case $ac_user_opts in
956      *"
957"enable_$ac_useropt"
958"*) ;;
959      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960	 ac_unrecognized_sep=', ';;
961    esac
962    eval enable_$ac_useropt=no ;;
963
964  -docdir | --docdir | --docdi | --doc | --do)
965    ac_prev=docdir ;;
966  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967    docdir=$ac_optarg ;;
968
969  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970    ac_prev=dvidir ;;
971  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972    dvidir=$ac_optarg ;;
973
974  -enable-* | --enable-*)
975    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976    # Reject names that are not valid shell variable names.
977    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978      as_fn_error "invalid feature name: $ac_useropt"
979    ac_useropt_orig=$ac_useropt
980    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981    case $ac_user_opts in
982      *"
983"enable_$ac_useropt"
984"*) ;;
985      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986	 ac_unrecognized_sep=', ';;
987    esac
988    eval enable_$ac_useropt=\$ac_optarg ;;
989
990  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992  | --exec | --exe | --ex)
993    ac_prev=exec_prefix ;;
994  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996  | --exec=* | --exe=* | --ex=*)
997    exec_prefix=$ac_optarg ;;
998
999  -gas | --gas | --ga | --g)
1000    # Obsolete; use --with-gas.
1001    with_gas=yes ;;
1002
1003  -help | --help | --hel | --he | -h)
1004    ac_init_help=long ;;
1005  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006    ac_init_help=recursive ;;
1007  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008    ac_init_help=short ;;
1009
1010  -host | --host | --hos | --ho)
1011    ac_prev=host_alias ;;
1012  -host=* | --host=* | --hos=* | --ho=*)
1013    host_alias=$ac_optarg ;;
1014
1015  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016    ac_prev=htmldir ;;
1017  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018  | --ht=*)
1019    htmldir=$ac_optarg ;;
1020
1021  -includedir | --includedir | --includedi | --included | --include \
1022  | --includ | --inclu | --incl | --inc)
1023    ac_prev=includedir ;;
1024  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025  | --includ=* | --inclu=* | --incl=* | --inc=*)
1026    includedir=$ac_optarg ;;
1027
1028  -infodir | --infodir | --infodi | --infod | --info | --inf)
1029    ac_prev=infodir ;;
1030  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031    infodir=$ac_optarg ;;
1032
1033  -libdir | --libdir | --libdi | --libd)
1034    ac_prev=libdir ;;
1035  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036    libdir=$ac_optarg ;;
1037
1038  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039  | --libexe | --libex | --libe)
1040    ac_prev=libexecdir ;;
1041  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042  | --libexe=* | --libex=* | --libe=*)
1043    libexecdir=$ac_optarg ;;
1044
1045  -localedir | --localedir | --localedi | --localed | --locale)
1046    ac_prev=localedir ;;
1047  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048    localedir=$ac_optarg ;;
1049
1050  -localstatedir | --localstatedir | --localstatedi | --localstated \
1051  | --localstate | --localstat | --localsta | --localst | --locals)
1052    ac_prev=localstatedir ;;
1053  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055    localstatedir=$ac_optarg ;;
1056
1057  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058    ac_prev=mandir ;;
1059  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060    mandir=$ac_optarg ;;
1061
1062  -nfp | --nfp | --nf)
1063    # Obsolete; use --without-fp.
1064    with_fp=no ;;
1065
1066  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067  | --no-cr | --no-c | -n)
1068    no_create=yes ;;
1069
1070  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072    no_recursion=yes ;;
1073
1074  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076  | --oldin | --oldi | --old | --ol | --o)
1077    ac_prev=oldincludedir ;;
1078  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081    oldincludedir=$ac_optarg ;;
1082
1083  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084    ac_prev=prefix ;;
1085  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086    prefix=$ac_optarg ;;
1087
1088  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089  | --program-pre | --program-pr | --program-p)
1090    ac_prev=program_prefix ;;
1091  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093    program_prefix=$ac_optarg ;;
1094
1095  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096  | --program-suf | --program-su | --program-s)
1097    ac_prev=program_suffix ;;
1098  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100    program_suffix=$ac_optarg ;;
1101
1102  -program-transform-name | --program-transform-name \
1103  | --program-transform-nam | --program-transform-na \
1104  | --program-transform-n | --program-transform- \
1105  | --program-transform | --program-transfor \
1106  | --program-transfo | --program-transf \
1107  | --program-trans | --program-tran \
1108  | --progr-tra | --program-tr | --program-t)
1109    ac_prev=program_transform_name ;;
1110  -program-transform-name=* | --program-transform-name=* \
1111  | --program-transform-nam=* | --program-transform-na=* \
1112  | --program-transform-n=* | --program-transform-=* \
1113  | --program-transform=* | --program-transfor=* \
1114  | --program-transfo=* | --program-transf=* \
1115  | --program-trans=* | --program-tran=* \
1116  | --progr-tra=* | --program-tr=* | --program-t=*)
1117    program_transform_name=$ac_optarg ;;
1118
1119  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120    ac_prev=pdfdir ;;
1121  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122    pdfdir=$ac_optarg ;;
1123
1124  -psdir | --psdir | --psdi | --psd | --ps)
1125    ac_prev=psdir ;;
1126  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127    psdir=$ac_optarg ;;
1128
1129  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130  | -silent | --silent | --silen | --sile | --sil)
1131    silent=yes ;;
1132
1133  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134    ac_prev=sbindir ;;
1135  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136  | --sbi=* | --sb=*)
1137    sbindir=$ac_optarg ;;
1138
1139  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141  | --sharedst | --shareds | --shared | --share | --shar \
1142  | --sha | --sh)
1143    ac_prev=sharedstatedir ;;
1144  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147  | --sha=* | --sh=*)
1148    sharedstatedir=$ac_optarg ;;
1149
1150  -site | --site | --sit)
1151    ac_prev=site ;;
1152  -site=* | --site=* | --sit=*)
1153    site=$ac_optarg ;;
1154
1155  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156    ac_prev=srcdir ;;
1157  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158    srcdir=$ac_optarg ;;
1159
1160  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161  | --syscon | --sysco | --sysc | --sys | --sy)
1162    ac_prev=sysconfdir ;;
1163  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165    sysconfdir=$ac_optarg ;;
1166
1167  -target | --target | --targe | --targ | --tar | --ta | --t)
1168    ac_prev=target_alias ;;
1169  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170    target_alias=$ac_optarg ;;
1171
1172  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173    verbose=yes ;;
1174
1175  -version | --version | --versio | --versi | --vers | -V)
1176    ac_init_version=: ;;
1177
1178  -with-* | --with-*)
1179    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180    # Reject names that are not valid shell variable names.
1181    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182      as_fn_error "invalid package name: $ac_useropt"
1183    ac_useropt_orig=$ac_useropt
1184    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185    case $ac_user_opts in
1186      *"
1187"with_$ac_useropt"
1188"*) ;;
1189      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190	 ac_unrecognized_sep=', ';;
1191    esac
1192    eval with_$ac_useropt=\$ac_optarg ;;
1193
1194  -without-* | --without-*)
1195    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196    # Reject names that are not valid shell variable names.
1197    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198      as_fn_error "invalid package name: $ac_useropt"
1199    ac_useropt_orig=$ac_useropt
1200    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201    case $ac_user_opts in
1202      *"
1203"with_$ac_useropt"
1204"*) ;;
1205      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206	 ac_unrecognized_sep=', ';;
1207    esac
1208    eval with_$ac_useropt=no ;;
1209
1210  --x)
1211    # Obsolete; use --with-x.
1212    with_x=yes ;;
1213
1214  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215  | --x-incl | --x-inc | --x-in | --x-i)
1216    ac_prev=x_includes ;;
1217  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219    x_includes=$ac_optarg ;;
1220
1221  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223    ac_prev=x_libraries ;;
1224  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226    x_libraries=$ac_optarg ;;
1227
1228  -*) as_fn_error "unrecognized option: \`$ac_option'
1229Try \`$0 --help' for more information."
1230    ;;
1231
1232  *=*)
1233    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234    # Reject names that are not valid shell variable names.
1235    case $ac_envvar in #(
1236      '' | [0-9]* | *[!_$as_cr_alnum]* )
1237      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238    esac
1239    eval $ac_envvar=\$ac_optarg
1240    export $ac_envvar ;;
1241
1242  *)
1243    # FIXME: should be removed in autoconf 3.0.
1244    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248    ;;
1249
1250  esac
1251done
1252
1253if test -n "$ac_prev"; then
1254  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255  as_fn_error "missing argument to $ac_option"
1256fi
1257
1258if test -n "$ac_unrecognized_opts"; then
1259  case $enable_option_checking in
1260    no) ;;
1261    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263  esac
1264fi
1265
1266# Check all directory arguments for consistency.
1267for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268		datadir sysconfdir sharedstatedir localstatedir includedir \
1269		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270		libdir localedir mandir
1271do
1272  eval ac_val=\$$ac_var
1273  # Remove trailing slashes.
1274  case $ac_val in
1275    */ )
1276      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277      eval $ac_var=\$ac_val;;
1278  esac
1279  # Be sure to have absolute directory names.
1280  case $ac_val in
1281    [\\/$]* | ?:[\\/]* )  continue;;
1282    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283  esac
1284  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1285done
1286
1287# There might be people who depend on the old broken behavior: `$host'
1288# used to hold the argument of --host etc.
1289# FIXME: To remove some day.
1290build=$build_alias
1291host=$host_alias
1292target=$target_alias
1293
1294# FIXME: To remove some day.
1295if test "x$host_alias" != x; then
1296  if test "x$build_alias" = x; then
1297    cross_compiling=maybe
1298    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299    If a cross compiler is detected then cross compile mode will be used." >&2
1300  elif test "x$build_alias" != "x$host_alias"; then
1301    cross_compiling=yes
1302  fi
1303fi
1304
1305ac_tool_prefix=
1306test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308test "$silent" = yes && exec 6>/dev/null
1309
1310
1311ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312ac_ls_di=`ls -di .` &&
1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314  as_fn_error "working directory cannot be determined"
1315test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316  as_fn_error "pwd does not report name of working directory"
1317
1318
1319# Find the source files, if location was not specified.
1320if test -z "$srcdir"; then
1321  ac_srcdir_defaulted=yes
1322  # Try the directory containing this script, then the parent directory.
1323  ac_confdir=`$as_dirname -- "$as_myself" ||
1324$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325	 X"$as_myself" : 'X\(//\)[^/]' \| \
1326	 X"$as_myself" : 'X\(//\)$' \| \
1327	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328$as_echo X"$as_myself" |
1329    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330	    s//\1/
1331	    q
1332	  }
1333	  /^X\(\/\/\)[^/].*/{
1334	    s//\1/
1335	    q
1336	  }
1337	  /^X\(\/\/\)$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\).*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  s/.*/./; q'`
1346  srcdir=$ac_confdir
1347  if test ! -r "$srcdir/$ac_unique_file"; then
1348    srcdir=..
1349  fi
1350else
1351  ac_srcdir_defaulted=no
1352fi
1353if test ! -r "$srcdir/$ac_unique_file"; then
1354  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356fi
1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
1359	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360	pwd)`
1361# When building in place, set srcdir=.
1362if test "$ac_abs_confdir" = "$ac_pwd"; then
1363  srcdir=.
1364fi
1365# Remove unnecessary trailing slashes from srcdir.
1366# Double slashes in file names in object file debugging info
1367# mess up M-x gdb in Emacs.
1368case $srcdir in
1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370esac
1371case $srcdir in
1372  *" "*)
1373    as_fn_error "path to source, $srcdir, contains spaces"
1374    ;;
1375esac
1376ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1377
1378for ac_var in $ac_precious_vars; do
1379  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_env_${ac_var}_value=\$${ac_var}
1381  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
1384
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389  # Omit some internal or obsolete options to make the list less imposing.
1390  # This message is too long to be a string in the A/UX 3.1 sh.
1391  cat <<_ACEOF
1392\`configure' configures this package to adapt to many kinds of systems.
1393
1394Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399Defaults for the options are specified in brackets.
1400
1401Configuration:
1402  -h, --help              display this help and exit
1403      --help=short        display options specific to this package
1404      --help=recursive    display the short help of all the included packages
1405  -V, --version           display version information and exit
1406  -q, --quiet, --silent   do not print \`checking...' messages
1407      --cache-file=FILE   cache test results in FILE [disabled]
1408  -C, --config-cache      alias for \`--cache-file=config.cache'
1409  -n, --no-create         do not create output files
1410      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412Installation directories:
1413  --prefix=PREFIX         install architecture-independent files in PREFIX
1414                          [$ac_default_prefix]
1415  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                          [PREFIX]
1417
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
1422
1423For better control, use the options below.
1424
1425Fine tuning of the installation directories:
1426  --bindir=DIR            user executables [EPREFIX/bin]
1427  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1428  --libexecdir=DIR        program executables [EPREFIX/libexec]
1429  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1430  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1431  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1432  --libdir=DIR            object code libraries [EPREFIX/lib]
1433  --includedir=DIR        C header files [PREFIX/include]
1434  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1435  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1436  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1437  --infodir=DIR           info documentation [DATAROOTDIR/info]
1438  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1439  --mandir=DIR            man documentation [DATAROOTDIR/man]
1440  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1441  --htmldir=DIR           html documentation [DOCDIR]
1442  --dvidir=DIR            dvi documentation [DOCDIR]
1443  --pdfdir=DIR            pdf documentation [DOCDIR]
1444  --psdir=DIR             ps documentation [DOCDIR]
1445_ACEOF
1446
1447  cat <<\_ACEOF
1448
1449Program names:
1450  --program-prefix=PREFIX            prepend PREFIX to installed program names
1451  --program-suffix=SUFFIX            append SUFFIX to installed program names
1452  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
1454System types:
1455  --build=BUILD     configure for building on BUILD [guessed]
1456  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457  --target=TARGET   configure for building compilers for TARGET [HOST]
1458_ACEOF
1459fi
1460
1461if test -n "$ac_init_help"; then
1462
1463  cat <<\_ACEOF
1464
1465Optional Features:
1466  --disable-option-checking  ignore unrecognized --enable/--with options
1467  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469  --enable-as-accelerator-for=ARG
1470                          build as offload target compiler. Specify offload
1471                          host triple by ARG
1472  --enable-offload-targets=LIST
1473                          enable offloading to devices from comma-separated
1474                          LIST of TARGET[=DIR]. Use optional path to find
1475                          offload target compiler during the build
1476  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1477  --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1478  --disable-libquadmath   do not build libquadmath directory
1479  --disable-libquadmath-support
1480                          disable libquadmath support for Fortran
1481  --enable-libada         build libada directory
1482  --enable-libssp         build libssp directory
1483  --disable-libstdcxx     do not build libstdc++-v3 directory
1484  --enable-liboffloadmic=ARG
1485                          build liboffloadmic [ARG={no,host,target}]
1486  --enable-static-libjava[=ARG]
1487                          build static libjava [default=no]
1488  --enable-bootstrap      enable bootstrapping [yes if native build]
1489  --disable-isl-version-check
1490                          disable check for ISL version
1491  --enable-lto            enable link time optimization support
1492  --enable-linker-plugin-configure-flags=FLAGS
1493                          additional flags for configuring linker plugins
1494                          [none]
1495  --enable-linker-plugin-flags=FLAGS
1496                          additional flags for configuring and building linker
1497                          plugins [none]
1498  --enable-stage1-languages[=all]
1499                          choose additional languages to build during stage1.
1500                          Mostly useful for compiler development
1501  --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1502                          Objective-C runtime
1503  --enable-vtable-verify    Enable vtable verification feature
1504  --enable-serial-[{host,target,build}-]configure
1505                          force sequential configuration of sub-packages for
1506                          the host, target or build machine, or all
1507                          sub-packages
1508  --enable-maintainer-mode
1509                          enable make rules and dependencies not useful (and
1510                          sometimes confusing) to the casual installer
1511  --enable-stage1-checking[=all]
1512                          choose additional checking for stage1 of the
1513                          compiler
1514  --enable-werror         enable -Werror in bootstrap stage2 and later
1515  --enable-host-shared    build host code as shared libraries
1516
1517Optional Packages:
1518  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1519  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1520  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1521  --with-mpc=PATH         specify prefix directory for installed MPC package.
1522                          Equivalent to --with-mpc-include=PATH/include plus
1523                          --with-mpc-lib=PATH/lib
1524  --with-mpc-include=PATH specify directory for installed MPC include files
1525  --with-mpc-lib=PATH     specify directory for the installed MPC library
1526  --with-mpfr-dir=PATH    this option has been REMOVED
1527  --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1528                          Equivalent to --with-mpfr-include=PATH/include plus
1529                          --with-mpfr-lib=PATH/lib
1530  --with-mpfr-include=PATH
1531                          specify directory for installed MPFR include files
1532  --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1533  --with-gmp-dir=PATH     this option has been REMOVED
1534  --with-gmp=PATH         specify prefix directory for the installed GMP
1535                          package. Equivalent to
1536                          --with-gmp-include=PATH/include plus
1537                          --with-gmp-lib=PATH/lib
1538  --with-gmp-include=PATH specify directory for installed GMP include files
1539  --with-gmp-lib=PATH     specify directory for the installed GMP library
1540  --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1541                          linking with PPL
1542  --with-stage1-libs=LIBS libraries for stage1
1543  --with-stage1-ldflags=FLAGS
1544                          linker flags for stage1
1545  --with-boot-libs=LIBS   libraries for stage2 and later
1546  --with-boot-ldflags=FLAGS
1547                          linker flags for stage2 and later
1548  --with-isl=PATH         Specify prefix directory for the installed ISL
1549                          package. Equivalent to
1550                          --with-isl-include=PATH/include plus
1551                          --with-isl-lib=PATH/lib
1552  --with-isl-include=PATH Specify directory for installed ISL include files
1553  --with-isl-lib=PATH     Specify the directory for the installed ISL library
1554  --with-build-sysroot=SYSROOT
1555                          use sysroot as the system root during the build
1556  --with-debug-prefix-map='A=B C=D ...'
1557                          map A to B, C to D ... in debug information
1558  --with-build-config='NAME NAME2...'
1559                          use config/NAME.mk build configuration
1560  --with-build-time-tools=PATH
1561                          use given path to find target tools during the build
1562
1563Some influential environment variables:
1564  CC          C compiler command
1565  CFLAGS      C compiler flags
1566  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1567              nonstandard directory <lib dir>
1568  LIBS        libraries to pass to the linker, e.g. -l<library>
1569  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1570              you have headers in a nonstandard directory <include dir>
1571  CXX         C++ compiler command
1572  CXXFLAGS    C++ compiler flags
1573  build_configargs
1574              additional configure arguments for build directories
1575  host_configargs
1576              additional configure arguments for host directories
1577  target_configargs
1578              additional configure arguments for target directories
1579  AR          AR for the host
1580  AS          AS for the host
1581  DLLTOOL     DLLTOOL for the host
1582  LD          LD for the host
1583  LIPO        LIPO for the host
1584  NM          NM for the host
1585  RANLIB      RANLIB for the host
1586  STRIP       STRIP for the host
1587  WINDRES     WINDRES for the host
1588  WINDMC      WINDMC for the host
1589  OBJCOPY     OBJCOPY for the host
1590  OBJDUMP     OBJDUMP for the host
1591  READELF     READELF for the host
1592  CC_FOR_TARGET
1593              CC for the target
1594  CXX_FOR_TARGET
1595              CXX for the target
1596  GCC_FOR_TARGET
1597              GCC for the target
1598  GCJ_FOR_TARGET
1599              GCJ for the target
1600  GFORTRAN_FOR_TARGET
1601              GFORTRAN for the target
1602  GOC_FOR_TARGET
1603              GOC for the target
1604  AR_FOR_TARGET
1605              AR for the target
1606  AS_FOR_TARGET
1607              AS for the target
1608  DLLTOOL_FOR_TARGET
1609              DLLTOOL for the target
1610  LD_FOR_TARGET
1611              LD for the target
1612  LIPO_FOR_TARGET
1613              LIPO for the target
1614  NM_FOR_TARGET
1615              NM for the target
1616  OBJCOPY_FOR_TARGET
1617              OBJCOPY for the target
1618  OBJDUMP_FOR_TARGET
1619              OBJDUMP for the target
1620  RANLIB_FOR_TARGET
1621              RANLIB for the target
1622  READELF_FOR_TARGET
1623              READELF for the target
1624  STRIP_FOR_TARGET
1625              STRIP for the target
1626  WINDRES_FOR_TARGET
1627              WINDRES for the target
1628  WINDMC_FOR_TARGET
1629              WINDMC for the target
1630
1631Use these variables to override the choices made by `configure' or to help
1632it to find libraries and programs with nonstandard names/locations.
1633
1634Report bugs to the package provider.
1635_ACEOF
1636ac_status=$?
1637fi
1638
1639if test "$ac_init_help" = "recursive"; then
1640  # If there are subdirs, report their specific --help.
1641  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642    test -d "$ac_dir" ||
1643      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644      continue
1645    ac_builddir=.
1646
1647case "$ac_dir" in
1648.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649*)
1650  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1651  # A ".." for each directory in $ac_dir_suffix.
1652  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653  case $ac_top_builddir_sub in
1654  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656  esac ;;
1657esac
1658ac_abs_top_builddir=$ac_pwd
1659ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660# for backward compatibility:
1661ac_top_builddir=$ac_top_build_prefix
1662
1663case $srcdir in
1664  .)  # We are building in place.
1665    ac_srcdir=.
1666    ac_top_srcdir=$ac_top_builddir_sub
1667    ac_abs_top_srcdir=$ac_pwd ;;
1668  [\\/]* | ?:[\\/]* )  # Absolute name.
1669    ac_srcdir=$srcdir$ac_dir_suffix;
1670    ac_top_srcdir=$srcdir
1671    ac_abs_top_srcdir=$srcdir ;;
1672  *) # Relative name.
1673    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674    ac_top_srcdir=$ac_top_build_prefix$srcdir
1675    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676esac
1677ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678
1679    cd "$ac_dir" || { ac_status=$?; continue; }
1680    # Check for guested configure.
1681    if test -f "$ac_srcdir/configure.gnu"; then
1682      echo &&
1683      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684    elif test -f "$ac_srcdir/configure"; then
1685      echo &&
1686      $SHELL "$ac_srcdir/configure" --help=recursive
1687    else
1688      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689    fi || ac_status=$?
1690    cd "$ac_pwd" || { ac_status=$?; break; }
1691  done
1692fi
1693
1694test -n "$ac_init_help" && exit $ac_status
1695if $ac_init_version; then
1696  cat <<\_ACEOF
1697configure
1698generated by GNU Autoconf 2.64
1699
1700Copyright (C) 2009 Free Software Foundation, Inc.
1701This configure script is free software; the Free Software Foundation
1702gives unlimited permission to copy, distribute and modify it.
1703_ACEOF
1704  exit
1705fi
1706
1707## ------------------------ ##
1708## Autoconf initialization. ##
1709## ------------------------ ##
1710
1711# ac_fn_c_try_compile LINENO
1712# --------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_compile ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  rm -f conftest.$ac_objext
1718  if { { ac_try="$ac_compile"
1719case "(($ac_try" in
1720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721  *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725  (eval "$ac_compile") 2>conftest.err
1726  ac_status=$?
1727  if test -s conftest.err; then
1728    grep -v '^ *+' conftest.err >conftest.er1
1729    cat conftest.er1 >&5
1730    mv -f conftest.er1 conftest.err
1731  fi
1732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733  test $ac_status = 0; } && {
1734	 test -z "$ac_c_werror_flag" ||
1735	 test ! -s conftest.err
1736       } && test -s conftest.$ac_objext; then :
1737  ac_retval=0
1738else
1739  $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742	ac_retval=1
1743fi
1744  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745  return $ac_retval
1746
1747} # ac_fn_c_try_compile
1748
1749# ac_fn_cxx_try_compile LINENO
1750# ----------------------------
1751# Try to compile conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_cxx_try_compile ()
1753{
1754  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755  rm -f conftest.$ac_objext
1756  if { { ac_try="$ac_compile"
1757case "(($ac_try" in
1758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759  *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763  (eval "$ac_compile") 2>conftest.err
1764  ac_status=$?
1765  if test -s conftest.err; then
1766    grep -v '^ *+' conftest.err >conftest.er1
1767    cat conftest.er1 >&5
1768    mv -f conftest.er1 conftest.err
1769  fi
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; } && {
1772	 test -z "$ac_cxx_werror_flag" ||
1773	 test ! -s conftest.err
1774       } && test -s conftest.$ac_objext; then :
1775  ac_retval=0
1776else
1777  $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780	ac_retval=1
1781fi
1782  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783  return $ac_retval
1784
1785} # ac_fn_cxx_try_compile
1786
1787# ac_fn_cxx_try_link LINENO
1788# -------------------------
1789# Try to link conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_cxx_try_link ()
1791{
1792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793  rm -f conftest.$ac_objext conftest$ac_exeext
1794  if { { ac_try="$ac_link"
1795case "(($ac_try" in
1796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797  *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801  (eval "$ac_link") 2>conftest.err
1802  ac_status=$?
1803  if test -s conftest.err; then
1804    grep -v '^ *+' conftest.err >conftest.er1
1805    cat conftest.er1 >&5
1806    mv -f conftest.er1 conftest.err
1807  fi
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; } && {
1810	 test -z "$ac_cxx_werror_flag" ||
1811	 test ! -s conftest.err
1812       } && test -s conftest$ac_exeext && {
1813	 test "$cross_compiling" = yes ||
1814	 $as_test_x conftest$ac_exeext
1815       }; then :
1816  ac_retval=0
1817else
1818  $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821	ac_retval=1
1822fi
1823  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825  # interfere with the next link command; also delete a directory that is
1826  # left behind by Apple's compiler.  We do this before executing the actions.
1827  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829  return $ac_retval
1830
1831} # ac_fn_cxx_try_link
1832
1833# ac_fn_c_try_link LINENO
1834# -----------------------
1835# Try to link conftest.$ac_ext, and return whether this succeeded.
1836ac_fn_c_try_link ()
1837{
1838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839  rm -f conftest.$ac_objext conftest$ac_exeext
1840  if { { ac_try="$ac_link"
1841case "(($ac_try" in
1842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843  *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847  (eval "$ac_link") 2>conftest.err
1848  ac_status=$?
1849  if test -s conftest.err; then
1850    grep -v '^ *+' conftest.err >conftest.er1
1851    cat conftest.er1 >&5
1852    mv -f conftest.er1 conftest.err
1853  fi
1854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855  test $ac_status = 0; } && {
1856	 test -z "$ac_c_werror_flag" ||
1857	 test ! -s conftest.err
1858       } && test -s conftest$ac_exeext && {
1859	 test "$cross_compiling" = yes ||
1860	 $as_test_x conftest$ac_exeext
1861       }; then :
1862  ac_retval=0
1863else
1864  $as_echo "$as_me: failed program was:" >&5
1865sed 's/^/| /' conftest.$ac_ext >&5
1866
1867	ac_retval=1
1868fi
1869  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871  # interfere with the next link command; also delete a directory that is
1872  # left behind by Apple's compiler.  We do this before executing the actions.
1873  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875  return $ac_retval
1876
1877} # ac_fn_c_try_link
1878cat >config.log <<_ACEOF
1879This file contains any messages produced by compilers while
1880running configure, to aid debugging if configure makes a mistake.
1881
1882It was created by $as_me, which was
1883generated by GNU Autoconf 2.64.  Invocation command line was
1884
1885  $ $0 $@
1886
1887_ACEOF
1888exec 5>>config.log
1889{
1890cat <<_ASUNAME
1891## --------- ##
1892## Platform. ##
1893## --------- ##
1894
1895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1903
1904/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1905/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1907/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1908/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1909/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1910/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1911
1912_ASUNAME
1913
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917  IFS=$as_save_IFS
1918  test -z "$as_dir" && as_dir=.
1919    $as_echo "PATH: $as_dir"
1920  done
1921IFS=$as_save_IFS
1922
1923} >&5
1924
1925cat >&5 <<_ACEOF
1926
1927
1928## ----------- ##
1929## Core tests. ##
1930## ----------- ##
1931
1932_ACEOF
1933
1934
1935# Keep a trace of the command line.
1936# Strip out --no-create and --no-recursion so they do not pile up.
1937# Strip out --silent because we don't want to record it for future runs.
1938# Also quote any args containing shell meta-characters.
1939# Make two passes to allow for proper duplicate-argument suppression.
1940ac_configure_args=
1941ac_configure_args0=
1942ac_configure_args1=
1943ac_must_keep_next=false
1944for ac_pass in 1 2
1945do
1946  for ac_arg
1947  do
1948    case $ac_arg in
1949    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951    | -silent | --silent | --silen | --sile | --sil)
1952      continue ;;
1953    *\'*)
1954      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955    esac
1956    case $ac_pass in
1957    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958    2)
1959      as_fn_append ac_configure_args1 " '$ac_arg'"
1960      if test $ac_must_keep_next = true; then
1961	ac_must_keep_next=false # Got value, back to normal.
1962      else
1963	case $ac_arg in
1964	  *=* | --config-cache | -C | -disable-* | --disable-* \
1965	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967	  | -with-* | --with-* | -without-* | --without-* | --x)
1968	    case "$ac_configure_args0 " in
1969	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970	    esac
1971	    ;;
1972	  -* ) ac_must_keep_next=true ;;
1973	esac
1974      fi
1975      as_fn_append ac_configure_args " '$ac_arg'"
1976      ;;
1977    esac
1978  done
1979done
1980{ ac_configure_args0=; unset ac_configure_args0;}
1981{ ac_configure_args1=; unset ac_configure_args1;}
1982
1983# When interrupted or exit'd, cleanup temporary files, and complete
1984# config.log.  We remove comments because anyway the quotes in there
1985# would cause problems or look ugly.
1986# WARNING: Use '\'' to represent an apostrophe within the trap.
1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988trap 'exit_status=$?
1989  # Save into config.log some information that might help in debugging.
1990  {
1991    echo
1992
1993    cat <<\_ASBOX
1994## ---------------- ##
1995## Cache variables. ##
1996## ---------------- ##
1997_ASBOX
1998    echo
1999    # The following way of writing the cache mishandles newlines in values,
2000(
2001  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002    eval ac_val=\$$ac_var
2003    case $ac_val in #(
2004    *${as_nl}*)
2005      case $ac_var in #(
2006      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008      esac
2009      case $ac_var in #(
2010      _ | IFS | as_nl) ;; #(
2011      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012      *) { eval $ac_var=; unset $ac_var;} ;;
2013      esac ;;
2014    esac
2015  done
2016  (set) 2>&1 |
2017    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018    *${as_nl}ac_space=\ *)
2019      sed -n \
2020	"s/'\''/'\''\\\\'\'''\''/g;
2021	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022      ;; #(
2023    *)
2024      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025      ;;
2026    esac |
2027    sort
2028)
2029    echo
2030
2031    cat <<\_ASBOX
2032## ----------------- ##
2033## Output variables. ##
2034## ----------------- ##
2035_ASBOX
2036    echo
2037    for ac_var in $ac_subst_vars
2038    do
2039      eval ac_val=\$$ac_var
2040      case $ac_val in
2041      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042      esac
2043      $as_echo "$ac_var='\''$ac_val'\''"
2044    done | sort
2045    echo
2046
2047    if test -n "$ac_subst_files"; then
2048      cat <<\_ASBOX
2049## ------------------- ##
2050## File substitutions. ##
2051## ------------------- ##
2052_ASBOX
2053      echo
2054      for ac_var in $ac_subst_files
2055      do
2056	eval ac_val=\$$ac_var
2057	case $ac_val in
2058	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059	esac
2060	$as_echo "$ac_var='\''$ac_val'\''"
2061      done | sort
2062      echo
2063    fi
2064
2065    if test -s confdefs.h; then
2066      cat <<\_ASBOX
2067## ----------- ##
2068## confdefs.h. ##
2069## ----------- ##
2070_ASBOX
2071      echo
2072      cat confdefs.h
2073      echo
2074    fi
2075    test "$ac_signal" != 0 &&
2076      $as_echo "$as_me: caught signal $ac_signal"
2077    $as_echo "$as_me: exit $exit_status"
2078  } >&5
2079  rm -f core *.core core.conftest.* &&
2080    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2081    exit $exit_status
2082' 0
2083for ac_signal in 1 2 13 15; do
2084  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2085done
2086ac_signal=0
2087
2088# confdefs.h avoids OS command line length limits that DEFS can exceed.
2089rm -f -r conftest* confdefs.h
2090
2091$as_echo "/* confdefs.h */" > confdefs.h
2092
2093# Predefined preprocessor variables.
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_NAME "$PACKAGE_NAME"
2097_ACEOF
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2101_ACEOF
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_VERSION "$PACKAGE_VERSION"
2105_ACEOF
2106
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_STRING "$PACKAGE_STRING"
2109_ACEOF
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2113_ACEOF
2114
2115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_URL "$PACKAGE_URL"
2117_ACEOF
2118
2119
2120# Let the site file select an alternate cache file if it wants to.
2121# Prefer an explicitly selected file to automatically selected ones.
2122ac_site_file1=NONE
2123ac_site_file2=NONE
2124if test -n "$CONFIG_SITE"; then
2125  ac_site_file1=$CONFIG_SITE
2126elif test "x$prefix" != xNONE; then
2127  ac_site_file1=$prefix/share/config.site
2128  ac_site_file2=$prefix/etc/config.site
2129else
2130  ac_site_file1=$ac_default_prefix/share/config.site
2131  ac_site_file2=$ac_default_prefix/etc/config.site
2132fi
2133for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134do
2135  test "x$ac_site_file" = xNONE && continue
2136  if test -r "$ac_site_file"; then
2137    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2139    sed 's/^/| /' "$ac_site_file" >&5
2140    . "$ac_site_file"
2141  fi
2142done
2143
2144if test -r "$cache_file"; then
2145  # Some versions of bash will fail to source /dev/null (special
2146  # files actually), so we avoid doing that.
2147  if test -f "$cache_file"; then
2148    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149$as_echo "$as_me: loading cache $cache_file" >&6;}
2150    case $cache_file in
2151      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152      *)                      . "./$cache_file";;
2153    esac
2154  fi
2155else
2156  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157$as_echo "$as_me: creating cache $cache_file" >&6;}
2158  >$cache_file
2159fi
2160
2161# Check that the precious variables saved in the cache have kept the same
2162# value.
2163ac_cache_corrupted=false
2164for ac_var in $ac_precious_vars; do
2165  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2166  eval ac_new_set=\$ac_env_${ac_var}_set
2167  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2168  eval ac_new_val=\$ac_env_${ac_var}_value
2169  case $ac_old_set,$ac_new_set in
2170    set,)
2171      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2172$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2173      ac_cache_corrupted=: ;;
2174    ,set)
2175      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2177      ac_cache_corrupted=: ;;
2178    ,);;
2179    *)
2180      if test "x$ac_old_val" != "x$ac_new_val"; then
2181	# differences in whitespace do not lead to failure.
2182	ac_old_val_w=`echo x $ac_old_val`
2183	ac_new_val_w=`echo x $ac_new_val`
2184	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2185	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2186$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2187	  ac_cache_corrupted=:
2188	else
2189	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2190$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2191	  eval $ac_var=\$ac_old_val
2192	fi
2193	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2194$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2195	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2196$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2197      fi;;
2198  esac
2199  # Pass precious variables to config.status.
2200  if test "$ac_new_set" = set; then
2201    case $ac_new_val in
2202    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2203    *) ac_arg=$ac_var=$ac_new_val ;;
2204    esac
2205    case " $ac_configure_args " in
2206      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2207      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2208    esac
2209  fi
2210done
2211if $ac_cache_corrupted; then
2212  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2215$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2216  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2217fi
2218## -------------------- ##
2219## Main body of script. ##
2220## -------------------- ##
2221
2222ac_ext=c
2223ac_cpp='$CPP $CPPFLAGS'
2224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236progname=$0
2237# if PWD already has a value, it is probably wrong.
2238if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2239
2240# Export original configure arguments for use by sub-configures.
2241# Quote arguments with shell meta charatcers.
2242TOPLEVEL_CONFIGURE_ARGUMENTS=
2243set -- "$progname" "$@"
2244for ac_arg
2245do
2246  case "$ac_arg" in
2247  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2248    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2249    # if the argument is of the form -foo=baz, quote the baz part only
2250    ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2251  *) ;;
2252  esac
2253  # Add the quoted argument to the list.
2254  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2255done
2256if test "$silent" = yes; then
2257  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2258fi
2259# Remove the initial space we just introduced and, as these will be
2260# expanded by make, quote '$'.
2261TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2262
2263
2264# Find the build, host, and target systems.
2265ac_aux_dir=
2266for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2267  for ac_t in install-sh install.sh shtool; do
2268    if test -f "$ac_dir/$ac_t"; then
2269      ac_aux_dir=$ac_dir
2270      ac_install_sh="$SHELL $ac_aux_dir/$ac_t -c"
2271      break 2
2272    fi
2273  done
2274done
2275if test -z "$ac_aux_dir"; then
2276  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2277fi
2278
2279# These three variables are undocumented and unsupported,
2280# and are intended to be withdrawn in a future Autoconf release.
2281# They can cause serious problems if a builder's source tree is in a directory
2282# whose full name contains unusual characters.
2283ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2284ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2285ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2286
2287
2288# Make sure we can run config.sub.
2289$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2290  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2291
2292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2293$as_echo_n "checking build system type... " >&6; }
2294if test "${ac_cv_build+set}" = set; then :
2295  $as_echo_n "(cached) " >&6
2296else
2297  ac_build_alias=$build_alias
2298test "x$ac_build_alias" = x &&
2299  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2300test "x$ac_build_alias" = x &&
2301  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2302ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2303  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2304
2305fi
2306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2307$as_echo "$ac_cv_build" >&6; }
2308case $ac_cv_build in
2309*-*-*) ;;
2310*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2311esac
2312build=$ac_cv_build
2313ac_save_IFS=$IFS; IFS='-'
2314set x $ac_cv_build
2315shift
2316build_cpu=$1
2317build_vendor=$2
2318shift; shift
2319# Remember, the first character of IFS is used to create $*,
2320# except with old shells:
2321build_os=$*
2322IFS=$ac_save_IFS
2323case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2324
2325
2326 case ${build_alias} in
2327  "") build_noncanonical=${build} ;;
2328  *) build_noncanonical=${build_alias} ;;
2329esac
2330
2331
2332
2333 case ${host_alias} in
2334  "") host_noncanonical=${build_noncanonical} ;;
2335  *) host_noncanonical=${host_alias} ;;
2336esac
2337
2338
2339
2340 case ${target_alias} in
2341  "") target_noncanonical=${host_noncanonical} ;;
2342  *) target_noncanonical=${target_alias} ;;
2343esac
2344
2345
2346
2347
2348test "$host_noncanonical" = "$target_noncanonical" &&
2349  test "$program_prefix$program_suffix$program_transform_name" = \
2350    NONENONEs,x,x, &&
2351  program_transform_name=s,y,y,
2352
2353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2354$as_echo_n "checking host system type... " >&6; }
2355if test "${ac_cv_host+set}" = set; then :
2356  $as_echo_n "(cached) " >&6
2357else
2358  if test "x$host_alias" = x; then
2359  ac_cv_host=$ac_cv_build
2360else
2361  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2362    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2363fi
2364
2365fi
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2367$as_echo "$ac_cv_host" >&6; }
2368case $ac_cv_host in
2369*-*-*) ;;
2370*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2371esac
2372host=$ac_cv_host
2373ac_save_IFS=$IFS; IFS='-'
2374set x $ac_cv_host
2375shift
2376host_cpu=$1
2377host_vendor=$2
2378shift; shift
2379# Remember, the first character of IFS is used to create $*,
2380# except with old shells:
2381host_os=$*
2382IFS=$ac_save_IFS
2383case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2384
2385
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2387$as_echo_n "checking target system type... " >&6; }
2388if test "${ac_cv_target+set}" = set; then :
2389  $as_echo_n "(cached) " >&6
2390else
2391  if test "x$target_alias" = x; then
2392  ac_cv_target=$ac_cv_host
2393else
2394  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2395    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2396fi
2397
2398fi
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2400$as_echo "$ac_cv_target" >&6; }
2401case $ac_cv_target in
2402*-*-*) ;;
2403*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2404esac
2405target=$ac_cv_target
2406ac_save_IFS=$IFS; IFS='-'
2407set x $ac_cv_target
2408shift
2409target_cpu=$1
2410target_vendor=$2
2411shift; shift
2412# Remember, the first character of IFS is used to create $*,
2413# except with old shells:
2414target_os=$*
2415IFS=$ac_save_IFS
2416case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2417
2418
2419# The aliases save the names the user supplied, while $host etc.
2420# will get canonicalized.
2421test -n "$target_alias" &&
2422  test "$program_prefix$program_suffix$program_transform_name" = \
2423    NONENONEs,x,x, &&
2424  program_prefix=${target_alias}-
2425
2426test "$program_prefix" != NONE &&
2427  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2428# Use a double $ so make ignores it.
2429test "$program_suffix" != NONE &&
2430  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2431# Double any \ or $.
2432# By default was `s,x,x', remove it if useless.
2433ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2434program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2435
2436
2437
2438# Get 'install' or 'install-sh' and its variants.
2439# Find a good install program.  We prefer a C program (faster),
2440# so one script is as good as another.  But avoid the broken or
2441# incompatible versions:
2442# SysV /etc/install, /usr/sbin/install
2443# SunOS /usr/etc/install
2444# IRIX /sbin/install
2445# AIX /bin/install
2446# AmigaOS /C/install, which installs bootblocks on floppy discs
2447# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2448# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2449# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2450# OS/2's system install, which has a completely different semantic
2451# ./install, which can be erroneously created by make from ./install.sh.
2452# Reject install programs that cannot install multiple files.
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2454$as_echo_n "checking for a BSD-compatible install... " >&6; }
2455if test -z "$INSTALL"; then
2456if test "${ac_cv_path_install+set}" = set; then :
2457  $as_echo_n "(cached) " >&6
2458else
2459  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462  IFS=$as_save_IFS
2463  test -z "$as_dir" && as_dir=.
2464    # Account for people who put trailing slashes in PATH elements.
2465case $as_dir/ in #((
2466  ./ | .// | /[cC]/* | \
2467  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2468  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2469  /usr/ucb/* ) ;;
2470  *)
2471    # OSF1 and SCO ODT 3.0 have their own names for install.
2472    # Don't use installbsd from OSF since it installs stuff as root
2473    # by default.
2474    for ac_prog in ginstall scoinst install; do
2475      for ac_exec_ext in '' $ac_executable_extensions; do
2476	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2477	  if test $ac_prog = install &&
2478	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479	    # AIX install.  It has an incompatible calling convention.
2480	    :
2481	  elif test $ac_prog = install &&
2482	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483	    # program-specific install script used by HP pwplus--don't use.
2484	    :
2485	  else
2486	    rm -rf conftest.one conftest.two conftest.dir
2487	    echo one > conftest.one
2488	    echo two > conftest.two
2489	    mkdir conftest.dir
2490	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2491	      test -s conftest.one && test -s conftest.two &&
2492	      test -s conftest.dir/conftest.one &&
2493	      test -s conftest.dir/conftest.two
2494	    then
2495	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2496	      break 3
2497	    fi
2498	  fi
2499	fi
2500      done
2501    done
2502    ;;
2503esac
2504
2505  done
2506IFS=$as_save_IFS
2507
2508rm -rf conftest.one conftest.two conftest.dir
2509
2510fi
2511  if test "${ac_cv_path_install+set}" = set; then
2512    INSTALL=$ac_cv_path_install
2513  else
2514    # As a last resort, use the slow shell script.  Don't cache a
2515    # value for INSTALL within a source directory, because that will
2516    # break other packages using the cache if that directory is
2517    # removed, or if the value is a relative name.
2518    INSTALL=$ac_install_sh
2519  fi
2520fi
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2522$as_echo "$INSTALL" >&6; }
2523
2524# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2525# It thinks the first close brace ends the variable substitution.
2526test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2527
2528test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2529
2530test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2531
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2533$as_echo_n "checking whether ln works... " >&6; }
2534if test "${acx_cv_prog_LN+set}" = set; then :
2535  $as_echo_n "(cached) " >&6
2536else
2537  rm -f conftestdata_t
2538echo >conftestdata_f
2539if ln conftestdata_f conftestdata_t 2>/dev/null
2540then
2541  acx_cv_prog_LN=ln
2542else
2543  acx_cv_prog_LN=no
2544fi
2545rm -f conftestdata_f conftestdata_t
2546
2547fi
2548if test $acx_cv_prog_LN = no; then
2549  LN="cp"
2550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2551$as_echo "no, using $LN" >&6; }
2552else
2553  LN="$acx_cv_prog_LN"
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2555$as_echo "yes" >&6; }
2556fi
2557
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2559$as_echo_n "checking whether ln -s works... " >&6; }
2560LN_S=$as_ln_s
2561if test "$LN_S" = "ln -s"; then
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2563$as_echo "yes" >&6; }
2564else
2565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2566$as_echo "no, using $LN_S" >&6; }
2567fi
2568
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2570$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2571if test "${ac_cv_path_SED+set}" = set; then :
2572  $as_echo_n "(cached) " >&6
2573else
2574            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2575     for ac_i in 1 2 3 4 5 6 7; do
2576       ac_script="$ac_script$as_nl$ac_script"
2577     done
2578     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2579     { ac_script=; unset ac_script;}
2580     if test -z "$SED"; then
2581  ac_path_SED_found=false
2582  # Loop through the user's path and test for each of PROGNAME-LIST
2583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586  IFS=$as_save_IFS
2587  test -z "$as_dir" && as_dir=.
2588    for ac_prog in sed gsed; do
2589    for ac_exec_ext in '' $ac_executable_extensions; do
2590      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2591      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2592# Check for GNU ac_path_SED and select it if it is found.
2593  # Check for GNU $ac_path_SED
2594case `"$ac_path_SED" --version 2>&1` in
2595*GNU*)
2596  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2597*)
2598  ac_count=0
2599  $as_echo_n 0123456789 >"conftest.in"
2600  while :
2601  do
2602    cat "conftest.in" "conftest.in" >"conftest.tmp"
2603    mv "conftest.tmp" "conftest.in"
2604    cp "conftest.in" "conftest.nl"
2605    $as_echo '' >> "conftest.nl"
2606    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2607    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2608    as_fn_arith $ac_count + 1 && ac_count=$as_val
2609    if test $ac_count -gt ${ac_path_SED_max-0}; then
2610      # Best one so far, save it but keep looking for a better one
2611      ac_cv_path_SED="$ac_path_SED"
2612      ac_path_SED_max=$ac_count
2613    fi
2614    # 10*(2^10) chars as input seems more than enough
2615    test $ac_count -gt 10 && break
2616  done
2617  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2618esac
2619
2620      $ac_path_SED_found && break 3
2621    done
2622  done
2623  done
2624IFS=$as_save_IFS
2625  if test -z "$ac_cv_path_SED"; then
2626    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2627  fi
2628else
2629  ac_cv_path_SED=$SED
2630fi
2631
2632fi
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2634$as_echo "$ac_cv_path_SED" >&6; }
2635 SED="$ac_cv_path_SED"
2636  rm -f conftest.sed
2637
2638for ac_prog in gawk mawk nawk awk
2639do
2640  # Extract the first word of "$ac_prog", so it can be a program name with args.
2641set dummy $ac_prog; ac_word=$2
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643$as_echo_n "checking for $ac_word... " >&6; }
2644if test "${ac_cv_prog_AWK+set}" = set; then :
2645  $as_echo_n "(cached) " >&6
2646else
2647  if test -n "$AWK"; then
2648  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653  IFS=$as_save_IFS
2654  test -z "$as_dir" && as_dir=.
2655    for ac_exec_ext in '' $ac_executable_extensions; do
2656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657    ac_cv_prog_AWK="$ac_prog"
2658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659    break 2
2660  fi
2661done
2662  done
2663IFS=$as_save_IFS
2664
2665fi
2666fi
2667AWK=$ac_cv_prog_AWK
2668if test -n "$AWK"; then
2669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2670$as_echo "$AWK" >&6; }
2671else
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673$as_echo "no" >&6; }
2674fi
2675
2676
2677  test -n "$AWK" && break
2678done
2679
2680
2681srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2682
2683# We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2684# a relative path.
2685if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2686  INSTALL="${srcpwd}/install-sh -c"
2687fi
2688
2689# Set srcdir to "." if that's what it is.
2690# This is important for multilib support.
2691pwd=`${PWDCMD-pwd}`
2692if test "${pwd}" = "${srcpwd}" ; then
2693  srcdir=.
2694fi
2695
2696topsrcdir=$srcpwd
2697
2698extra_host_args=
2699
2700### To add a new directory to the tree, first choose whether it is a target
2701### or a host dependent tool.  Then put it into the appropriate list
2702### (library or tools, host or target), doing a dependency sort.
2703
2704# Subdirs will be configured in the order listed in build_configdirs,
2705# configdirs, or target_configdirs; see the serialization section below.
2706
2707# Dependency sorting is only needed when *configuration* must be done in
2708# a particular order.  In all cases a dependency should be specified in
2709# the Makefile, whether or not it's implicitly specified here.
2710
2711# Double entries in build_configdirs, configdirs, or target_configdirs may
2712# cause circular dependencies and break everything horribly.
2713
2714# these library is used by various programs built for the build
2715# environment
2716#
2717build_libs="build-libiberty build-libcpp"
2718
2719# these tools are built for the build environment
2720build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2721
2722# these libraries are used by various programs built for the host environment
2723#f
2724host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2725
2726# these tools are built for the host environment
2727# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2728# know that we are building the simulator.
2729# binutils, gas and ld appear in that order because it makes sense to run
2730# "make check" in that particular order.
2731# If --enable-gold is used, "gold" may replace "ld".
2732host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2733
2734# libgcj represents the runtime libraries only used by gcj.
2735libgcj="target-libffi \
2736	target-zlib \
2737	target-libjava"
2738
2739# these libraries are built for the target environment, and are built after
2740# the host libraries and the host tools (which may be a cross compiler)
2741# Note that libiberty is not a target library.
2742target_libraries="target-libgcc \
2743		target-libbacktrace \
2744		target-libgloss \
2745		target-newlib \
2746		target-libgomp \
2747		target-libcilkrts \
2748		target-liboffloadmic \
2749		target-libatomic \
2750		target-libitm \
2751		target-libstdc++-v3 \
2752		target-libsanitizer \
2753		target-libvtv \
2754		target-libmpx \
2755		target-libssp \
2756		target-libquadmath \
2757		target-libgfortran \
2758		target-boehm-gc \
2759		${libgcj} \
2760		target-libobjc \
2761		target-libada \
2762		target-libgo"
2763
2764# these tools are built using the target libraries, and are intended to
2765# run only in the target environment
2766#
2767# note: any program that *uses* libraries that are in the "target_libraries"
2768# list belongs in this list.
2769#
2770target_tools="target-rda"
2771
2772################################################################################
2773
2774## All tools belong in one of the four categories, and are assigned above
2775## We assign ${configdirs} this way to remove all embedded newlines.  This
2776## is important because configure will choke if they ever get through.
2777## ${configdirs} is directories we build using the host tools.
2778## ${target_configdirs} is directories we build using the target tools.
2779configdirs=`echo ${host_libs} ${host_tools}`
2780target_configdirs=`echo ${target_libraries} ${target_tools}`
2781build_configdirs=`echo ${build_libs} ${build_tools}`
2782
2783
2784
2785################################################################################
2786
2787srcname="gnu development package"
2788
2789# This gets set non-empty for some net releases of packages.
2790appdirs=""
2791
2792# Define is_cross_compiler to save on calls to 'test'.
2793is_cross_compiler=
2794if test x"${host}" = x"${target}" ; then
2795  is_cross_compiler=no
2796else
2797  is_cross_compiler=yes
2798fi
2799
2800# Find the build and target subdir names.
2801
2802# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2803# have matching libraries, they should use host libraries: Makefile.tpl
2804# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2805# However, they still use the build modules, because the corresponding
2806# host modules (e.g. bison) are only built for the host when bootstrap
2807# finishes. So:
2808# - build_subdir is where we find build modules, and never changes.
2809# - build_libsubdir is where we find build libraries, and can be overridden.
2810
2811# Prefix 'build-' so this never conflicts with target_subdir.
2812build_subdir="build-${build_noncanonical}"
2813
2814# Check whether --with-build-libsubdir was given.
2815if test "${with_build_libsubdir+set}" = set; then :
2816  withval=$with_build_libsubdir; build_libsubdir="$withval"
2817else
2818  build_libsubdir="$build_subdir"
2819fi
2820
2821# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2822if ( test $srcdir = . && test -d gcc ) \
2823   || test -d $srcdir/../host-${host_noncanonical}; then
2824  host_subdir="host-${host_noncanonical}"
2825else
2826  host_subdir=.
2827fi
2828# No prefix.
2829target_subdir=${target_noncanonical}
2830
2831# Be sure to cover against remnants of an in-tree build.
2832if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2833  as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2834Use a pristine source tree when building in a separate tree" "$LINENO" 5
2835fi
2836
2837# Skipdirs are removed silently.
2838skipdirs=
2839# Noconfigdirs are removed loudly.
2840noconfigdirs=""
2841
2842use_gnu_ld=
2843# Make sure we don't let GNU ld be added if we didn't want it.
2844if test x$with_gnu_ld = xno ; then
2845  use_gnu_ld=no
2846  noconfigdirs="$noconfigdirs ld gold"
2847fi
2848
2849use_gnu_as=
2850# Make sure we don't let GNU as be added if we didn't want it.
2851if test x$with_gnu_as = xno ; then
2852  use_gnu_as=no
2853  noconfigdirs="$noconfigdirs gas"
2854fi
2855
2856use_included_zlib=
2857# Make sure we don't let ZLIB be added if we didn't want it.
2858if test x$with_system_zlib = xyes ; then
2859  use_included_zlib=no
2860  noconfigdirs="$noconfigdirs zlib"
2861fi
2862
2863# some tools are so dependent upon X11 that if we're not building with X,
2864# it's not even worth trying to configure, much less build, that tool.
2865
2866case ${with_x} in
2867  yes | "") ;; # the default value for this tree is that X11 is available
2868  no)
2869    skipdirs="${skipdirs} tk itcl libgui"
2870    # We won't be able to build gdbtk without X.
2871    enable_gdbtk=no
2872    ;;
2873  *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2874esac
2875
2876# Some are only suitable for cross toolchains.
2877# Remove these if host=target.
2878cross_only="target-libgloss target-newlib target-opcodes"
2879
2880case $is_cross_compiler in
2881  no) skipdirs="${skipdirs} ${cross_only}" ;;
2882esac
2883
2884# If both --with-headers and --with-libs are specified, default to
2885# --without-newlib.
2886if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2887   && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2888  if test x"${with_newlib}" = x ; then
2889    with_newlib=no
2890  fi
2891fi
2892
2893# Recognize --with-newlib/--without-newlib.
2894case ${with_newlib} in
2895  no) skipdirs="${skipdirs} target-newlib" ;;
2896  yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2897esac
2898
2899# Check whether --enable-as-accelerator-for was given.
2900if test "${enable_as_accelerator_for+set}" = set; then :
2901  enableval=$enable_as_accelerator_for;
2902fi
2903
2904
2905# Check whether --enable-offload-targets was given.
2906if test "${enable_offload_targets+set}" = set; then :
2907  enableval=$enable_offload_targets;
2908  if test x"$enable_offload_targets" = x; then
2909    as_fn_error "no offload targets specified" "$LINENO" 5
2910  fi
2911
2912else
2913  enable_offload_targets=
2914fi
2915
2916
2917# Handle --enable-gold, --enable-ld.
2918# --disable-gold [--enable-ld]
2919#     Build only ld.  Default option.
2920# --enable-gold [--enable-ld]
2921#     Build both gold and ld.  Install gold as "ld.gold", install ld
2922#     as "ld.bfd" and "ld".
2923# --enable-gold=default [--enable-ld]
2924#     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2925#     install ld as "ld.bfd".
2926# --enable-gold[=default] --disable-ld
2927#     Build only gold, which is then installed as both "ld.gold" and "ld".
2928# --enable-gold --enable-ld=default
2929#     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2930#     and ld.bfd).
2931#     In other words, ld is default
2932# --enable-gold=default --enable-ld=default
2933#     Error.
2934
2935default_ld=
2936# Check whether --enable-gold was given.
2937if test "${enable_gold+set}" = set; then :
2938  enableval=$enable_gold; ENABLE_GOLD=$enableval
2939else
2940  ENABLE_GOLD=no
2941fi
2942
2943case "${ENABLE_GOLD}" in
2944  yes|default)
2945    # Check for ELF target.
2946    is_elf=no
2947    case "${target}" in
2948      *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2949      | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2950      | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2951      | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2952        case "${target}" in
2953          *-*-linux*aout* | *-*-linux*oldld*)
2954            ;;
2955          *)
2956            is_elf=yes
2957            ;;
2958        esac
2959    esac
2960
2961    if test "$is_elf" = "yes"; then
2962      # Check for target supported by gold.
2963      case "${target}" in
2964        i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2965        | aarch64*-*-* | tilegx*-*-*)
2966	  configdirs="$configdirs gold"
2967	  if test x${ENABLE_GOLD} = xdefault; then
2968	    default_ld=gold
2969	  fi
2970	  ENABLE_GOLD=yes
2971          ;;
2972      esac
2973    fi
2974    ;;
2975  no)
2976    ;;
2977  *)
2978    as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2979    ;;
2980esac
2981
2982# Check whether --enable-ld was given.
2983if test "${enable_ld+set}" = set; then :
2984  enableval=$enable_ld; ENABLE_LD=$enableval
2985else
2986  ENABLE_LD=yes
2987fi
2988
2989
2990case "${ENABLE_LD}" in
2991  default)
2992    if test x${default_ld} != x; then
2993      as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2994    fi
2995    ;;
2996  yes)
2997    ;;
2998  no)
2999    if test x${ENABLE_GOLD} != xyes; then
3000      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3001$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3002    fi
3003    configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3004    ;;
3005  *)
3006    as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3007    ;;
3008esac
3009
3010# Configure extra directories which are host specific
3011
3012case "${host}" in
3013  *-cygwin*)
3014    configdirs="$configdirs libtermcap" ;;
3015esac
3016
3017# A target can indicate whether a language isn't supported for some reason.
3018# Only spaces may be used in this macro; not newlines or tabs.
3019unsupported_languages=
3020
3021# Remove more programs from consideration, based on the host or
3022# target this usually means that a port of the program doesn't
3023# exist yet.
3024
3025case "${host}" in
3026  i[3456789]86-*-msdosdjgpp*)
3027    noconfigdirs="$noconfigdirs tcl tk itcl"
3028    ;;
3029esac
3030
3031
3032# Check whether --enable-libquadmath was given.
3033if test "${enable_libquadmath+set}" = set; then :
3034  enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3035else
3036  ENABLE_LIBQUADMATH=yes
3037fi
3038
3039if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3040  noconfigdirs="$noconfigdirs target-libquadmath"
3041fi
3042
3043
3044# Check whether --enable-libquadmath-support was given.
3045if test "${enable_libquadmath_support+set}" = set; then :
3046  enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3047else
3048  ENABLE_LIBQUADMATH_SUPPORT=yes
3049fi
3050
3051enable_libquadmath_support=
3052if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3053  enable_libquadmath_support=no
3054fi
3055
3056
3057# Check whether --enable-libada was given.
3058if test "${enable_libada+set}" = set; then :
3059  enableval=$enable_libada; ENABLE_LIBADA=$enableval
3060else
3061  ENABLE_LIBADA=yes
3062fi
3063
3064if test "${ENABLE_LIBADA}" != "yes" ; then
3065  noconfigdirs="$noconfigdirs gnattools"
3066fi
3067
3068# Check whether --enable-libssp was given.
3069if test "${enable_libssp+set}" = set; then :
3070  enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3071else
3072  ENABLE_LIBSSP=yes
3073fi
3074
3075
3076# Check whether --enable-libstdcxx was given.
3077if test "${enable_libstdcxx+set}" = set; then :
3078  enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3079else
3080  ENABLE_LIBSTDCXX=default
3081fi
3082
3083if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3084  noconfigdirs="$noconfigdirs target-libstdc++-v3"
3085fi
3086
3087# If this is accelerator compiler and its target is intelmic we enable
3088# target liboffloadmic by default.  If this is compiler with offloading
3089# for intelmic we enable host liboffloadmic by default.  Otherwise
3090# liboffloadmic is disabled by default.
3091# Check whether --enable-liboffloadmic was given.
3092if test "${enable_liboffloadmic+set}" = set; then :
3093  enableval=$enable_liboffloadmic; case "$enableval" in
3094  no | host | target)
3095    enable_liboffloadmic=$enableval ;;
3096  *)
3097    as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3098esac
3099else
3100  if test x"$enable_as_accelerator_for" != x; then
3101  case "${target}" in
3102    *-intelmic-* | *-intelmicemul-*)
3103      enable_liboffloadmic=target
3104      extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3105      ;;
3106    *)
3107      enable_liboffloadmic=no
3108      ;;
3109  esac
3110else
3111  case "${enable_offload_targets}" in
3112    *-intelmic-* | *-intelmicemul-*)
3113      enable_liboffloadmic=host
3114      extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3115      ;;
3116    *)
3117      enable_liboffloadmic=no
3118      ;;
3119    esac
3120fi
3121fi
3122
3123
3124
3125# Save it here so that, even in case of --enable-libgcj, if the Java
3126# front-end isn't enabled, we still get libgcj disabled.
3127libgcj_saved=$libgcj
3128case $enable_libgcj in
3129yes)
3130  # If we reset it here, it won't get added to noconfigdirs in the
3131  # target-specific build rules, so it will be forcibly enabled
3132  # (unless the Java language itself isn't enabled).
3133  libgcj=
3134  ;;
3135no)
3136  # Make sure we get it printed in the list of not supported target libs.
3137  # Don't disable libffi, though, other languages use it.
3138  noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3139  # Clear libgcj_saved so that even if java is enabled libffi won't be
3140  # built.
3141  libgcj_saved=
3142  ;;
3143esac
3144
3145# Check whether --enable-static-libjava was given.
3146if test "${enable_static_libjava+set}" = set; then :
3147  enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3148else
3149  ENABLE_STATIC_LIBJAVA=no
3150fi
3151
3152enable_static_libjava=
3153if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3154  enable_static_libjava=yes
3155fi
3156
3157if test x$enable_static_libjava != xyes ; then
3158  EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3159fi
3160
3161
3162# Disable libgomp on non POSIX hosted systems.
3163if test x$enable_libgomp = x ; then
3164    # Enable libgomp by default on hosted POSIX systems.
3165    case "${target}" in
3166    *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3167	;;
3168    *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3169	;;
3170    *-*-solaris2* | *-*-hpux11*)
3171	;;
3172    *-*-darwin* | *-*-aix*)
3173	;;
3174    *)
3175	noconfigdirs="$noconfigdirs target-libgomp"
3176	;;
3177    esac
3178fi
3179
3180# Disable libatomic on unsupported systems.
3181if test -d ${srcdir}/libatomic; then
3182    if test x$enable_libatomic = x; then
3183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3184$as_echo_n "checking for libatomic support... " >&6; }
3185	if (srcdir=${srcdir}/libatomic; \
3186		. ${srcdir}/configure.tgt; \
3187		test -n "$UNSUPPORTED")
3188	then
3189	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191	    noconfigdirs="$noconfigdirs target-libatomic"
3192	else
3193	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194$as_echo "yes" >&6; }
3195	fi
3196    fi
3197fi
3198
3199# Disable libcilkrts on unsupported systems.
3200if test -d ${srcdir}/libcilkrts; then
3201    if test x$enable_libcilkrts = x; then
3202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3203$as_echo_n "checking for libcilkrts support... " >&6; }
3204	if (srcdir=${srcdir}/libcilkrts; \
3205		. ${srcdir}/configure.tgt; \
3206		test -n "$UNSUPPORTED")
3207	then
3208	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210	    noconfigdirs="$noconfigdirs target-libcilkrts"
3211	else
3212	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213$as_echo "yes" >&6; }
3214	fi
3215    fi
3216fi
3217
3218# Disable liboffloadmic on unsupported systems.
3219if test -d ${srcdir}/liboffloadmic; then
3220    if test x$enable_liboffloadmic != xno; then
3221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3222$as_echo_n "checking for liboffloadmic support... " >&6; }
3223	if (srcdir=${srcdir}/liboffloadmic; \
3224		. ${srcdir}/configure.tgt; \
3225		test -n "$UNSUPPORTED")
3226	then
3227	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228$as_echo "no" >&6; }
3229	    noconfigdirs="$noconfigdirs target-liboffloadmic"
3230	else
3231	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3232$as_echo "yes" >&6; }
3233	fi
3234    fi
3235fi
3236
3237# Disable libitm on unsupported systems.
3238if test -d ${srcdir}/libitm; then
3239    if test x$enable_libitm = x; then
3240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3241$as_echo_n "checking for libitm support... " >&6; }
3242	if (srcdir=${srcdir}/libitm; \
3243		. ${srcdir}/configure.tgt; \
3244		test -n "$UNSUPPORTED")
3245	then
3246	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247$as_echo "no" >&6; }
3248	    noconfigdirs="$noconfigdirs target-libitm"
3249	else
3250	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251$as_echo "yes" >&6; }
3252	fi
3253    fi
3254fi
3255
3256# Disable libsanitizer on unsupported systems.
3257if test -d ${srcdir}/libsanitizer; then
3258    if test x$enable_libsanitizer = x; then
3259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3260$as_echo_n "checking for libsanitizer support... " >&6; }
3261	if (srcdir=${srcdir}/libsanitizer; \
3262		. ${srcdir}/configure.tgt; \
3263		test -n "$UNSUPPORTED")
3264	then
3265	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
3267	    noconfigdirs="$noconfigdirs target-libsanitizer"
3268	else
3269	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270$as_echo "yes" >&6; }
3271	fi
3272    fi
3273fi
3274
3275# Disable libvtv on unsupported systems.
3276if test -d ${srcdir}/libvtv; then
3277    if test x$enable_libvtv = x; then
3278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3279$as_echo_n "checking for libvtv support... " >&6; }
3280	if (srcdir=${srcdir}/libvtv; \
3281		. ${srcdir}/configure.tgt; \
3282		test "$VTV_SUPPORTED" != "yes")
3283	then
3284	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285$as_echo "no" >&6; }
3286	    noconfigdirs="$noconfigdirs target-libvtv"
3287	else
3288	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289$as_echo "yes" >&6; }
3290	fi
3291    fi
3292fi
3293
3294
3295# Enable libmpx on supported systems by request.
3296if test -d ${srcdir}/libmpx; then
3297    if test x$enable_libmpx = xyes; then
3298       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3299$as_echo_n "checking for libmpx support... " >&6; }
3300       if (srcdir=${srcdir}/libmpx; \
3301               . ${srcdir}/configure.tgt; \
3302               test "$LIBMPX_SUPPORTED" != "yes")
3303       then
3304           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306           noconfigdirs="$noconfigdirs target-libmpx"
3307       else
3308           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309$as_echo "yes" >&6; }
3310       fi
3311    else
3312       noconfigdirs="$noconfigdirs target-libmpx"
3313    fi
3314fi
3315
3316
3317
3318# Disable libquadmath for some systems.
3319case "${target}" in
3320  avr-*-*)
3321    noconfigdirs="$noconfigdirs target-libquadmath"
3322    ;;
3323  # libquadmath is unused on AIX and libquadmath build process use of
3324  # LD_LIBRARY_PATH can break AIX bootstrap.
3325  powerpc-*-aix* | rs6000-*-aix*)
3326    noconfigdirs="$noconfigdirs target-libquadmath"
3327    ;;
3328esac
3329
3330# Disable libssp for some systems.
3331case "${target}" in
3332  avr-*-*)
3333    # No hosted I/O support.
3334    noconfigdirs="$noconfigdirs target-libssp"
3335    ;;
3336  powerpc-*-aix* | rs6000-*-aix*)
3337    noconfigdirs="$noconfigdirs target-libssp"
3338    ;;
3339  rl78-*-*)
3340    # libssp uses a misaligned load to trigger a fault, but the RL78
3341    # doesn't fault for those - instead, it gives a build-time error
3342    # for explicit misaligned loads.
3343    noconfigdirs="$noconfigdirs target-libssp"
3344    ;;
3345  visium-*-*)
3346    # No hosted I/O support.
3347    noconfigdirs="$noconfigdirs target-libssp"
3348    ;;
3349esac
3350
3351# Disable libstdc++-v3 for some systems.
3352# Allow user to override this if they pass --enable-libstdc++-v3
3353if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3354  case "${target}" in
3355    *-*-vxworks*)
3356      # VxWorks uses the Dinkumware C++ library.
3357      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3358      ;;
3359    arm*-wince-pe*)
3360      # the C++ libraries don't build on top of CE's C libraries
3361      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3362      ;;
3363    avr-*-*)
3364      noconfigdirs="$noconfigdirs target-libstdc++-v3"
3365      ;;
3366  esac
3367fi
3368
3369# Disable Fortran for some systems.
3370case "${target}" in
3371  mmix-*-*)
3372    # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3373    unsupported_languages="$unsupported_languages fortran"
3374    ;;
3375esac
3376
3377# Disable Java if libffi is not supported.
3378case "${target}" in
3379  aarch64-*-*)
3380    ;;
3381  alpha*-*-*)
3382    ;;
3383  arm*-*-*)
3384    ;;
3385  cris-*-*)
3386    ;;
3387  frv-*-*)
3388    ;;
3389  hppa*-*-linux*)
3390    ;;
3391  hppa*-*-hpux*)
3392    ;;
3393  i?86-*-*)
3394    ;;
3395  ia64*-*-*)
3396    ;;
3397  m32r*-*-*)
3398    ;;
3399  m68k-*-*)
3400    ;;
3401  mips*-*-rtems*)
3402    ;;
3403  mips*-*-linux*)
3404    ;;
3405  powerpc*-*-linux*)
3406    ;;
3407  powerpc-*-darwin*)
3408    ;;
3409  powerpc-*-aix* | rs6000-*-aix*)
3410    ;;
3411  powerpc-*-freebsd*)
3412    ;;
3413  powerpc64-*-freebsd*)
3414    ;;
3415  powerpc*-*-rtems*)
3416    ;;
3417  s390-*-* | s390x-*-*)
3418    ;;
3419  sh-*-* | sh[34]*-*-*)
3420    ;;
3421  sh64-*-* | sh5*-*-*)
3422    ;;
3423  sparc*-*-*)
3424    ;;
3425  x86_64-*-*)
3426    ;;
3427  *-*-*)
3428    unsupported_languages="$unsupported_languages java"
3429    ;;
3430esac
3431
3432# Disable Java, libgcj or related libraries for some systems.
3433case "${target}" in
3434  powerpc-*-darwin*)
3435    ;;
3436  i[3456789]86-*-darwin*)
3437    ;;
3438  x86_64-*-darwin[912]*)
3439    ;;
3440  *-*-darwin*)
3441    noconfigdirs="$noconfigdirs ${libgcj}"
3442    ;;
3443  *-*-netware*)
3444    noconfigdirs="$noconfigdirs ${libgcj}"
3445    ;;
3446  *-*-rtems*)
3447    noconfigdirs="$noconfigdirs ${libgcj}"
3448    ;;
3449  *-*-tpf*)
3450    noconfigdirs="$noconfigdirs ${libgcj}"
3451    ;;
3452  *-*-uclinux*)
3453    noconfigdirs="$noconfigdirs ${libgcj}"
3454    ;;
3455  *-*-vxworks*)
3456    noconfigdirs="$noconfigdirs ${libgcj}"
3457    ;;
3458  alpha*-*-*vms*)
3459    noconfigdirs="$noconfigdirs ${libgcj}"
3460    ;;
3461  arm*-*-freebsd*)
3462    noconfigdirs="$noconfigdirs ${libgcj}"
3463    ;;
3464  arm-wince-pe)
3465    noconfigdirs="$noconfigdirs ${libgcj}"
3466    ;;
3467  arm*-*-symbianelf*)
3468    noconfigdirs="$noconfigdirs ${libgcj}"
3469    ;;
3470  bfin-*-*)
3471    noconfigdirs="$noconfigdirs target-boehm-gc"
3472    ;;
3473  cris-*-* | crisv32-*-*)
3474    unsupported_languages="$unsupported_languages java"
3475    case "${target}" in
3476      *-*-linux*)
3477	;;
3478      *) # See PR46792 regarding target-libffi.
3479	noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3480    esac
3481    ;;
3482  hppa*64*-*-linux*)
3483    # In this case, it's because the hppa64-linux target is for
3484    # the kernel only at this point and has no libc, and thus no
3485    # headers, crt*.o, etc., all of which are needed by these.
3486    unsupported_languages="$unsupported_languages java"
3487    ;;
3488  hppa*64*-*-hpux*)
3489    noconfigdirs="$noconfigdirs ${libgcj}"
3490    ;;
3491  hppa*-hp-hpux11*)
3492    ;;
3493  hppa*-*-hpux*)
3494    # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3495    # build on HP-UX 10.20.
3496    noconfigdirs="$noconfigdirs ${libgcj}"
3497    ;;
3498  ia64*-*-*vms*)
3499    noconfigdirs="$noconfigdirs ${libgcj}"
3500    ;;
3501  i[3456789]86-w64-mingw*)
3502    noconfigdirs="$noconfigdirs ${libgcj}"
3503    ;;
3504  i[3456789]86-*-mingw*)
3505    noconfigdirs="$noconfigdirs ${libgcj}"
3506    ;;
3507  x86_64-*-mingw*)
3508    noconfigdirs="$noconfigdirs ${libgcj}"
3509    ;;
3510  mmix-*-*)
3511    noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3512    ;;
3513  powerpc-*-aix*)
3514    # copied from rs6000-*-* entry
3515    noconfigdirs="$noconfigdirs ${libgcj}"
3516    ;;
3517  rs6000-*-aix*)
3518    noconfigdirs="$noconfigdirs ${libgcj}"
3519    ;;
3520  *-*-lynxos*)
3521    noconfigdirs="$noconfigdirs ${libgcj}"
3522    ;;
3523esac
3524
3525# Disable the go frontend on systems where it is known to not work. Please keep
3526# this in sync with contrib/config-list.mk.
3527case "${target}" in
3528*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3529    unsupported_languages="$unsupported_languages go"
3530    ;;
3531esac
3532
3533# Disable libgo for some systems where it is known to not work.
3534# For testing, you can easily override this with --enable-libgo.
3535if test x$enable_libgo = x; then
3536    case "${target}" in
3537    *-*-darwin*)
3538	# PR 46986
3539	noconfigdirs="$noconfigdirs target-libgo"
3540	;;
3541    *-*-cygwin* | *-*-mingw*)
3542	noconfigdirs="$noconfigdirs target-libgo"
3543	;;
3544    *-*-aix*)
3545	noconfigdirs="$noconfigdirs target-libgo"
3546	;;
3547    esac
3548fi
3549
3550# Default libgloss CPU subdirectory.
3551libgloss_dir="$target_cpu"
3552
3553case "${target}" in
3554  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3555    libgloss_dir=wince
3556    ;;
3557  aarch64*-*-* )
3558    libgloss_dir=aarch64
3559    ;;
3560  arm*-*-*)
3561    libgloss_dir=arm
3562    ;;
3563  cris-*-* | crisv32-*-*)
3564    libgloss_dir=cris
3565    ;;
3566  hppa*-*-*)
3567    libgloss_dir=pa
3568    ;;
3569  i[3456789]86-*-*)
3570    libgloss_dir=i386
3571    ;;
3572  m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3573    libgloss_dir=m68hc11
3574    ;;
3575  m68*-*-* | fido-*-*)
3576    libgloss_dir=m68k
3577    ;;
3578  mips*-*-*)
3579    libgloss_dir=mips
3580    ;;
3581  powerpc*-*-*)
3582    libgloss_dir=rs6000
3583    ;;
3584  sparc*-*-*)
3585    libgloss_dir=sparc
3586    ;;
3587esac
3588
3589# Disable newlib and libgloss for various target OSes.
3590case "${target}" in
3591  alpha*-dec-osf*)
3592    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593    ;;
3594  i[3456789]86-*-linux*)
3595    # This section makes it possible to build newlib natively on linux.
3596    # If we are using a cross compiler then don't configure newlib.
3597    if test x${is_cross_compiler} != xno ; then
3598      noconfigdirs="$noconfigdirs target-newlib"
3599    fi
3600    noconfigdirs="$noconfigdirs target-libgloss"
3601    # If we are not using a cross compiler, do configure newlib.
3602    # Note however, that newlib will only be configured in this situation
3603    # if the --with-newlib option has been given, because otherwise
3604    # 'target-newlib' will appear in skipdirs.
3605    ;;
3606  i[3456789]86-*-rdos*)
3607    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608    ;;
3609  sh*-*-pe|mips*-*-pe|arm-wince-pe)
3610    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611    ;;
3612  sparc-*-sunos4*)
3613    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614    ;;
3615  *-*-aix*)
3616    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617    ;;
3618  *-*-beos*)
3619    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620    ;;
3621  *-*-chorusos)
3622    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623    ;;
3624  *-*-dragonfly*)
3625    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626    ;;
3627  *-*-freebsd*)
3628    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629    ;;
3630  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3631    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632    ;;
3633  *-*-lynxos*)
3634    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635    ;;
3636  *-*-mingw*)
3637    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638    ;;
3639  *-*-netbsd*)
3640    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641    ;;
3642  *-*-netware*)
3643    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644    ;;
3645  *-*-tpf*)
3646    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647    ;;
3648  *-*-uclinux*)
3649    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650    ;;
3651  *-*-vxworks*)
3652    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653    ;;
3654esac
3655
3656case "${target}" in
3657  *-*-chorusos)
3658    ;;
3659  powerpc-*-darwin*)
3660    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3661    noconfigdirs="$noconfigdirs sim target-rda"
3662    ;;
3663  i[3456789]86-*-darwin*)
3664    noconfigdirs="$noconfigdirs ld gprof"
3665    noconfigdirs="$noconfigdirs sim target-rda"
3666    ;;
3667  x86_64-*-darwin[912]*)
3668    noconfigdirs="$noconfigdirs ld gas gprof"
3669    noconfigdirs="$noconfigdirs sim target-rda"
3670    ;;
3671  *-*-darwin*)
3672    noconfigdirs="$noconfigdirs ld gas gdb gprof"
3673    noconfigdirs="$noconfigdirs sim target-rda"
3674    ;;
3675  *-*-dragonfly*)
3676    ;;
3677  *-*-freebsd*)
3678    if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3679	&& test -f /usr/local/include/gmp.h; then
3680      with_gmp=/usr/local
3681    fi
3682    ;;
3683  *-*-kaos*)
3684    # Remove unsupported stuff on all kaOS configurations.
3685    noconfigdirs="$noconfigdirs target-libgloss"
3686    ;;
3687  *-*-netbsd*)
3688    ;;
3689  *-*-netware*)
3690    ;;
3691  *-*-rtems*)
3692    noconfigdirs="$noconfigdirs target-libgloss"
3693    # this is not caught below because this stanza matches earlier
3694    case $target in
3695      or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3696    esac
3697    ;;
3698    # The tpf target doesn't support gdb yet.
3699  *-*-tpf*)
3700    noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3701    ;;
3702  *-*-uclinux*)
3703    noconfigdirs="$noconfigdirs target-rda"
3704    ;;
3705  *-*-vxworks*)
3706    ;;
3707  alpha*-dec-osf*)
3708    # ld works, but does not support shared libraries.
3709    # gas doesn't generate exception information.
3710    noconfigdirs="$noconfigdirs gas ld"
3711    ;;
3712  alpha*-*-*vms*)
3713    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3714    ;;
3715  alpha*-*-*)
3716    # newlib is not 64 bit ready
3717    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718    ;;
3719  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3720    noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3721    ;;
3722  arc-*-*|arceb-*-*)
3723    noconfigdirs="$noconfigdirs target-libgloss"
3724    ;;
3725  arm-*-pe*)
3726    noconfigdirs="$noconfigdirs target-libgloss"
3727    ;;
3728  arm-*-riscix*)
3729    noconfigdirs="$noconfigdirs ld target-libgloss"
3730    ;;
3731  avr-*-rtems*)
3732    ;;
3733  avr-*-*)
3734    if test x${with_avrlibc} != xno; then
3735      noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736    fi
3737    ;;
3738  c4x-*-* | tic4x-*-*)
3739    noconfigdirs="$noconfigdirs target-libgloss"
3740    ;;
3741  tic54x-*-*)
3742    noconfigdirs="$noconfigdirs target-libgloss gdb"
3743    ;;
3744  d10v-*-*)
3745    noconfigdirs="$noconfigdirs target-libgloss"
3746    ;;
3747  d30v-*-*)
3748    noconfigdirs="$noconfigdirs gdb"
3749    ;;
3750  fr30-*-elf*)
3751    noconfigdirs="$noconfigdirs gdb"
3752    ;;
3753  moxie-*-*)
3754    noconfigdirs="$noconfigdirs gprof"
3755    ;;
3756  h8300*-*-*)
3757    noconfigdirs="$noconfigdirs target-libgloss"
3758    ;;
3759  h8500-*-*)
3760    noconfigdirs="$noconfigdirs target-libgloss"
3761    ;;
3762  hppa1.1-*-osf* | hppa1.1-*-bsd* )
3763    ;;
3764  hppa*64*-*-linux*)
3765    ;;
3766  hppa*-*-linux*)
3767    ;;
3768  hppa*-*-*elf* | \
3769  hppa*-*-lites* | \
3770  hppa*-*-openbsd* | \
3771  hppa*64*-*-*)
3772    ;;
3773  hppa*-hp-hpux11*)
3774    noconfigdirs="$noconfigdirs ld"
3775    ;;
3776  hppa*-*-pro*)
3777    ;;
3778  hppa*-*-*)
3779    noconfigdirs="$noconfigdirs ld"
3780    ;;
3781  i960-*-*)
3782    noconfigdirs="$noconfigdirs gdb"
3783    ;;
3784  ia64*-*-elf*)
3785    # No gdb support yet.
3786    noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3787    ;;
3788  ia64*-**-hpux*)
3789    # No ld support yet.
3790    noconfigdirs="$noconfigdirs libgui itcl ld"
3791    ;;
3792  ia64*-*-*vms*)
3793    # No ld support yet.
3794    noconfigdirs="$noconfigdirs libgui itcl ld"
3795    ;;
3796  i[3456789]86-w64-mingw*)
3797    ;;
3798  i[3456789]86-*-mingw*)
3799    target_configdirs="$target_configdirs target-winsup"
3800    ;;
3801  *-*-cygwin*)
3802    target_configdirs="$target_configdirs target-libtermcap target-winsup"
3803    noconfigdirs="$noconfigdirs target-libgloss"
3804    # always build newlib if winsup directory is present.
3805    if test -d "$srcdir/winsup/cygwin"; then
3806      skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3807    elif test -d "$srcdir/newlib"; then
3808      echo "Warning: winsup/cygwin is missing so newlib can't be built."
3809    fi
3810    ;;
3811  i[3456789]86-*-pe)
3812    noconfigdirs="$noconfigdirs target-libgloss"
3813    ;;
3814  i[3456789]86-*-sco3.2v5*)
3815    # The linker does not yet know about weak symbols in COFF,
3816    # and is not configured to handle mixed ELF and COFF.
3817    noconfigdirs="$noconfigdirs ld target-libgloss"
3818    ;;
3819  i[3456789]86-*-sco*)
3820    noconfigdirs="$noconfigdirs gprof target-libgloss"
3821    ;;
3822  i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3823    noconfigdirs="$noconfigdirs target-libgloss"
3824    ;;
3825  i[3456789]86-*-sysv4*)
3826    noconfigdirs="$noconfigdirs target-libgloss"
3827    ;;
3828  i[3456789]86-*-beos*)
3829    noconfigdirs="$noconfigdirs gdb"
3830    ;;
3831  i[3456789]86-*-rdos*)
3832    noconfigdirs="$noconfigdirs gdb"
3833    ;;
3834  mmix-*-*)
3835    noconfigdirs="$noconfigdirs gdb"
3836    ;;
3837  mt-*-*)
3838    noconfigdirs="$noconfigdirs sim"
3839    ;;
3840  powerpc-*-aix*)
3841    # copied from rs6000-*-* entry
3842    noconfigdirs="$noconfigdirs gprof"
3843    ;;
3844  powerpc*-*-winnt* | powerpc*-*-pe*)
3845    target_configdirs="$target_configdirs target-winsup"
3846    noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3847    # always build newlib.
3848    skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3849    ;;
3850    # This is temporary until we can link against shared libraries
3851  powerpcle-*-solaris*)
3852    noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3853    ;;
3854  powerpc-*-beos*)
3855    noconfigdirs="$noconfigdirs gdb"
3856    ;;
3857  rs6000-*-lynxos*)
3858    noconfigdirs="$noconfigdirs gprof"
3859    ;;
3860  rs6000-*-aix*)
3861    noconfigdirs="$noconfigdirs gprof"
3862    ;;
3863  rs6000-*-*)
3864    noconfigdirs="$noconfigdirs gprof"
3865    ;;
3866  m68k-apollo-*)
3867    noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3868    ;;
3869  microblaze*)
3870    noconfigdirs="$noconfigdirs gprof"
3871    ;;
3872  mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3873    if test x$with_newlib = xyes; then
3874      noconfigdirs="$noconfigdirs gprof"
3875    fi
3876    ;;
3877  mips*-*-irix5*)
3878    noconfigdirs="$noconfigdirs gprof target-libgloss"
3879    ;;
3880  mips*-*-irix6*)
3881    noconfigdirs="$noconfigdirs gprof target-libgloss"
3882    ;;
3883  mips*-*-bsd*)
3884    noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3885    ;;
3886  mips*-*-linux*)
3887    ;;
3888  mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3889  | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3890    noconfigdirs="$noconfigdirs ld gas gprof"
3891    ;;
3892  mips*-*-*)
3893    noconfigdirs="$noconfigdirs gprof"
3894    ;;
3895  nds32*-*-*)
3896    noconfigdirs="$noconfigdirs gdb"
3897    ;;
3898  nvptx*-*-*)
3899    # nvptx is just a compiler
3900    noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3901    ;;
3902  or1k*-*-*)
3903    noconfigdirs="$noconfigdirs gdb"
3904    ;;
3905  sh-*-* | sh64-*-*)
3906    case "${target}" in
3907      sh*-*-elf)
3908         ;;
3909      *)
3910         noconfigdirs="$noconfigdirs target-libgloss" ;;
3911    esac
3912    ;;
3913  sparc-*-sunos4*)
3914    if test x${is_cross_compiler} = xno ; then
3915           use_gnu_ld=no
3916    fi
3917    ;;
3918  tic6x-*-*)
3919    noconfigdirs="$noconfigdirs sim"
3920    ;;
3921  tilepro*-*-* | tilegx*-*-*)
3922    noconfigdirs="$noconfigdirs sim"
3923    ;;
3924  v810-*-*)
3925    noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3926    ;;
3927  vax-*-*)
3928    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3929    ;;
3930esac
3931
3932# If we aren't building newlib, then don't build libgloss, since libgloss
3933# depends upon some newlib header files.
3934case "${noconfigdirs}" in
3935  *target-libgloss*) ;;
3936  *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3937esac
3938
3939# Work in distributions that contain no compiler tools, like Autoconf.
3940host_makefile_frag=/dev/null
3941if test -d ${srcdir}/config ; then
3942case "${host}" in
3943  i[3456789]86-*-msdosdjgpp*)
3944    host_makefile_frag="config/mh-djgpp"
3945    ;;
3946  *-cygwin*)
3947
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3949$as_echo_n "checking to see if cat works as expected... " >&6; }
3950echo a >cygwin-cat-check
3951if test `cat cygwin-cat-check` = a ; then
3952  rm cygwin-cat-check
3953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954$as_echo "yes" >&6; }
3955else
3956  rm cygwin-cat-check
3957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958$as_echo "no" >&6; }
3959  as_fn_error "The cat command does not ignore carriage return characters.
3960  Please either mount the build directory in binary mode or run the following
3961  commands before running any configure script:
3962set -o igncr
3963export SHELLOPTS
3964  " "$LINENO" 5
3965fi
3966
3967    host_makefile_frag="config/mh-cygwin"
3968    ;;
3969  *-mingw*)
3970    host_makefile_frag="config/mh-mingw"
3971    ;;
3972  alpha*-linux*)
3973    host_makefile_frag="config/mh-alpha-linux"
3974    ;;
3975  hppa*-hp-hpux10*)
3976    host_makefile_frag="config/mh-pa-hpux10"
3977    ;;
3978  hppa*-hp-hpux*)
3979    host_makefile_frag="config/mh-pa"
3980    ;;
3981  hppa*-*)
3982    host_makefile_frag="config/mh-pa"
3983    ;;
3984  *-*-darwin*)
3985    host_makefile_frag="config/mh-darwin"
3986    ;;
3987  powerpc-*-aix*)
3988    host_makefile_frag="config/mh-ppc-aix"
3989    ;;
3990  rs6000-*-aix*)
3991    host_makefile_frag="config/mh-ppc-aix"
3992    ;;
3993esac
3994fi
3995
3996if test "${build}" != "${host}" ; then
3997  AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3998  AS_FOR_BUILD=${AS_FOR_BUILD-as}
3999  CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4000  CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4001  GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4002  GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4003  GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4004  DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4005  LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4006  NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4007  RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4008  WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4009  WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4010else
4011  AR_FOR_BUILD="\$(AR)"
4012  AS_FOR_BUILD="\$(AS)"
4013  CC_FOR_BUILD="\$(CC)"
4014  CXX_FOR_BUILD="\$(CXX)"
4015  GCJ_FOR_BUILD="\$(GCJ)"
4016  GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4017  GOC_FOR_BUILD="\$(GOC)"
4018  DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4019  LD_FOR_BUILD="\$(LD)"
4020  NM_FOR_BUILD="\$(NM)"
4021  RANLIB_FOR_BUILD="\$(RANLIB)"
4022  WINDRES_FOR_BUILD="\$(WINDRES)"
4023  WINDMC_FOR_BUILD="\$(WINDMC)"
4024fi
4025
4026ac_ext=c
4027ac_cpp='$CPP $CPPFLAGS'
4028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4030ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031if test -n "$ac_tool_prefix"; then
4032  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4033set dummy ${ac_tool_prefix}gcc; ac_word=$2
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035$as_echo_n "checking for $ac_word... " >&6; }
4036if test "${ac_cv_prog_CC+set}" = set; then :
4037  $as_echo_n "(cached) " >&6
4038else
4039  if test -n "$CC"; then
4040  ac_cv_prog_CC="$CC" # Let the user override the test.
4041else
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047    for ac_exec_ext in '' $ac_executable_extensions; do
4048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051    break 2
4052  fi
4053done
4054  done
4055IFS=$as_save_IFS
4056
4057fi
4058fi
4059CC=$ac_cv_prog_CC
4060if test -n "$CC"; then
4061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4062$as_echo "$CC" >&6; }
4063else
4064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
4066fi
4067
4068
4069fi
4070if test -z "$ac_cv_prog_CC"; then
4071  ac_ct_CC=$CC
4072  # Extract the first word of "gcc", so it can be a program name with args.
4073set dummy gcc; ac_word=$2
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075$as_echo_n "checking for $ac_word... " >&6; }
4076if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4077  $as_echo_n "(cached) " >&6
4078else
4079  if test -n "$ac_ct_CC"; then
4080  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085  IFS=$as_save_IFS
4086  test -z "$as_dir" && as_dir=.
4087    for ac_exec_ext in '' $ac_executable_extensions; do
4088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089    ac_cv_prog_ac_ct_CC="gcc"
4090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091    break 2
4092  fi
4093done
4094  done
4095IFS=$as_save_IFS
4096
4097fi
4098fi
4099ac_ct_CC=$ac_cv_prog_ac_ct_CC
4100if test -n "$ac_ct_CC"; then
4101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4102$as_echo "$ac_ct_CC" >&6; }
4103else
4104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105$as_echo "no" >&6; }
4106fi
4107
4108  if test "x$ac_ct_CC" = x; then
4109    CC=""
4110  else
4111    case $cross_compiling:$ac_tool_warned in
4112yes:)
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4115ac_tool_warned=yes ;;
4116esac
4117    CC=$ac_ct_CC
4118  fi
4119else
4120  CC="$ac_cv_prog_CC"
4121fi
4122
4123if test -z "$CC"; then
4124          if test -n "$ac_tool_prefix"; then
4125    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4126set dummy ${ac_tool_prefix}cc; ac_word=$2
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128$as_echo_n "checking for $ac_word... " >&6; }
4129if test "${ac_cv_prog_CC+set}" = set; then :
4130  $as_echo_n "(cached) " >&6
4131else
4132  if test -n "$CC"; then
4133  ac_cv_prog_CC="$CC" # Let the user override the test.
4134else
4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH
4137do
4138  IFS=$as_save_IFS
4139  test -z "$as_dir" && as_dir=.
4140    for ac_exec_ext in '' $ac_executable_extensions; do
4141  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142    ac_cv_prog_CC="${ac_tool_prefix}cc"
4143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144    break 2
4145  fi
4146done
4147  done
4148IFS=$as_save_IFS
4149
4150fi
4151fi
4152CC=$ac_cv_prog_CC
4153if test -n "$CC"; then
4154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4155$as_echo "$CC" >&6; }
4156else
4157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158$as_echo "no" >&6; }
4159fi
4160
4161
4162  fi
4163fi
4164if test -z "$CC"; then
4165  # Extract the first word of "cc", so it can be a program name with args.
4166set dummy cc; ac_word=$2
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168$as_echo_n "checking for $ac_word... " >&6; }
4169if test "${ac_cv_prog_CC+set}" = set; then :
4170  $as_echo_n "(cached) " >&6
4171else
4172  if test -n "$CC"; then
4173  ac_cv_prog_CC="$CC" # Let the user override the test.
4174else
4175  ac_prog_rejected=no
4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179  IFS=$as_save_IFS
4180  test -z "$as_dir" && as_dir=.
4181    for ac_exec_ext in '' $ac_executable_extensions; do
4182  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4184       ac_prog_rejected=yes
4185       continue
4186     fi
4187    ac_cv_prog_CC="cc"
4188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189    break 2
4190  fi
4191done
4192  done
4193IFS=$as_save_IFS
4194
4195if test $ac_prog_rejected = yes; then
4196  # We found a bogon in the path, so make sure we never use it.
4197  set dummy $ac_cv_prog_CC
4198  shift
4199  if test $# != 0; then
4200    # We chose a different compiler from the bogus one.
4201    # However, it has the same basename, so the bogon will be chosen
4202    # first if we set CC to just the basename; use the full file name.
4203    shift
4204    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4205  fi
4206fi
4207fi
4208fi
4209CC=$ac_cv_prog_CC
4210if test -n "$CC"; then
4211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212$as_echo "$CC" >&6; }
4213else
4214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215$as_echo "no" >&6; }
4216fi
4217
4218
4219fi
4220if test -z "$CC"; then
4221  if test -n "$ac_tool_prefix"; then
4222  for ac_prog in cl.exe
4223  do
4224    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227$as_echo_n "checking for $ac_word... " >&6; }
4228if test "${ac_cv_prog_CC+set}" = set; then :
4229  $as_echo_n "(cached) " >&6
4230else
4231  if test -n "$CC"; then
4232  ac_cv_prog_CC="$CC" # Let the user override the test.
4233else
4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237  IFS=$as_save_IFS
4238  test -z "$as_dir" && as_dir=.
4239    for ac_exec_ext in '' $ac_executable_extensions; do
4240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243    break 2
4244  fi
4245done
4246  done
4247IFS=$as_save_IFS
4248
4249fi
4250fi
4251CC=$ac_cv_prog_CC
4252if test -n "$CC"; then
4253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4254$as_echo "$CC" >&6; }
4255else
4256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
4258fi
4259
4260
4261    test -n "$CC" && break
4262  done
4263fi
4264if test -z "$CC"; then
4265  ac_ct_CC=$CC
4266  for ac_prog in cl.exe
4267do
4268  # Extract the first word of "$ac_prog", so it can be a program name with args.
4269set dummy $ac_prog; ac_word=$2
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271$as_echo_n "checking for $ac_word... " >&6; }
4272if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4273  $as_echo_n "(cached) " >&6
4274else
4275  if test -n "$ac_ct_CC"; then
4276  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4277else
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281  IFS=$as_save_IFS
4282  test -z "$as_dir" && as_dir=.
4283    for ac_exec_ext in '' $ac_executable_extensions; do
4284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285    ac_cv_prog_ac_ct_CC="$ac_prog"
4286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287    break 2
4288  fi
4289done
4290  done
4291IFS=$as_save_IFS
4292
4293fi
4294fi
4295ac_ct_CC=$ac_cv_prog_ac_ct_CC
4296if test -n "$ac_ct_CC"; then
4297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4298$as_echo "$ac_ct_CC" >&6; }
4299else
4300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301$as_echo "no" >&6; }
4302fi
4303
4304
4305  test -n "$ac_ct_CC" && break
4306done
4307
4308  if test "x$ac_ct_CC" = x; then
4309    CC=""
4310  else
4311    case $cross_compiling:$ac_tool_warned in
4312yes:)
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4315ac_tool_warned=yes ;;
4316esac
4317    CC=$ac_ct_CC
4318  fi
4319fi
4320
4321fi
4322
4323
4324test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326as_fn_error "no acceptable C compiler found in \$PATH
4327See \`config.log' for more details." "$LINENO" 5; }
4328
4329# Provide some information about the compiler.
4330$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4331set X $ac_compile
4332ac_compiler=$2
4333for ac_option in --version -v -V -qversion; do
4334  { { ac_try="$ac_compiler $ac_option >&5"
4335case "(($ac_try" in
4336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337  *) ac_try_echo=$ac_try;;
4338esac
4339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340$as_echo "$ac_try_echo"; } >&5
4341  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4342  ac_status=$?
4343  if test -s conftest.err; then
4344    sed '10a\
4345... rest of stderr output deleted ...
4346         10q' conftest.err >conftest.er1
4347    cat conftest.er1 >&5
4348    rm -f conftest.er1 conftest.err
4349  fi
4350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351  test $ac_status = 0; }
4352done
4353
4354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355/* end confdefs.h.  */
4356
4357int
4358main ()
4359{
4360
4361  ;
4362  return 0;
4363}
4364_ACEOF
4365ac_clean_files_save=$ac_clean_files
4366ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4367# Try to create an executable without -o first, disregard a.out.
4368# It will help us diagnose broken compilers, and finding out an intuition
4369# of exeext.
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4371$as_echo_n "checking for C compiler default output file name... " >&6; }
4372ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4373
4374# The possible output files:
4375ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4376
4377ac_rmfiles=
4378for ac_file in $ac_files
4379do
4380  case $ac_file in
4381    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4382    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4383  esac
4384done
4385rm -f $ac_rmfiles
4386
4387if { { ac_try="$ac_link_default"
4388case "(($ac_try" in
4389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390  *) ac_try_echo=$ac_try;;
4391esac
4392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393$as_echo "$ac_try_echo"; } >&5
4394  (eval "$ac_link_default") 2>&5
4395  ac_status=$?
4396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397  test $ac_status = 0; }; then :
4398  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4399# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4400# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4401# so that the user can short-circuit this test for compilers unknown to
4402# Autoconf.
4403for ac_file in $ac_files ''
4404do
4405  test -f "$ac_file" || continue
4406  case $ac_file in
4407    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4408	;;
4409    [ab].out )
4410	# We found the default executable, but exeext='' is most
4411	# certainly right.
4412	break;;
4413    *.* )
4414	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4415	then :; else
4416	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4417	fi
4418	# We set ac_cv_exeext here because the later test for it is not
4419	# safe: cross compilers may not add the suffix if given an `-o'
4420	# argument, so we may need to know it at that point already.
4421	# Even if this section looks crufty: it has the advantage of
4422	# actually working.
4423	break;;
4424    * )
4425	break;;
4426  esac
4427done
4428test "$ac_cv_exeext" = no && ac_cv_exeext=
4429
4430else
4431  ac_file=''
4432fi
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4434$as_echo "$ac_file" >&6; }
4435if test -z "$ac_file"; then :
4436  $as_echo "$as_me: failed program was:" >&5
4437sed 's/^/| /' conftest.$ac_ext >&5
4438
4439{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441{ as_fn_set_status 77
4442as_fn_error "C compiler cannot create executables
4443See \`config.log' for more details." "$LINENO" 5; }; }
4444fi
4445ac_exeext=$ac_cv_exeext
4446
4447# Check that the compiler produces executables we can run.  If not, either
4448# the compiler is broken, or we cross compile.
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4450$as_echo_n "checking whether the C compiler works... " >&6; }
4451# If not cross compiling, check that we can run a simple program.
4452if test "$cross_compiling" != yes; then
4453  if { ac_try='./$ac_file'
4454  { { case "(($ac_try" in
4455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456  *) ac_try_echo=$ac_try;;
4457esac
4458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459$as_echo "$ac_try_echo"; } >&5
4460  (eval "$ac_try") 2>&5
4461  ac_status=$?
4462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4463  test $ac_status = 0; }; }; then
4464    cross_compiling=no
4465  else
4466    if test "$cross_compiling" = maybe; then
4467	cross_compiling=yes
4468    else
4469	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4471as_fn_error "cannot run C compiled programs.
4472If you meant to cross compile, use \`--host'.
4473See \`config.log' for more details." "$LINENO" 5; }
4474    fi
4475  fi
4476fi
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4478$as_echo "yes" >&6; }
4479
4480rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4481ac_clean_files=$ac_clean_files_save
4482# Check that the compiler produces executables we can run.  If not, either
4483# the compiler is broken, or we cross compile.
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4485$as_echo_n "checking whether we are cross compiling... " >&6; }
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4487$as_echo "$cross_compiling" >&6; }
4488
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4490$as_echo_n "checking for suffix of executables... " >&6; }
4491if { { ac_try="$ac_link"
4492case "(($ac_try" in
4493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494  *) ac_try_echo=$ac_try;;
4495esac
4496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4497$as_echo "$ac_try_echo"; } >&5
4498  (eval "$ac_link") 2>&5
4499  ac_status=$?
4500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4501  test $ac_status = 0; }; then :
4502  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4503# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4504# work properly (i.e., refer to `conftest.exe'), while it won't with
4505# `rm'.
4506for ac_file in conftest.exe conftest conftest.*; do
4507  test -f "$ac_file" || continue
4508  case $ac_file in
4509    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4510    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4511	  break;;
4512    * ) break;;
4513  esac
4514done
4515else
4516  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4518as_fn_error "cannot compute suffix of executables: cannot compile and link
4519See \`config.log' for more details." "$LINENO" 5; }
4520fi
4521rm -f conftest$ac_cv_exeext
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4523$as_echo "$ac_cv_exeext" >&6; }
4524
4525rm -f conftest.$ac_ext
4526EXEEXT=$ac_cv_exeext
4527ac_exeext=$EXEEXT
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4529$as_echo_n "checking for suffix of object files... " >&6; }
4530if test "${ac_cv_objext+set}" = set; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h.  */
4535
4536int
4537main ()
4538{
4539
4540  ;
4541  return 0;
4542}
4543_ACEOF
4544rm -f conftest.o conftest.obj
4545if { { ac_try="$ac_compile"
4546case "(($ac_try" in
4547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548  *) ac_try_echo=$ac_try;;
4549esac
4550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4551$as_echo "$ac_try_echo"; } >&5
4552  (eval "$ac_compile") 2>&5
4553  ac_status=$?
4554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555  test $ac_status = 0; }; then :
4556  for ac_file in conftest.o conftest.obj conftest.*; do
4557  test -f "$ac_file" || continue;
4558  case $ac_file in
4559    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4560    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4561       break;;
4562  esac
4563done
4564else
4565  $as_echo "$as_me: failed program was:" >&5
4566sed 's/^/| /' conftest.$ac_ext >&5
4567
4568{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4570as_fn_error "cannot compute suffix of object files: cannot compile
4571See \`config.log' for more details." "$LINENO" 5; }
4572fi
4573rm -f conftest.$ac_cv_objext conftest.$ac_ext
4574fi
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4576$as_echo "$ac_cv_objext" >&6; }
4577OBJEXT=$ac_cv_objext
4578ac_objext=$OBJEXT
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4580$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4581if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4582  $as_echo_n "(cached) " >&6
4583else
4584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h.  */
4586
4587int
4588main ()
4589{
4590#ifndef __GNUC__
4591       choke me
4592#endif
4593
4594  ;
4595  return 0;
4596}
4597_ACEOF
4598if ac_fn_c_try_compile "$LINENO"; then :
4599  ac_compiler_gnu=yes
4600else
4601  ac_compiler_gnu=no
4602fi
4603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604ac_cv_c_compiler_gnu=$ac_compiler_gnu
4605
4606fi
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4608$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4609if test $ac_compiler_gnu = yes; then
4610  GCC=yes
4611else
4612  GCC=
4613fi
4614ac_test_CFLAGS=${CFLAGS+set}
4615ac_save_CFLAGS=$CFLAGS
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4617$as_echo_n "checking whether $CC accepts -g... " >&6; }
4618if test "${ac_cv_prog_cc_g+set}" = set; then :
4619  $as_echo_n "(cached) " >&6
4620else
4621  ac_save_c_werror_flag=$ac_c_werror_flag
4622   ac_c_werror_flag=yes
4623   ac_cv_prog_cc_g=no
4624   CFLAGS="-g"
4625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626/* end confdefs.h.  */
4627
4628int
4629main ()
4630{
4631
4632  ;
4633  return 0;
4634}
4635_ACEOF
4636if ac_fn_c_try_compile "$LINENO"; then :
4637  ac_cv_prog_cc_g=yes
4638else
4639  CFLAGS=""
4640      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641/* end confdefs.h.  */
4642
4643int
4644main ()
4645{
4646
4647  ;
4648  return 0;
4649}
4650_ACEOF
4651if ac_fn_c_try_compile "$LINENO"; then :
4652
4653else
4654  ac_c_werror_flag=$ac_save_c_werror_flag
4655	 CFLAGS="-g"
4656	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657/* end confdefs.h.  */
4658
4659int
4660main ()
4661{
4662
4663  ;
4664  return 0;
4665}
4666_ACEOF
4667if ac_fn_c_try_compile "$LINENO"; then :
4668  ac_cv_prog_cc_g=yes
4669fi
4670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671fi
4672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673fi
4674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675   ac_c_werror_flag=$ac_save_c_werror_flag
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4678$as_echo "$ac_cv_prog_cc_g" >&6; }
4679if test "$ac_test_CFLAGS" = set; then
4680  CFLAGS=$ac_save_CFLAGS
4681elif test $ac_cv_prog_cc_g = yes; then
4682  if test "$GCC" = yes; then
4683    CFLAGS="-g -O2"
4684  else
4685    CFLAGS="-g"
4686  fi
4687else
4688  if test "$GCC" = yes; then
4689    CFLAGS="-O2"
4690  else
4691    CFLAGS=
4692  fi
4693fi
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4695$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4696if test "${ac_cv_prog_cc_c89+set}" = set; then :
4697  $as_echo_n "(cached) " >&6
4698else
4699  ac_cv_prog_cc_c89=no
4700ac_save_CC=$CC
4701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702/* end confdefs.h.  */
4703#include <stdarg.h>
4704#include <stdio.h>
4705#include <sys/types.h>
4706#include <sys/stat.h>
4707/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4708struct buf { int x; };
4709FILE * (*rcsopen) (struct buf *, struct stat *, int);
4710static char *e (p, i)
4711     char **p;
4712     int i;
4713{
4714  return p[i];
4715}
4716static char *f (char * (*g) (char **, int), char **p, ...)
4717{
4718  char *s;
4719  va_list v;
4720  va_start (v,p);
4721  s = g (p, va_arg (v,int));
4722  va_end (v);
4723  return s;
4724}
4725
4726/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4727   function prototypes and stuff, but not '\xHH' hex character constants.
4728   These don't provoke an error unfortunately, instead are silently treated
4729   as 'x'.  The following induces an error, until -std is added to get
4730   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4731   array size at least.  It's necessary to write '\x00'==0 to get something
4732   that's true only with -std.  */
4733int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4734
4735/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4736   inside strings and character constants.  */
4737#define FOO(x) 'x'
4738int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4739
4740int test (int i, double x);
4741struct s1 {int (*f) (int a);};
4742struct s2 {int (*f) (double a);};
4743int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4744int argc;
4745char **argv;
4746int
4747main ()
4748{
4749return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4750  ;
4751  return 0;
4752}
4753_ACEOF
4754for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4755	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4756do
4757  CC="$ac_save_CC $ac_arg"
4758  if ac_fn_c_try_compile "$LINENO"; then :
4759  ac_cv_prog_cc_c89=$ac_arg
4760fi
4761rm -f core conftest.err conftest.$ac_objext
4762  test "x$ac_cv_prog_cc_c89" != "xno" && break
4763done
4764rm -f conftest.$ac_ext
4765CC=$ac_save_CC
4766
4767fi
4768# AC_CACHE_VAL
4769case "x$ac_cv_prog_cc_c89" in
4770  x)
4771    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4772$as_echo "none needed" >&6; } ;;
4773  xno)
4774    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4775$as_echo "unsupported" >&6; } ;;
4776  *)
4777    CC="$CC $ac_cv_prog_cc_c89"
4778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4779$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4780esac
4781if test "x$ac_cv_prog_cc_c89" != xno; then :
4782
4783fi
4784
4785ac_ext=c
4786ac_cpp='$CPP $CPPFLAGS'
4787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790
4791ac_ext=cpp
4792ac_cpp='$CXXCPP $CPPFLAGS'
4793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796if test -z "$CXX"; then
4797  if test -n "$CCC"; then
4798    CXX=$CCC
4799  else
4800    if test -n "$ac_tool_prefix"; then
4801  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4802  do
4803    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806$as_echo_n "checking for $ac_word... " >&6; }
4807if test "${ac_cv_prog_CXX+set}" = set; then :
4808  $as_echo_n "(cached) " >&6
4809else
4810  if test -n "$CXX"; then
4811  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4812else
4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816  IFS=$as_save_IFS
4817  test -z "$as_dir" && as_dir=.
4818    for ac_exec_ext in '' $ac_executable_extensions; do
4819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822    break 2
4823  fi
4824done
4825  done
4826IFS=$as_save_IFS
4827
4828fi
4829fi
4830CXX=$ac_cv_prog_CXX
4831if test -n "$CXX"; then
4832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4833$as_echo "$CXX" >&6; }
4834else
4835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836$as_echo "no" >&6; }
4837fi
4838
4839
4840    test -n "$CXX" && break
4841  done
4842fi
4843if test -z "$CXX"; then
4844  ac_ct_CXX=$CXX
4845  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4846do
4847  # Extract the first word of "$ac_prog", so it can be a program name with args.
4848set dummy $ac_prog; ac_word=$2
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850$as_echo_n "checking for $ac_word... " >&6; }
4851if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  if test -n "$ac_ct_CXX"; then
4855  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4856else
4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860  IFS=$as_save_IFS
4861  test -z "$as_dir" && as_dir=.
4862    for ac_exec_ext in '' $ac_executable_extensions; do
4863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864    ac_cv_prog_ac_ct_CXX="$ac_prog"
4865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866    break 2
4867  fi
4868done
4869  done
4870IFS=$as_save_IFS
4871
4872fi
4873fi
4874ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4875if test -n "$ac_ct_CXX"; then
4876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4877$as_echo "$ac_ct_CXX" >&6; }
4878else
4879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880$as_echo "no" >&6; }
4881fi
4882
4883
4884  test -n "$ac_ct_CXX" && break
4885done
4886
4887  if test "x$ac_ct_CXX" = x; then
4888    CXX="g++"
4889  else
4890    case $cross_compiling:$ac_tool_warned in
4891yes:)
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894ac_tool_warned=yes ;;
4895esac
4896    CXX=$ac_ct_CXX
4897  fi
4898fi
4899
4900  fi
4901fi
4902# Provide some information about the compiler.
4903$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4904set X $ac_compile
4905ac_compiler=$2
4906for ac_option in --version -v -V -qversion; do
4907  { { ac_try="$ac_compiler $ac_option >&5"
4908case "(($ac_try" in
4909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910  *) ac_try_echo=$ac_try;;
4911esac
4912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913$as_echo "$ac_try_echo"; } >&5
4914  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4915  ac_status=$?
4916  if test -s conftest.err; then
4917    sed '10a\
4918... rest of stderr output deleted ...
4919         10q' conftest.err >conftest.er1
4920    cat conftest.er1 >&5
4921    rm -f conftest.er1 conftest.err
4922  fi
4923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924  test $ac_status = 0; }
4925done
4926
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4928$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4929if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4930  $as_echo_n "(cached) " >&6
4931else
4932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h.  */
4934
4935int
4936main ()
4937{
4938#ifndef __GNUC__
4939       choke me
4940#endif
4941
4942  ;
4943  return 0;
4944}
4945_ACEOF
4946if ac_fn_cxx_try_compile "$LINENO"; then :
4947  ac_compiler_gnu=yes
4948else
4949  ac_compiler_gnu=no
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4953
4954fi
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4956$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4957if test $ac_compiler_gnu = yes; then
4958  GXX=yes
4959else
4960  GXX=
4961fi
4962ac_test_CXXFLAGS=${CXXFLAGS+set}
4963ac_save_CXXFLAGS=$CXXFLAGS
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4965$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4966if test "${ac_cv_prog_cxx_g+set}" = set; then :
4967  $as_echo_n "(cached) " >&6
4968else
4969  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4970   ac_cxx_werror_flag=yes
4971   ac_cv_prog_cxx_g=no
4972   CXXFLAGS="-g"
4973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974/* end confdefs.h.  */
4975
4976int
4977main ()
4978{
4979
4980  ;
4981  return 0;
4982}
4983_ACEOF
4984if ac_fn_cxx_try_compile "$LINENO"; then :
4985  ac_cv_prog_cxx_g=yes
4986else
4987  CXXFLAGS=""
4988      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989/* end confdefs.h.  */
4990
4991int
4992main ()
4993{
4994
4995  ;
4996  return 0;
4997}
4998_ACEOF
4999if ac_fn_cxx_try_compile "$LINENO"; then :
5000
5001else
5002  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5003	 CXXFLAGS="-g"
5004	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006
5007int
5008main ()
5009{
5010
5011  ;
5012  return 0;
5013}
5014_ACEOF
5015if ac_fn_cxx_try_compile "$LINENO"; then :
5016  ac_cv_prog_cxx_g=yes
5017fi
5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019fi
5020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021fi
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5024fi
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5026$as_echo "$ac_cv_prog_cxx_g" >&6; }
5027if test "$ac_test_CXXFLAGS" = set; then
5028  CXXFLAGS=$ac_save_CXXFLAGS
5029elif test $ac_cv_prog_cxx_g = yes; then
5030  if test "$GXX" = yes; then
5031    CXXFLAGS="-g -O2"
5032  else
5033    CXXFLAGS="-g"
5034  fi
5035else
5036  if test "$GXX" = yes; then
5037    CXXFLAGS="-O2"
5038  else
5039    CXXFLAGS=
5040  fi
5041fi
5042ac_ext=c
5043ac_cpp='$CPP $CPPFLAGS'
5044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047
5048
5049# We must set the default linker to the linker used by gcc for the correct
5050# operation of libtool.  If LD is not defined and we are using gcc, try to
5051# set the LD default to the ld used by gcc.
5052if test -z "$LD"; then
5053  if test "$GCC" = yes; then
5054    case $build in
5055    *-*-mingw*)
5056      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5057    *)
5058      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5059    esac
5060    case $gcc_prog_ld in
5061    # Accept absolute paths.
5062    [\\/]* | [A-Za-z]:[\\/]*)
5063      LD="$gcc_prog_ld" ;;
5064    esac
5065  fi
5066fi
5067
5068# Check whether -static-libstdc++ -static-libgcc is supported.
5069have_static_libs=no
5070if test "$GCC" = yes; then
5071  saved_LDFLAGS="$LDFLAGS"
5072
5073  LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5075$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5076  ac_ext=cpp
5077ac_cpp='$CXXCPP $CPPFLAGS'
5078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5081
5082
5083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084/* end confdefs.h.  */
5085
5086#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5087#error -static-libstdc++ not implemented
5088#endif
5089int main() {}
5090_ACEOF
5091if ac_fn_cxx_try_link "$LINENO"; then :
5092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5093$as_echo "yes" >&6; }; have_static_libs=yes
5094else
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096$as_echo "no" >&6; }
5097fi
5098rm -f core conftest.err conftest.$ac_objext \
5099    conftest$ac_exeext conftest.$ac_ext
5100  ac_ext=c
5101ac_cpp='$CPP $CPPFLAGS'
5102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105
5106
5107  LDFLAGS="$saved_LDFLAGS"
5108fi
5109
5110
5111
5112
5113if test -n "$ac_tool_prefix"; then
5114  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5115set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117$as_echo_n "checking for $ac_word... " >&6; }
5118if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5119  $as_echo_n "(cached) " >&6
5120else
5121  if test -n "$GNATBIND"; then
5122  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5123else
5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127  IFS=$as_save_IFS
5128  test -z "$as_dir" && as_dir=.
5129    for ac_exec_ext in '' $ac_executable_extensions; do
5130  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133    break 2
5134  fi
5135done
5136  done
5137IFS=$as_save_IFS
5138
5139fi
5140fi
5141GNATBIND=$ac_cv_prog_GNATBIND
5142if test -n "$GNATBIND"; then
5143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5144$as_echo "$GNATBIND" >&6; }
5145else
5146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147$as_echo "no" >&6; }
5148fi
5149
5150
5151fi
5152if test -z "$ac_cv_prog_GNATBIND"; then
5153  ac_ct_GNATBIND=$GNATBIND
5154  # Extract the first word of "gnatbind", so it can be a program name with args.
5155set dummy gnatbind; ac_word=$2
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157$as_echo_n "checking for $ac_word... " >&6; }
5158if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5159  $as_echo_n "(cached) " >&6
5160else
5161  if test -n "$ac_ct_GNATBIND"; then
5162  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5163else
5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167  IFS=$as_save_IFS
5168  test -z "$as_dir" && as_dir=.
5169    for ac_exec_ext in '' $ac_executable_extensions; do
5170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173    break 2
5174  fi
5175done
5176  done
5177IFS=$as_save_IFS
5178
5179fi
5180fi
5181ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5182if test -n "$ac_ct_GNATBIND"; then
5183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5184$as_echo "$ac_ct_GNATBIND" >&6; }
5185else
5186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187$as_echo "no" >&6; }
5188fi
5189
5190  if test "x$ac_ct_GNATBIND" = x; then
5191    GNATBIND="no"
5192  else
5193    case $cross_compiling:$ac_tool_warned in
5194yes:)
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5197ac_tool_warned=yes ;;
5198esac
5199    GNATBIND=$ac_ct_GNATBIND
5200  fi
5201else
5202  GNATBIND="$ac_cv_prog_GNATBIND"
5203fi
5204
5205if test -n "$ac_tool_prefix"; then
5206  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5207set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209$as_echo_n "checking for $ac_word... " >&6; }
5210if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5211  $as_echo_n "(cached) " >&6
5212else
5213  if test -n "$GNATMAKE"; then
5214  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5215else
5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH
5218do
5219  IFS=$as_save_IFS
5220  test -z "$as_dir" && as_dir=.
5221    for ac_exec_ext in '' $ac_executable_extensions; do
5222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225    break 2
5226  fi
5227done
5228  done
5229IFS=$as_save_IFS
5230
5231fi
5232fi
5233GNATMAKE=$ac_cv_prog_GNATMAKE
5234if test -n "$GNATMAKE"; then
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5236$as_echo "$GNATMAKE" >&6; }
5237else
5238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239$as_echo "no" >&6; }
5240fi
5241
5242
5243fi
5244if test -z "$ac_cv_prog_GNATMAKE"; then
5245  ac_ct_GNATMAKE=$GNATMAKE
5246  # Extract the first word of "gnatmake", so it can be a program name with args.
5247set dummy gnatmake; ac_word=$2
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249$as_echo_n "checking for $ac_word... " >&6; }
5250if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5251  $as_echo_n "(cached) " >&6
5252else
5253  if test -n "$ac_ct_GNATMAKE"; then
5254  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259  IFS=$as_save_IFS
5260  test -z "$as_dir" && as_dir=.
5261    for ac_exec_ext in '' $ac_executable_extensions; do
5262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265    break 2
5266  fi
5267done
5268  done
5269IFS=$as_save_IFS
5270
5271fi
5272fi
5273ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5274if test -n "$ac_ct_GNATMAKE"; then
5275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5276$as_echo "$ac_ct_GNATMAKE" >&6; }
5277else
5278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279$as_echo "no" >&6; }
5280fi
5281
5282  if test "x$ac_ct_GNATMAKE" = x; then
5283    GNATMAKE="no"
5284  else
5285    case $cross_compiling:$ac_tool_warned in
5286yes:)
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289ac_tool_warned=yes ;;
5290esac
5291    GNATMAKE=$ac_ct_GNATMAKE
5292  fi
5293else
5294  GNATMAKE="$ac_cv_prog_GNATMAKE"
5295fi
5296
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5298$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5299if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5300  $as_echo_n "(cached) " >&6
5301else
5302  cat >conftest.adb <<EOF
5303procedure conftest is begin null; end conftest;
5304EOF
5305acx_cv_cc_gcc_supports_ada=no
5306# There is a bug in old released versions of GCC which causes the
5307# driver to exit successfully when the appropriate language module
5308# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5309# Therefore we must check for the error message as well as an
5310# unsuccessful exit.
5311# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5312# given a .adb file, but produce no object file.  So we must check
5313# if an object file was really produced to guard against this.
5314errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5315if test x"$errors" = x && test -f conftest.$ac_objext; then
5316  acx_cv_cc_gcc_supports_ada=yes
5317fi
5318rm -f conftest.*
5319fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5321$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5322
5323if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5324  have_gnat=yes
5325else
5326  have_gnat=no
5327fi
5328
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5330$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5331if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5332  $as_echo_n "(cached) " >&6
5333else
5334   echo abfoo >t1
5335  echo cdfoo >t2
5336  gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5337  if cmp t1 t2 2 2 > /dev/null 2>&1; then
5338    if cmp t1 t2 1 1 > /dev/null 2>&1; then
5339      :
5340    else
5341      gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5342    fi
5343  fi
5344  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5345    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5346      :
5347    else
5348      gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5349    fi
5350  fi
5351  rm t1 t2
5352
5353fi
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5355$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5356do_compare="$gcc_cv_prog_cmp_skip"
5357
5358
5359
5360# Check whether --enable-bootstrap was given.
5361if test "${enable_bootstrap+set}" = set; then :
5362  enableval=$enable_bootstrap;
5363else
5364  enable_bootstrap=default
5365fi
5366
5367
5368# Issue errors and warnings for invalid/strange bootstrap combinations.
5369if test -r $srcdir/gcc/configure; then
5370  have_compiler=yes
5371else
5372  have_compiler=no
5373fi
5374
5375case "$have_compiler:$host:$target:$enable_bootstrap" in
5376  *:*:*:no) ;;
5377
5378  # Default behavior.  Enable bootstrap if we have a compiler
5379  # and we are in a native configuration.
5380  yes:$build:$build:default)
5381    enable_bootstrap=yes ;;
5382
5383  *:*:*:default)
5384    enable_bootstrap=no ;;
5385
5386  # We have a compiler and we are in a native configuration, bootstrap is ok
5387  yes:$build:$build:yes)
5388    ;;
5389
5390  # Other configurations, but we have a compiler.  Assume the user knows
5391  # what he's doing.
5392  yes:*:*:yes)
5393    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5394$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5395    ;;
5396
5397  # No compiler: if they passed --enable-bootstrap explicitly, fail
5398  no:*:*:yes)
5399    as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5400
5401  # Fail if wrong command line
5402  *)
5403    as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5404    ;;
5405esac
5406
5407# Used for setting $lt_cv_objdir
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5409$as_echo_n "checking for objdir... " >&6; }
5410if test "${lt_cv_objdir+set}" = set; then :
5411  $as_echo_n "(cached) " >&6
5412else
5413  rm -f .libs 2>/dev/null
5414mkdir .libs 2>/dev/null
5415if test -d .libs; then
5416  lt_cv_objdir=.libs
5417else
5418  # MS-DOS does not allow filenames that begin with a dot.
5419  lt_cv_objdir=_libs
5420fi
5421rmdir .libs 2>/dev/null
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5424$as_echo "$lt_cv_objdir" >&6; }
5425objdir=$lt_cv_objdir
5426
5427
5428
5429
5430
5431cat >>confdefs.h <<_ACEOF
5432#define LT_OBJDIR "$lt_cv_objdir/"
5433_ACEOF
5434
5435
5436
5437# Check for GMP, MPFR and MPC
5438gmplibs="-lmpc -lmpfr -lgmp"
5439gmpinc=
5440have_gmp=no
5441
5442# Specify a location for mpc
5443# check for this first so it ends up on the link line before mpfr.
5444
5445# Check whether --with-mpc was given.
5446if test "${with_mpc+set}" = set; then :
5447  withval=$with_mpc;
5448fi
5449
5450
5451# Check whether --with-mpc-include was given.
5452if test "${with_mpc_include+set}" = set; then :
5453  withval=$with_mpc_include;
5454fi
5455
5456
5457# Check whether --with-mpc-lib was given.
5458if test "${with_mpc_lib+set}" = set; then :
5459  withval=$with_mpc_lib;
5460fi
5461
5462
5463if test "x$with_mpc" != x; then
5464  gmplibs="-L$with_mpc/lib $gmplibs"
5465  gmpinc="-I$with_mpc/include $gmpinc"
5466fi
5467if test "x$with_mpc_include" != x; then
5468  gmpinc="-I$with_mpc_include $gmpinc"
5469fi
5470if test "x$with_mpc_lib" != x; then
5471  gmplibs="-L$with_mpc_lib $gmplibs"
5472fi
5473if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5474  gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5475  gmpinc='-I$$s/mpc/src '"$gmpinc"
5476  # Do not test the mpc version.  Assume that it is sufficient, since
5477  # it is in the source tree, and the library has not been built yet
5478  # but it would be included on the link line in the version check below
5479  # hence making the test fail.
5480  have_gmp=yes
5481fi
5482
5483# Specify a location for mpfr
5484# check for this first so it ends up on the link line before gmp.
5485
5486# Check whether --with-mpfr-dir was given.
5487if test "${with_mpfr_dir+set}" = set; then :
5488  withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5489Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5490fi
5491
5492
5493
5494# Check whether --with-mpfr was given.
5495if test "${with_mpfr+set}" = set; then :
5496  withval=$with_mpfr;
5497fi
5498
5499
5500# Check whether --with-mpfr-include was given.
5501if test "${with_mpfr_include+set}" = set; then :
5502  withval=$with_mpfr_include;
5503fi
5504
5505
5506# Check whether --with-mpfr-lib was given.
5507if test "${with_mpfr_lib+set}" = set; then :
5508  withval=$with_mpfr_lib;
5509fi
5510
5511
5512if test "x$with_mpfr" != x; then
5513  gmplibs="-L$with_mpfr/lib $gmplibs"
5514  gmpinc="-I$with_mpfr/include $gmpinc"
5515fi
5516if test "x$with_mpfr_include" != x; then
5517  gmpinc="-I$with_mpfr_include $gmpinc"
5518fi
5519if test "x$with_mpfr_lib" != x; then
5520  gmplibs="-L$with_mpfr_lib $gmplibs"
5521fi
5522if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5523  # MPFR v3.1.0 moved the sources into a src sub-directory.
5524  if test -d ${srcdir}/mpfr/src; then
5525    gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5526    gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5527    extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5528  else
5529    gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5530    gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5531    extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5532  fi
5533  # Do not test the mpfr version.  Assume that it is sufficient, since
5534  # it is in the source tree, and the library has not been built yet
5535  # but it would be included on the link line in the version check below
5536  # hence making the test fail.
5537  have_gmp=yes
5538fi
5539
5540# Specify a location for gmp
5541
5542# Check whether --with-gmp-dir was given.
5543if test "${with_gmp_dir+set}" = set; then :
5544  withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5545Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5546fi
5547
5548
5549
5550# Check whether --with-gmp was given.
5551if test "${with_gmp+set}" = set; then :
5552  withval=$with_gmp;
5553fi
5554
5555
5556# Check whether --with-gmp-include was given.
5557if test "${with_gmp_include+set}" = set; then :
5558  withval=$with_gmp_include;
5559fi
5560
5561
5562# Check whether --with-gmp-lib was given.
5563if test "${with_gmp_lib+set}" = set; then :
5564  withval=$with_gmp_lib;
5565fi
5566
5567
5568
5569if test "x$with_gmp" != x; then
5570  gmplibs="-L$with_gmp/lib $gmplibs"
5571  gmpinc="-I$with_gmp/include $gmpinc"
5572fi
5573if test "x$with_gmp_include" != x; then
5574  gmpinc="-I$with_gmp_include $gmpinc"
5575fi
5576if test "x$with_gmp_lib" != x; then
5577  gmplibs="-L$with_gmp_lib $gmplibs"
5578fi
5579if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5580  gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5581  gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5582  extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5583  extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5584  extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5585  # Do not test the gmp version.  Assume that it is sufficient, since
5586  # it is in the source tree, and the library has not been built yet
5587  # but it would be included on the link line in the version check below
5588  # hence making the test fail.
5589  have_gmp=yes
5590fi
5591
5592if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5593  have_gmp=yes
5594  saved_CFLAGS="$CFLAGS"
5595  CFLAGS="$CFLAGS $gmpinc"
5596  # Check for the recommended and required versions of GMP.
5597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5598$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5599
5600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h.  */
5602#include "gmp.h"
5603int
5604main ()
5605{
5606
5607  #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5608  #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5609  #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5610  choke me
5611  #endif
5612
5613  ;
5614  return 0;
5615}
5616_ACEOF
5617if ac_fn_c_try_compile "$LINENO"; then :
5618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619/* end confdefs.h.  */
5620#include <gmp.h>
5621int
5622main ()
5623{
5624
5625  #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5626  #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5627  #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5628  choke me
5629  #endif
5630
5631  ;
5632  return 0;
5633}
5634_ACEOF
5635if ac_fn_c_try_compile "$LINENO"; then :
5636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5637$as_echo "yes" >&6; }
5638else
5639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5640$as_echo "buggy but acceptable" >&6; }
5641fi
5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643else
5644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645$as_echo "no" >&6; }; have_gmp=no
5646fi
5647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648
5649  # If we have GMP, check the MPFR version.
5650  if test x"$have_gmp" = xyes; then
5651    # Check for the recommended and required versions of MPFR.
5652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5653$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5654    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h.  */
5656#include <gmp.h>
5657    #include <mpfr.h>
5658int
5659main ()
5660{
5661
5662    #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5663    choke me
5664    #endif
5665
5666  ;
5667  return 0;
5668}
5669_ACEOF
5670if ac_fn_c_try_compile "$LINENO"; then :
5671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672/* end confdefs.h.  */
5673#include <gmp.h>
5674    #include <mpfr.h>
5675int
5676main ()
5677{
5678
5679    #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5680    choke me
5681    #endif
5682
5683  ;
5684  return 0;
5685}
5686_ACEOF
5687if ac_fn_c_try_compile "$LINENO"; then :
5688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5689$as_echo "yes" >&6; }
5690else
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5692$as_echo "buggy but acceptable" >&6; }
5693fi
5694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695else
5696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697$as_echo "no" >&6; }; have_gmp=no
5698fi
5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700  fi
5701
5702  # Check for the MPC header version.
5703  if test x"$have_gmp" = xyes ; then
5704    # Check for the recommended and required versions of MPC.
5705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5706$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5707    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h.  */
5709#include <mpc.h>
5710int
5711main ()
5712{
5713
5714    #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5715    choke me
5716    #endif
5717
5718  ;
5719  return 0;
5720}
5721_ACEOF
5722if ac_fn_c_try_compile "$LINENO"; then :
5723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725#include <mpc.h>
5726int
5727main ()
5728{
5729
5730    #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5731    choke me
5732    #endif
5733
5734  ;
5735  return 0;
5736}
5737_ACEOF
5738if ac_fn_c_try_compile "$LINENO"; then :
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5740$as_echo "yes" >&6; }
5741else
5742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5743$as_echo "buggy but acceptable" >&6; }
5744fi
5745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746else
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }; have_gmp=no
5749fi
5750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751  fi
5752
5753  # Now check the MPFR library.
5754  if test x"$have_gmp" = xyes; then
5755    saved_LIBS="$LIBS"
5756    LIBS="$LIBS $gmplibs"
5757    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5758$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5759    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761#include <mpc.h>
5762int
5763main ()
5764{
5765
5766    mpfr_t n;
5767    mpfr_t x;
5768    mpc_t c;
5769    int t;
5770    mpfr_init (n);
5771    mpfr_init (x);
5772    mpfr_atan2 (n, n, x, GMP_RNDN);
5773    mpfr_erfc (n, x, GMP_RNDN);
5774    mpfr_subnormalize (x, t, GMP_RNDN);
5775    mpfr_clear(n);
5776    mpfr_clear(x);
5777    mpc_init2 (c, 53);
5778    mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5779    mpc_cosh (c, c, MPC_RNDNN);
5780    mpc_pow (c, c, c, MPC_RNDNN);
5781    mpc_acosh (c, c, MPC_RNDNN);
5782    mpc_clear (c);
5783
5784  ;
5785  return 0;
5786}
5787_ACEOF
5788if ac_fn_c_try_link "$LINENO"; then :
5789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5790$as_echo "yes" >&6; }
5791else
5792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793$as_echo "no" >&6; }; have_gmp=no
5794fi
5795rm -f core conftest.err conftest.$ac_objext \
5796    conftest$ac_exeext conftest.$ac_ext
5797    LIBS="$saved_LIBS"
5798  fi
5799
5800  CFLAGS="$saved_CFLAGS"
5801
5802# The library versions listed in the error message below should match
5803# the HARD-minimums enforced above.
5804  if test x$have_gmp != xyes; then
5805    as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5806Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5807their locations.  Source code for these libraries can be found at
5808their respective hosting sites as well as at
5809ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5810http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5811you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5812make sure that you have installed both the libraries and the header
5813files.  They may be located in separate packages." "$LINENO" 5
5814  fi
5815fi
5816
5817# Flags needed for both GMP, MPFR and/or MPC.
5818
5819
5820
5821
5822
5823
5824
5825# Allow host libstdc++ to be specified for static linking with PPL.
5826
5827# Check whether --with-host-libstdcxx was given.
5828if test "${with_host_libstdcxx+set}" = set; then :
5829  withval=$with_host_libstdcxx;
5830fi
5831
5832
5833case $with_host_libstdcxx in
5834  no|yes)
5835    as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5836    ;;
5837esac
5838
5839# Libraries to use for stage1 or when not bootstrapping.
5840
5841# Check whether --with-stage1-libs was given.
5842if test "${with_stage1_libs+set}" = set; then :
5843  withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5844   stage1_libs=
5845 else
5846   stage1_libs=$withval
5847 fi
5848else
5849  stage1_libs=$with_host_libstdcxx
5850fi
5851
5852
5853
5854# Linker flags to use for stage1 or when not bootstrapping.
5855
5856# Check whether --with-stage1-ldflags was given.
5857if test "${with_stage1_ldflags+set}" = set; then :
5858  withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5859   stage1_ldflags=
5860 else
5861   stage1_ldflags=$withval
5862 fi
5863else
5864  stage1_ldflags=
5865 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5866 # if supported.  But if the user explicitly specified the libraries to use,
5867 # trust that they are doing what they want.
5868 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5869   stage1_ldflags="-static-libstdc++ -static-libgcc"
5870 fi
5871fi
5872
5873
5874
5875# Libraries to use for stage2 and later builds.  This defaults to the
5876# argument passed to --with-host-libstdcxx.
5877
5878# Check whether --with-boot-libs was given.
5879if test "${with_boot_libs+set}" = set; then :
5880  withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5881   poststage1_libs=
5882 else
5883   poststage1_libs=$withval
5884 fi
5885else
5886  poststage1_libs=$with_host_libstdcxx
5887fi
5888
5889
5890
5891# Linker flags to use for stage2 and later builds.
5892
5893# Check whether --with-boot-ldflags was given.
5894if test "${with_boot_ldflags+set}" = set; then :
5895  withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5896   poststage1_ldflags=
5897 else
5898   poststage1_ldflags=$withval
5899 fi
5900else
5901  poststage1_ldflags=
5902 # In stages 2 and 3, default to linking libstdc++ and libgcc
5903 # statically.  But if the user explicitly specified the libraries to
5904 # use, trust that they are doing what they want.
5905 if test "$poststage1_libs" = ""; then
5906   poststage1_ldflags="-static-libstdc++ -static-libgcc"
5907 fi
5908fi
5909
5910
5911
5912# GCC GRAPHITE dependency ISL.
5913# Basic setup is inlined here, actual checks are in config/isl.m4
5914
5915
5916# Check whether --with-isl was given.
5917if test "${with_isl+set}" = set; then :
5918  withval=$with_isl;
5919fi
5920
5921
5922# Treat --without-isl as a request to disable
5923# GRAPHITE support and skip all following checks.
5924if test "x$with_isl" != "xno"; then
5925  # Check for ISL
5926
5927
5928# Check whether --with-isl-include was given.
5929if test "${with_isl_include+set}" = set; then :
5930  withval=$with_isl_include;
5931fi
5932
5933
5934# Check whether --with-isl-lib was given.
5935if test "${with_isl_lib+set}" = set; then :
5936  withval=$with_isl_lib;
5937fi
5938
5939
5940  # Check whether --enable-isl-version-check was given.
5941if test "${enable_isl_version_check+set}" = set; then :
5942  enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5943else
5944  ENABLE_ISL_CHECK=yes
5945fi
5946
5947
5948  # Initialize isllibs and islinc.
5949  case $with_isl in
5950    no)
5951      isllibs=
5952      islinc=
5953      ;;
5954    "" | yes)
5955      ;;
5956    *)
5957      isllibs="-L$with_isl/lib"
5958      islinc="-I$with_isl/include"
5959      ;;
5960  esac
5961  if test "x${with_isl_include}" != x ; then
5962    islinc="-I$with_isl_include"
5963  fi
5964  if test "x${with_isl_lib}" != x; then
5965    isllibs="-L$with_isl_lib"
5966  fi
5967        if test "x${islinc}" = x && test "x${isllibs}" = x \
5968     && test -d ${srcdir}/isl; then
5969    isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5970    islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5971    ENABLE_ISL_CHECK=no
5972    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5973$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5974  fi
5975
5976  isllibs="${isllibs} -lisl"
5977
5978
5979
5980  if test "${ENABLE_ISL_CHECK}" = yes ; then
5981    _isl_saved_CFLAGS=$CFLAGS
5982    _isl_saved_LDFLAGS=$LDFLAGS
5983    _isl_saved_LIBS=$LIBS
5984
5985    CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5986    LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5987    LIBS="${_isl_saved_LIBS} -lisl"
5988
5989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5990$as_echo_n "checking for compatible ISL... " >&6; }
5991    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992/* end confdefs.h.  */
5993#include <isl/val.h>
5994int
5995main ()
5996{
5997;
5998  ;
5999  return 0;
6000}
6001_ACEOF
6002if ac_fn_c_try_link "$LINENO"; then :
6003  gcc_cv_isl=yes
6004else
6005  gcc_cv_isl=no
6006fi
6007rm -f core conftest.err conftest.$ac_objext \
6008    conftest$ac_exeext conftest.$ac_ext
6009    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6010$as_echo "$gcc_cv_isl" >&6; }
6011
6012    CFLAGS=$_isl_saved_CFLAGS
6013    LDFLAGS=$_isl_saved_LDFLAGS
6014    LIBS=$_isl_saved_LIBS
6015  fi
6016
6017
6018
6019
6020
6021
6022  if test "x${with_isl}" = xno; then
6023    graphite_requested=no
6024  elif test "x${with_isl}" != x \
6025    || test "x${with_isl_include}" != x \
6026    || test "x${with_isl_lib}" != x ; then
6027    graphite_requested=yes
6028  else
6029    graphite_requested=no
6030  fi
6031
6032
6033
6034  if test "${gcc_cv_isl}" = no ; then
6035    isllibs=
6036    islinc=
6037  fi
6038
6039  if test "${graphite_requested}" = yes \
6040    && test "x${isllibs}" = x \
6041    && test "x${islinc}" = x ; then
6042
6043    as_fn_error "Unable to find a usable ISL.  See config.log for details." "$LINENO" 5
6044  fi
6045
6046
6047fi
6048
6049# If the ISL check failed, disable builds of in-tree variant of ISL
6050if test "x$with_isl" = xno ||
6051   test "x$gcc_cv_isl" = xno; then
6052  noconfigdirs="$noconfigdirs isl"
6053  islinc=
6054fi
6055
6056
6057
6058
6059# Check for LTO support.
6060# Check whether --enable-lto was given.
6061if test "${enable_lto+set}" = set; then :
6062  enableval=$enable_lto; enable_lto=$enableval
6063else
6064  enable_lto=yes; default_enable_lto=yes
6065fi
6066
6067
6068
6069
6070
6071target_elf=no
6072case $target in
6073  *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6074  *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6075  alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6076  nvptx-*-none)
6077    target_elf=no
6078    ;;
6079  *)
6080    target_elf=yes
6081    ;;
6082esac
6083
6084if test $target_elf = yes; then :
6085  # ELF platforms build the lto-plugin always.
6086  case $target in
6087  m68010-*)
6088    build_lto_plugin=no;;
6089  *)
6090    build_lto_plugin=yes;;
6091  esac
6092
6093else
6094  if test x"$default_enable_lto" = x"yes" ; then
6095    case $target in
6096      *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6097      # On other non-ELF platforms, LTO has yet to be validated.
6098      *) enable_lto=no ;;
6099    esac
6100  else
6101  # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6102  # It would also be nice to check the binutils support, but we don't
6103  # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6104  # warn during gcc/ subconfigure; unless you're bootstrapping with
6105  # -flto it won't be needed until after installation anyway.
6106    case $target in
6107      *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6108      *) if test x"$enable_lto" = x"yes"; then
6109	as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6110        fi
6111      ;;
6112    esac
6113  fi
6114  # Among non-ELF, only Windows platforms support the lto-plugin so far.
6115  # Build it unless LTO was explicitly disabled.
6116  case $target in
6117    *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6118    *) ;;
6119  esac
6120
6121fi
6122
6123
6124# Check whether --enable-linker-plugin-configure-flags was given.
6125if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6126  enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6127else
6128  extra_linker_plugin_configure_flags=
6129fi
6130
6131
6132# Check whether --enable-linker-plugin-flags was given.
6133if test "${enable_linker_plugin_flags+set}" = set; then :
6134  enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6135else
6136  extra_linker_plugin_flags=
6137fi
6138
6139
6140
6141
6142# By default, C and C++ are the only stage 1 languages.
6143stage1_languages=,c,
6144
6145# Target libraries that we bootstrap.
6146bootstrap_target_libs=,target-libgcc,
6147
6148# Figure out what language subdirectories are present.
6149# Look if the user specified --enable-languages="..."; if not, use
6150# the environment variable $LANGUAGES if defined. $LANGUAGES might
6151# go away some day.
6152# NB:  embedded tabs in this IF block -- do not untabify
6153if test -d ${srcdir}/gcc; then
6154  if test x"${enable_languages+set}" != xset; then
6155    if test x"${LANGUAGES+set}" = xset; then
6156      enable_languages="${LANGUAGES}"
6157        echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6158    else
6159      enable_languages=all
6160    fi
6161  else
6162    if test x"${enable_languages}" = x ||
6163       test x"${enable_languages}" = xyes;
6164       then
6165      echo configure.in: --enable-languages needs at least one language argument 1>&2
6166      exit 1
6167    fi
6168  fi
6169  enable_languages=`echo "${enable_languages}" | sed -e 's/[ 	,][ 	,]*/,/g' -e 's/,$//'`
6170
6171  # 'f95' is the old name for the 'fortran' language. We issue a warning
6172  # and make the substitution.
6173  case ,${enable_languages}, in
6174    *,f95,*)
6175      echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6176      enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6177      ;;
6178  esac
6179
6180  # If bootstrapping, C++ must be enabled.
6181  case ",$enable_languages,:$enable_bootstrap" in
6182    *,c++,*:*) ;;
6183    *:yes)
6184      if test -f ${srcdir}/gcc/cp/config-lang.in; then
6185        enable_languages="${enable_languages},c++"
6186      else
6187        as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6188      fi
6189      ;;
6190  esac
6191
6192  # First scan to see if an enabled language requires some other language.
6193  # We assume that a given config-lang.in will list all the language
6194  # front ends it requires, even if some are required indirectly.
6195  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6196    case ${lang_frag} in
6197      ..) ;;
6198      # The odd quoting in the next line works around
6199      # an apparent bug in bash 1.12 on linux.
6200      ${srcdir}/gcc/[*]/config-lang.in) ;;
6201      *)
6202        # From the config-lang.in, get $language, $lang_requires, and
6203        # $lang_requires_boot_languages.
6204        language=
6205        lang_requires=
6206        lang_requires_boot_languages=
6207        . ${lang_frag}
6208        for other in ${lang_requires} ${lang_requires_boot_languages}; do
6209          case ,${enable_languages}, in
6210	    *,$other,*) ;;
6211	    *,all,*) ;;
6212	    *,$language,*)
6213	      echo " \`$other' language required by \`$language'; enabling" 1>&2
6214	      enable_languages="${enable_languages},${other}"
6215	      ;;
6216	  esac
6217        done
6218	for other in ${lang_requires_boot_languages} ; do
6219	  if test "$other" != "c"; then
6220	    case ,${enable_stage1_languages}, in
6221	      *,$other,*) ;;
6222	      *,all,*) ;;
6223	      *)
6224		case ,${enable_languages}, in
6225		  *,$language,*)
6226		    echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6227		    enable_stage1_languages="$enable_stage1_languages,${other}"
6228		    ;;
6229		esac
6230		;;
6231	    esac
6232          fi
6233        done
6234        ;;
6235    esac
6236  done
6237
6238  new_enable_languages=,c,
6239
6240  # If LTO is enabled, add the LTO front end.
6241  if test "$enable_lto" = "yes" ; then
6242    case ,${enable_languages}, in
6243      *,lto,*) ;;
6244      *) enable_languages="${enable_languages},lto" ;;
6245    esac
6246    if test "${build_lto_plugin}" = "yes" ; then
6247      configdirs="$configdirs lto-plugin"
6248    fi
6249  fi
6250
6251  # If we're building an offloading compiler, add the LTO front end.
6252  if test x"$enable_as_accelerator_for" != x ; then
6253    case ,${enable_languages}, in
6254      *,lto,*) ;;
6255      *) enable_languages="${enable_languages},lto" ;;
6256    esac
6257  fi
6258
6259  missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6260  potential_languages=,c,
6261
6262  enabled_target_libs=
6263  disabled_target_libs=
6264
6265  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6266    case ${lang_frag} in
6267      ..) ;;
6268      # The odd quoting in the next line works around
6269      # an apparent bug in bash 1.12 on linux.
6270      ${srcdir}/gcc/[*]/config-lang.in) ;;
6271      *)
6272        # From the config-lang.in, get $language, $target_libs,
6273        # $lang_dirs, $boot_language, and $build_by_default
6274        language=
6275        target_libs=
6276        lang_dirs=
6277        subdir_requires=
6278        boot_language=no
6279        build_by_default=yes
6280        . ${lang_frag}
6281        if test x${language} = x; then
6282          echo "${lang_frag} doesn't set \$language." 1>&2
6283          exit 1
6284        fi
6285
6286	if test "$language" = "c++"; then
6287	  boot_language=yes
6288	fi
6289
6290        add_this_lang=no
6291        case ,${enable_languages}, in
6292          *,${language},*)
6293            # Language was explicitly selected; include it
6294	    # unless it is C, which is enabled by default.
6295	    if test "$language" != "c"; then
6296	      add_this_lang=yes
6297	    fi
6298            ;;
6299          *,all,*)
6300            # 'all' was selected, select it if it is a default language
6301	    if test "$language" != "c"; then
6302	      add_this_lang=${build_by_default}
6303	    fi
6304            ;;
6305        esac
6306
6307        # Disable languages that need other directories if these aren't available.
6308	for i in $subdir_requires; do
6309	  test -f "$srcdir/gcc/$i/config-lang.in" && continue
6310	  case ,${enable_languages}, in
6311            *,${language},*)
6312              # Specifically requested language; tell them.
6313              as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6314              ;;
6315            *)
6316              # Silently disable.
6317              add_this_lang=unsupported
6318              ;;
6319          esac
6320	done
6321
6322        # Disable Ada if no preexisting GNAT is available.
6323        case ,${enable_languages},:${language}:${have_gnat} in
6324          *,${language},*:ada:no)
6325            # Specifically requested language; tell them.
6326            as_fn_error "GNAT is required to build $language" "$LINENO" 5
6327            ;;
6328          *:ada:no)
6329            # Silently disable.
6330            add_this_lang=unsupported
6331            ;;
6332        esac
6333
6334	# Disable a language that is unsupported by the target.
6335	case " $unsupported_languages " in
6336	  *" $language "*)
6337	    add_this_lang=unsupported
6338	    ;;
6339	esac
6340
6341	case $add_this_lang in
6342	  unsupported)
6343            # Remove language-dependent dirs.
6344	    disabled_target_libs="$disabled_target_libs $target_libs"
6345	    noconfigdirs="$noconfigdirs $lang_dirs"
6346	    ;;
6347	  no)
6348            # Remove language-dependent dirs; still show language as supported.
6349	    disabled_target_libs="$disabled_target_libs $target_libs"
6350	    noconfigdirs="$noconfigdirs $lang_dirs"
6351            potential_languages="${potential_languages}${language},"
6352	    ;;
6353          yes)
6354	    new_enable_languages="${new_enable_languages}${language},"
6355            potential_languages="${potential_languages}${language},"
6356	    missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6357	    enabled_target_libs="$enabled_target_libs $target_libs"
6358	    case "${boot_language}:,$enable_stage1_languages," in
6359	      yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6360		# Add to (comma-separated) list of stage 1 languages.
6361		case ",$stage1_languages," in
6362		  *,$language,* | ,yes, | ,all,) ;;
6363		  *) stage1_languages="${stage1_languages}${language}," ;;
6364		esac
6365		# We need to bootstrap any supporting libraries.
6366		bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6367		;;
6368	    esac
6369	    ;;
6370        esac
6371        ;;
6372    esac
6373  done
6374
6375  # Add target libraries which are only needed for disabled languages
6376  # to noconfigdirs.
6377  if test -n "$disabled_target_libs"; then
6378    for dir in $disabled_target_libs; do
6379      case " $enabled_target_libs " in
6380      *" ${dir} "*) ;;
6381      *) noconfigdirs="$noconfigdirs $dir" ;;
6382      esac
6383    done
6384  fi
6385
6386  # Check whether --enable-stage1-languages was given.
6387if test "${enable_stage1_languages+set}" = set; then :
6388  enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6389    ,no,|,,)
6390      # Set it to something that will have no effect in the loop below
6391      enable_stage1_languages=c ;;
6392    ,yes,)
6393      enable_stage1_languages=`echo $new_enable_languages | \
6394	sed -e "s/^,//" -e "s/,$//" ` ;;
6395    *,all,*)
6396      enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6397	sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6398  esac
6399
6400  # Add "good" languages from enable_stage1_languages to stage1_languages,
6401  # while "bad" languages go in missing_languages.  Leave no duplicates.
6402  for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6403    case $potential_languages in
6404      *,$i,*)
6405        case $stage1_languages in
6406          *,$i,*) ;;
6407          *) stage1_languages="$stage1_languages$i," ;;
6408        esac ;;
6409      *)
6410        case $missing_languages in
6411          *,$i,*) ;;
6412          *) missing_languages="$missing_languages$i," ;;
6413        esac ;;
6414     esac
6415  done
6416fi
6417
6418
6419  # Remove leading/trailing commas that were added for simplicity
6420  potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6421  missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6422  stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6423  new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6424
6425  if test "x$missing_languages" != x; then
6426    as_fn_error "
6427The following requested languages could not be built: ${missing_languages}
6428Supported languages are: ${potential_languages}" "$LINENO" 5
6429  fi
6430  if test "x$new_enable_languages" != "x$enable_languages"; then
6431    echo The following languages will be built: ${new_enable_languages}
6432    enable_languages="$new_enable_languages"
6433  fi
6434
6435
6436  ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6437fi
6438
6439# Handle --disable-<component> generically.
6440for dir in $configdirs $build_configdirs $target_configdirs ; do
6441  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6442  varname=`echo $dirname | sed -e s/+/_/g`
6443  if eval test x\${enable_${varname}} "=" xno ; then
6444    noconfigdirs="$noconfigdirs $dir"
6445  fi
6446done
6447
6448# Check for Boehm's garbage collector
6449# Check whether --enable-objc-gc was given.
6450if test "${enable_objc_gc+set}" = set; then :
6451  enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6452  *,objc,*:*:yes:*target-boehm-gc*)
6453    as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6454    ;;
6455esac
6456fi
6457
6458
6459# Make sure we only build Boehm's garbage collector if required.
6460case ,${enable_languages},:${enable_objc_gc} in
6461  *,objc,*:yes)
6462    # Keep target-boehm-gc if requested for Objective-C.
6463    ;;
6464  *)
6465    # Otherwise remove target-boehm-gc depending on target-libjava.
6466    if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6467      noconfigdirs="$noconfigdirs target-boehm-gc"
6468    fi
6469    ;;
6470esac
6471
6472# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6473case ,${enable_languages}, in
6474  *,c++,*)
6475    # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6476    case "${noconfigdirs}" in
6477      *target-libstdc++-v3*)
6478        noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6479        ;;
6480      *) ;;
6481    esac
6482    ;;
6483  *)
6484    noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6485    ;;
6486esac
6487
6488# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6489# $build_configdirs and $target_configdirs.
6490# If we have the source for $noconfigdirs entries, add them to $notsupp.
6491
6492notsupp=""
6493for dir in . $skipdirs $noconfigdirs ; do
6494  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6495  if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6496    configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6497    if test -r $srcdir/$dirname/configure ; then
6498      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6499	true
6500      else
6501	notsupp="$notsupp $dir"
6502      fi
6503    fi
6504  fi
6505  if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6506    build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6507    if test -r $srcdir/$dirname/configure ; then
6508      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6509	true
6510      else
6511	notsupp="$notsupp $dir"
6512      fi
6513    fi
6514  fi
6515  if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6516    target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6517    if test -r $srcdir/$dirname/configure ; then
6518      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6519	true
6520      else
6521	notsupp="$notsupp $dir"
6522      fi
6523    fi
6524  fi
6525done
6526
6527# Quietly strip out all directories which aren't configurable in this tree.
6528# This relies on all configurable subdirectories being autoconfiscated, which
6529# is now the case.
6530build_configdirs_all="$build_configdirs"
6531build_configdirs=
6532for i in ${build_configdirs_all} ; do
6533  j=`echo $i | sed -e s/build-//g`
6534  if test -f ${srcdir}/$j/configure ; then
6535    build_configdirs="${build_configdirs} $i"
6536  fi
6537done
6538
6539configdirs_all="$configdirs"
6540configdirs=
6541for i in ${configdirs_all} ; do
6542  if test -f ${srcdir}/$i/configure ; then
6543    configdirs="${configdirs} $i"
6544  fi
6545done
6546
6547target_configdirs_all="$target_configdirs"
6548target_configdirs=
6549for i in ${target_configdirs_all} ; do
6550  j=`echo $i | sed -e s/target-//g`
6551  if test -f ${srcdir}/$j/configure ; then
6552    target_configdirs="${target_configdirs} $i"
6553  fi
6554done
6555
6556# libiberty-linker-plugin is special: it doesn't have its own source directory,
6557# so we have to add it after the preceding checks.
6558if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6559then
6560  case " $configdirs " in
6561    *" libiberty "*)
6562      # If we can build libiberty, we can also build libiberty-linker-plugin.
6563      configdirs="$configdirs libiberty-linker-plugin"
6564      extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6565        --with-libiberty=../libiberty-linker-plugin";;
6566    *)
6567      as_fn_error "libiberty missing" "$LINENO" 5;;
6568  esac
6569fi
6570
6571# Sometimes we have special requirements for the host libiberty.
6572extra_host_libiberty_configure_flags=
6573case " $configdirs " in
6574  *" lto-plugin "* | *" libcc1 "*)
6575    # When these are to be built as shared libraries, the same applies to
6576    # libiberty.
6577    extra_host_libiberty_configure_flags=--enable-shared
6578    ;;
6579esac
6580
6581
6582# Produce a warning message for the subdirs we can't configure.
6583# This isn't especially interesting in the Cygnus tree, but in the individual
6584# FSF releases, it's important to let people know when their machine isn't
6585# supported by the one or two programs in a package.
6586
6587if test -n "${notsupp}" && test -z "${norecursion}" ; then
6588  # If $appdirs is non-empty, at least one of those directories must still
6589  # be configured, or we error out.  (E.g., if the gas release supports a
6590  # specified target in some subdirs but not the gas subdir, we shouldn't
6591  # pretend that all is well.)
6592  if test -n "$appdirs" ; then
6593    for dir in $appdirs ; do
6594      if test -r $dir/Makefile.in ; then
6595	if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6596	  appdirs=""
6597	  break
6598	fi
6599	if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6600	  appdirs=""
6601	  break
6602	fi
6603      fi
6604    done
6605    if test -n "$appdirs" ; then
6606      echo "*** This configuration is not supported by this package." 1>&2
6607      exit 1
6608    fi
6609  fi
6610  # Okay, some application will build, or we don't care to check.  Still
6611  # notify of subdirs not getting built.
6612  echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6613  echo "    ${notsupp}" 1>&2
6614  echo "    (Any other directories should still work fine.)" 1>&2
6615fi
6616
6617case "$host" in
6618  *msdosdjgpp*)
6619    enable_gdbtk=no ;;
6620esac
6621
6622# To find our prefix, in gcc_cv_tool_prefix.
6623
6624# The user is always right.
6625if test "${PATH_SEPARATOR+set}" != set; then
6626  echo "#! /bin/sh" >conf$$.sh
6627  echo  "exit 0"   >>conf$$.sh
6628  chmod +x conf$$.sh
6629  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6630    PATH_SEPARATOR=';'
6631  else
6632    PATH_SEPARATOR=:
6633  fi
6634  rm -f conf$$.sh
6635fi
6636
6637
6638
6639if test "x$exec_prefix" = xNONE; then
6640        if test "x$prefix" = xNONE; then
6641                gcc_cv_tool_prefix=$ac_default_prefix
6642        else
6643                gcc_cv_tool_prefix=$prefix
6644        fi
6645else
6646        gcc_cv_tool_prefix=$exec_prefix
6647fi
6648
6649# If there is no compiler in the tree, use the PATH only.  In any
6650# case, if there is no compiler in the tree nobody should use
6651# AS_FOR_TARGET and LD_FOR_TARGET.
6652if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6653    gcc_version=`cat $srcdir/gcc/BASE-VER`
6654    gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6655    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6656    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6657    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6658    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6659    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6660else
6661    gcc_cv_tool_dirs=
6662fi
6663
6664if test x$build = x$target && test -n "$md_exec_prefix"; then
6665        gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6666fi
6667
6668
6669
6670copy_dirs=
6671
6672
6673# Check whether --with-build-sysroot was given.
6674if test "${with_build_sysroot+set}" = set; then :
6675  withval=$with_build_sysroot; if test x"$withval" != x ; then
6676     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6677   fi
6678else
6679  SYSROOT_CFLAGS_FOR_TARGET=
6680fi
6681
6682
6683
6684
6685# Check whether --with-debug-prefix-map was given.
6686if test "${with_debug_prefix_map+set}" = set; then :
6687  withval=$with_debug_prefix_map; if test x"$withval" != x; then
6688     DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6689     for debug_map in $withval; do
6690       DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6691     done
6692   fi
6693else
6694  DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6695fi
6696
6697
6698
6699# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6700# might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6701# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6702# We want to ensure that TARGET libraries (which we know are built with
6703# gcc) are built with "-O2 -g", so include those options when setting
6704# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6705if test "x$CFLAGS_FOR_TARGET" = x; then
6706  if test "x${is_cross_compiler}" = xyes; then
6707    CFLAGS_FOR_TARGET="-g -O2"
6708  else
6709    CFLAGS_FOR_TARGET=$CFLAGS
6710    case " $CFLAGS " in
6711      *" -O2 "*) ;;
6712      *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6713    esac
6714    case " $CFLAGS " in
6715      *" -g "* | *" -g3 "*) ;;
6716      *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6717    esac
6718  fi
6719fi
6720
6721
6722if test "x$CXXFLAGS_FOR_TARGET" = x; then
6723  if test "x${is_cross_compiler}" = xyes; then
6724    CXXFLAGS_FOR_TARGET="-g -O2"
6725  else
6726    CXXFLAGS_FOR_TARGET=$CXXFLAGS
6727    case " $CXXFLAGS " in
6728      *" -O2 "*) ;;
6729      *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6730    esac
6731    case " $CXXFLAGS " in
6732      *" -g "* | *" -g3 "*) ;;
6733      *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6734    esac
6735  fi
6736fi
6737
6738
6739
6740
6741# Handle --with-headers=XXX.  If the value is not "yes", the contents of
6742# the named directory are copied to $(tooldir)/sys-include.
6743if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6744  if test x${is_cross_compiler} = xno ; then
6745    echo 1>&2 '***' --with-headers is only supported when cross compiling
6746    exit 1
6747  fi
6748  if test x"${with_headers}" != xyes ; then
6749    x=${gcc_cv_tool_prefix}
6750    copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6751  fi
6752fi
6753
6754# Handle --with-libs=XXX.  If the value is not "yes", the contents of
6755# the name directories are copied to $(tooldir)/lib.  Multiple directories
6756# are permitted.
6757if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6758  if test x${is_cross_compiler} = xno ; then
6759    echo 1>&2 '***' --with-libs is only supported when cross compiling
6760    exit 1
6761  fi
6762  if test x"${with_libs}" != xyes ; then
6763    # Copy the libraries in reverse order, so that files in the first named
6764    # library override files in subsequent libraries.
6765    x=${gcc_cv_tool_prefix}
6766    for l in ${with_libs}; do
6767      copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6768    done
6769  fi
6770fi
6771
6772# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6773#
6774# This is done by determining whether or not the appropriate directory
6775# is available, and by checking whether or not specific configurations
6776# have requested that this magic not happen.
6777#
6778# The command line options always override the explicit settings in
6779# configure.in, and the settings in configure.in override this magic.
6780#
6781# If the default for a toolchain is to use GNU as and ld, and you don't
6782# want to do that, then you should use the --without-gnu-as and
6783# --without-gnu-ld options for the configure script.  Similarly, if
6784# the default is to use the included zlib and you don't want to do that,
6785# you should use the --with-system-zlib option for the configure script.
6786
6787if test x${use_gnu_as} = x &&
6788   echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6789  with_gnu_as=yes
6790  extra_host_args="$extra_host_args --with-gnu-as"
6791fi
6792
6793if test x${use_gnu_ld} = x &&
6794   echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6795  with_gnu_ld=yes
6796  extra_host_args="$extra_host_args --with-gnu-ld"
6797fi
6798
6799if test x${use_included_zlib} = x &&
6800   echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6801  :
6802else
6803  with_system_zlib=yes
6804  extra_host_args="$extra_host_args --with-system-zlib"
6805fi
6806
6807# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6808# can detect this case.
6809
6810if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6811  with_newlib=yes
6812  extra_host_args="$extra_host_args --with-newlib"
6813fi
6814
6815# Handle ${copy_dirs}
6816set fnord ${copy_dirs}
6817shift
6818while test $# != 0 ; do
6819  if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6820    :
6821  else
6822    echo Copying $1 to $2
6823
6824    # Use the install script to create the directory and all required
6825    # parent directories.
6826    if test -d $2 ; then
6827      :
6828    else
6829      echo >config.temp
6830      ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6831    fi
6832
6833    # Copy the directory, assuming we have tar.
6834    # FIXME: Should we use B in the second tar?  Not all systems support it.
6835    (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6836
6837    # It is the responsibility of the user to correctly adjust all
6838    # symlinks.  If somebody can figure out how to handle them correctly
6839    # here, feel free to add the code.
6840
6841    echo $1 > $2/COPIED
6842  fi
6843  shift; shift
6844done
6845
6846# Determine a target-dependent exec_prefix that the installed
6847# gcc will search in.  Keep this list sorted by triplet, with
6848# the *-*-osname triplets last.
6849md_exec_prefix=
6850case "${target}" in
6851  i[34567]86-pc-msdosdjgpp*)
6852    md_exec_prefix=/dev/env/DJDIR/bin
6853    ;;
6854  *-*-hpux* | \
6855  *-*-nto-qnx* | \
6856  *-*-solaris2*)
6857    md_exec_prefix=/usr/ccs/bin
6858    ;;
6859esac
6860
6861extra_arflags_for_target=
6862extra_nmflags_for_target=
6863extra_ranlibflags_for_target=
6864target_makefile_frag=/dev/null
6865case "${target}" in
6866  spu-*-*)
6867    target_makefile_frag="config/mt-spu"
6868    ;;
6869  mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6870    target_makefile_frag="config/mt-sde"
6871    ;;
6872  mipsisa*-*-elfoabi*)
6873    target_makefile_frag="config/mt-mips-elfoabi"
6874    ;;
6875  mips*-*-*linux* | mips*-*-gnu*)
6876    target_makefile_frag="config/mt-mips-gnu"
6877    ;;
6878  nios2-*-elf*)
6879    target_makefile_frag="config/mt-nios2-elf"
6880    ;;
6881  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6882    target_makefile_frag="config/mt-gnu"
6883    ;;
6884  *-*-aix4.[3456789]* | *-*-aix[56789].*)
6885    # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6886    # commands to handle both 32-bit and 64-bit objects.  These flags are
6887    # harmless if we're using GNU nm or ar.
6888    extra_arflags_for_target=" -X32_64"
6889    extra_nmflags_for_target=" -B -X32_64"
6890    ;;
6891esac
6892
6893alphaieee_frag=/dev/null
6894case $target in
6895  alpha*-*-*)
6896    # This just makes sure to use the -mieee option to build target libs.
6897    # This should probably be set individually by each library.
6898    alphaieee_frag="config/mt-alphaieee"
6899    ;;
6900esac
6901
6902# If --enable-target-optspace always use -Os instead of -O2 to build
6903# the target libraries, similarly if it is not specified, use -Os
6904# on selected platforms.
6905ospace_frag=/dev/null
6906case "${enable_target_optspace}:${target}" in
6907  yes:*)
6908    ospace_frag="config/mt-ospace"
6909    ;;
6910  :d30v-*)
6911    ospace_frag="config/mt-d30v"
6912    ;;
6913  :m32r-* | :d10v-* | :fr30-*)
6914    ospace_frag="config/mt-ospace"
6915    ;;
6916  no:* | :*)
6917    ;;
6918  *)
6919    echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6920    ;;
6921esac
6922
6923# Some systems (e.g., one of the i386-aix systems the gas testers are
6924# using) don't handle "\$" correctly, so don't use it here.
6925tooldir='${exec_prefix}'/${target_noncanonical}
6926build_tooldir=${tooldir}
6927
6928# Create a .gdbinit file which runs the one in srcdir
6929# and tells GDB to look there for source files.
6930
6931if test -r ${srcdir}/.gdbinit ; then
6932  case ${srcdir} in
6933    .) ;;
6934    *) cat > ./.gdbinit <<EOF
6935# ${NO_EDIT}
6936dir ${srcdir}
6937dir .
6938source ${srcdir}/.gdbinit
6939EOF
6940    ;;
6941  esac
6942fi
6943
6944# Make sure that the compiler is able to generate an executable.  If it
6945# can't, we are probably in trouble.  We don't care whether we can run the
6946# executable--we might be using a cross compiler--we only care whether it
6947# can be created.  At this point the main configure script has set CC.
6948we_are_ok=no
6949echo "int main () { return 0; }" > conftest.c
6950${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6951if test $? = 0 ; then
6952  if test -s conftest || test -s conftest.exe ; then
6953    we_are_ok=yes
6954  fi
6955fi
6956case $we_are_ok in
6957  no)
6958    echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6959    echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6960    rm -f conftest*
6961    exit 1
6962    ;;
6963esac
6964rm -f conftest*
6965
6966# Decide which environment variable is used to find dynamic libraries.
6967case "${host}" in
6968  *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6969  *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6970  *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6971  *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6972esac
6973
6974# On systems where the dynamic library environment variable is PATH,
6975# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6976# built executables to PATH.
6977if test "$RPATH_ENVVAR" = PATH; then
6978  GCC_SHLIB_SUBDIR=/shlib
6979else
6980  GCC_SHLIB_SUBDIR=
6981fi
6982
6983# Adjust the toplevel makefile according to whether bootstrap was selected.
6984case $enable_bootstrap in
6985  yes)
6986    bootstrap_suffix=bootstrap
6987    BUILD_CONFIG=bootstrap-debug
6988    ;;
6989  no)
6990    bootstrap_suffix=no-bootstrap
6991    BUILD_CONFIG=
6992    ;;
6993esac
6994
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6996$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6997
6998
6999# Check whether --with-build-config was given.
7000if test "${with_build_config+set}" = set; then :
7001  withval=$with_build_config; case $with_build_config in
7002   yes) with_build_config= ;;
7003   no) with_build_config= BUILD_CONFIG= ;;
7004   esac
7005fi
7006
7007
7008if test "x${with_build_config}" != x; then
7009  BUILD_CONFIG=$with_build_config
7010else
7011  case $BUILD_CONFIG in
7012  bootstrap-debug)
7013    if echo "int f (void) { return 0; }" > conftest.c &&
7014       ${CC} -c conftest.c &&
7015       mv conftest.o conftest.o.g0 &&
7016       ${CC} -c -g conftest.c &&
7017       mv conftest.o conftest.o.g &&
7018       ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7019      :
7020    else
7021      BUILD_CONFIG=
7022    fi
7023    rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7024    ;;
7025  esac
7026fi
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7028$as_echo "$BUILD_CONFIG" >&6; }
7029
7030
7031# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7033$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7034# Check whether --enable-vtable-verify was given.
7035if test "${enable_vtable_verify+set}" = set; then :
7036  enableval=$enable_vtable_verify; case "$enableval" in
7037 yes) enable_vtable_verify=yes ;;
7038 no)  enable_vtable_verify=no ;;
7039 *)   enable_vtable_verify=no;;
7040 esac
7041else
7042  enable_vtable_verify=no
7043fi
7044
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7046$as_echo "$enable_vtable_verify" >&6; }
7047
7048# Record target_configdirs and the configure arguments for target and
7049# build configuration in Makefile.
7050target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7051build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7052bootstrap_fixincludes=no
7053
7054# If we are building libgomp, bootstrap it.
7055if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7056  bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7057fi
7058
7059# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7060# or bootstrap-ubsan, bootstrap it.
7061if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7062  case "$BUILD_CONFIG" in
7063    *bootstrap-asan* | *bootstrap-ubsan* )
7064      bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7065      bootstrap_fixincludes=yes
7066      ;;
7067  esac
7068fi
7069
7070# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7071if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7072   test "$enable_vtable_verify" != no; then
7073  bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7074fi
7075
7076# If we are building libmpx, bootstrap it.
7077if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7078  bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7079fi
7080
7081# Determine whether gdb needs tk/tcl or not.
7082# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7083# and in that case we want gdb to be built without tk.  Ugh!
7084# In fact I believe gdb is the *only* package directly dependent on tk,
7085# so we should be able to put the 'maybe's in unconditionally and
7086# leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7087# 100% sure that that's safe though.
7088
7089gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7090case "$enable_gdbtk" in
7091  no)
7092    GDB_TK="" ;;
7093  yes)
7094    GDB_TK="${gdb_tk}" ;;
7095  *)
7096    # Only add the dependency on gdbtk when GDBtk is part of the gdb
7097    # distro.  Eventually someone will fix this and move Insight, nee
7098    # gdbtk to a separate directory.
7099    if test -d ${srcdir}/gdb/gdbtk ; then
7100      GDB_TK="${gdb_tk}"
7101    else
7102      GDB_TK=""
7103    fi
7104    ;;
7105esac
7106CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7107INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7108
7109# Strip out unwanted targets.
7110
7111# While at that, we remove Makefiles if we were started for recursive
7112# configuration, so that the top-level Makefile reconfigures them,
7113# like we used to do when configure itself was recursive.
7114
7115# Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7116# but now we're fixing up the Makefile ourselves with the additional
7117# commands passed to AC_CONFIG_FILES.  Use separate variables
7118# extrasub-{build,host,target} not because there is any reason to split
7119# the substitutions up that way, but only to remain below the limit of
7120# 99 commands in a script, for HP-UX sed.
7121# Do not nest @if/@endif pairs, because configure will not warn you at all.
7122
7123case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7124  yes:yes:*\ gold\ *:*,c++,*) ;;
7125  yes:yes:*\ gold\ *:*)
7126    as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7127    ;;
7128esac
7129
7130extrasub_build=
7131for module in ${build_configdirs} ; do
7132  if test -z "${no_recursion}" \
7133     && test -f ${build_subdir}/${module}/Makefile; then
7134    echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7135    rm -f ${build_subdir}/${module}/Makefile
7136  fi
7137  extrasub_build="$extrasub_build
7138/^@if build-$module\$/d
7139/^@endif build-$module\$/d
7140/^@if build-$module-$bootstrap_suffix\$/d
7141/^@endif build-$module-$bootstrap_suffix\$/d"
7142done
7143extrasub_host=
7144for module in ${configdirs} ; do
7145  if test -z "${no_recursion}"; then
7146    for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7147      if test -f ${file}; then
7148	echo 1>&2 "*** removing ${file} to force reconfigure"
7149	rm -f ${file}
7150      fi
7151    done
7152  fi
7153  case ${module},${bootstrap_fixincludes} in
7154    fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7155    *) host_bootstrap_suffix=$bootstrap_suffix ;;
7156  esac
7157  extrasub_host="$extrasub_host
7158/^@if $module\$/d
7159/^@endif $module\$/d
7160/^@if $module-$host_bootstrap_suffix\$/d
7161/^@endif $module-$host_bootstrap_suffix\$/d"
7162done
7163extrasub_target=
7164for module in ${target_configdirs} ; do
7165  if test -z "${no_recursion}" \
7166     && test -f ${target_subdir}/${module}/Makefile; then
7167    echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7168    rm -f ${target_subdir}/${module}/Makefile
7169  fi
7170
7171  # We only bootstrap target libraries listed in bootstrap_target_libs.
7172  case $bootstrap_target_libs in
7173    *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7174    *) target_bootstrap_suffix=no-bootstrap ;;
7175  esac
7176
7177  extrasub_target="$extrasub_target
7178/^@if target-$module\$/d
7179/^@endif target-$module\$/d
7180/^@if target-$module-$target_bootstrap_suffix\$/d
7181/^@endif target-$module-$target_bootstrap_suffix\$/d"
7182done
7183
7184# Do the final fixup along with target modules.
7185extrasub_target="$extrasub_target
7186/^@if /,/^@endif /d"
7187
7188# Create the serialization dependencies.  This uses a temporary file.
7189
7190# Check whether --enable-serial-configure was given.
7191if test "${enable_serial_configure+set}" = set; then :
7192  enableval=$enable_serial_configure;
7193fi
7194
7195
7196case ${enable_serial_configure} in
7197  yes)
7198    enable_serial_build_configure=yes
7199    enable_serial_host_configure=yes
7200    enable_serial_target_configure=yes
7201    ;;
7202esac
7203
7204# These force 'configure's to be done one at a time, to avoid problems
7205# with contention over a shared config.cache.
7206rm -f serdep.tmp
7207echo '# serdep.tmp' > serdep.tmp
7208olditem=
7209test "x${enable_serial_build_configure}" = xyes &&
7210for item in ${build_configdirs} ; do
7211  case ${olditem} in
7212    "") ;;
7213    *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7214  esac
7215  olditem=${item}
7216done
7217olditem=
7218test "x${enable_serial_host_configure}" = xyes &&
7219for item in ${configdirs} ; do
7220  case ${olditem} in
7221    "") ;;
7222    *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7223  esac
7224  olditem=${item}
7225done
7226olditem=
7227test "x${enable_serial_target_configure}" = xyes &&
7228for item in ${target_configdirs} ; do
7229  case ${olditem} in
7230    "") ;;
7231    *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7232  esac
7233  olditem=${item}
7234done
7235serialization_dependencies=serdep.tmp
7236
7237
7238# Base args.  Strip norecursion, cache-file, srcdir, host, build,
7239# target, nonopt, and variable assignments.  These are the ones we
7240# might not want to pass down to subconfigures.  The exception being
7241# --cache-file=/dev/null, which is used to turn off the use of cache
7242# files altogether, and which should be passed on to subconfigures.
7243# Also strip program-prefix, program-suffix, and program-transform-name,
7244# so that we can pass down a consistent program-transform-name.
7245baseargs=
7246tbaseargs=
7247keep_next=no
7248skip_next=no
7249eval "set -- $ac_configure_args"
7250for ac_arg
7251do
7252  if test X"$skip_next" = X"yes"; then
7253    skip_next=no
7254    continue
7255  fi
7256  if test X"$keep_next" = X"yes"; then
7257    case $ac_arg in
7258      *\'*)
7259	ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7260    esac
7261    baseargs="$baseargs '$ac_arg'"
7262    tbaseargs="$tbaseargs '$ac_arg'"
7263    keep_next=no
7264    continue
7265  fi
7266
7267  # Handle separated arguments.  Based on the logic generated by
7268  # autoconf 2.59.
7269  case $ac_arg in
7270    *=* | --config-cache | -C | -disable-* | --disable-* \
7271      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7272      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7273      | -with-* | --with-* | -without-* | --without-* | --x)
7274      separate_arg=no
7275      ;;
7276    -*)
7277      separate_arg=yes
7278      ;;
7279    *)
7280      separate_arg=no
7281      ;;
7282  esac
7283
7284  skip_targ=no
7285  case $ac_arg in
7286
7287  --with-* | --without-*)
7288    libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7289
7290    case $libopt in
7291    *[-_]include)
7292      lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7293      ;;
7294    *[-_]lib)
7295      lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7296      ;;
7297    *)
7298      lib=$libopt
7299      ;;
7300    esac
7301
7302
7303    case $lib in
7304    mpc | mpfr | gmp | isl)
7305      # If we're processing --with-$lib, --with-$lib-include or
7306      # --with-$lib-lib, for one of the libs above, and target is
7307      # different from host, don't pass the current argument to any
7308      # target library's configure.
7309      if test x$is_cross_compiler = xyes; then
7310        skip_targ=yes
7311      fi
7312      ;;
7313    esac
7314    ;;
7315  esac
7316
7317  case "$ac_arg" in
7318    --cache-file=/dev/null | \
7319    -cache-file=/dev/null )
7320      # Handled here to avoid the test to skip args below.
7321      baseargs="$baseargs '$ac_arg'"
7322      tbaseargs="$tbaseargs '$ac_arg'"
7323      # Assert: $separate_arg should always be no.
7324      keep_next=$separate_arg
7325      ;;
7326    --no*)
7327      continue
7328      ;;
7329    --c* | \
7330    --sr* | \
7331    --ho* | \
7332    --bu* | \
7333    --t* | \
7334    --program-* | \
7335    -cache_file* | \
7336    -srcdir* | \
7337    -host* | \
7338    -build* | \
7339    -target* | \
7340    -program-prefix* | \
7341    -program-suffix* | \
7342    -program-transform-name* )
7343      skip_next=$separate_arg
7344      continue
7345      ;;
7346    -*)
7347      # An option.  Add it.
7348      case $ac_arg in
7349	*\'*)
7350	  ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7351      esac
7352      baseargs="$baseargs '$ac_arg'"
7353      if test X"$skip_targ" = Xno; then
7354        tbaseargs="$tbaseargs '$ac_arg'"
7355      fi
7356      keep_next=$separate_arg
7357      ;;
7358    *)
7359      # Either a variable assignment, or a nonopt (triplet).  Don't
7360      # pass it down; let the Makefile handle this.
7361      continue
7362      ;;
7363  esac
7364done
7365# Remove the initial space we just introduced and, as these will be
7366# expanded by make, quote '$'.
7367baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7368
7369# Add in --program-transform-name, after --program-prefix and
7370# --program-suffix have been applied to it.  Autoconf has already
7371# doubled dollar signs and backslashes in program_transform_name; we want
7372# the backslashes un-doubled, and then the entire thing wrapped in single
7373# quotes, because this will be expanded first by make and then by the shell.
7374# Also, because we want to override the logic in subdir configure scripts to
7375# choose program_transform_name, replace any s,x,x, with s,y,y,.
7376sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7377${program_transform_name}
7378EOF_SED
7379gcc_transform_name=`cat conftestsed.out`
7380rm -f conftestsed.out
7381baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7382tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7383if test "$silent" = yes; then
7384  baseargs="$baseargs --silent"
7385  tbaseargs="$tbaseargs --silent"
7386fi
7387baseargs="$baseargs --disable-option-checking"
7388tbaseargs="$tbaseargs --disable-option-checking"
7389
7390# Record and document user additions to sub configure arguments.
7391
7392
7393
7394
7395# For the build-side libraries, we just need to pretend we're native,
7396# and not use the same cache file.  Multilibs are neither needed nor
7397# desired.  We can't even use the same cache file for all build-side
7398# libraries, as they're compiled differently; some with C, some with
7399# C++ or with different feature-enabling options.
7400build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7401
7402# For host modules, accept cache file option, or specification as blank.
7403case "${cache_file}" in
7404"") # empty
7405  cache_file_option="" ;;
7406/* | [A-Za-z]:[\\/]* ) # absolute path
7407  cache_file_option="--cache-file=${cache_file}" ;;
7408*) # relative path
7409  cache_file_option="--cache-file=../${cache_file}" ;;
7410esac
7411
7412# Host dirs don't like to share a cache file either, horribly enough.
7413# This seems to be due to autoconf 2.5x stupidity.
7414host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7415
7416target_configargs="$target_configargs ${tbaseargs}"
7417
7418# Passing a --with-cross-host argument lets the target libraries know
7419# whether they are being built with a cross-compiler or being built
7420# native.  However, it would be better to use other mechanisms to make the
7421# sorts of decisions they want to make on this basis.  Please consider
7422# this option to be deprecated.  FIXME.
7423if test x${is_cross_compiler} = xyes ; then
7424  target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7425fi
7426
7427# Special user-friendly check for native x86_64-linux build, if
7428# multilib is not explicitly enabled.
7429case "$target:$have_compiler:$host:$target:$enable_multilib" in
7430  x86_64-*linux*:yes:$build:$build:)
7431    # Make sure we have a developement environment that handles 32-bit
7432    dev64=no
7433    echo "int main () { return 0; }" > conftest.c
7434    ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7435    if test $? = 0 ; then
7436      if test -s conftest || test -s conftest.exe ; then
7437	dev64=yes
7438      fi
7439    fi
7440    rm -f conftest*
7441    if test x${dev64} != xyes ; then
7442      as_fn_error "I suspect your system does not have 32-bit developement 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
7443    fi
7444    ;;
7445esac
7446
7447# Default to --enable-multilib.
7448if test x${enable_multilib} = x ; then
7449  target_configargs="--enable-multilib ${target_configargs}"
7450fi
7451
7452# Pass --with-newlib if appropriate.  Note that target_configdirs has
7453# changed from the earlier setting of with_newlib.
7454if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7455  target_configargs="--with-newlib ${target_configargs}"
7456fi
7457
7458# Different target subdirs use different values of certain variables
7459# (notably CXX).  Worse, multilibs use *lots* of different values.
7460# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7461# it doesn't automatically accept command-line overrides of them.
7462# This means it's not safe for target subdirs to share a cache file,
7463# which is disgusting, but there you have it.  Hopefully this can be
7464# fixed in future.  It's still worthwhile to use a cache file for each
7465# directory.  I think.
7466
7467# Pass the appropriate --build, --host, --target and --cache-file arguments.
7468# We need to pass --target, as newer autoconf's requires consistency
7469# for target_alias and gcc doesn't manage it consistently.
7470target_configargs="--cache-file=./config.cache ${target_configargs}"
7471
7472FLAGS_FOR_TARGET=
7473case " $target_configdirs " in
7474 *" newlib "*)
7475  case " $target_configargs " in
7476  *" --with-newlib "*)
7477   case "$target" in
7478    *-cygwin*)
7479      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7480      ;;
7481   esac
7482
7483   # If we're not building GCC, don't discard standard headers.
7484   if test -d ${srcdir}/gcc; then
7485     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7486
7487     if test "${build}" != "${host}"; then
7488       # On Canadian crosses, CC_FOR_TARGET will have already been set
7489       # by `configure', so we won't have an opportunity to add -Bgcc/
7490       # to it.  This is right: we don't want to search that directory
7491       # for binaries, but we want the header files in there, so add
7492       # them explicitly.
7493       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7494
7495       # Someone might think of using the pre-installed headers on
7496       # Canadian crosses, in case the installed compiler is not fully
7497       # compatible with the compiler being built.  In this case, it
7498       # would be better to flag an error than risking having
7499       # incompatible object files being constructed.  We can't
7500       # guarantee that an error will be flagged, but let's hope the
7501       # compiler will do it, when presented with incompatible header
7502       # files.
7503     fi
7504   fi
7505
7506   case "${target}-${is_cross_compiler}" in
7507   i[3456789]86-*-linux*-no)
7508      # Here host == target, so we don't need to build gcc,
7509      # so we don't want to discard standard headers.
7510      FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7511      ;;
7512   *)
7513      # If we're building newlib, use its generic headers last, but search
7514      # for any libc-related directories first (so make it the last -B
7515      # switch).
7516      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7517
7518      # If we're building libgloss, find the startup file, simulator library
7519      # and linker script.
7520      case " $target_configdirs " in
7521	*" libgloss "*)
7522	# Look for startup file, simulator library and maybe linker script.
7523	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7524	# Look for libnosys.a in case the target needs it.
7525	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7526	# Most targets have the linker script in the source directory.
7527	FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7528	;;
7529      esac
7530      ;;
7531   esac
7532   ;;
7533  esac
7534  ;;
7535esac
7536
7537case "$target" in
7538  x86_64-*mingw* | *-w64-mingw*)
7539  # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7540  # however, use a symlink named 'mingw' in ${prefix} .
7541    FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7542    ;;
7543  *-mingw*)
7544  # MinGW can't be handled as Cygwin above since it does not use newlib.
7545    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'
7546    ;;
7547esac
7548
7549# Allow the user to override the flags for
7550# our build compiler if desired.
7551if test x"${build}" = x"${host}" ; then
7552  CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7553  CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7554  LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7555fi
7556
7557# On Canadian crosses, we'll be searching the right directories for
7558# the previously-installed cross compiler, so don't bother to add
7559# flags for directories within the install tree of the compiler
7560# being built; programs in there won't even run.
7561if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7562  # Search for pre-installed headers if nothing else fits.
7563  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7564fi
7565
7566if test "x${use_gnu_ld}" = x &&
7567   echo " ${configdirs} " | grep " ld " > /dev/null ; then
7568  # Arrange for us to find uninstalled linker scripts.
7569  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7570fi
7571
7572# Search for other target-specific linker scripts and such.
7573case "${target}" in
7574  mep*)
7575    FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7576    ;;
7577esac
7578
7579# Makefile fragments.
7580for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7581do
7582  eval fragval=\$$frag
7583  if test $fragval != /dev/null; then
7584    eval $frag=${srcdir}/$fragval
7585  fi
7586done
7587
7588
7589
7590
7591
7592# Miscellanea: directories, flags, etc.
7593
7594
7595
7596
7597
7598
7599
7600
7601# Build module lists & subconfigure args.
7602
7603
7604
7605# Host module lists & subconfigure args.
7606
7607
7608
7609
7610# Target module lists & subconfigure args.
7611
7612
7613
7614# Build tools.
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632# Generate default definitions for YACC, M4, LEX and other programs that run
7633# on the build machine.  These are used if the Makefile can't locate these
7634# programs in objdir.
7635MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7636
7637for ac_prog in 'bison -y' byacc yacc
7638do
7639  # Extract the first word of "$ac_prog", so it can be a program name with args.
7640set dummy $ac_prog; ac_word=$2
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642$as_echo_n "checking for $ac_word... " >&6; }
7643if test "${ac_cv_prog_YACC+set}" = set; then :
7644  $as_echo_n "(cached) " >&6
7645else
7646  if test -n "$YACC"; then
7647  ac_cv_prog_YACC="$YACC" # Let the user override the test.
7648else
7649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650for as_dir in $PATH
7651do
7652  IFS=$as_save_IFS
7653  test -z "$as_dir" && as_dir=.
7654    for ac_exec_ext in '' $ac_executable_extensions; do
7655  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7656    ac_cv_prog_YACC="$ac_prog"
7657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658    break 2
7659  fi
7660done
7661  done
7662IFS=$as_save_IFS
7663
7664fi
7665fi
7666YACC=$ac_cv_prog_YACC
7667if test -n "$YACC"; then
7668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7669$as_echo "$YACC" >&6; }
7670else
7671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672$as_echo "no" >&6; }
7673fi
7674
7675
7676  test -n "$YACC" && break
7677done
7678test -n "$YACC" || YACC="$MISSING bison -y"
7679
7680case " $build_configdirs " in
7681  *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7682esac
7683
7684for ac_prog in bison
7685do
7686  # Extract the first word of "$ac_prog", so it can be a program name with args.
7687set dummy $ac_prog; ac_word=$2
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689$as_echo_n "checking for $ac_word... " >&6; }
7690if test "${ac_cv_prog_BISON+set}" = set; then :
7691  $as_echo_n "(cached) " >&6
7692else
7693  if test -n "$BISON"; then
7694  ac_cv_prog_BISON="$BISON" # Let the user override the test.
7695else
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699  IFS=$as_save_IFS
7700  test -z "$as_dir" && as_dir=.
7701    for ac_exec_ext in '' $ac_executable_extensions; do
7702  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7703    ac_cv_prog_BISON="$ac_prog"
7704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705    break 2
7706  fi
7707done
7708  done
7709IFS=$as_save_IFS
7710
7711fi
7712fi
7713BISON=$ac_cv_prog_BISON
7714if test -n "$BISON"; then
7715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7716$as_echo "$BISON" >&6; }
7717else
7718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719$as_echo "no" >&6; }
7720fi
7721
7722
7723  test -n "$BISON" && break
7724done
7725test -n "$BISON" || BISON="$MISSING bison"
7726
7727case " $build_configdirs " in
7728  *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7729esac
7730
7731for ac_prog in gm4 gnum4 m4
7732do
7733  # Extract the first word of "$ac_prog", so it can be a program name with args.
7734set dummy $ac_prog; ac_word=$2
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736$as_echo_n "checking for $ac_word... " >&6; }
7737if test "${ac_cv_prog_M4+set}" = set; then :
7738  $as_echo_n "(cached) " >&6
7739else
7740  if test -n "$M4"; then
7741  ac_cv_prog_M4="$M4" # Let the user override the test.
7742else
7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744for as_dir in $PATH
7745do
7746  IFS=$as_save_IFS
7747  test -z "$as_dir" && as_dir=.
7748    for ac_exec_ext in '' $ac_executable_extensions; do
7749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7750    ac_cv_prog_M4="$ac_prog"
7751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752    break 2
7753  fi
7754done
7755  done
7756IFS=$as_save_IFS
7757
7758fi
7759fi
7760M4=$ac_cv_prog_M4
7761if test -n "$M4"; then
7762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7763$as_echo "$M4" >&6; }
7764else
7765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766$as_echo "no" >&6; }
7767fi
7768
7769
7770  test -n "$M4" && break
7771done
7772test -n "$M4" || M4="$MISSING m4"
7773
7774case " $build_configdirs " in
7775  *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7776esac
7777
7778for ac_prog in flex lex
7779do
7780  # Extract the first word of "$ac_prog", so it can be a program name with args.
7781set dummy $ac_prog; ac_word=$2
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783$as_echo_n "checking for $ac_word... " >&6; }
7784if test "${ac_cv_prog_LEX+set}" = set; then :
7785  $as_echo_n "(cached) " >&6
7786else
7787  if test -n "$LEX"; then
7788  ac_cv_prog_LEX="$LEX" # Let the user override the test.
7789else
7790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791for as_dir in $PATH
7792do
7793  IFS=$as_save_IFS
7794  test -z "$as_dir" && as_dir=.
7795    for ac_exec_ext in '' $ac_executable_extensions; do
7796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797    ac_cv_prog_LEX="$ac_prog"
7798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799    break 2
7800  fi
7801done
7802  done
7803IFS=$as_save_IFS
7804
7805fi
7806fi
7807LEX=$ac_cv_prog_LEX
7808if test -n "$LEX"; then
7809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7810$as_echo "$LEX" >&6; }
7811else
7812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813$as_echo "no" >&6; }
7814fi
7815
7816
7817  test -n "$LEX" && break
7818done
7819test -n "$LEX" || LEX="$MISSING flex"
7820
7821case " $build_configdirs " in
7822  *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7823  *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7824esac
7825
7826for ac_prog in flex
7827do
7828  # Extract the first word of "$ac_prog", so it can be a program name with args.
7829set dummy $ac_prog; ac_word=$2
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831$as_echo_n "checking for $ac_word... " >&6; }
7832if test "${ac_cv_prog_FLEX+set}" = set; then :
7833  $as_echo_n "(cached) " >&6
7834else
7835  if test -n "$FLEX"; then
7836  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7837else
7838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841  IFS=$as_save_IFS
7842  test -z "$as_dir" && as_dir=.
7843    for ac_exec_ext in '' $ac_executable_extensions; do
7844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7845    ac_cv_prog_FLEX="$ac_prog"
7846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847    break 2
7848  fi
7849done
7850  done
7851IFS=$as_save_IFS
7852
7853fi
7854fi
7855FLEX=$ac_cv_prog_FLEX
7856if test -n "$FLEX"; then
7857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7858$as_echo "$FLEX" >&6; }
7859else
7860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861$as_echo "no" >&6; }
7862fi
7863
7864
7865  test -n "$FLEX" && break
7866done
7867test -n "$FLEX" || FLEX="$MISSING flex"
7868
7869case " $build_configdirs " in
7870  *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7871esac
7872
7873for ac_prog in makeinfo
7874do
7875  # Extract the first word of "$ac_prog", so it can be a program name with args.
7876set dummy $ac_prog; ac_word=$2
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878$as_echo_n "checking for $ac_word... " >&6; }
7879if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7880  $as_echo_n "(cached) " >&6
7881else
7882  if test -n "$MAKEINFO"; then
7883  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7884else
7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888  IFS=$as_save_IFS
7889  test -z "$as_dir" && as_dir=.
7890    for ac_exec_ext in '' $ac_executable_extensions; do
7891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892    ac_cv_prog_MAKEINFO="$ac_prog"
7893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894    break 2
7895  fi
7896done
7897  done
7898IFS=$as_save_IFS
7899
7900fi
7901fi
7902MAKEINFO=$ac_cv_prog_MAKEINFO
7903if test -n "$MAKEINFO"; then
7904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7905$as_echo "$MAKEINFO" >&6; }
7906else
7907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909fi
7910
7911
7912  test -n "$MAKEINFO" && break
7913done
7914test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7915
7916case " $build_configdirs " in
7917  *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7918  *)
7919
7920    # For an installed makeinfo, we require it to be from texinfo 4.7 or
7921    # higher, else we use the "missing" dummy.
7922    if ${MAKEINFO} --version \
7923       | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7924      :
7925    else
7926      MAKEINFO="$MISSING makeinfo"
7927    fi
7928    ;;
7929
7930esac
7931
7932# FIXME: expect and dejagnu may become build tools?
7933
7934for ac_prog in expect
7935do
7936  # Extract the first word of "$ac_prog", so it can be a program name with args.
7937set dummy $ac_prog; ac_word=$2
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939$as_echo_n "checking for $ac_word... " >&6; }
7940if test "${ac_cv_prog_EXPECT+set}" = set; then :
7941  $as_echo_n "(cached) " >&6
7942else
7943  if test -n "$EXPECT"; then
7944  ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7945else
7946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947for as_dir in $PATH
7948do
7949  IFS=$as_save_IFS
7950  test -z "$as_dir" && as_dir=.
7951    for ac_exec_ext in '' $ac_executable_extensions; do
7952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7953    ac_cv_prog_EXPECT="$ac_prog"
7954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955    break 2
7956  fi
7957done
7958  done
7959IFS=$as_save_IFS
7960
7961fi
7962fi
7963EXPECT=$ac_cv_prog_EXPECT
7964if test -n "$EXPECT"; then
7965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7966$as_echo "$EXPECT" >&6; }
7967else
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969$as_echo "no" >&6; }
7970fi
7971
7972
7973  test -n "$EXPECT" && break
7974done
7975test -n "$EXPECT" || EXPECT="expect"
7976
7977case " $configdirs " in
7978  *" expect "*)
7979    test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7980    ;;
7981esac
7982
7983for ac_prog in runtest
7984do
7985  # Extract the first word of "$ac_prog", so it can be a program name with args.
7986set dummy $ac_prog; ac_word=$2
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988$as_echo_n "checking for $ac_word... " >&6; }
7989if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992  if test -n "$RUNTEST"; then
7993  ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7994else
7995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996for as_dir in $PATH
7997do
7998  IFS=$as_save_IFS
7999  test -z "$as_dir" && as_dir=.
8000    for ac_exec_ext in '' $ac_executable_extensions; do
8001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8002    ac_cv_prog_RUNTEST="$ac_prog"
8003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004    break 2
8005  fi
8006done
8007  done
8008IFS=$as_save_IFS
8009
8010fi
8011fi
8012RUNTEST=$ac_cv_prog_RUNTEST
8013if test -n "$RUNTEST"; then
8014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8015$as_echo "$RUNTEST" >&6; }
8016else
8017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018$as_echo "no" >&6; }
8019fi
8020
8021
8022  test -n "$RUNTEST" && break
8023done
8024test -n "$RUNTEST" || RUNTEST="runtest"
8025
8026case " $configdirs " in
8027  *" dejagnu "*)
8028    test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8029    ;;
8030esac
8031
8032
8033# Host tools.
8034ncn_tool_prefix=
8035test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8036ncn_target_tool_prefix=
8037test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8038
8039
8040
8041if test -n "$AR"; then
8042  ac_cv_prog_AR=$AR
8043elif test -n "$ac_cv_prog_AR"; then
8044  AR=$ac_cv_prog_AR
8045fi
8046
8047if test -n "$ac_cv_prog_AR"; then
8048  for ncn_progname in ar; do
8049    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8050set dummy ${ncn_progname}; ac_word=$2
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052$as_echo_n "checking for $ac_word... " >&6; }
8053if test "${ac_cv_prog_AR+set}" = set; then :
8054  $as_echo_n "(cached) " >&6
8055else
8056  if test -n "$AR"; then
8057  ac_cv_prog_AR="$AR" # Let the user override the test.
8058else
8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062  IFS=$as_save_IFS
8063  test -z "$as_dir" && as_dir=.
8064    for ac_exec_ext in '' $ac_executable_extensions; do
8065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066    ac_cv_prog_AR="${ncn_progname}"
8067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068    break 2
8069  fi
8070done
8071  done
8072IFS=$as_save_IFS
8073
8074fi
8075fi
8076AR=$ac_cv_prog_AR
8077if test -n "$AR"; then
8078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8079$as_echo "$AR" >&6; }
8080else
8081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
8083fi
8084
8085
8086  done
8087fi
8088
8089for ncn_progname in ar; do
8090  if test -n "$ncn_tool_prefix"; then
8091    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8092set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094$as_echo_n "checking for $ac_word... " >&6; }
8095if test "${ac_cv_prog_AR+set}" = set; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  if test -n "$AR"; then
8099  ac_cv_prog_AR="$AR" # Let the user override the test.
8100else
8101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102for as_dir in $PATH
8103do
8104  IFS=$as_save_IFS
8105  test -z "$as_dir" && as_dir=.
8106    for ac_exec_ext in '' $ac_executable_extensions; do
8107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8108    ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110    break 2
8111  fi
8112done
8113  done
8114IFS=$as_save_IFS
8115
8116fi
8117fi
8118AR=$ac_cv_prog_AR
8119if test -n "$AR"; then
8120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8121$as_echo "$AR" >&6; }
8122else
8123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124$as_echo "no" >&6; }
8125fi
8126
8127
8128  fi
8129  if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8130    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8131set dummy ${ncn_progname}; ac_word=$2
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133$as_echo_n "checking for $ac_word... " >&6; }
8134if test "${ac_cv_prog_AR+set}" = set; then :
8135  $as_echo_n "(cached) " >&6
8136else
8137  if test -n "$AR"; then
8138  ac_cv_prog_AR="$AR" # Let the user override the test.
8139else
8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143  IFS=$as_save_IFS
8144  test -z "$as_dir" && as_dir=.
8145    for ac_exec_ext in '' $ac_executable_extensions; do
8146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147    ac_cv_prog_AR="${ncn_progname}"
8148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149    break 2
8150  fi
8151done
8152  done
8153IFS=$as_save_IFS
8154
8155fi
8156fi
8157AR=$ac_cv_prog_AR
8158if test -n "$AR"; then
8159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8160$as_echo "$AR" >&6; }
8161else
8162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163$as_echo "no" >&6; }
8164fi
8165
8166
8167  fi
8168  test -n "$ac_cv_prog_AR" && break
8169done
8170
8171if test -z "$ac_cv_prog_AR" ; then
8172  set dummy ar
8173  if test $build = $host ; then
8174    AR="$2"
8175  else
8176    AR="${ncn_tool_prefix}$2"
8177  fi
8178fi
8179
8180
8181
8182if test -n "$AS"; then
8183  ac_cv_prog_AS=$AS
8184elif test -n "$ac_cv_prog_AS"; then
8185  AS=$ac_cv_prog_AS
8186fi
8187
8188if test -n "$ac_cv_prog_AS"; then
8189  for ncn_progname in as; do
8190    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8191set dummy ${ncn_progname}; ac_word=$2
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193$as_echo_n "checking for $ac_word... " >&6; }
8194if test "${ac_cv_prog_AS+set}" = set; then :
8195  $as_echo_n "(cached) " >&6
8196else
8197  if test -n "$AS"; then
8198  ac_cv_prog_AS="$AS" # Let the user override the test.
8199else
8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201for as_dir in $PATH
8202do
8203  IFS=$as_save_IFS
8204  test -z "$as_dir" && as_dir=.
8205    for ac_exec_ext in '' $ac_executable_extensions; do
8206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8207    ac_cv_prog_AS="${ncn_progname}"
8208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209    break 2
8210  fi
8211done
8212  done
8213IFS=$as_save_IFS
8214
8215fi
8216fi
8217AS=$ac_cv_prog_AS
8218if test -n "$AS"; then
8219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8220$as_echo "$AS" >&6; }
8221else
8222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223$as_echo "no" >&6; }
8224fi
8225
8226
8227  done
8228fi
8229
8230for ncn_progname in as; do
8231  if test -n "$ncn_tool_prefix"; then
8232    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8233set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235$as_echo_n "checking for $ac_word... " >&6; }
8236if test "${ac_cv_prog_AS+set}" = set; then :
8237  $as_echo_n "(cached) " >&6
8238else
8239  if test -n "$AS"; then
8240  ac_cv_prog_AS="$AS" # Let the user override the test.
8241else
8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243for as_dir in $PATH
8244do
8245  IFS=$as_save_IFS
8246  test -z "$as_dir" && as_dir=.
8247    for ac_exec_ext in '' $ac_executable_extensions; do
8248  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8249    ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251    break 2
8252  fi
8253done
8254  done
8255IFS=$as_save_IFS
8256
8257fi
8258fi
8259AS=$ac_cv_prog_AS
8260if test -n "$AS"; then
8261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8262$as_echo "$AS" >&6; }
8263else
8264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265$as_echo "no" >&6; }
8266fi
8267
8268
8269  fi
8270  if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8271    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8272set dummy ${ncn_progname}; ac_word=$2
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274$as_echo_n "checking for $ac_word... " >&6; }
8275if test "${ac_cv_prog_AS+set}" = set; then :
8276  $as_echo_n "(cached) " >&6
8277else
8278  if test -n "$AS"; then
8279  ac_cv_prog_AS="$AS" # Let the user override the test.
8280else
8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284  IFS=$as_save_IFS
8285  test -z "$as_dir" && as_dir=.
8286    for ac_exec_ext in '' $ac_executable_extensions; do
8287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288    ac_cv_prog_AS="${ncn_progname}"
8289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290    break 2
8291  fi
8292done
8293  done
8294IFS=$as_save_IFS
8295
8296fi
8297fi
8298AS=$ac_cv_prog_AS
8299if test -n "$AS"; then
8300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8301$as_echo "$AS" >&6; }
8302else
8303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304$as_echo "no" >&6; }
8305fi
8306
8307
8308  fi
8309  test -n "$ac_cv_prog_AS" && break
8310done
8311
8312if test -z "$ac_cv_prog_AS" ; then
8313  set dummy as
8314  if test $build = $host ; then
8315    AS="$2"
8316  else
8317    AS="${ncn_tool_prefix}$2"
8318  fi
8319fi
8320
8321
8322
8323if test -n "$DLLTOOL"; then
8324  ac_cv_prog_DLLTOOL=$DLLTOOL
8325elif test -n "$ac_cv_prog_DLLTOOL"; then
8326  DLLTOOL=$ac_cv_prog_DLLTOOL
8327fi
8328
8329if test -n "$ac_cv_prog_DLLTOOL"; then
8330  for ncn_progname in dlltool; do
8331    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8332set dummy ${ncn_progname}; ac_word=$2
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334$as_echo_n "checking for $ac_word... " >&6; }
8335if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  if test -n "$DLLTOOL"; then
8339  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8340else
8341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342for as_dir in $PATH
8343do
8344  IFS=$as_save_IFS
8345  test -z "$as_dir" && as_dir=.
8346    for ac_exec_ext in '' $ac_executable_extensions; do
8347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348    ac_cv_prog_DLLTOOL="${ncn_progname}"
8349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350    break 2
8351  fi
8352done
8353  done
8354IFS=$as_save_IFS
8355
8356fi
8357fi
8358DLLTOOL=$ac_cv_prog_DLLTOOL
8359if test -n "$DLLTOOL"; then
8360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8361$as_echo "$DLLTOOL" >&6; }
8362else
8363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
8365fi
8366
8367
8368  done
8369fi
8370
8371for ncn_progname in dlltool; do
8372  if test -n "$ncn_tool_prefix"; then
8373    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8374set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376$as_echo_n "checking for $ac_word... " >&6; }
8377if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8378  $as_echo_n "(cached) " >&6
8379else
8380  if test -n "$DLLTOOL"; then
8381  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8382else
8383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384for as_dir in $PATH
8385do
8386  IFS=$as_save_IFS
8387  test -z "$as_dir" && as_dir=.
8388    for ac_exec_ext in '' $ac_executable_extensions; do
8389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8390    ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392    break 2
8393  fi
8394done
8395  done
8396IFS=$as_save_IFS
8397
8398fi
8399fi
8400DLLTOOL=$ac_cv_prog_DLLTOOL
8401if test -n "$DLLTOOL"; then
8402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8403$as_echo "$DLLTOOL" >&6; }
8404else
8405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406$as_echo "no" >&6; }
8407fi
8408
8409
8410  fi
8411  if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8412    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8413set dummy ${ncn_progname}; ac_word=$2
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415$as_echo_n "checking for $ac_word... " >&6; }
8416if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8417  $as_echo_n "(cached) " >&6
8418else
8419  if test -n "$DLLTOOL"; then
8420  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8421else
8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425  IFS=$as_save_IFS
8426  test -z "$as_dir" && as_dir=.
8427    for ac_exec_ext in '' $ac_executable_extensions; do
8428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8429    ac_cv_prog_DLLTOOL="${ncn_progname}"
8430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431    break 2
8432  fi
8433done
8434  done
8435IFS=$as_save_IFS
8436
8437fi
8438fi
8439DLLTOOL=$ac_cv_prog_DLLTOOL
8440if test -n "$DLLTOOL"; then
8441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8442$as_echo "$DLLTOOL" >&6; }
8443else
8444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
8446fi
8447
8448
8449  fi
8450  test -n "$ac_cv_prog_DLLTOOL" && break
8451done
8452
8453if test -z "$ac_cv_prog_DLLTOOL" ; then
8454  set dummy dlltool
8455  if test $build = $host ; then
8456    DLLTOOL="$2"
8457  else
8458    DLLTOOL="${ncn_tool_prefix}$2"
8459  fi
8460fi
8461
8462
8463
8464if test -n "$LD"; then
8465  ac_cv_prog_LD=$LD
8466elif test -n "$ac_cv_prog_LD"; then
8467  LD=$ac_cv_prog_LD
8468fi
8469
8470if test -n "$ac_cv_prog_LD"; then
8471  for ncn_progname in ld; do
8472    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8473set dummy ${ncn_progname}; ac_word=$2
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475$as_echo_n "checking for $ac_word... " >&6; }
8476if test "${ac_cv_prog_LD+set}" = set; then :
8477  $as_echo_n "(cached) " >&6
8478else
8479  if test -n "$LD"; then
8480  ac_cv_prog_LD="$LD" # Let the user override the test.
8481else
8482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483for as_dir in $PATH
8484do
8485  IFS=$as_save_IFS
8486  test -z "$as_dir" && as_dir=.
8487    for ac_exec_ext in '' $ac_executable_extensions; do
8488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8489    ac_cv_prog_LD="${ncn_progname}"
8490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491    break 2
8492  fi
8493done
8494  done
8495IFS=$as_save_IFS
8496
8497fi
8498fi
8499LD=$ac_cv_prog_LD
8500if test -n "$LD"; then
8501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8502$as_echo "$LD" >&6; }
8503else
8504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505$as_echo "no" >&6; }
8506fi
8507
8508
8509  done
8510fi
8511
8512for ncn_progname in ld; do
8513  if test -n "$ncn_tool_prefix"; then
8514    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8515set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517$as_echo_n "checking for $ac_word... " >&6; }
8518if test "${ac_cv_prog_LD+set}" = set; then :
8519  $as_echo_n "(cached) " >&6
8520else
8521  if test -n "$LD"; then
8522  ac_cv_prog_LD="$LD" # Let the user override the test.
8523else
8524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525for as_dir in $PATH
8526do
8527  IFS=$as_save_IFS
8528  test -z "$as_dir" && as_dir=.
8529    for ac_exec_ext in '' $ac_executable_extensions; do
8530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531    ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533    break 2
8534  fi
8535done
8536  done
8537IFS=$as_save_IFS
8538
8539fi
8540fi
8541LD=$ac_cv_prog_LD
8542if test -n "$LD"; then
8543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8544$as_echo "$LD" >&6; }
8545else
8546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547$as_echo "no" >&6; }
8548fi
8549
8550
8551  fi
8552  if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8553    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8554set dummy ${ncn_progname}; ac_word=$2
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556$as_echo_n "checking for $ac_word... " >&6; }
8557if test "${ac_cv_prog_LD+set}" = set; then :
8558  $as_echo_n "(cached) " >&6
8559else
8560  if test -n "$LD"; then
8561  ac_cv_prog_LD="$LD" # Let the user override the test.
8562else
8563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564for as_dir in $PATH
8565do
8566  IFS=$as_save_IFS
8567  test -z "$as_dir" && as_dir=.
8568    for ac_exec_ext in '' $ac_executable_extensions; do
8569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8570    ac_cv_prog_LD="${ncn_progname}"
8571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572    break 2
8573  fi
8574done
8575  done
8576IFS=$as_save_IFS
8577
8578fi
8579fi
8580LD=$ac_cv_prog_LD
8581if test -n "$LD"; then
8582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8583$as_echo "$LD" >&6; }
8584else
8585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586$as_echo "no" >&6; }
8587fi
8588
8589
8590  fi
8591  test -n "$ac_cv_prog_LD" && break
8592done
8593
8594if test -z "$ac_cv_prog_LD" ; then
8595  set dummy ld
8596  if test $build = $host ; then
8597    LD="$2"
8598  else
8599    LD="${ncn_tool_prefix}$2"
8600  fi
8601fi
8602
8603
8604
8605if test -n "$LIPO"; then
8606  ac_cv_prog_LIPO=$LIPO
8607elif test -n "$ac_cv_prog_LIPO"; then
8608  LIPO=$ac_cv_prog_LIPO
8609fi
8610
8611if test -n "$ac_cv_prog_LIPO"; then
8612  for ncn_progname in lipo; do
8613    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8614set dummy ${ncn_progname}; ac_word=$2
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616$as_echo_n "checking for $ac_word... " >&6; }
8617if test "${ac_cv_prog_LIPO+set}" = set; then :
8618  $as_echo_n "(cached) " >&6
8619else
8620  if test -n "$LIPO"; then
8621  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8622else
8623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624for as_dir in $PATH
8625do
8626  IFS=$as_save_IFS
8627  test -z "$as_dir" && as_dir=.
8628    for ac_exec_ext in '' $ac_executable_extensions; do
8629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630    ac_cv_prog_LIPO="${ncn_progname}"
8631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632    break 2
8633  fi
8634done
8635  done
8636IFS=$as_save_IFS
8637
8638fi
8639fi
8640LIPO=$ac_cv_prog_LIPO
8641if test -n "$LIPO"; then
8642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8643$as_echo "$LIPO" >&6; }
8644else
8645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646$as_echo "no" >&6; }
8647fi
8648
8649
8650  done
8651fi
8652
8653for ncn_progname in lipo; do
8654  if test -n "$ncn_tool_prefix"; then
8655    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8656set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658$as_echo_n "checking for $ac_word... " >&6; }
8659if test "${ac_cv_prog_LIPO+set}" = set; then :
8660  $as_echo_n "(cached) " >&6
8661else
8662  if test -n "$LIPO"; then
8663  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8664else
8665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666for as_dir in $PATH
8667do
8668  IFS=$as_save_IFS
8669  test -z "$as_dir" && as_dir=.
8670    for ac_exec_ext in '' $ac_executable_extensions; do
8671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8672    ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674    break 2
8675  fi
8676done
8677  done
8678IFS=$as_save_IFS
8679
8680fi
8681fi
8682LIPO=$ac_cv_prog_LIPO
8683if test -n "$LIPO"; then
8684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8685$as_echo "$LIPO" >&6; }
8686else
8687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688$as_echo "no" >&6; }
8689fi
8690
8691
8692  fi
8693  if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8694    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8695set dummy ${ncn_progname}; ac_word=$2
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697$as_echo_n "checking for $ac_word... " >&6; }
8698if test "${ac_cv_prog_LIPO+set}" = set; then :
8699  $as_echo_n "(cached) " >&6
8700else
8701  if test -n "$LIPO"; then
8702  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8703else
8704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705for as_dir in $PATH
8706do
8707  IFS=$as_save_IFS
8708  test -z "$as_dir" && as_dir=.
8709    for ac_exec_ext in '' $ac_executable_extensions; do
8710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8711    ac_cv_prog_LIPO="${ncn_progname}"
8712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713    break 2
8714  fi
8715done
8716  done
8717IFS=$as_save_IFS
8718
8719fi
8720fi
8721LIPO=$ac_cv_prog_LIPO
8722if test -n "$LIPO"; then
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8724$as_echo "$LIPO" >&6; }
8725else
8726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727$as_echo "no" >&6; }
8728fi
8729
8730
8731  fi
8732  test -n "$ac_cv_prog_LIPO" && break
8733done
8734
8735if test -z "$ac_cv_prog_LIPO" ; then
8736  set dummy lipo
8737  if test $build = $host ; then
8738    LIPO="$2"
8739  else
8740    LIPO="${ncn_tool_prefix}$2"
8741  fi
8742fi
8743
8744
8745
8746if test -n "$NM"; then
8747  ac_cv_prog_NM=$NM
8748elif test -n "$ac_cv_prog_NM"; then
8749  NM=$ac_cv_prog_NM
8750fi
8751
8752if test -n "$ac_cv_prog_NM"; then
8753  for ncn_progname in nm; do
8754    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8755set dummy ${ncn_progname}; ac_word=$2
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757$as_echo_n "checking for $ac_word... " >&6; }
8758if test "${ac_cv_prog_NM+set}" = set; then :
8759  $as_echo_n "(cached) " >&6
8760else
8761  if test -n "$NM"; then
8762  ac_cv_prog_NM="$NM" # Let the user override the test.
8763else
8764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765for as_dir in $PATH
8766do
8767  IFS=$as_save_IFS
8768  test -z "$as_dir" && as_dir=.
8769    for ac_exec_ext in '' $ac_executable_extensions; do
8770  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771    ac_cv_prog_NM="${ncn_progname}"
8772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773    break 2
8774  fi
8775done
8776  done
8777IFS=$as_save_IFS
8778
8779fi
8780fi
8781NM=$ac_cv_prog_NM
8782if test -n "$NM"; then
8783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8784$as_echo "$NM" >&6; }
8785else
8786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787$as_echo "no" >&6; }
8788fi
8789
8790
8791  done
8792fi
8793
8794for ncn_progname in nm; do
8795  if test -n "$ncn_tool_prefix"; then
8796    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8797set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799$as_echo_n "checking for $ac_word... " >&6; }
8800if test "${ac_cv_prog_NM+set}" = set; then :
8801  $as_echo_n "(cached) " >&6
8802else
8803  if test -n "$NM"; then
8804  ac_cv_prog_NM="$NM" # Let the user override the test.
8805else
8806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $PATH
8808do
8809  IFS=$as_save_IFS
8810  test -z "$as_dir" && as_dir=.
8811    for ac_exec_ext in '' $ac_executable_extensions; do
8812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8813    ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815    break 2
8816  fi
8817done
8818  done
8819IFS=$as_save_IFS
8820
8821fi
8822fi
8823NM=$ac_cv_prog_NM
8824if test -n "$NM"; then
8825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8826$as_echo "$NM" >&6; }
8827else
8828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829$as_echo "no" >&6; }
8830fi
8831
8832
8833  fi
8834  if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8835    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8836set dummy ${ncn_progname}; ac_word=$2
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838$as_echo_n "checking for $ac_word... " >&6; }
8839if test "${ac_cv_prog_NM+set}" = set; then :
8840  $as_echo_n "(cached) " >&6
8841else
8842  if test -n "$NM"; then
8843  ac_cv_prog_NM="$NM" # Let the user override the test.
8844else
8845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848  IFS=$as_save_IFS
8849  test -z "$as_dir" && as_dir=.
8850    for ac_exec_ext in '' $ac_executable_extensions; do
8851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8852    ac_cv_prog_NM="${ncn_progname}"
8853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854    break 2
8855  fi
8856done
8857  done
8858IFS=$as_save_IFS
8859
8860fi
8861fi
8862NM=$ac_cv_prog_NM
8863if test -n "$NM"; then
8864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8865$as_echo "$NM" >&6; }
8866else
8867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868$as_echo "no" >&6; }
8869fi
8870
8871
8872  fi
8873  test -n "$ac_cv_prog_NM" && break
8874done
8875
8876if test -z "$ac_cv_prog_NM" ; then
8877  set dummy nm
8878  if test $build = $host ; then
8879    NM="$2"
8880  else
8881    NM="${ncn_tool_prefix}$2"
8882  fi
8883fi
8884
8885
8886
8887if test -n "$RANLIB"; then
8888  ac_cv_prog_RANLIB=$RANLIB
8889elif test -n "$ac_cv_prog_RANLIB"; then
8890  RANLIB=$ac_cv_prog_RANLIB
8891fi
8892
8893if test -n "$ac_cv_prog_RANLIB"; then
8894  for ncn_progname in ranlib; do
8895    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8896set dummy ${ncn_progname}; ac_word=$2
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898$as_echo_n "checking for $ac_word... " >&6; }
8899if test "${ac_cv_prog_RANLIB+set}" = set; then :
8900  $as_echo_n "(cached) " >&6
8901else
8902  if test -n "$RANLIB"; then
8903  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8904else
8905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906for as_dir in $PATH
8907do
8908  IFS=$as_save_IFS
8909  test -z "$as_dir" && as_dir=.
8910    for ac_exec_ext in '' $ac_executable_extensions; do
8911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8912    ac_cv_prog_RANLIB="${ncn_progname}"
8913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8914    break 2
8915  fi
8916done
8917  done
8918IFS=$as_save_IFS
8919
8920fi
8921fi
8922RANLIB=$ac_cv_prog_RANLIB
8923if test -n "$RANLIB"; then
8924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8925$as_echo "$RANLIB" >&6; }
8926else
8927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928$as_echo "no" >&6; }
8929fi
8930
8931
8932  done
8933fi
8934
8935for ncn_progname in ranlib; do
8936  if test -n "$ncn_tool_prefix"; then
8937    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8938set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940$as_echo_n "checking for $ac_word... " >&6; }
8941if test "${ac_cv_prog_RANLIB+set}" = set; then :
8942  $as_echo_n "(cached) " >&6
8943else
8944  if test -n "$RANLIB"; then
8945  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8946else
8947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948for as_dir in $PATH
8949do
8950  IFS=$as_save_IFS
8951  test -z "$as_dir" && as_dir=.
8952    for ac_exec_ext in '' $ac_executable_extensions; do
8953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8954    ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8956    break 2
8957  fi
8958done
8959  done
8960IFS=$as_save_IFS
8961
8962fi
8963fi
8964RANLIB=$ac_cv_prog_RANLIB
8965if test -n "$RANLIB"; then
8966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8967$as_echo "$RANLIB" >&6; }
8968else
8969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970$as_echo "no" >&6; }
8971fi
8972
8973
8974  fi
8975  if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8976    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8977set dummy ${ncn_progname}; ac_word=$2
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979$as_echo_n "checking for $ac_word... " >&6; }
8980if test "${ac_cv_prog_RANLIB+set}" = set; then :
8981  $as_echo_n "(cached) " >&6
8982else
8983  if test -n "$RANLIB"; then
8984  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8985else
8986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987for as_dir in $PATH
8988do
8989  IFS=$as_save_IFS
8990  test -z "$as_dir" && as_dir=.
8991    for ac_exec_ext in '' $ac_executable_extensions; do
8992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993    ac_cv_prog_RANLIB="${ncn_progname}"
8994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995    break 2
8996  fi
8997done
8998  done
8999IFS=$as_save_IFS
9000
9001fi
9002fi
9003RANLIB=$ac_cv_prog_RANLIB
9004if test -n "$RANLIB"; then
9005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9006$as_echo "$RANLIB" >&6; }
9007else
9008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009$as_echo "no" >&6; }
9010fi
9011
9012
9013  fi
9014  test -n "$ac_cv_prog_RANLIB" && break
9015done
9016
9017if test -z "$ac_cv_prog_RANLIB" ; then
9018  RANLIB="true"
9019fi
9020
9021
9022
9023if test -n "$STRIP"; then
9024  ac_cv_prog_STRIP=$STRIP
9025elif test -n "$ac_cv_prog_STRIP"; then
9026  STRIP=$ac_cv_prog_STRIP
9027fi
9028
9029if test -n "$ac_cv_prog_STRIP"; then
9030  for ncn_progname in strip; do
9031    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9032set dummy ${ncn_progname}; ac_word=$2
9033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034$as_echo_n "checking for $ac_word... " >&6; }
9035if test "${ac_cv_prog_STRIP+set}" = set; then :
9036  $as_echo_n "(cached) " >&6
9037else
9038  if test -n "$STRIP"; then
9039  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9040else
9041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042for as_dir in $PATH
9043do
9044  IFS=$as_save_IFS
9045  test -z "$as_dir" && as_dir=.
9046    for ac_exec_ext in '' $ac_executable_extensions; do
9047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9048    ac_cv_prog_STRIP="${ncn_progname}"
9049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050    break 2
9051  fi
9052done
9053  done
9054IFS=$as_save_IFS
9055
9056fi
9057fi
9058STRIP=$ac_cv_prog_STRIP
9059if test -n "$STRIP"; then
9060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9061$as_echo "$STRIP" >&6; }
9062else
9063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064$as_echo "no" >&6; }
9065fi
9066
9067
9068  done
9069fi
9070
9071for ncn_progname in strip; do
9072  if test -n "$ncn_tool_prefix"; then
9073    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9074set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076$as_echo_n "checking for $ac_word... " >&6; }
9077if test "${ac_cv_prog_STRIP+set}" = set; then :
9078  $as_echo_n "(cached) " >&6
9079else
9080  if test -n "$STRIP"; then
9081  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9082else
9083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084for as_dir in $PATH
9085do
9086  IFS=$as_save_IFS
9087  test -z "$as_dir" && as_dir=.
9088    for ac_exec_ext in '' $ac_executable_extensions; do
9089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9090    ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9092    break 2
9093  fi
9094done
9095  done
9096IFS=$as_save_IFS
9097
9098fi
9099fi
9100STRIP=$ac_cv_prog_STRIP
9101if test -n "$STRIP"; then
9102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9103$as_echo "$STRIP" >&6; }
9104else
9105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106$as_echo "no" >&6; }
9107fi
9108
9109
9110  fi
9111  if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9112    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9113set dummy ${ncn_progname}; ac_word=$2
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115$as_echo_n "checking for $ac_word... " >&6; }
9116if test "${ac_cv_prog_STRIP+set}" = set; then :
9117  $as_echo_n "(cached) " >&6
9118else
9119  if test -n "$STRIP"; then
9120  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9121else
9122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123for as_dir in $PATH
9124do
9125  IFS=$as_save_IFS
9126  test -z "$as_dir" && as_dir=.
9127    for ac_exec_ext in '' $ac_executable_extensions; do
9128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9129    ac_cv_prog_STRIP="${ncn_progname}"
9130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131    break 2
9132  fi
9133done
9134  done
9135IFS=$as_save_IFS
9136
9137fi
9138fi
9139STRIP=$ac_cv_prog_STRIP
9140if test -n "$STRIP"; then
9141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9142$as_echo "$STRIP" >&6; }
9143else
9144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145$as_echo "no" >&6; }
9146fi
9147
9148
9149  fi
9150  test -n "$ac_cv_prog_STRIP" && break
9151done
9152
9153if test -z "$ac_cv_prog_STRIP" ; then
9154  STRIP="true"
9155fi
9156
9157
9158
9159if test -n "$WINDRES"; then
9160  ac_cv_prog_WINDRES=$WINDRES
9161elif test -n "$ac_cv_prog_WINDRES"; then
9162  WINDRES=$ac_cv_prog_WINDRES
9163fi
9164
9165if test -n "$ac_cv_prog_WINDRES"; then
9166  for ncn_progname in windres; do
9167    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9168set dummy ${ncn_progname}; ac_word=$2
9169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170$as_echo_n "checking for $ac_word... " >&6; }
9171if test "${ac_cv_prog_WINDRES+set}" = set; then :
9172  $as_echo_n "(cached) " >&6
9173else
9174  if test -n "$WINDRES"; then
9175  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9176else
9177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178for as_dir in $PATH
9179do
9180  IFS=$as_save_IFS
9181  test -z "$as_dir" && as_dir=.
9182    for ac_exec_ext in '' $ac_executable_extensions; do
9183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9184    ac_cv_prog_WINDRES="${ncn_progname}"
9185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186    break 2
9187  fi
9188done
9189  done
9190IFS=$as_save_IFS
9191
9192fi
9193fi
9194WINDRES=$ac_cv_prog_WINDRES
9195if test -n "$WINDRES"; then
9196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9197$as_echo "$WINDRES" >&6; }
9198else
9199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200$as_echo "no" >&6; }
9201fi
9202
9203
9204  done
9205fi
9206
9207for ncn_progname in windres; do
9208  if test -n "$ncn_tool_prefix"; then
9209    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9210set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9212$as_echo_n "checking for $ac_word... " >&6; }
9213if test "${ac_cv_prog_WINDRES+set}" = set; then :
9214  $as_echo_n "(cached) " >&6
9215else
9216  if test -n "$WINDRES"; then
9217  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9218else
9219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220for as_dir in $PATH
9221do
9222  IFS=$as_save_IFS
9223  test -z "$as_dir" && as_dir=.
9224    for ac_exec_ext in '' $ac_executable_extensions; do
9225  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9226    ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9228    break 2
9229  fi
9230done
9231  done
9232IFS=$as_save_IFS
9233
9234fi
9235fi
9236WINDRES=$ac_cv_prog_WINDRES
9237if test -n "$WINDRES"; then
9238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9239$as_echo "$WINDRES" >&6; }
9240else
9241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242$as_echo "no" >&6; }
9243fi
9244
9245
9246  fi
9247  if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9248    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9249set dummy ${ncn_progname}; ac_word=$2
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251$as_echo_n "checking for $ac_word... " >&6; }
9252if test "${ac_cv_prog_WINDRES+set}" = set; then :
9253  $as_echo_n "(cached) " >&6
9254else
9255  if test -n "$WINDRES"; then
9256  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9257else
9258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259for as_dir in $PATH
9260do
9261  IFS=$as_save_IFS
9262  test -z "$as_dir" && as_dir=.
9263    for ac_exec_ext in '' $ac_executable_extensions; do
9264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9265    ac_cv_prog_WINDRES="${ncn_progname}"
9266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267    break 2
9268  fi
9269done
9270  done
9271IFS=$as_save_IFS
9272
9273fi
9274fi
9275WINDRES=$ac_cv_prog_WINDRES
9276if test -n "$WINDRES"; then
9277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9278$as_echo "$WINDRES" >&6; }
9279else
9280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281$as_echo "no" >&6; }
9282fi
9283
9284
9285  fi
9286  test -n "$ac_cv_prog_WINDRES" && break
9287done
9288
9289if test -z "$ac_cv_prog_WINDRES" ; then
9290  set dummy windres
9291  if test $build = $host ; then
9292    WINDRES="$2"
9293  else
9294    WINDRES="${ncn_tool_prefix}$2"
9295  fi
9296fi
9297
9298
9299
9300if test -n "$WINDMC"; then
9301  ac_cv_prog_WINDMC=$WINDMC
9302elif test -n "$ac_cv_prog_WINDMC"; then
9303  WINDMC=$ac_cv_prog_WINDMC
9304fi
9305
9306if test -n "$ac_cv_prog_WINDMC"; then
9307  for ncn_progname in windmc; do
9308    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9309set dummy ${ncn_progname}; ac_word=$2
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311$as_echo_n "checking for $ac_word... " >&6; }
9312if test "${ac_cv_prog_WINDMC+set}" = set; then :
9313  $as_echo_n "(cached) " >&6
9314else
9315  if test -n "$WINDMC"; then
9316  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9317else
9318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319for as_dir in $PATH
9320do
9321  IFS=$as_save_IFS
9322  test -z "$as_dir" && as_dir=.
9323    for ac_exec_ext in '' $ac_executable_extensions; do
9324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9325    ac_cv_prog_WINDMC="${ncn_progname}"
9326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9327    break 2
9328  fi
9329done
9330  done
9331IFS=$as_save_IFS
9332
9333fi
9334fi
9335WINDMC=$ac_cv_prog_WINDMC
9336if test -n "$WINDMC"; then
9337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9338$as_echo "$WINDMC" >&6; }
9339else
9340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341$as_echo "no" >&6; }
9342fi
9343
9344
9345  done
9346fi
9347
9348for ncn_progname in windmc; do
9349  if test -n "$ncn_tool_prefix"; then
9350    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9351set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353$as_echo_n "checking for $ac_word... " >&6; }
9354if test "${ac_cv_prog_WINDMC+set}" = set; then :
9355  $as_echo_n "(cached) " >&6
9356else
9357  if test -n "$WINDMC"; then
9358  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9359else
9360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361for as_dir in $PATH
9362do
9363  IFS=$as_save_IFS
9364  test -z "$as_dir" && as_dir=.
9365    for ac_exec_ext in '' $ac_executable_extensions; do
9366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9367    ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9369    break 2
9370  fi
9371done
9372  done
9373IFS=$as_save_IFS
9374
9375fi
9376fi
9377WINDMC=$ac_cv_prog_WINDMC
9378if test -n "$WINDMC"; then
9379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9380$as_echo "$WINDMC" >&6; }
9381else
9382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383$as_echo "no" >&6; }
9384fi
9385
9386
9387  fi
9388  if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9389    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9390set dummy ${ncn_progname}; ac_word=$2
9391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392$as_echo_n "checking for $ac_word... " >&6; }
9393if test "${ac_cv_prog_WINDMC+set}" = set; then :
9394  $as_echo_n "(cached) " >&6
9395else
9396  if test -n "$WINDMC"; then
9397  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9398else
9399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400for as_dir in $PATH
9401do
9402  IFS=$as_save_IFS
9403  test -z "$as_dir" && as_dir=.
9404    for ac_exec_ext in '' $ac_executable_extensions; do
9405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9406    ac_cv_prog_WINDMC="${ncn_progname}"
9407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9408    break 2
9409  fi
9410done
9411  done
9412IFS=$as_save_IFS
9413
9414fi
9415fi
9416WINDMC=$ac_cv_prog_WINDMC
9417if test -n "$WINDMC"; then
9418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9419$as_echo "$WINDMC" >&6; }
9420else
9421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422$as_echo "no" >&6; }
9423fi
9424
9425
9426  fi
9427  test -n "$ac_cv_prog_WINDMC" && break
9428done
9429
9430if test -z "$ac_cv_prog_WINDMC" ; then
9431  set dummy windmc
9432  if test $build = $host ; then
9433    WINDMC="$2"
9434  else
9435    WINDMC="${ncn_tool_prefix}$2"
9436  fi
9437fi
9438
9439
9440
9441if test -n "$OBJCOPY"; then
9442  ac_cv_prog_OBJCOPY=$OBJCOPY
9443elif test -n "$ac_cv_prog_OBJCOPY"; then
9444  OBJCOPY=$ac_cv_prog_OBJCOPY
9445fi
9446
9447if test -n "$ac_cv_prog_OBJCOPY"; then
9448  for ncn_progname in objcopy; do
9449    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9450set dummy ${ncn_progname}; ac_word=$2
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452$as_echo_n "checking for $ac_word... " >&6; }
9453if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9454  $as_echo_n "(cached) " >&6
9455else
9456  if test -n "$OBJCOPY"; then
9457  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9458else
9459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460for as_dir in $PATH
9461do
9462  IFS=$as_save_IFS
9463  test -z "$as_dir" && as_dir=.
9464    for ac_exec_ext in '' $ac_executable_extensions; do
9465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9466    ac_cv_prog_OBJCOPY="${ncn_progname}"
9467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468    break 2
9469  fi
9470done
9471  done
9472IFS=$as_save_IFS
9473
9474fi
9475fi
9476OBJCOPY=$ac_cv_prog_OBJCOPY
9477if test -n "$OBJCOPY"; then
9478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9479$as_echo "$OBJCOPY" >&6; }
9480else
9481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482$as_echo "no" >&6; }
9483fi
9484
9485
9486  done
9487fi
9488
9489for ncn_progname in objcopy; do
9490  if test -n "$ncn_tool_prefix"; then
9491    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9492set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494$as_echo_n "checking for $ac_word... " >&6; }
9495if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9496  $as_echo_n "(cached) " >&6
9497else
9498  if test -n "$OBJCOPY"; then
9499  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9500else
9501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502for as_dir in $PATH
9503do
9504  IFS=$as_save_IFS
9505  test -z "$as_dir" && as_dir=.
9506    for ac_exec_ext in '' $ac_executable_extensions; do
9507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9508    ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510    break 2
9511  fi
9512done
9513  done
9514IFS=$as_save_IFS
9515
9516fi
9517fi
9518OBJCOPY=$ac_cv_prog_OBJCOPY
9519if test -n "$OBJCOPY"; then
9520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9521$as_echo "$OBJCOPY" >&6; }
9522else
9523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524$as_echo "no" >&6; }
9525fi
9526
9527
9528  fi
9529  if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9530    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9531set dummy ${ncn_progname}; ac_word=$2
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533$as_echo_n "checking for $ac_word... " >&6; }
9534if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9535  $as_echo_n "(cached) " >&6
9536else
9537  if test -n "$OBJCOPY"; then
9538  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9539else
9540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541for as_dir in $PATH
9542do
9543  IFS=$as_save_IFS
9544  test -z "$as_dir" && as_dir=.
9545    for ac_exec_ext in '' $ac_executable_extensions; do
9546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9547    ac_cv_prog_OBJCOPY="${ncn_progname}"
9548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549    break 2
9550  fi
9551done
9552  done
9553IFS=$as_save_IFS
9554
9555fi
9556fi
9557OBJCOPY=$ac_cv_prog_OBJCOPY
9558if test -n "$OBJCOPY"; then
9559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9560$as_echo "$OBJCOPY" >&6; }
9561else
9562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563$as_echo "no" >&6; }
9564fi
9565
9566
9567  fi
9568  test -n "$ac_cv_prog_OBJCOPY" && break
9569done
9570
9571if test -z "$ac_cv_prog_OBJCOPY" ; then
9572  set dummy objcopy
9573  if test $build = $host ; then
9574    OBJCOPY="$2"
9575  else
9576    OBJCOPY="${ncn_tool_prefix}$2"
9577  fi
9578fi
9579
9580
9581
9582if test -n "$OBJDUMP"; then
9583  ac_cv_prog_OBJDUMP=$OBJDUMP
9584elif test -n "$ac_cv_prog_OBJDUMP"; then
9585  OBJDUMP=$ac_cv_prog_OBJDUMP
9586fi
9587
9588if test -n "$ac_cv_prog_OBJDUMP"; then
9589  for ncn_progname in objdump; do
9590    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9591set dummy ${ncn_progname}; ac_word=$2
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593$as_echo_n "checking for $ac_word... " >&6; }
9594if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9595  $as_echo_n "(cached) " >&6
9596else
9597  if test -n "$OBJDUMP"; then
9598  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9599else
9600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601for as_dir in $PATH
9602do
9603  IFS=$as_save_IFS
9604  test -z "$as_dir" && as_dir=.
9605    for ac_exec_ext in '' $ac_executable_extensions; do
9606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9607    ac_cv_prog_OBJDUMP="${ncn_progname}"
9608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609    break 2
9610  fi
9611done
9612  done
9613IFS=$as_save_IFS
9614
9615fi
9616fi
9617OBJDUMP=$ac_cv_prog_OBJDUMP
9618if test -n "$OBJDUMP"; then
9619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9620$as_echo "$OBJDUMP" >&6; }
9621else
9622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623$as_echo "no" >&6; }
9624fi
9625
9626
9627  done
9628fi
9629
9630for ncn_progname in objdump; do
9631  if test -n "$ncn_tool_prefix"; then
9632    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9633set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9635$as_echo_n "checking for $ac_word... " >&6; }
9636if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9637  $as_echo_n "(cached) " >&6
9638else
9639  if test -n "$OBJDUMP"; then
9640  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9641else
9642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643for as_dir in $PATH
9644do
9645  IFS=$as_save_IFS
9646  test -z "$as_dir" && as_dir=.
9647    for ac_exec_ext in '' $ac_executable_extensions; do
9648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9649    ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9651    break 2
9652  fi
9653done
9654  done
9655IFS=$as_save_IFS
9656
9657fi
9658fi
9659OBJDUMP=$ac_cv_prog_OBJDUMP
9660if test -n "$OBJDUMP"; then
9661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9662$as_echo "$OBJDUMP" >&6; }
9663else
9664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665$as_echo "no" >&6; }
9666fi
9667
9668
9669  fi
9670  if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9671    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9672set dummy ${ncn_progname}; ac_word=$2
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674$as_echo_n "checking for $ac_word... " >&6; }
9675if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9676  $as_echo_n "(cached) " >&6
9677else
9678  if test -n "$OBJDUMP"; then
9679  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9680else
9681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682for as_dir in $PATH
9683do
9684  IFS=$as_save_IFS
9685  test -z "$as_dir" && as_dir=.
9686    for ac_exec_ext in '' $ac_executable_extensions; do
9687  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9688    ac_cv_prog_OBJDUMP="${ncn_progname}"
9689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690    break 2
9691  fi
9692done
9693  done
9694IFS=$as_save_IFS
9695
9696fi
9697fi
9698OBJDUMP=$ac_cv_prog_OBJDUMP
9699if test -n "$OBJDUMP"; then
9700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9701$as_echo "$OBJDUMP" >&6; }
9702else
9703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704$as_echo "no" >&6; }
9705fi
9706
9707
9708  fi
9709  test -n "$ac_cv_prog_OBJDUMP" && break
9710done
9711
9712if test -z "$ac_cv_prog_OBJDUMP" ; then
9713  set dummy objdump
9714  if test $build = $host ; then
9715    OBJDUMP="$2"
9716  else
9717    OBJDUMP="${ncn_tool_prefix}$2"
9718  fi
9719fi
9720
9721
9722
9723if test -n "$READELF"; then
9724  ac_cv_prog_READELF=$READELF
9725elif test -n "$ac_cv_prog_READELF"; then
9726  READELF=$ac_cv_prog_READELF
9727fi
9728
9729if test -n "$ac_cv_prog_READELF"; then
9730  for ncn_progname in readelf; do
9731    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9732set dummy ${ncn_progname}; ac_word=$2
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734$as_echo_n "checking for $ac_word... " >&6; }
9735if test "${ac_cv_prog_READELF+set}" = set; then :
9736  $as_echo_n "(cached) " >&6
9737else
9738  if test -n "$READELF"; then
9739  ac_cv_prog_READELF="$READELF" # Let the user override the test.
9740else
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744  IFS=$as_save_IFS
9745  test -z "$as_dir" && as_dir=.
9746    for ac_exec_ext in '' $ac_executable_extensions; do
9747  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748    ac_cv_prog_READELF="${ncn_progname}"
9749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750    break 2
9751  fi
9752done
9753  done
9754IFS=$as_save_IFS
9755
9756fi
9757fi
9758READELF=$ac_cv_prog_READELF
9759if test -n "$READELF"; then
9760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9761$as_echo "$READELF" >&6; }
9762else
9763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764$as_echo "no" >&6; }
9765fi
9766
9767
9768  done
9769fi
9770
9771for ncn_progname in readelf; do
9772  if test -n "$ncn_tool_prefix"; then
9773    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9774set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776$as_echo_n "checking for $ac_word... " >&6; }
9777if test "${ac_cv_prog_READELF+set}" = set; then :
9778  $as_echo_n "(cached) " >&6
9779else
9780  if test -n "$READELF"; then
9781  ac_cv_prog_READELF="$READELF" # Let the user override the test.
9782else
9783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in $PATH
9785do
9786  IFS=$as_save_IFS
9787  test -z "$as_dir" && as_dir=.
9788    for ac_exec_ext in '' $ac_executable_extensions; do
9789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790    ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792    break 2
9793  fi
9794done
9795  done
9796IFS=$as_save_IFS
9797
9798fi
9799fi
9800READELF=$ac_cv_prog_READELF
9801if test -n "$READELF"; then
9802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9803$as_echo "$READELF" >&6; }
9804else
9805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806$as_echo "no" >&6; }
9807fi
9808
9809
9810  fi
9811  if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9812    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9813set dummy ${ncn_progname}; ac_word=$2
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815$as_echo_n "checking for $ac_word... " >&6; }
9816if test "${ac_cv_prog_READELF+set}" = set; then :
9817  $as_echo_n "(cached) " >&6
9818else
9819  if test -n "$READELF"; then
9820  ac_cv_prog_READELF="$READELF" # Let the user override the test.
9821else
9822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825  IFS=$as_save_IFS
9826  test -z "$as_dir" && as_dir=.
9827    for ac_exec_ext in '' $ac_executable_extensions; do
9828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9829    ac_cv_prog_READELF="${ncn_progname}"
9830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831    break 2
9832  fi
9833done
9834  done
9835IFS=$as_save_IFS
9836
9837fi
9838fi
9839READELF=$ac_cv_prog_READELF
9840if test -n "$READELF"; then
9841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9842$as_echo "$READELF" >&6; }
9843else
9844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845$as_echo "no" >&6; }
9846fi
9847
9848
9849  fi
9850  test -n "$ac_cv_prog_READELF" && break
9851done
9852
9853if test -z "$ac_cv_prog_READELF" ; then
9854  set dummy readelf
9855  if test $build = $host ; then
9856    READELF="$2"
9857  else
9858    READELF="${ncn_tool_prefix}$2"
9859  fi
9860fi
9861
9862
9863
9864
9865
9866
9867# Target tools.
9868
9869# Check whether --with-build-time-tools was given.
9870if test "${with_build_time_tools+set}" = set; then :
9871  withval=$with_build_time_tools; case x"$withval" in
9872     x/*) ;;
9873     *)
9874       with_build_time_tools=
9875       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9876$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9877       ;;
9878   esac
9879else
9880  with_build_time_tools=
9881fi
9882
9883
9884
9885
9886if test -n "$CC_FOR_TARGET"; then
9887  ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9888elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9889  CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9890fi
9891
9892if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9893  for ncn_progname in cc gcc; do
9894    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9895set dummy ${ncn_progname}; ac_word=$2
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9897$as_echo_n "checking for $ac_word... " >&6; }
9898if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9899  $as_echo_n "(cached) " >&6
9900else
9901  if test -n "$CC_FOR_TARGET"; then
9902  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9903else
9904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905for as_dir in $PATH
9906do
9907  IFS=$as_save_IFS
9908  test -z "$as_dir" && as_dir=.
9909    for ac_exec_ext in '' $ac_executable_extensions; do
9910  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9911    ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9913    break 2
9914  fi
9915done
9916  done
9917IFS=$as_save_IFS
9918
9919fi
9920fi
9921CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9922if test -n "$CC_FOR_TARGET"; then
9923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9924$as_echo "$CC_FOR_TARGET" >&6; }
9925else
9926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927$as_echo "no" >&6; }
9928fi
9929
9930
9931  done
9932fi
9933
9934if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9935  for ncn_progname in cc gcc; do
9936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9937$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9938    if test -x $with_build_time_tools/${ncn_progname}; then
9939      ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9940      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9941$as_echo "yes" >&6; }
9942      break
9943    else
9944      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945$as_echo "no" >&6; }
9946    fi
9947  done
9948fi
9949
9950if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9951  for ncn_progname in cc gcc; do
9952    if test -n "$ncn_target_tool_prefix"; then
9953      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9954set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956$as_echo_n "checking for $ac_word... " >&6; }
9957if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9958  $as_echo_n "(cached) " >&6
9959else
9960  if test -n "$CC_FOR_TARGET"; then
9961  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9962else
9963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964for as_dir in $PATH
9965do
9966  IFS=$as_save_IFS
9967  test -z "$as_dir" && as_dir=.
9968    for ac_exec_ext in '' $ac_executable_extensions; do
9969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9970    ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9972    break 2
9973  fi
9974done
9975  done
9976IFS=$as_save_IFS
9977
9978fi
9979fi
9980CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9981if test -n "$CC_FOR_TARGET"; then
9982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9983$as_echo "$CC_FOR_TARGET" >&6; }
9984else
9985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986$as_echo "no" >&6; }
9987fi
9988
9989
9990    fi
9991    if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9992      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9993set dummy ${ncn_progname}; ac_word=$2
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995$as_echo_n "checking for $ac_word... " >&6; }
9996if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9997  $as_echo_n "(cached) " >&6
9998else
9999  if test -n "$CC_FOR_TARGET"; then
10000  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10001else
10002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005  IFS=$as_save_IFS
10006  test -z "$as_dir" && as_dir=.
10007    for ac_exec_ext in '' $ac_executable_extensions; do
10008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009    ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011    break 2
10012  fi
10013done
10014  done
10015IFS=$as_save_IFS
10016
10017fi
10018fi
10019CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10020if test -n "$CC_FOR_TARGET"; then
10021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10022$as_echo "$CC_FOR_TARGET" >&6; }
10023else
10024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025$as_echo "no" >&6; }
10026fi
10027
10028
10029    fi
10030    test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10031  done
10032fi
10033
10034if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10035  set dummy cc gcc
10036  if test $build = $target ; then
10037    CC_FOR_TARGET="$2"
10038  else
10039    CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10040  fi
10041else
10042  CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10043fi
10044
10045
10046
10047if test -n "$CXX_FOR_TARGET"; then
10048  ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10049elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10050  CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10051fi
10052
10053if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10054  for ncn_progname in c++ g++ cxx gxx; do
10055    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10056set dummy ${ncn_progname}; ac_word=$2
10057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058$as_echo_n "checking for $ac_word... " >&6; }
10059if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10060  $as_echo_n "(cached) " >&6
10061else
10062  if test -n "$CXX_FOR_TARGET"; then
10063  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10064else
10065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066for as_dir in $PATH
10067do
10068  IFS=$as_save_IFS
10069  test -z "$as_dir" && as_dir=.
10070    for ac_exec_ext in '' $ac_executable_extensions; do
10071  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10072    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074    break 2
10075  fi
10076done
10077  done
10078IFS=$as_save_IFS
10079
10080fi
10081fi
10082CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10083if test -n "$CXX_FOR_TARGET"; then
10084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10085$as_echo "$CXX_FOR_TARGET" >&6; }
10086else
10087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088$as_echo "no" >&6; }
10089fi
10090
10091
10092  done
10093fi
10094
10095if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10096  for ncn_progname in c++ g++ cxx gxx; do
10097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10098$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10099    if test -x $with_build_time_tools/${ncn_progname}; then
10100      ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10101      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10102$as_echo "yes" >&6; }
10103      break
10104    else
10105      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106$as_echo "no" >&6; }
10107    fi
10108  done
10109fi
10110
10111if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10112  for ncn_progname in c++ g++ cxx gxx; do
10113    if test -n "$ncn_target_tool_prefix"; then
10114      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10115set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10117$as_echo_n "checking for $ac_word... " >&6; }
10118if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10119  $as_echo_n "(cached) " >&6
10120else
10121  if test -n "$CXX_FOR_TARGET"; then
10122  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10123else
10124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125for as_dir in $PATH
10126do
10127  IFS=$as_save_IFS
10128  test -z "$as_dir" && as_dir=.
10129    for ac_exec_ext in '' $ac_executable_extensions; do
10130  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10131    ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10133    break 2
10134  fi
10135done
10136  done
10137IFS=$as_save_IFS
10138
10139fi
10140fi
10141CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10142if test -n "$CXX_FOR_TARGET"; then
10143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10144$as_echo "$CXX_FOR_TARGET" >&6; }
10145else
10146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147$as_echo "no" >&6; }
10148fi
10149
10150
10151    fi
10152    if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10153      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10154set dummy ${ncn_progname}; ac_word=$2
10155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156$as_echo_n "checking for $ac_word... " >&6; }
10157if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10158  $as_echo_n "(cached) " >&6
10159else
10160  if test -n "$CXX_FOR_TARGET"; then
10161  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10162else
10163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164for as_dir in $PATH
10165do
10166  IFS=$as_save_IFS
10167  test -z "$as_dir" && as_dir=.
10168    for ac_exec_ext in '' $ac_executable_extensions; do
10169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10170    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10172    break 2
10173  fi
10174done
10175  done
10176IFS=$as_save_IFS
10177
10178fi
10179fi
10180CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10181if test -n "$CXX_FOR_TARGET"; then
10182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10183$as_echo "$CXX_FOR_TARGET" >&6; }
10184else
10185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186$as_echo "no" >&6; }
10187fi
10188
10189
10190    fi
10191    test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10192  done
10193fi
10194
10195if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10196  set dummy c++ g++ cxx gxx
10197  if test $build = $target ; then
10198    CXX_FOR_TARGET="$2"
10199  else
10200    CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10201  fi
10202else
10203  CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10204fi
10205
10206
10207
10208if test -n "$GCC_FOR_TARGET"; then
10209  ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10210elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10211  GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10212fi
10213
10214if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10215  for ncn_progname in gcc; do
10216    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10217set dummy ${ncn_progname}; ac_word=$2
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10219$as_echo_n "checking for $ac_word... " >&6; }
10220if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10221  $as_echo_n "(cached) " >&6
10222else
10223  if test -n "$GCC_FOR_TARGET"; then
10224  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10225else
10226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227for as_dir in $PATH
10228do
10229  IFS=$as_save_IFS
10230  test -z "$as_dir" && as_dir=.
10231    for ac_exec_ext in '' $ac_executable_extensions; do
10232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10233    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235    break 2
10236  fi
10237done
10238  done
10239IFS=$as_save_IFS
10240
10241fi
10242fi
10243GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10244if test -n "$GCC_FOR_TARGET"; then
10245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10246$as_echo "$GCC_FOR_TARGET" >&6; }
10247else
10248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249$as_echo "no" >&6; }
10250fi
10251
10252
10253  done
10254fi
10255
10256if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10257  for ncn_progname in gcc; do
10258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10259$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10260    if test -x $with_build_time_tools/${ncn_progname}; then
10261      ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10262      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10263$as_echo "yes" >&6; }
10264      break
10265    else
10266      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
10268    fi
10269  done
10270fi
10271
10272if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10273  for ncn_progname in gcc; do
10274    if test -n "$ncn_target_tool_prefix"; then
10275      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10276set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10278$as_echo_n "checking for $ac_word... " >&6; }
10279if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10280  $as_echo_n "(cached) " >&6
10281else
10282  if test -n "$GCC_FOR_TARGET"; then
10283  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10284else
10285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286for as_dir in $PATH
10287do
10288  IFS=$as_save_IFS
10289  test -z "$as_dir" && as_dir=.
10290    for ac_exec_ext in '' $ac_executable_extensions; do
10291  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10292    ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10294    break 2
10295  fi
10296done
10297  done
10298IFS=$as_save_IFS
10299
10300fi
10301fi
10302GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10303if test -n "$GCC_FOR_TARGET"; then
10304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10305$as_echo "$GCC_FOR_TARGET" >&6; }
10306else
10307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308$as_echo "no" >&6; }
10309fi
10310
10311
10312    fi
10313    if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10314      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10315set dummy ${ncn_progname}; ac_word=$2
10316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317$as_echo_n "checking for $ac_word... " >&6; }
10318if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10319  $as_echo_n "(cached) " >&6
10320else
10321  if test -n "$GCC_FOR_TARGET"; then
10322  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10323else
10324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325for as_dir in $PATH
10326do
10327  IFS=$as_save_IFS
10328  test -z "$as_dir" && as_dir=.
10329    for ac_exec_ext in '' $ac_executable_extensions; do
10330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333    break 2
10334  fi
10335done
10336  done
10337IFS=$as_save_IFS
10338
10339fi
10340fi
10341GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10342if test -n "$GCC_FOR_TARGET"; then
10343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10344$as_echo "$GCC_FOR_TARGET" >&6; }
10345else
10346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347$as_echo "no" >&6; }
10348fi
10349
10350
10351    fi
10352    test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10353  done
10354fi
10355
10356if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10357  GCC_FOR_TARGET="${CC_FOR_TARGET}"
10358else
10359  GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10360fi
10361
10362
10363
10364if test -n "$GCJ_FOR_TARGET"; then
10365  ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10366elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10367  GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10368fi
10369
10370if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10371  for ncn_progname in gcj; do
10372    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10373set dummy ${ncn_progname}; ac_word=$2
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375$as_echo_n "checking for $ac_word... " >&6; }
10376if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10377  $as_echo_n "(cached) " >&6
10378else
10379  if test -n "$GCJ_FOR_TARGET"; then
10380  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10381else
10382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383for as_dir in $PATH
10384do
10385  IFS=$as_save_IFS
10386  test -z "$as_dir" && as_dir=.
10387    for ac_exec_ext in '' $ac_executable_extensions; do
10388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10389    ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10391    break 2
10392  fi
10393done
10394  done
10395IFS=$as_save_IFS
10396
10397fi
10398fi
10399GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10400if test -n "$GCJ_FOR_TARGET"; then
10401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10402$as_echo "$GCJ_FOR_TARGET" >&6; }
10403else
10404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405$as_echo "no" >&6; }
10406fi
10407
10408
10409  done
10410fi
10411
10412if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10413  for ncn_progname in gcj; do
10414    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10415$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10416    if test -x $with_build_time_tools/${ncn_progname}; then
10417      ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10418      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10419$as_echo "yes" >&6; }
10420      break
10421    else
10422      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10423$as_echo "no" >&6; }
10424    fi
10425  done
10426fi
10427
10428if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10429  for ncn_progname in gcj; do
10430    if test -n "$ncn_target_tool_prefix"; then
10431      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10432set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434$as_echo_n "checking for $ac_word... " >&6; }
10435if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10436  $as_echo_n "(cached) " >&6
10437else
10438  if test -n "$GCJ_FOR_TARGET"; then
10439  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10440else
10441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442for as_dir in $PATH
10443do
10444  IFS=$as_save_IFS
10445  test -z "$as_dir" && as_dir=.
10446    for ac_exec_ext in '' $ac_executable_extensions; do
10447  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10448    ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10450    break 2
10451  fi
10452done
10453  done
10454IFS=$as_save_IFS
10455
10456fi
10457fi
10458GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10459if test -n "$GCJ_FOR_TARGET"; then
10460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10461$as_echo "$GCJ_FOR_TARGET" >&6; }
10462else
10463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464$as_echo "no" >&6; }
10465fi
10466
10467
10468    fi
10469    if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10470      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10471set dummy ${ncn_progname}; ac_word=$2
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473$as_echo_n "checking for $ac_word... " >&6; }
10474if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10475  $as_echo_n "(cached) " >&6
10476else
10477  if test -n "$GCJ_FOR_TARGET"; then
10478  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10479else
10480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481for as_dir in $PATH
10482do
10483  IFS=$as_save_IFS
10484  test -z "$as_dir" && as_dir=.
10485    for ac_exec_ext in '' $ac_executable_extensions; do
10486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487    ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489    break 2
10490  fi
10491done
10492  done
10493IFS=$as_save_IFS
10494
10495fi
10496fi
10497GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10498if test -n "$GCJ_FOR_TARGET"; then
10499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10500$as_echo "$GCJ_FOR_TARGET" >&6; }
10501else
10502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503$as_echo "no" >&6; }
10504fi
10505
10506
10507    fi
10508    test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10509  done
10510fi
10511
10512if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10513  set dummy gcj
10514  if test $build = $target ; then
10515    GCJ_FOR_TARGET="$2"
10516  else
10517    GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10518  fi
10519else
10520  GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10521fi
10522
10523
10524
10525if test -n "$GFORTRAN_FOR_TARGET"; then
10526  ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10527elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10528  GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10529fi
10530
10531if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10532  for ncn_progname in gfortran; do
10533    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10534set dummy ${ncn_progname}; ac_word=$2
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536$as_echo_n "checking for $ac_word... " >&6; }
10537if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10538  $as_echo_n "(cached) " >&6
10539else
10540  if test -n "$GFORTRAN_FOR_TARGET"; then
10541  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10542else
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546  IFS=$as_save_IFS
10547  test -z "$as_dir" && as_dir=.
10548    for ac_exec_ext in '' $ac_executable_extensions; do
10549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10550    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552    break 2
10553  fi
10554done
10555  done
10556IFS=$as_save_IFS
10557
10558fi
10559fi
10560GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10561if test -n "$GFORTRAN_FOR_TARGET"; then
10562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10563$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10564else
10565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
10567fi
10568
10569
10570  done
10571fi
10572
10573if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10574  for ncn_progname in gfortran; do
10575    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10576$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10577    if test -x $with_build_time_tools/${ncn_progname}; then
10578      ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10579      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10580$as_echo "yes" >&6; }
10581      break
10582    else
10583      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584$as_echo "no" >&6; }
10585    fi
10586  done
10587fi
10588
10589if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10590  for ncn_progname in gfortran; do
10591    if test -n "$ncn_target_tool_prefix"; then
10592      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10593set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595$as_echo_n "checking for $ac_word... " >&6; }
10596if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10597  $as_echo_n "(cached) " >&6
10598else
10599  if test -n "$GFORTRAN_FOR_TARGET"; then
10600  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10601else
10602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603for as_dir in $PATH
10604do
10605  IFS=$as_save_IFS
10606  test -z "$as_dir" && as_dir=.
10607    for ac_exec_ext in '' $ac_executable_extensions; do
10608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10609    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10611    break 2
10612  fi
10613done
10614  done
10615IFS=$as_save_IFS
10616
10617fi
10618fi
10619GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10620if test -n "$GFORTRAN_FOR_TARGET"; then
10621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10622$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10623else
10624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625$as_echo "no" >&6; }
10626fi
10627
10628
10629    fi
10630    if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10631      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10632set dummy ${ncn_progname}; ac_word=$2
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634$as_echo_n "checking for $ac_word... " >&6; }
10635if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10636  $as_echo_n "(cached) " >&6
10637else
10638  if test -n "$GFORTRAN_FOR_TARGET"; then
10639  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10640else
10641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642for as_dir in $PATH
10643do
10644  IFS=$as_save_IFS
10645  test -z "$as_dir" && as_dir=.
10646    for ac_exec_ext in '' $ac_executable_extensions; do
10647  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10648    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10650    break 2
10651  fi
10652done
10653  done
10654IFS=$as_save_IFS
10655
10656fi
10657fi
10658GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10659if test -n "$GFORTRAN_FOR_TARGET"; then
10660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10661$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10662else
10663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664$as_echo "no" >&6; }
10665fi
10666
10667
10668    fi
10669    test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10670  done
10671fi
10672
10673if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10674  set dummy gfortran
10675  if test $build = $target ; then
10676    GFORTRAN_FOR_TARGET="$2"
10677  else
10678    GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10679  fi
10680else
10681  GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10682fi
10683
10684
10685
10686if test -n "$GOC_FOR_TARGET"; then
10687  ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10688elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10689  GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10690fi
10691
10692if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10693  for ncn_progname in gccgo; do
10694    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10695set dummy ${ncn_progname}; ac_word=$2
10696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697$as_echo_n "checking for $ac_word... " >&6; }
10698if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10699  $as_echo_n "(cached) " >&6
10700else
10701  if test -n "$GOC_FOR_TARGET"; then
10702  ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10703else
10704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705for as_dir in $PATH
10706do
10707  IFS=$as_save_IFS
10708  test -z "$as_dir" && as_dir=.
10709    for ac_exec_ext in '' $ac_executable_extensions; do
10710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10711    ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713    break 2
10714  fi
10715done
10716  done
10717IFS=$as_save_IFS
10718
10719fi
10720fi
10721GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10722if test -n "$GOC_FOR_TARGET"; then
10723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10724$as_echo "$GOC_FOR_TARGET" >&6; }
10725else
10726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727$as_echo "no" >&6; }
10728fi
10729
10730
10731  done
10732fi
10733
10734if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10735  for ncn_progname in gccgo; do
10736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10737$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10738    if test -x $with_build_time_tools/${ncn_progname}; then
10739      ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10740      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10741$as_echo "yes" >&6; }
10742      break
10743    else
10744      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745$as_echo "no" >&6; }
10746    fi
10747  done
10748fi
10749
10750if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10751  for ncn_progname in gccgo; do
10752    if test -n "$ncn_target_tool_prefix"; then
10753      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10754set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756$as_echo_n "checking for $ac_word... " >&6; }
10757if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10758  $as_echo_n "(cached) " >&6
10759else
10760  if test -n "$GOC_FOR_TARGET"; then
10761  ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10762else
10763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764for as_dir in $PATH
10765do
10766  IFS=$as_save_IFS
10767  test -z "$as_dir" && as_dir=.
10768    for ac_exec_ext in '' $ac_executable_extensions; do
10769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10770    ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772    break 2
10773  fi
10774done
10775  done
10776IFS=$as_save_IFS
10777
10778fi
10779fi
10780GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10781if test -n "$GOC_FOR_TARGET"; then
10782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10783$as_echo "$GOC_FOR_TARGET" >&6; }
10784else
10785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786$as_echo "no" >&6; }
10787fi
10788
10789
10790    fi
10791    if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10792      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10793set dummy ${ncn_progname}; ac_word=$2
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795$as_echo_n "checking for $ac_word... " >&6; }
10796if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10797  $as_echo_n "(cached) " >&6
10798else
10799  if test -n "$GOC_FOR_TARGET"; then
10800  ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10801else
10802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803for as_dir in $PATH
10804do
10805  IFS=$as_save_IFS
10806  test -z "$as_dir" && as_dir=.
10807    for ac_exec_ext in '' $ac_executable_extensions; do
10808  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10809    ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10811    break 2
10812  fi
10813done
10814  done
10815IFS=$as_save_IFS
10816
10817fi
10818fi
10819GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10820if test -n "$GOC_FOR_TARGET"; then
10821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10822$as_echo "$GOC_FOR_TARGET" >&6; }
10823else
10824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825$as_echo "no" >&6; }
10826fi
10827
10828
10829    fi
10830    test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10831  done
10832fi
10833
10834if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10835  set dummy gccgo
10836  if test $build = $target ; then
10837    GOC_FOR_TARGET="$2"
10838  else
10839    GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10840  fi
10841else
10842  GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10843fi
10844
10845
10846
10847cat > conftest.c << \EOF
10848#ifdef __GNUC__
10849  gcc_yay;
10850#endif
10851EOF
10852if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10853  have_gcc_for_target=yes
10854else
10855  GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10856  have_gcc_for_target=no
10857fi
10858rm conftest.c
10859
10860
10861
10862
10863if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10864  if test -n "$with_build_time_tools"; then
10865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10866$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10867    if test -x $with_build_time_tools/ar; then
10868      AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10869      ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10870      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10871$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10872    else
10873      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874$as_echo "no" >&6; }
10875    fi
10876  elif test $build != $host && test $have_gcc_for_target = yes; then
10877    AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10878    test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10879    test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10880  fi
10881fi
10882if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10883  # Extract the first word of "ar", so it can be a program name with args.
10884set dummy ar; ac_word=$2
10885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10886$as_echo_n "checking for $ac_word... " >&6; }
10887if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10888  $as_echo_n "(cached) " >&6
10889else
10890  case $AR_FOR_TARGET in
10891  [\\/]* | ?:[\\/]*)
10892  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10893  ;;
10894  *)
10895  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896for as_dir in $gcc_cv_tool_dirs
10897do
10898  IFS=$as_save_IFS
10899  test -z "$as_dir" && as_dir=.
10900    for ac_exec_ext in '' $ac_executable_extensions; do
10901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10902    ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10904    break 2
10905  fi
10906done
10907  done
10908IFS=$as_save_IFS
10909
10910  ;;
10911esac
10912fi
10913AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10914if test -n "$AR_FOR_TARGET"; then
10915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10916$as_echo "$AR_FOR_TARGET" >&6; }
10917else
10918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919$as_echo "no" >&6; }
10920fi
10921
10922
10923fi
10924if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10925
10926
10927if test -n "$AR_FOR_TARGET"; then
10928  ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10929elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10930  AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10931fi
10932
10933if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10934  for ncn_progname in ar; do
10935    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10936set dummy ${ncn_progname}; ac_word=$2
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938$as_echo_n "checking for $ac_word... " >&6; }
10939if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10940  $as_echo_n "(cached) " >&6
10941else
10942  if test -n "$AR_FOR_TARGET"; then
10943  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10944else
10945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946for as_dir in $PATH
10947do
10948  IFS=$as_save_IFS
10949  test -z "$as_dir" && as_dir=.
10950    for ac_exec_ext in '' $ac_executable_extensions; do
10951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10952    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10954    break 2
10955  fi
10956done
10957  done
10958IFS=$as_save_IFS
10959
10960fi
10961fi
10962AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10963if test -n "$AR_FOR_TARGET"; then
10964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10965$as_echo "$AR_FOR_TARGET" >&6; }
10966else
10967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968$as_echo "no" >&6; }
10969fi
10970
10971
10972  done
10973fi
10974
10975if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10976  for ncn_progname in ar; do
10977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10978$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10979    if test -x $with_build_time_tools/${ncn_progname}; then
10980      ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10981      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10982$as_echo "yes" >&6; }
10983      break
10984    else
10985      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986$as_echo "no" >&6; }
10987    fi
10988  done
10989fi
10990
10991if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10992  for ncn_progname in ar; do
10993    if test -n "$ncn_target_tool_prefix"; then
10994      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10995set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10997$as_echo_n "checking for $ac_word... " >&6; }
10998if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10999  $as_echo_n "(cached) " >&6
11000else
11001  if test -n "$AR_FOR_TARGET"; then
11002  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11003else
11004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005for as_dir in $PATH
11006do
11007  IFS=$as_save_IFS
11008  test -z "$as_dir" && as_dir=.
11009    for ac_exec_ext in '' $ac_executable_extensions; do
11010  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11011    ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11013    break 2
11014  fi
11015done
11016  done
11017IFS=$as_save_IFS
11018
11019fi
11020fi
11021AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11022if test -n "$AR_FOR_TARGET"; then
11023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11024$as_echo "$AR_FOR_TARGET" >&6; }
11025else
11026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027$as_echo "no" >&6; }
11028fi
11029
11030
11031    fi
11032    if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11033      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11034set dummy ${ncn_progname}; ac_word=$2
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036$as_echo_n "checking for $ac_word... " >&6; }
11037if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11038  $as_echo_n "(cached) " >&6
11039else
11040  if test -n "$AR_FOR_TARGET"; then
11041  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11042else
11043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044for as_dir in $PATH
11045do
11046  IFS=$as_save_IFS
11047  test -z "$as_dir" && as_dir=.
11048    for ac_exec_ext in '' $ac_executable_extensions; do
11049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11050    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11052    break 2
11053  fi
11054done
11055  done
11056IFS=$as_save_IFS
11057
11058fi
11059fi
11060AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11061if test -n "$AR_FOR_TARGET"; then
11062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11063$as_echo "$AR_FOR_TARGET" >&6; }
11064else
11065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066$as_echo "no" >&6; }
11067fi
11068
11069
11070    fi
11071    test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11072  done
11073fi
11074
11075if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11076  set dummy ar
11077  if test $build = $target ; then
11078    AR_FOR_TARGET="$2"
11079  else
11080    AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11081  fi
11082else
11083  AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11084fi
11085
11086else
11087  AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11088fi
11089
11090
11091
11092
11093if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11094  if test -n "$with_build_time_tools"; then
11095    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11096$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11097    if test -x $with_build_time_tools/as; then
11098      AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11099      ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11100      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11101$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11102    else
11103      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104$as_echo "no" >&6; }
11105    fi
11106  elif test $build != $host && test $have_gcc_for_target = yes; then
11107    AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11108    test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11109    test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11110  fi
11111fi
11112if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11113  # Extract the first word of "as", so it can be a program name with args.
11114set dummy as; ac_word=$2
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116$as_echo_n "checking for $ac_word... " >&6; }
11117if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11118  $as_echo_n "(cached) " >&6
11119else
11120  case $AS_FOR_TARGET in
11121  [\\/]* | ?:[\\/]*)
11122  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11123  ;;
11124  *)
11125  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $gcc_cv_tool_dirs
11127do
11128  IFS=$as_save_IFS
11129  test -z "$as_dir" && as_dir=.
11130    for ac_exec_ext in '' $ac_executable_extensions; do
11131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11132    ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11134    break 2
11135  fi
11136done
11137  done
11138IFS=$as_save_IFS
11139
11140  ;;
11141esac
11142fi
11143AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11144if test -n "$AS_FOR_TARGET"; then
11145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11146$as_echo "$AS_FOR_TARGET" >&6; }
11147else
11148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149$as_echo "no" >&6; }
11150fi
11151
11152
11153fi
11154if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11155
11156
11157if test -n "$AS_FOR_TARGET"; then
11158  ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11159elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11160  AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11161fi
11162
11163if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11164  for ncn_progname in as; do
11165    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11166set dummy ${ncn_progname}; ac_word=$2
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168$as_echo_n "checking for $ac_word... " >&6; }
11169if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11170  $as_echo_n "(cached) " >&6
11171else
11172  if test -n "$AS_FOR_TARGET"; then
11173  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11174else
11175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176for as_dir in $PATH
11177do
11178  IFS=$as_save_IFS
11179  test -z "$as_dir" && as_dir=.
11180    for ac_exec_ext in '' $ac_executable_extensions; do
11181  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11182    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184    break 2
11185  fi
11186done
11187  done
11188IFS=$as_save_IFS
11189
11190fi
11191fi
11192AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11193if test -n "$AS_FOR_TARGET"; then
11194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11195$as_echo "$AS_FOR_TARGET" >&6; }
11196else
11197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198$as_echo "no" >&6; }
11199fi
11200
11201
11202  done
11203fi
11204
11205if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11206  for ncn_progname in as; do
11207    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11208$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11209    if test -x $with_build_time_tools/${ncn_progname}; then
11210      ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11211      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212$as_echo "yes" >&6; }
11213      break
11214    else
11215      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11216$as_echo "no" >&6; }
11217    fi
11218  done
11219fi
11220
11221if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11222  for ncn_progname in as; do
11223    if test -n "$ncn_target_tool_prefix"; then
11224      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11225set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11227$as_echo_n "checking for $ac_word... " >&6; }
11228if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11229  $as_echo_n "(cached) " >&6
11230else
11231  if test -n "$AS_FOR_TARGET"; then
11232  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11233else
11234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11235for as_dir in $PATH
11236do
11237  IFS=$as_save_IFS
11238  test -z "$as_dir" && as_dir=.
11239    for ac_exec_ext in '' $ac_executable_extensions; do
11240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11241    ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11243    break 2
11244  fi
11245done
11246  done
11247IFS=$as_save_IFS
11248
11249fi
11250fi
11251AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11252if test -n "$AS_FOR_TARGET"; then
11253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11254$as_echo "$AS_FOR_TARGET" >&6; }
11255else
11256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257$as_echo "no" >&6; }
11258fi
11259
11260
11261    fi
11262    if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11263      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11264set dummy ${ncn_progname}; ac_word=$2
11265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11266$as_echo_n "checking for $ac_word... " >&6; }
11267if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11268  $as_echo_n "(cached) " >&6
11269else
11270  if test -n "$AS_FOR_TARGET"; then
11271  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11272else
11273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274for as_dir in $PATH
11275do
11276  IFS=$as_save_IFS
11277  test -z "$as_dir" && as_dir=.
11278    for ac_exec_ext in '' $ac_executable_extensions; do
11279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11280    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11282    break 2
11283  fi
11284done
11285  done
11286IFS=$as_save_IFS
11287
11288fi
11289fi
11290AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11291if test -n "$AS_FOR_TARGET"; then
11292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11293$as_echo "$AS_FOR_TARGET" >&6; }
11294else
11295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296$as_echo "no" >&6; }
11297fi
11298
11299
11300    fi
11301    test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11302  done
11303fi
11304
11305if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11306  set dummy as
11307  if test $build = $target ; then
11308    AS_FOR_TARGET="$2"
11309  else
11310    AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11311  fi
11312else
11313  AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11314fi
11315
11316else
11317  AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11318fi
11319
11320
11321
11322
11323if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11324  if test -n "$with_build_time_tools"; then
11325    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11326$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11327    if test -x $with_build_time_tools/dlltool; then
11328      DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11329      ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11330      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11331$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11332    else
11333      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334$as_echo "no" >&6; }
11335    fi
11336  elif test $build != $host && test $have_gcc_for_target = yes; then
11337    DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11338    test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11339    test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11340  fi
11341fi
11342if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11343  # Extract the first word of "dlltool", so it can be a program name with args.
11344set dummy dlltool; ac_word=$2
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346$as_echo_n "checking for $ac_word... " >&6; }
11347if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11348  $as_echo_n "(cached) " >&6
11349else
11350  case $DLLTOOL_FOR_TARGET in
11351  [\\/]* | ?:[\\/]*)
11352  ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11353  ;;
11354  *)
11355  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356for as_dir in $gcc_cv_tool_dirs
11357do
11358  IFS=$as_save_IFS
11359  test -z "$as_dir" && as_dir=.
11360    for ac_exec_ext in '' $ac_executable_extensions; do
11361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11362    ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11364    break 2
11365  fi
11366done
11367  done
11368IFS=$as_save_IFS
11369
11370  ;;
11371esac
11372fi
11373DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11374if test -n "$DLLTOOL_FOR_TARGET"; then
11375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11376$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11377else
11378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379$as_echo "no" >&6; }
11380fi
11381
11382
11383fi
11384if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11385
11386
11387if test -n "$DLLTOOL_FOR_TARGET"; then
11388  ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11389elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11390  DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11391fi
11392
11393if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11394  for ncn_progname in dlltool; do
11395    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11396set dummy ${ncn_progname}; ac_word=$2
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
11399if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11400  $as_echo_n "(cached) " >&6
11401else
11402  if test -n "$DLLTOOL_FOR_TARGET"; then
11403  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11404else
11405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
11407do
11408  IFS=$as_save_IFS
11409  test -z "$as_dir" && as_dir=.
11410    for ac_exec_ext in '' $ac_executable_extensions; do
11411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11412    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414    break 2
11415  fi
11416done
11417  done
11418IFS=$as_save_IFS
11419
11420fi
11421fi
11422DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11423if test -n "$DLLTOOL_FOR_TARGET"; then
11424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11425$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11426else
11427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428$as_echo "no" >&6; }
11429fi
11430
11431
11432  done
11433fi
11434
11435if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11436  for ncn_progname in dlltool; do
11437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11438$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11439    if test -x $with_build_time_tools/${ncn_progname}; then
11440      ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11441      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11442$as_echo "yes" >&6; }
11443      break
11444    else
11445      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446$as_echo "no" >&6; }
11447    fi
11448  done
11449fi
11450
11451if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11452  for ncn_progname in dlltool; do
11453    if test -n "$ncn_target_tool_prefix"; then
11454      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11455set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457$as_echo_n "checking for $ac_word... " >&6; }
11458if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11459  $as_echo_n "(cached) " >&6
11460else
11461  if test -n "$DLLTOOL_FOR_TARGET"; then
11462  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11463else
11464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465for as_dir in $PATH
11466do
11467  IFS=$as_save_IFS
11468  test -z "$as_dir" && as_dir=.
11469    for ac_exec_ext in '' $ac_executable_extensions; do
11470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11471    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473    break 2
11474  fi
11475done
11476  done
11477IFS=$as_save_IFS
11478
11479fi
11480fi
11481DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11482if test -n "$DLLTOOL_FOR_TARGET"; then
11483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11484$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11485else
11486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487$as_echo "no" >&6; }
11488fi
11489
11490
11491    fi
11492    if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11493      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11494set dummy ${ncn_progname}; ac_word=$2
11495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496$as_echo_n "checking for $ac_word... " >&6; }
11497if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11498  $as_echo_n "(cached) " >&6
11499else
11500  if test -n "$DLLTOOL_FOR_TARGET"; then
11501  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11502else
11503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504for as_dir in $PATH
11505do
11506  IFS=$as_save_IFS
11507  test -z "$as_dir" && as_dir=.
11508    for ac_exec_ext in '' $ac_executable_extensions; do
11509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11512    break 2
11513  fi
11514done
11515  done
11516IFS=$as_save_IFS
11517
11518fi
11519fi
11520DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11521if test -n "$DLLTOOL_FOR_TARGET"; then
11522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11523$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11524else
11525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526$as_echo "no" >&6; }
11527fi
11528
11529
11530    fi
11531    test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11532  done
11533fi
11534
11535if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11536  set dummy dlltool
11537  if test $build = $target ; then
11538    DLLTOOL_FOR_TARGET="$2"
11539  else
11540    DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11541  fi
11542else
11543  DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11544fi
11545
11546else
11547  DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11548fi
11549
11550
11551
11552
11553if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11554  if test -n "$with_build_time_tools"; then
11555    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11556$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11557    if test -x $with_build_time_tools/ld; then
11558      LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11559      ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11560      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11561$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11562    else
11563      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564$as_echo "no" >&6; }
11565    fi
11566  elif test $build != $host && test $have_gcc_for_target = yes; then
11567    LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11568    test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11569    test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11570  fi
11571fi
11572if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11573  # Extract the first word of "ld", so it can be a program name with args.
11574set dummy ld; ac_word=$2
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576$as_echo_n "checking for $ac_word... " >&6; }
11577if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11578  $as_echo_n "(cached) " >&6
11579else
11580  case $LD_FOR_TARGET in
11581  [\\/]* | ?:[\\/]*)
11582  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11583  ;;
11584  *)
11585  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586for as_dir in $gcc_cv_tool_dirs
11587do
11588  IFS=$as_save_IFS
11589  test -z "$as_dir" && as_dir=.
11590    for ac_exec_ext in '' $ac_executable_extensions; do
11591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11592    ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594    break 2
11595  fi
11596done
11597  done
11598IFS=$as_save_IFS
11599
11600  ;;
11601esac
11602fi
11603LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11604if test -n "$LD_FOR_TARGET"; then
11605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11606$as_echo "$LD_FOR_TARGET" >&6; }
11607else
11608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609$as_echo "no" >&6; }
11610fi
11611
11612
11613fi
11614if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11615
11616
11617if test -n "$LD_FOR_TARGET"; then
11618  ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11619elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11620  LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11621fi
11622
11623if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11624  for ncn_progname in ld; do
11625    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11626set dummy ${ncn_progname}; ac_word=$2
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628$as_echo_n "checking for $ac_word... " >&6; }
11629if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11630  $as_echo_n "(cached) " >&6
11631else
11632  if test -n "$LD_FOR_TARGET"; then
11633  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11634else
11635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636for as_dir in $PATH
11637do
11638  IFS=$as_save_IFS
11639  test -z "$as_dir" && as_dir=.
11640    for ac_exec_ext in '' $ac_executable_extensions; do
11641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11642    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11644    break 2
11645  fi
11646done
11647  done
11648IFS=$as_save_IFS
11649
11650fi
11651fi
11652LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11653if test -n "$LD_FOR_TARGET"; then
11654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11655$as_echo "$LD_FOR_TARGET" >&6; }
11656else
11657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658$as_echo "no" >&6; }
11659fi
11660
11661
11662  done
11663fi
11664
11665if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11666  for ncn_progname in ld; do
11667    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11668$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11669    if test -x $with_build_time_tools/${ncn_progname}; then
11670      ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11671      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11672$as_echo "yes" >&6; }
11673      break
11674    else
11675      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676$as_echo "no" >&6; }
11677    fi
11678  done
11679fi
11680
11681if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11682  for ncn_progname in ld; do
11683    if test -n "$ncn_target_tool_prefix"; then
11684      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11685set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687$as_echo_n "checking for $ac_word... " >&6; }
11688if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11689  $as_echo_n "(cached) " >&6
11690else
11691  if test -n "$LD_FOR_TARGET"; then
11692  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11693else
11694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695for as_dir in $PATH
11696do
11697  IFS=$as_save_IFS
11698  test -z "$as_dir" && as_dir=.
11699    for ac_exec_ext in '' $ac_executable_extensions; do
11700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11701    ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11703    break 2
11704  fi
11705done
11706  done
11707IFS=$as_save_IFS
11708
11709fi
11710fi
11711LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11712if test -n "$LD_FOR_TARGET"; then
11713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11714$as_echo "$LD_FOR_TARGET" >&6; }
11715else
11716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717$as_echo "no" >&6; }
11718fi
11719
11720
11721    fi
11722    if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11723      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11724set dummy ${ncn_progname}; ac_word=$2
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726$as_echo_n "checking for $ac_word... " >&6; }
11727if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11728  $as_echo_n "(cached) " >&6
11729else
11730  if test -n "$LD_FOR_TARGET"; then
11731  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11732else
11733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734for as_dir in $PATH
11735do
11736  IFS=$as_save_IFS
11737  test -z "$as_dir" && as_dir=.
11738    for ac_exec_ext in '' $ac_executable_extensions; do
11739  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11740    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742    break 2
11743  fi
11744done
11745  done
11746IFS=$as_save_IFS
11747
11748fi
11749fi
11750LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11751if test -n "$LD_FOR_TARGET"; then
11752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11753$as_echo "$LD_FOR_TARGET" >&6; }
11754else
11755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756$as_echo "no" >&6; }
11757fi
11758
11759
11760    fi
11761    test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11762  done
11763fi
11764
11765if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11766  set dummy ld
11767  if test $build = $target ; then
11768    LD_FOR_TARGET="$2"
11769  else
11770    LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11771  fi
11772else
11773  LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11774fi
11775
11776else
11777  LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11778fi
11779
11780
11781
11782
11783if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11784  if test -n "$with_build_time_tools"; then
11785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11786$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11787    if test -x $with_build_time_tools/lipo; then
11788      LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11789      ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11790      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11791$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11792    else
11793      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794$as_echo "no" >&6; }
11795    fi
11796  elif test $build != $host && test $have_gcc_for_target = yes; then
11797    LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11798    test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11799    test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11800  fi
11801fi
11802if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11803  # Extract the first word of "lipo", so it can be a program name with args.
11804set dummy lipo; ac_word=$2
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806$as_echo_n "checking for $ac_word... " >&6; }
11807if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11808  $as_echo_n "(cached) " >&6
11809else
11810  case $LIPO_FOR_TARGET in
11811  [\\/]* | ?:[\\/]*)
11812  ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11813  ;;
11814  *)
11815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816for as_dir in $gcc_cv_tool_dirs
11817do
11818  IFS=$as_save_IFS
11819  test -z "$as_dir" && as_dir=.
11820    for ac_exec_ext in '' $ac_executable_extensions; do
11821  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11822    ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824    break 2
11825  fi
11826done
11827  done
11828IFS=$as_save_IFS
11829
11830  ;;
11831esac
11832fi
11833LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11834if test -n "$LIPO_FOR_TARGET"; then
11835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11836$as_echo "$LIPO_FOR_TARGET" >&6; }
11837else
11838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839$as_echo "no" >&6; }
11840fi
11841
11842
11843fi
11844if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11845
11846
11847if test -n "$LIPO_FOR_TARGET"; then
11848  ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11849elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11850  LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11851fi
11852
11853if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11854  for ncn_progname in lipo; do
11855    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11856set dummy ${ncn_progname}; ac_word=$2
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
11859if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11860  $as_echo_n "(cached) " >&6
11861else
11862  if test -n "$LIPO_FOR_TARGET"; then
11863  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11864else
11865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868  IFS=$as_save_IFS
11869  test -z "$as_dir" && as_dir=.
11870    for ac_exec_ext in '' $ac_executable_extensions; do
11871  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11872    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874    break 2
11875  fi
11876done
11877  done
11878IFS=$as_save_IFS
11879
11880fi
11881fi
11882LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11883if test -n "$LIPO_FOR_TARGET"; then
11884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11885$as_echo "$LIPO_FOR_TARGET" >&6; }
11886else
11887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888$as_echo "no" >&6; }
11889fi
11890
11891
11892  done
11893fi
11894
11895if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11896  for ncn_progname in lipo; do
11897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11898$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11899    if test -x $with_build_time_tools/${ncn_progname}; then
11900      ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11901      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902$as_echo "yes" >&6; }
11903      break
11904    else
11905      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906$as_echo "no" >&6; }
11907    fi
11908  done
11909fi
11910
11911if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11912  for ncn_progname in lipo; do
11913    if test -n "$ncn_target_tool_prefix"; then
11914      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11915set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917$as_echo_n "checking for $ac_word... " >&6; }
11918if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11919  $as_echo_n "(cached) " >&6
11920else
11921  if test -n "$LIPO_FOR_TARGET"; then
11922  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11923else
11924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925for as_dir in $PATH
11926do
11927  IFS=$as_save_IFS
11928  test -z "$as_dir" && as_dir=.
11929    for ac_exec_ext in '' $ac_executable_extensions; do
11930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11931    ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933    break 2
11934  fi
11935done
11936  done
11937IFS=$as_save_IFS
11938
11939fi
11940fi
11941LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11942if test -n "$LIPO_FOR_TARGET"; then
11943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11944$as_echo "$LIPO_FOR_TARGET" >&6; }
11945else
11946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947$as_echo "no" >&6; }
11948fi
11949
11950
11951    fi
11952    if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11953      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11954set dummy ${ncn_progname}; ac_word=$2
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956$as_echo_n "checking for $ac_word... " >&6; }
11957if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11958  $as_echo_n "(cached) " >&6
11959else
11960  if test -n "$LIPO_FOR_TARGET"; then
11961  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11962else
11963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964for as_dir in $PATH
11965do
11966  IFS=$as_save_IFS
11967  test -z "$as_dir" && as_dir=.
11968    for ac_exec_ext in '' $ac_executable_extensions; do
11969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11970    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972    break 2
11973  fi
11974done
11975  done
11976IFS=$as_save_IFS
11977
11978fi
11979fi
11980LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11981if test -n "$LIPO_FOR_TARGET"; then
11982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11983$as_echo "$LIPO_FOR_TARGET" >&6; }
11984else
11985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986$as_echo "no" >&6; }
11987fi
11988
11989
11990    fi
11991    test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11992  done
11993fi
11994
11995if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11996  set dummy lipo
11997  if test $build = $target ; then
11998    LIPO_FOR_TARGET="$2"
11999  else
12000    LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12001  fi
12002else
12003  LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12004fi
12005
12006else
12007  LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12008fi
12009
12010
12011
12012
12013if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12014  if test -n "$with_build_time_tools"; then
12015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12016$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12017    if test -x $with_build_time_tools/nm; then
12018      NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12019      ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12020      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12021$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12022    else
12023      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024$as_echo "no" >&6; }
12025    fi
12026  elif test $build != $host && test $have_gcc_for_target = yes; then
12027    NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12028    test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12029    test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12030  fi
12031fi
12032if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12033  # Extract the first word of "nm", so it can be a program name with args.
12034set dummy nm; ac_word=$2
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036$as_echo_n "checking for $ac_word... " >&6; }
12037if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12038  $as_echo_n "(cached) " >&6
12039else
12040  case $NM_FOR_TARGET in
12041  [\\/]* | ?:[\\/]*)
12042  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12043  ;;
12044  *)
12045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $gcc_cv_tool_dirs
12047do
12048  IFS=$as_save_IFS
12049  test -z "$as_dir" && as_dir=.
12050    for ac_exec_ext in '' $ac_executable_extensions; do
12051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12052    ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054    break 2
12055  fi
12056done
12057  done
12058IFS=$as_save_IFS
12059
12060  ;;
12061esac
12062fi
12063NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12064if test -n "$NM_FOR_TARGET"; then
12065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12066$as_echo "$NM_FOR_TARGET" >&6; }
12067else
12068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069$as_echo "no" >&6; }
12070fi
12071
12072
12073fi
12074if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12075
12076
12077if test -n "$NM_FOR_TARGET"; then
12078  ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12079elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12080  NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12081fi
12082
12083if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12084  for ncn_progname in nm; do
12085    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12086set dummy ${ncn_progname}; ac_word=$2
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
12089if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12090  $as_echo_n "(cached) " >&6
12091else
12092  if test -n "$NM_FOR_TARGET"; then
12093  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12094else
12095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $PATH
12097do
12098  IFS=$as_save_IFS
12099  test -z "$as_dir" && as_dir=.
12100    for ac_exec_ext in '' $ac_executable_extensions; do
12101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12102    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104    break 2
12105  fi
12106done
12107  done
12108IFS=$as_save_IFS
12109
12110fi
12111fi
12112NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12113if test -n "$NM_FOR_TARGET"; then
12114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12115$as_echo "$NM_FOR_TARGET" >&6; }
12116else
12117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118$as_echo "no" >&6; }
12119fi
12120
12121
12122  done
12123fi
12124
12125if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12126  for ncn_progname in nm; do
12127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12128$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12129    if test -x $with_build_time_tools/${ncn_progname}; then
12130      ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12131      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12132$as_echo "yes" >&6; }
12133      break
12134    else
12135      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136$as_echo "no" >&6; }
12137    fi
12138  done
12139fi
12140
12141if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12142  for ncn_progname in nm; do
12143    if test -n "$ncn_target_tool_prefix"; then
12144      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12145set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147$as_echo_n "checking for $ac_word... " >&6; }
12148if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12149  $as_echo_n "(cached) " >&6
12150else
12151  if test -n "$NM_FOR_TARGET"; then
12152  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12153else
12154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155for as_dir in $PATH
12156do
12157  IFS=$as_save_IFS
12158  test -z "$as_dir" && as_dir=.
12159    for ac_exec_ext in '' $ac_executable_extensions; do
12160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12161    ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12163    break 2
12164  fi
12165done
12166  done
12167IFS=$as_save_IFS
12168
12169fi
12170fi
12171NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12172if test -n "$NM_FOR_TARGET"; then
12173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12174$as_echo "$NM_FOR_TARGET" >&6; }
12175else
12176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177$as_echo "no" >&6; }
12178fi
12179
12180
12181    fi
12182    if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12183      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12184set dummy ${ncn_progname}; ac_word=$2
12185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186$as_echo_n "checking for $ac_word... " >&6; }
12187if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12188  $as_echo_n "(cached) " >&6
12189else
12190  if test -n "$NM_FOR_TARGET"; then
12191  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12192else
12193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194for as_dir in $PATH
12195do
12196  IFS=$as_save_IFS
12197  test -z "$as_dir" && as_dir=.
12198    for ac_exec_ext in '' $ac_executable_extensions; do
12199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12200    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202    break 2
12203  fi
12204done
12205  done
12206IFS=$as_save_IFS
12207
12208fi
12209fi
12210NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12211if test -n "$NM_FOR_TARGET"; then
12212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12213$as_echo "$NM_FOR_TARGET" >&6; }
12214else
12215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216$as_echo "no" >&6; }
12217fi
12218
12219
12220    fi
12221    test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12222  done
12223fi
12224
12225if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12226  set dummy nm
12227  if test $build = $target ; then
12228    NM_FOR_TARGET="$2"
12229  else
12230    NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12231  fi
12232else
12233  NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12234fi
12235
12236else
12237  NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12238fi
12239
12240
12241
12242
12243if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12244  if test -n "$with_build_time_tools"; then
12245    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12246$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12247    if test -x $with_build_time_tools/objcopy; then
12248      OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12249      ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12250      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12251$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12252    else
12253      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254$as_echo "no" >&6; }
12255    fi
12256  elif test $build != $host && test $have_gcc_for_target = yes; then
12257    OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12258    test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12259    test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12260  fi
12261fi
12262if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12263  # Extract the first word of "objcopy", so it can be a program name with args.
12264set dummy objcopy; ac_word=$2
12265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266$as_echo_n "checking for $ac_word... " >&6; }
12267if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12268  $as_echo_n "(cached) " >&6
12269else
12270  case $OBJCOPY_FOR_TARGET in
12271  [\\/]* | ?:[\\/]*)
12272  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12273  ;;
12274  *)
12275  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276for as_dir in $gcc_cv_tool_dirs
12277do
12278  IFS=$as_save_IFS
12279  test -z "$as_dir" && as_dir=.
12280    for ac_exec_ext in '' $ac_executable_extensions; do
12281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12282    ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284    break 2
12285  fi
12286done
12287  done
12288IFS=$as_save_IFS
12289
12290  ;;
12291esac
12292fi
12293OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12294if test -n "$OBJCOPY_FOR_TARGET"; then
12295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12296$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12297else
12298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
12300fi
12301
12302
12303fi
12304if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12305
12306
12307if test -n "$OBJCOPY_FOR_TARGET"; then
12308  ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12309elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12310  OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12311fi
12312
12313if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12314  for ncn_progname in objcopy; do
12315    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12316set dummy ${ncn_progname}; ac_word=$2
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
12319if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12320  $as_echo_n "(cached) " >&6
12321else
12322  if test -n "$OBJCOPY_FOR_TARGET"; then
12323  ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12324else
12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $PATH
12327do
12328  IFS=$as_save_IFS
12329  test -z "$as_dir" && as_dir=.
12330    for ac_exec_ext in '' $ac_executable_extensions; do
12331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12332    ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334    break 2
12335  fi
12336done
12337  done
12338IFS=$as_save_IFS
12339
12340fi
12341fi
12342OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12343if test -n "$OBJCOPY_FOR_TARGET"; then
12344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12345$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12346else
12347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348$as_echo "no" >&6; }
12349fi
12350
12351
12352  done
12353fi
12354
12355if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12356  for ncn_progname in objcopy; do
12357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12358$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12359    if test -x $with_build_time_tools/${ncn_progname}; then
12360      ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12361      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12362$as_echo "yes" >&6; }
12363      break
12364    else
12365      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366$as_echo "no" >&6; }
12367    fi
12368  done
12369fi
12370
12371if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12372  for ncn_progname in objcopy; do
12373    if test -n "$ncn_target_tool_prefix"; then
12374      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12375set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377$as_echo_n "checking for $ac_word... " >&6; }
12378if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12379  $as_echo_n "(cached) " >&6
12380else
12381  if test -n "$OBJCOPY_FOR_TARGET"; then
12382  ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12383else
12384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385for as_dir in $PATH
12386do
12387  IFS=$as_save_IFS
12388  test -z "$as_dir" && as_dir=.
12389    for ac_exec_ext in '' $ac_executable_extensions; do
12390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12391    ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393    break 2
12394  fi
12395done
12396  done
12397IFS=$as_save_IFS
12398
12399fi
12400fi
12401OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12402if test -n "$OBJCOPY_FOR_TARGET"; then
12403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12404$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12405else
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407$as_echo "no" >&6; }
12408fi
12409
12410
12411    fi
12412    if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12413      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12414set dummy ${ncn_progname}; ac_word=$2
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416$as_echo_n "checking for $ac_word... " >&6; }
12417if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12418  $as_echo_n "(cached) " >&6
12419else
12420  if test -n "$OBJCOPY_FOR_TARGET"; then
12421  ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12422else
12423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424for as_dir in $PATH
12425do
12426  IFS=$as_save_IFS
12427  test -z "$as_dir" && as_dir=.
12428    for ac_exec_ext in '' $ac_executable_extensions; do
12429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12430    ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432    break 2
12433  fi
12434done
12435  done
12436IFS=$as_save_IFS
12437
12438fi
12439fi
12440OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12441if test -n "$OBJCOPY_FOR_TARGET"; then
12442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12443$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12444else
12445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446$as_echo "no" >&6; }
12447fi
12448
12449
12450    fi
12451    test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12452  done
12453fi
12454
12455if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12456  set dummy objcopy
12457  if test $build = $target ; then
12458    OBJCOPY_FOR_TARGET="$2"
12459  else
12460    OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12461  fi
12462else
12463  OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12464fi
12465
12466else
12467  OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12468fi
12469
12470
12471
12472
12473if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12474  if test -n "$with_build_time_tools"; then
12475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12476$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12477    if test -x $with_build_time_tools/objdump; then
12478      OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12479      ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12480      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12481$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12482    else
12483      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484$as_echo "no" >&6; }
12485    fi
12486  elif test $build != $host && test $have_gcc_for_target = yes; then
12487    OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12488    test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12489    test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12490  fi
12491fi
12492if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12493  # Extract the first word of "objdump", so it can be a program name with args.
12494set dummy objdump; ac_word=$2
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496$as_echo_n "checking for $ac_word... " >&6; }
12497if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12498  $as_echo_n "(cached) " >&6
12499else
12500  case $OBJDUMP_FOR_TARGET in
12501  [\\/]* | ?:[\\/]*)
12502  ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12503  ;;
12504  *)
12505  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506for as_dir in $gcc_cv_tool_dirs
12507do
12508  IFS=$as_save_IFS
12509  test -z "$as_dir" && as_dir=.
12510    for ac_exec_ext in '' $ac_executable_extensions; do
12511  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12512    ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514    break 2
12515  fi
12516done
12517  done
12518IFS=$as_save_IFS
12519
12520  ;;
12521esac
12522fi
12523OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12524if test -n "$OBJDUMP_FOR_TARGET"; then
12525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12526$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12527else
12528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529$as_echo "no" >&6; }
12530fi
12531
12532
12533fi
12534if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12535
12536
12537if test -n "$OBJDUMP_FOR_TARGET"; then
12538  ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12539elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12540  OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12541fi
12542
12543if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12544  for ncn_progname in objdump; do
12545    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12546set dummy ${ncn_progname}; ac_word=$2
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
12549if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12550  $as_echo_n "(cached) " >&6
12551else
12552  if test -n "$OBJDUMP_FOR_TARGET"; then
12553  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12554else
12555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556for as_dir in $PATH
12557do
12558  IFS=$as_save_IFS
12559  test -z "$as_dir" && as_dir=.
12560    for ac_exec_ext in '' $ac_executable_extensions; do
12561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12562    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564    break 2
12565  fi
12566done
12567  done
12568IFS=$as_save_IFS
12569
12570fi
12571fi
12572OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12573if test -n "$OBJDUMP_FOR_TARGET"; then
12574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12575$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12576else
12577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578$as_echo "no" >&6; }
12579fi
12580
12581
12582  done
12583fi
12584
12585if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12586  for ncn_progname in objdump; do
12587    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12588$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12589    if test -x $with_build_time_tools/${ncn_progname}; then
12590      ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12591      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12592$as_echo "yes" >&6; }
12593      break
12594    else
12595      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596$as_echo "no" >&6; }
12597    fi
12598  done
12599fi
12600
12601if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12602  for ncn_progname in objdump; do
12603    if test -n "$ncn_target_tool_prefix"; then
12604      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12605set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607$as_echo_n "checking for $ac_word... " >&6; }
12608if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12609  $as_echo_n "(cached) " >&6
12610else
12611  if test -n "$OBJDUMP_FOR_TARGET"; then
12612  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12613else
12614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615for as_dir in $PATH
12616do
12617  IFS=$as_save_IFS
12618  test -z "$as_dir" && as_dir=.
12619    for ac_exec_ext in '' $ac_executable_extensions; do
12620  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12621    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623    break 2
12624  fi
12625done
12626  done
12627IFS=$as_save_IFS
12628
12629fi
12630fi
12631OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12632if test -n "$OBJDUMP_FOR_TARGET"; then
12633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12634$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12635else
12636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637$as_echo "no" >&6; }
12638fi
12639
12640
12641    fi
12642    if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12643      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12644set dummy ${ncn_progname}; ac_word=$2
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646$as_echo_n "checking for $ac_word... " >&6; }
12647if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12648  $as_echo_n "(cached) " >&6
12649else
12650  if test -n "$OBJDUMP_FOR_TARGET"; then
12651  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12652else
12653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654for as_dir in $PATH
12655do
12656  IFS=$as_save_IFS
12657  test -z "$as_dir" && as_dir=.
12658    for ac_exec_ext in '' $ac_executable_extensions; do
12659  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12660    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662    break 2
12663  fi
12664done
12665  done
12666IFS=$as_save_IFS
12667
12668fi
12669fi
12670OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12671if test -n "$OBJDUMP_FOR_TARGET"; then
12672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12673$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12674else
12675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676$as_echo "no" >&6; }
12677fi
12678
12679
12680    fi
12681    test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12682  done
12683fi
12684
12685if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12686  set dummy objdump
12687  if test $build = $target ; then
12688    OBJDUMP_FOR_TARGET="$2"
12689  else
12690    OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12691  fi
12692else
12693  OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12694fi
12695
12696else
12697  OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12698fi
12699
12700
12701
12702
12703if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12704  if test -n "$with_build_time_tools"; then
12705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12706$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12707    if test -x $with_build_time_tools/ranlib; then
12708      RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12709      ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12710      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12711$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12712    else
12713      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714$as_echo "no" >&6; }
12715    fi
12716  elif test $build != $host && test $have_gcc_for_target = yes; then
12717    RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12718    test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12719    test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12720  fi
12721fi
12722if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12723  # Extract the first word of "ranlib", so it can be a program name with args.
12724set dummy ranlib; ac_word=$2
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12726$as_echo_n "checking for $ac_word... " >&6; }
12727if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12728  $as_echo_n "(cached) " >&6
12729else
12730  case $RANLIB_FOR_TARGET in
12731  [\\/]* | ?:[\\/]*)
12732  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12733  ;;
12734  *)
12735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $gcc_cv_tool_dirs
12737do
12738  IFS=$as_save_IFS
12739  test -z "$as_dir" && as_dir=.
12740    for ac_exec_ext in '' $ac_executable_extensions; do
12741  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12742    ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744    break 2
12745  fi
12746done
12747  done
12748IFS=$as_save_IFS
12749
12750  ;;
12751esac
12752fi
12753RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12754if test -n "$RANLIB_FOR_TARGET"; then
12755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12756$as_echo "$RANLIB_FOR_TARGET" >&6; }
12757else
12758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759$as_echo "no" >&6; }
12760fi
12761
12762
12763fi
12764if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12765
12766
12767if test -n "$RANLIB_FOR_TARGET"; then
12768  ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12769elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12770  RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12771fi
12772
12773if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12774  for ncn_progname in ranlib; do
12775    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12776set dummy ${ncn_progname}; ac_word=$2
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
12779if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12780  $as_echo_n "(cached) " >&6
12781else
12782  if test -n "$RANLIB_FOR_TARGET"; then
12783  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12784else
12785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786for as_dir in $PATH
12787do
12788  IFS=$as_save_IFS
12789  test -z "$as_dir" && as_dir=.
12790    for ac_exec_ext in '' $ac_executable_extensions; do
12791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12792    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794    break 2
12795  fi
12796done
12797  done
12798IFS=$as_save_IFS
12799
12800fi
12801fi
12802RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12803if test -n "$RANLIB_FOR_TARGET"; then
12804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12805$as_echo "$RANLIB_FOR_TARGET" >&6; }
12806else
12807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808$as_echo "no" >&6; }
12809fi
12810
12811
12812  done
12813fi
12814
12815if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12816  for ncn_progname in ranlib; do
12817    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12818$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12819    if test -x $with_build_time_tools/${ncn_progname}; then
12820      ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12821      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822$as_echo "yes" >&6; }
12823      break
12824    else
12825      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826$as_echo "no" >&6; }
12827    fi
12828  done
12829fi
12830
12831if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12832  for ncn_progname in ranlib; do
12833    if test -n "$ncn_target_tool_prefix"; then
12834      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12835set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837$as_echo_n "checking for $ac_word... " >&6; }
12838if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12839  $as_echo_n "(cached) " >&6
12840else
12841  if test -n "$RANLIB_FOR_TARGET"; then
12842  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12843else
12844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845for as_dir in $PATH
12846do
12847  IFS=$as_save_IFS
12848  test -z "$as_dir" && as_dir=.
12849    for ac_exec_ext in '' $ac_executable_extensions; do
12850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12851    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12853    break 2
12854  fi
12855done
12856  done
12857IFS=$as_save_IFS
12858
12859fi
12860fi
12861RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12862if test -n "$RANLIB_FOR_TARGET"; then
12863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12864$as_echo "$RANLIB_FOR_TARGET" >&6; }
12865else
12866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867$as_echo "no" >&6; }
12868fi
12869
12870
12871    fi
12872    if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12873      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12874set dummy ${ncn_progname}; ac_word=$2
12875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876$as_echo_n "checking for $ac_word... " >&6; }
12877if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12878  $as_echo_n "(cached) " >&6
12879else
12880  if test -n "$RANLIB_FOR_TARGET"; then
12881  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12882else
12883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884for as_dir in $PATH
12885do
12886  IFS=$as_save_IFS
12887  test -z "$as_dir" && as_dir=.
12888    for ac_exec_ext in '' $ac_executable_extensions; do
12889  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12890    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892    break 2
12893  fi
12894done
12895  done
12896IFS=$as_save_IFS
12897
12898fi
12899fi
12900RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12901if test -n "$RANLIB_FOR_TARGET"; then
12902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12903$as_echo "$RANLIB_FOR_TARGET" >&6; }
12904else
12905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906$as_echo "no" >&6; }
12907fi
12908
12909
12910    fi
12911    test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12912  done
12913fi
12914
12915if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12916  set dummy ranlib
12917  if test $build = $target ; then
12918    RANLIB_FOR_TARGET="$2"
12919  else
12920    RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12921  fi
12922else
12923  RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12924fi
12925
12926else
12927  RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12928fi
12929
12930
12931
12932
12933if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12934  if test -n "$with_build_time_tools"; then
12935    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12936$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12937    if test -x $with_build_time_tools/readelf; then
12938      READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12939      ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12940      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12941$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12942    else
12943      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944$as_echo "no" >&6; }
12945    fi
12946  elif test $build != $host && test $have_gcc_for_target = yes; then
12947    READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12948    test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12949    test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12950  fi
12951fi
12952if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12953  # Extract the first word of "readelf", so it can be a program name with args.
12954set dummy readelf; ac_word=$2
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12956$as_echo_n "checking for $ac_word... " >&6; }
12957if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12958  $as_echo_n "(cached) " >&6
12959else
12960  case $READELF_FOR_TARGET in
12961  [\\/]* | ?:[\\/]*)
12962  ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12963  ;;
12964  *)
12965  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966for as_dir in $gcc_cv_tool_dirs
12967do
12968  IFS=$as_save_IFS
12969  test -z "$as_dir" && as_dir=.
12970    for ac_exec_ext in '' $ac_executable_extensions; do
12971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12972    ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974    break 2
12975  fi
12976done
12977  done
12978IFS=$as_save_IFS
12979
12980  ;;
12981esac
12982fi
12983READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12984if test -n "$READELF_FOR_TARGET"; then
12985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12986$as_echo "$READELF_FOR_TARGET" >&6; }
12987else
12988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989$as_echo "no" >&6; }
12990fi
12991
12992
12993fi
12994if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12995
12996
12997if test -n "$READELF_FOR_TARGET"; then
12998  ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12999elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13000  READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13001fi
13002
13003if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13004  for ncn_progname in readelf; do
13005    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13006set dummy ${ncn_progname}; ac_word=$2
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008$as_echo_n "checking for $ac_word... " >&6; }
13009if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13010  $as_echo_n "(cached) " >&6
13011else
13012  if test -n "$READELF_FOR_TARGET"; then
13013  ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13014else
13015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016for as_dir in $PATH
13017do
13018  IFS=$as_save_IFS
13019  test -z "$as_dir" && as_dir=.
13020    for ac_exec_ext in '' $ac_executable_extensions; do
13021  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022    ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024    break 2
13025  fi
13026done
13027  done
13028IFS=$as_save_IFS
13029
13030fi
13031fi
13032READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13033if test -n "$READELF_FOR_TARGET"; then
13034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13035$as_echo "$READELF_FOR_TARGET" >&6; }
13036else
13037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038$as_echo "no" >&6; }
13039fi
13040
13041
13042  done
13043fi
13044
13045if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13046  for ncn_progname in readelf; do
13047    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13048$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13049    if test -x $with_build_time_tools/${ncn_progname}; then
13050      ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13051      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052$as_echo "yes" >&6; }
13053      break
13054    else
13055      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056$as_echo "no" >&6; }
13057    fi
13058  done
13059fi
13060
13061if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13062  for ncn_progname in readelf; do
13063    if test -n "$ncn_target_tool_prefix"; then
13064      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13065set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067$as_echo_n "checking for $ac_word... " >&6; }
13068if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13069  $as_echo_n "(cached) " >&6
13070else
13071  if test -n "$READELF_FOR_TARGET"; then
13072  ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13073else
13074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075for as_dir in $PATH
13076do
13077  IFS=$as_save_IFS
13078  test -z "$as_dir" && as_dir=.
13079    for ac_exec_ext in '' $ac_executable_extensions; do
13080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13081    ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13083    break 2
13084  fi
13085done
13086  done
13087IFS=$as_save_IFS
13088
13089fi
13090fi
13091READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13092if test -n "$READELF_FOR_TARGET"; then
13093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13094$as_echo "$READELF_FOR_TARGET" >&6; }
13095else
13096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097$as_echo "no" >&6; }
13098fi
13099
13100
13101    fi
13102    if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13103      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13104set dummy ${ncn_progname}; ac_word=$2
13105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106$as_echo_n "checking for $ac_word... " >&6; }
13107if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13108  $as_echo_n "(cached) " >&6
13109else
13110  if test -n "$READELF_FOR_TARGET"; then
13111  ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13112else
13113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114for as_dir in $PATH
13115do
13116  IFS=$as_save_IFS
13117  test -z "$as_dir" && as_dir=.
13118    for ac_exec_ext in '' $ac_executable_extensions; do
13119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13120    ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122    break 2
13123  fi
13124done
13125  done
13126IFS=$as_save_IFS
13127
13128fi
13129fi
13130READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13131if test -n "$READELF_FOR_TARGET"; then
13132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13133$as_echo "$READELF_FOR_TARGET" >&6; }
13134else
13135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136$as_echo "no" >&6; }
13137fi
13138
13139
13140    fi
13141    test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13142  done
13143fi
13144
13145if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13146  set dummy readelf
13147  if test $build = $target ; then
13148    READELF_FOR_TARGET="$2"
13149  else
13150    READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13151  fi
13152else
13153  READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13154fi
13155
13156else
13157  READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13158fi
13159
13160
13161
13162
13163if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13164  if test -n "$with_build_time_tools"; then
13165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13166$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13167    if test -x $with_build_time_tools/strip; then
13168      STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13169      ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13170      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13171$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13172    else
13173      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174$as_echo "no" >&6; }
13175    fi
13176  elif test $build != $host && test $have_gcc_for_target = yes; then
13177    STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13178    test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13179    test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13180  fi
13181fi
13182if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13183  # Extract the first word of "strip", so it can be a program name with args.
13184set dummy strip; ac_word=$2
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186$as_echo_n "checking for $ac_word... " >&6; }
13187if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13188  $as_echo_n "(cached) " >&6
13189else
13190  case $STRIP_FOR_TARGET in
13191  [\\/]* | ?:[\\/]*)
13192  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13193  ;;
13194  *)
13195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196for as_dir in $gcc_cv_tool_dirs
13197do
13198  IFS=$as_save_IFS
13199  test -z "$as_dir" && as_dir=.
13200    for ac_exec_ext in '' $ac_executable_extensions; do
13201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13202    ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13204    break 2
13205  fi
13206done
13207  done
13208IFS=$as_save_IFS
13209
13210  ;;
13211esac
13212fi
13213STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13214if test -n "$STRIP_FOR_TARGET"; then
13215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13216$as_echo "$STRIP_FOR_TARGET" >&6; }
13217else
13218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219$as_echo "no" >&6; }
13220fi
13221
13222
13223fi
13224if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13225
13226
13227if test -n "$STRIP_FOR_TARGET"; then
13228  ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13229elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13230  STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13231fi
13232
13233if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13234  for ncn_progname in strip; do
13235    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13236set dummy ${ncn_progname}; ac_word=$2
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238$as_echo_n "checking for $ac_word... " >&6; }
13239if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13240  $as_echo_n "(cached) " >&6
13241else
13242  if test -n "$STRIP_FOR_TARGET"; then
13243  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13244else
13245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246for as_dir in $PATH
13247do
13248  IFS=$as_save_IFS
13249  test -z "$as_dir" && as_dir=.
13250    for ac_exec_ext in '' $ac_executable_extensions; do
13251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13252    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254    break 2
13255  fi
13256done
13257  done
13258IFS=$as_save_IFS
13259
13260fi
13261fi
13262STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13263if test -n "$STRIP_FOR_TARGET"; then
13264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13265$as_echo "$STRIP_FOR_TARGET" >&6; }
13266else
13267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268$as_echo "no" >&6; }
13269fi
13270
13271
13272  done
13273fi
13274
13275if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13276  for ncn_progname in strip; do
13277    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13278$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13279    if test -x $with_build_time_tools/${ncn_progname}; then
13280      ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13281      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13282$as_echo "yes" >&6; }
13283      break
13284    else
13285      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286$as_echo "no" >&6; }
13287    fi
13288  done
13289fi
13290
13291if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13292  for ncn_progname in strip; do
13293    if test -n "$ncn_target_tool_prefix"; then
13294      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13295set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297$as_echo_n "checking for $ac_word... " >&6; }
13298if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13299  $as_echo_n "(cached) " >&6
13300else
13301  if test -n "$STRIP_FOR_TARGET"; then
13302  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13303else
13304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305for as_dir in $PATH
13306do
13307  IFS=$as_save_IFS
13308  test -z "$as_dir" && as_dir=.
13309    for ac_exec_ext in '' $ac_executable_extensions; do
13310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13311    ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13313    break 2
13314  fi
13315done
13316  done
13317IFS=$as_save_IFS
13318
13319fi
13320fi
13321STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13322if test -n "$STRIP_FOR_TARGET"; then
13323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13324$as_echo "$STRIP_FOR_TARGET" >&6; }
13325else
13326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327$as_echo "no" >&6; }
13328fi
13329
13330
13331    fi
13332    if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13333      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13334set dummy ${ncn_progname}; ac_word=$2
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336$as_echo_n "checking for $ac_word... " >&6; }
13337if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13338  $as_echo_n "(cached) " >&6
13339else
13340  if test -n "$STRIP_FOR_TARGET"; then
13341  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13342else
13343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344for as_dir in $PATH
13345do
13346  IFS=$as_save_IFS
13347  test -z "$as_dir" && as_dir=.
13348    for ac_exec_ext in '' $ac_executable_extensions; do
13349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13350    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13352    break 2
13353  fi
13354done
13355  done
13356IFS=$as_save_IFS
13357
13358fi
13359fi
13360STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13361if test -n "$STRIP_FOR_TARGET"; then
13362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13363$as_echo "$STRIP_FOR_TARGET" >&6; }
13364else
13365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366$as_echo "no" >&6; }
13367fi
13368
13369
13370    fi
13371    test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13372  done
13373fi
13374
13375if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13376  set dummy strip
13377  if test $build = $target ; then
13378    STRIP_FOR_TARGET="$2"
13379  else
13380    STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13381  fi
13382else
13383  STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13384fi
13385
13386else
13387  STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13388fi
13389
13390
13391
13392
13393if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13394  if test -n "$with_build_time_tools"; then
13395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13396$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13397    if test -x $with_build_time_tools/windres; then
13398      WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13399      ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13400      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13401$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13402    else
13403      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13404$as_echo "no" >&6; }
13405    fi
13406  elif test $build != $host && test $have_gcc_for_target = yes; then
13407    WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13408    test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13409    test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13410  fi
13411fi
13412if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13413  # Extract the first word of "windres", so it can be a program name with args.
13414set dummy windres; ac_word=$2
13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416$as_echo_n "checking for $ac_word... " >&6; }
13417if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13418  $as_echo_n "(cached) " >&6
13419else
13420  case $WINDRES_FOR_TARGET in
13421  [\\/]* | ?:[\\/]*)
13422  ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13423  ;;
13424  *)
13425  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426for as_dir in $gcc_cv_tool_dirs
13427do
13428  IFS=$as_save_IFS
13429  test -z "$as_dir" && as_dir=.
13430    for ac_exec_ext in '' $ac_executable_extensions; do
13431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13432    ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434    break 2
13435  fi
13436done
13437  done
13438IFS=$as_save_IFS
13439
13440  ;;
13441esac
13442fi
13443WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13444if test -n "$WINDRES_FOR_TARGET"; then
13445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13446$as_echo "$WINDRES_FOR_TARGET" >&6; }
13447else
13448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449$as_echo "no" >&6; }
13450fi
13451
13452
13453fi
13454if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13455
13456
13457if test -n "$WINDRES_FOR_TARGET"; then
13458  ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13459elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13460  WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13461fi
13462
13463if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13464  for ncn_progname in windres; do
13465    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13466set dummy ${ncn_progname}; ac_word=$2
13467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13468$as_echo_n "checking for $ac_word... " >&6; }
13469if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13470  $as_echo_n "(cached) " >&6
13471else
13472  if test -n "$WINDRES_FOR_TARGET"; then
13473  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13474else
13475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476for as_dir in $PATH
13477do
13478  IFS=$as_save_IFS
13479  test -z "$as_dir" && as_dir=.
13480    for ac_exec_ext in '' $ac_executable_extensions; do
13481  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13482    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13484    break 2
13485  fi
13486done
13487  done
13488IFS=$as_save_IFS
13489
13490fi
13491fi
13492WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13493if test -n "$WINDRES_FOR_TARGET"; then
13494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13495$as_echo "$WINDRES_FOR_TARGET" >&6; }
13496else
13497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498$as_echo "no" >&6; }
13499fi
13500
13501
13502  done
13503fi
13504
13505if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13506  for ncn_progname in windres; do
13507    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13508$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13509    if test -x $with_build_time_tools/${ncn_progname}; then
13510      ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13511      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13512$as_echo "yes" >&6; }
13513      break
13514    else
13515      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516$as_echo "no" >&6; }
13517    fi
13518  done
13519fi
13520
13521if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13522  for ncn_progname in windres; do
13523    if test -n "$ncn_target_tool_prefix"; then
13524      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13525set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527$as_echo_n "checking for $ac_word... " >&6; }
13528if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13529  $as_echo_n "(cached) " >&6
13530else
13531  if test -n "$WINDRES_FOR_TARGET"; then
13532  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13533else
13534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535for as_dir in $PATH
13536do
13537  IFS=$as_save_IFS
13538  test -z "$as_dir" && as_dir=.
13539    for ac_exec_ext in '' $ac_executable_extensions; do
13540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13541    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543    break 2
13544  fi
13545done
13546  done
13547IFS=$as_save_IFS
13548
13549fi
13550fi
13551WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13552if test -n "$WINDRES_FOR_TARGET"; then
13553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13554$as_echo "$WINDRES_FOR_TARGET" >&6; }
13555else
13556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557$as_echo "no" >&6; }
13558fi
13559
13560
13561    fi
13562    if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13563      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13564set dummy ${ncn_progname}; ac_word=$2
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566$as_echo_n "checking for $ac_word... " >&6; }
13567if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13568  $as_echo_n "(cached) " >&6
13569else
13570  if test -n "$WINDRES_FOR_TARGET"; then
13571  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13572else
13573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574for as_dir in $PATH
13575do
13576  IFS=$as_save_IFS
13577  test -z "$as_dir" && as_dir=.
13578    for ac_exec_ext in '' $ac_executable_extensions; do
13579  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13580    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582    break 2
13583  fi
13584done
13585  done
13586IFS=$as_save_IFS
13587
13588fi
13589fi
13590WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13591if test -n "$WINDRES_FOR_TARGET"; then
13592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13593$as_echo "$WINDRES_FOR_TARGET" >&6; }
13594else
13595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596$as_echo "no" >&6; }
13597fi
13598
13599
13600    fi
13601    test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13602  done
13603fi
13604
13605if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13606  set dummy windres
13607  if test $build = $target ; then
13608    WINDRES_FOR_TARGET="$2"
13609  else
13610    WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13611  fi
13612else
13613  WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13614fi
13615
13616else
13617  WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13618fi
13619
13620
13621
13622
13623if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13624  if test -n "$with_build_time_tools"; then
13625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13626$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13627    if test -x $with_build_time_tools/windmc; then
13628      WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13629      ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13630      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13631$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13632    else
13633      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634$as_echo "no" >&6; }
13635    fi
13636  elif test $build != $host && test $have_gcc_for_target = yes; then
13637    WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13638    test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13639    test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13640  fi
13641fi
13642if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13643  # Extract the first word of "windmc", so it can be a program name with args.
13644set dummy windmc; ac_word=$2
13645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13646$as_echo_n "checking for $ac_word... " >&6; }
13647if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13648  $as_echo_n "(cached) " >&6
13649else
13650  case $WINDMC_FOR_TARGET in
13651  [\\/]* | ?:[\\/]*)
13652  ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13653  ;;
13654  *)
13655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656for as_dir in $gcc_cv_tool_dirs
13657do
13658  IFS=$as_save_IFS
13659  test -z "$as_dir" && as_dir=.
13660    for ac_exec_ext in '' $ac_executable_extensions; do
13661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13662    ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13664    break 2
13665  fi
13666done
13667  done
13668IFS=$as_save_IFS
13669
13670  ;;
13671esac
13672fi
13673WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13674if test -n "$WINDMC_FOR_TARGET"; then
13675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13676$as_echo "$WINDMC_FOR_TARGET" >&6; }
13677else
13678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679$as_echo "no" >&6; }
13680fi
13681
13682
13683fi
13684if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13685
13686
13687if test -n "$WINDMC_FOR_TARGET"; then
13688  ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13689elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13690  WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13691fi
13692
13693if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13694  for ncn_progname in windmc; do
13695    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13696set dummy ${ncn_progname}; ac_word=$2
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698$as_echo_n "checking for $ac_word... " >&6; }
13699if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13700  $as_echo_n "(cached) " >&6
13701else
13702  if test -n "$WINDMC_FOR_TARGET"; then
13703  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13704else
13705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706for as_dir in $PATH
13707do
13708  IFS=$as_save_IFS
13709  test -z "$as_dir" && as_dir=.
13710    for ac_exec_ext in '' $ac_executable_extensions; do
13711  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13712    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714    break 2
13715  fi
13716done
13717  done
13718IFS=$as_save_IFS
13719
13720fi
13721fi
13722WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13723if test -n "$WINDMC_FOR_TARGET"; then
13724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13725$as_echo "$WINDMC_FOR_TARGET" >&6; }
13726else
13727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728$as_echo "no" >&6; }
13729fi
13730
13731
13732  done
13733fi
13734
13735if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13736  for ncn_progname in windmc; do
13737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13738$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13739    if test -x $with_build_time_tools/${ncn_progname}; then
13740      ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13741      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13742$as_echo "yes" >&6; }
13743      break
13744    else
13745      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746$as_echo "no" >&6; }
13747    fi
13748  done
13749fi
13750
13751if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13752  for ncn_progname in windmc; do
13753    if test -n "$ncn_target_tool_prefix"; then
13754      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13755set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13757$as_echo_n "checking for $ac_word... " >&6; }
13758if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13759  $as_echo_n "(cached) " >&6
13760else
13761  if test -n "$WINDMC_FOR_TARGET"; then
13762  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13763else
13764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765for as_dir in $PATH
13766do
13767  IFS=$as_save_IFS
13768  test -z "$as_dir" && as_dir=.
13769    for ac_exec_ext in '' $ac_executable_extensions; do
13770  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13771    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13773    break 2
13774  fi
13775done
13776  done
13777IFS=$as_save_IFS
13778
13779fi
13780fi
13781WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13782if test -n "$WINDMC_FOR_TARGET"; then
13783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13784$as_echo "$WINDMC_FOR_TARGET" >&6; }
13785else
13786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13787$as_echo "no" >&6; }
13788fi
13789
13790
13791    fi
13792    if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13793      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13794set dummy ${ncn_progname}; ac_word=$2
13795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13796$as_echo_n "checking for $ac_word... " >&6; }
13797if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13798  $as_echo_n "(cached) " >&6
13799else
13800  if test -n "$WINDMC_FOR_TARGET"; then
13801  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13802else
13803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804for as_dir in $PATH
13805do
13806  IFS=$as_save_IFS
13807  test -z "$as_dir" && as_dir=.
13808    for ac_exec_ext in '' $ac_executable_extensions; do
13809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13810    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13812    break 2
13813  fi
13814done
13815  done
13816IFS=$as_save_IFS
13817
13818fi
13819fi
13820WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13821if test -n "$WINDMC_FOR_TARGET"; then
13822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13823$as_echo "$WINDMC_FOR_TARGET" >&6; }
13824else
13825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826$as_echo "no" >&6; }
13827fi
13828
13829
13830    fi
13831    test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13832  done
13833fi
13834
13835if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13836  set dummy windmc
13837  if test $build = $target ; then
13838    WINDMC_FOR_TARGET="$2"
13839  else
13840    WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13841  fi
13842else
13843  WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13844fi
13845
13846else
13847  WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13848fi
13849
13850
13851RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13852
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13854$as_echo_n "checking where to find the target ar... " >&6; }
13855if test "x${build}" != "x${host}" ; then
13856  if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13857    # We already found the complete path
13858    ac_dir=`dirname $AR_FOR_TARGET`
13859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13860$as_echo "pre-installed in $ac_dir" >&6; }
13861  else
13862    # Canadian cross, just use what we found
13863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864$as_echo "pre-installed" >&6; }
13865  fi
13866else
13867  ok=yes
13868  case " ${configdirs} " in
13869    *" binutils "*) ;;
13870    *) ok=no ;;
13871  esac
13872
13873  if test $ok = yes; then
13874    # An in-tree tool is available and we can use it
13875    AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13877$as_echo "just compiled" >&6; }
13878  elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13879    # We already found the complete path
13880    ac_dir=`dirname $AR_FOR_TARGET`
13881    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13882$as_echo "pre-installed in $ac_dir" >&6; }
13883  elif test "x$target" = "x$host"; then
13884    # We can use an host tool
13885    AR_FOR_TARGET='$(AR)'
13886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13887$as_echo "host tool" >&6; }
13888  else
13889    # We need a cross tool
13890    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13891$as_echo "pre-installed" >&6; }
13892  fi
13893fi
13894
13895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13896$as_echo_n "checking where to find the target as... " >&6; }
13897if test "x${build}" != "x${host}" ; then
13898  if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13899    # We already found the complete path
13900    ac_dir=`dirname $AS_FOR_TARGET`
13901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13902$as_echo "pre-installed in $ac_dir" >&6; }
13903  else
13904    # Canadian cross, just use what we found
13905    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13906$as_echo "pre-installed" >&6; }
13907  fi
13908else
13909  ok=yes
13910  case " ${configdirs} " in
13911    *" gas "*) ;;
13912    *) ok=no ;;
13913  esac
13914
13915  if test $ok = yes; then
13916    # An in-tree tool is available and we can use it
13917    AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13919$as_echo "just compiled" >&6; }
13920  elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13921    # We already found the complete path
13922    ac_dir=`dirname $AS_FOR_TARGET`
13923    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13924$as_echo "pre-installed in $ac_dir" >&6; }
13925  elif test "x$target" = "x$host"; then
13926    # We can use an host tool
13927    AS_FOR_TARGET='$(AS)'
13928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13929$as_echo "host tool" >&6; }
13930  else
13931    # We need a cross tool
13932    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13933$as_echo "pre-installed" >&6; }
13934  fi
13935fi
13936
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13938$as_echo_n "checking where to find the target cc... " >&6; }
13939if test "x${build}" != "x${host}" ; then
13940  if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13941    # We already found the complete path
13942    ac_dir=`dirname $CC_FOR_TARGET`
13943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13944$as_echo "pre-installed in $ac_dir" >&6; }
13945  else
13946    # Canadian cross, just use what we found
13947    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13948$as_echo "pre-installed" >&6; }
13949  fi
13950else
13951  ok=yes
13952  case " ${configdirs} " in
13953    *" gcc "*) ;;
13954    *) ok=no ;;
13955  esac
13956
13957  if test $ok = yes; then
13958    # An in-tree tool is available and we can use it
13959    CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13960    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13961$as_echo "just compiled" >&6; }
13962  elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13963    # We already found the complete path
13964    ac_dir=`dirname $CC_FOR_TARGET`
13965    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966$as_echo "pre-installed in $ac_dir" >&6; }
13967  elif test "x$target" = "x$host"; then
13968    # We can use an host tool
13969    CC_FOR_TARGET='$(CC)'
13970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13971$as_echo "host tool" >&6; }
13972  else
13973    # We need a cross tool
13974    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13975$as_echo "pre-installed" >&6; }
13976  fi
13977fi
13978
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13980$as_echo_n "checking where to find the target c++... " >&6; }
13981if test "x${build}" != "x${host}" ; then
13982  if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13983    # We already found the complete path
13984    ac_dir=`dirname $CXX_FOR_TARGET`
13985    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13986$as_echo "pre-installed in $ac_dir" >&6; }
13987  else
13988    # Canadian cross, just use what we found
13989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13990$as_echo "pre-installed" >&6; }
13991  fi
13992else
13993  ok=yes
13994  case " ${configdirs} " in
13995    *" gcc "*) ;;
13996    *) ok=no ;;
13997  esac
13998  case ,${enable_languages}, in
13999    *,c++,*) ;;
14000    *) ok=no ;;
14001  esac
14002  if test $ok = yes; then
14003    # An in-tree tool is available and we can use it
14004    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'
14005    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14006$as_echo "just compiled" >&6; }
14007  elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14008    # We already found the complete path
14009    ac_dir=`dirname $CXX_FOR_TARGET`
14010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14011$as_echo "pre-installed in $ac_dir" >&6; }
14012  elif test "x$target" = "x$host"; then
14013    # We can use an host tool
14014    CXX_FOR_TARGET='$(CXX)'
14015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14016$as_echo "host tool" >&6; }
14017  else
14018    # We need a cross tool
14019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14020$as_echo "pre-installed" >&6; }
14021  fi
14022fi
14023
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14025$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14026if test "x${build}" != "x${host}" ; then
14027  if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14028    # We already found the complete path
14029    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14031$as_echo "pre-installed in $ac_dir" >&6; }
14032  else
14033    # Canadian cross, just use what we found
14034    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14035$as_echo "pre-installed" >&6; }
14036  fi
14037else
14038  ok=yes
14039  case " ${configdirs} " in
14040    *" gcc "*) ;;
14041    *) ok=no ;;
14042  esac
14043  case ,${enable_languages}, in
14044    *,c++,*) ;;
14045    *) ok=no ;;
14046  esac
14047  if test $ok = yes; then
14048    # An in-tree tool is available and we can use it
14049    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'
14050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14051$as_echo "just compiled" >&6; }
14052  elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14053    # We already found the complete path
14054    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14055    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056$as_echo "pre-installed in $ac_dir" >&6; }
14057  elif test "x$target" = "x$host"; then
14058    # We can use an host tool
14059    RAW_CXX_FOR_TARGET='$(CXX)'
14060    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14061$as_echo "host tool" >&6; }
14062  else
14063    # We need a cross tool
14064    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14065$as_echo "pre-installed" >&6; }
14066  fi
14067fi
14068
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14070$as_echo_n "checking where to find the target dlltool... " >&6; }
14071if test "x${build}" != "x${host}" ; then
14072  if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14073    # We already found the complete path
14074    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14076$as_echo "pre-installed in $ac_dir" >&6; }
14077  else
14078    # Canadian cross, just use what we found
14079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080$as_echo "pre-installed" >&6; }
14081  fi
14082else
14083  ok=yes
14084  case " ${configdirs} " in
14085    *" binutils "*) ;;
14086    *) ok=no ;;
14087  esac
14088
14089  if test $ok = yes; then
14090    # An in-tree tool is available and we can use it
14091    DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14092    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14093$as_echo "just compiled" >&6; }
14094  elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14095    # We already found the complete path
14096    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14097    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14098$as_echo "pre-installed in $ac_dir" >&6; }
14099  elif test "x$target" = "x$host"; then
14100    # We can use an host tool
14101    DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14102    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14103$as_echo "host tool" >&6; }
14104  else
14105    # We need a cross tool
14106    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14107$as_echo "pre-installed" >&6; }
14108  fi
14109fi
14110
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14112$as_echo_n "checking where to find the target gcc... " >&6; }
14113if test "x${build}" != "x${host}" ; then
14114  if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14115    # We already found the complete path
14116    ac_dir=`dirname $GCC_FOR_TARGET`
14117    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14118$as_echo "pre-installed in $ac_dir" >&6; }
14119  else
14120    # Canadian cross, just use what we found
14121    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14122$as_echo "pre-installed" >&6; }
14123  fi
14124else
14125  ok=yes
14126  case " ${configdirs} " in
14127    *" gcc "*) ;;
14128    *) ok=no ;;
14129  esac
14130
14131  if test $ok = yes; then
14132    # An in-tree tool is available and we can use it
14133    GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14135$as_echo "just compiled" >&6; }
14136  elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14137    # We already found the complete path
14138    ac_dir=`dirname $GCC_FOR_TARGET`
14139    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14140$as_echo "pre-installed in $ac_dir" >&6; }
14141  elif test "x$target" = "x$host"; then
14142    # We can use an host tool
14143    GCC_FOR_TARGET='$()'
14144    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14145$as_echo "host tool" >&6; }
14146  else
14147    # We need a cross tool
14148    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14149$as_echo "pre-installed" >&6; }
14150  fi
14151fi
14152
14153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14154$as_echo_n "checking where to find the target gcj... " >&6; }
14155if test "x${build}" != "x${host}" ; then
14156  if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14157    # We already found the complete path
14158    ac_dir=`dirname $GCJ_FOR_TARGET`
14159    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14160$as_echo "pre-installed in $ac_dir" >&6; }
14161  else
14162    # Canadian cross, just use what we found
14163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14164$as_echo "pre-installed" >&6; }
14165  fi
14166else
14167  ok=yes
14168  case " ${configdirs} " in
14169    *" gcc "*) ;;
14170    *) ok=no ;;
14171  esac
14172  case ,${enable_languages}, in
14173    *,java,*) ;;
14174    *) ok=no ;;
14175  esac
14176  if test $ok = yes; then
14177    # An in-tree tool is available and we can use it
14178    GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14179    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14180$as_echo "just compiled" >&6; }
14181  elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14182    # We already found the complete path
14183    ac_dir=`dirname $GCJ_FOR_TARGET`
14184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185$as_echo "pre-installed in $ac_dir" >&6; }
14186  elif test "x$target" = "x$host"; then
14187    # We can use an host tool
14188    GCJ_FOR_TARGET='$(GCJ)'
14189    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14190$as_echo "host tool" >&6; }
14191  else
14192    # We need a cross tool
14193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14194$as_echo "pre-installed" >&6; }
14195  fi
14196fi
14197
14198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14199$as_echo_n "checking where to find the target gfortran... " >&6; }
14200if test "x${build}" != "x${host}" ; then
14201  if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14202    # We already found the complete path
14203    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14205$as_echo "pre-installed in $ac_dir" >&6; }
14206  else
14207    # Canadian cross, just use what we found
14208    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14209$as_echo "pre-installed" >&6; }
14210  fi
14211else
14212  ok=yes
14213  case " ${configdirs} " in
14214    *" gcc "*) ;;
14215    *) ok=no ;;
14216  esac
14217  case ,${enable_languages}, in
14218    *,fortran,*) ;;
14219    *) ok=no ;;
14220  esac
14221  if test $ok = yes; then
14222    # An in-tree tool is available and we can use it
14223    GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14225$as_echo "just compiled" >&6; }
14226  elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14227    # We already found the complete path
14228    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14229    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14230$as_echo "pre-installed in $ac_dir" >&6; }
14231  elif test "x$target" = "x$host"; then
14232    # We can use an host tool
14233    GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14234    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14235$as_echo "host tool" >&6; }
14236  else
14237    # We need a cross tool
14238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14239$as_echo "pre-installed" >&6; }
14240  fi
14241fi
14242
14243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14244$as_echo_n "checking where to find the target gccgo... " >&6; }
14245if test "x${build}" != "x${host}" ; then
14246  if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14247    # We already found the complete path
14248    ac_dir=`dirname $GOC_FOR_TARGET`
14249    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14250$as_echo "pre-installed in $ac_dir" >&6; }
14251  else
14252    # Canadian cross, just use what we found
14253    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14254$as_echo "pre-installed" >&6; }
14255  fi
14256else
14257  ok=yes
14258  case " ${configdirs} " in
14259    *" gcc "*) ;;
14260    *) ok=no ;;
14261  esac
14262  case ,${enable_languages}, in
14263    *,go,*) ;;
14264    *) ok=no ;;
14265  esac
14266  if test $ok = yes; then
14267    # An in-tree tool is available and we can use it
14268    GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14269    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14270$as_echo "just compiled" >&6; }
14271  elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14272    # We already found the complete path
14273    ac_dir=`dirname $GOC_FOR_TARGET`
14274    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14275$as_echo "pre-installed in $ac_dir" >&6; }
14276  elif test "x$target" = "x$host"; then
14277    # We can use an host tool
14278    GOC_FOR_TARGET='$(GOC)'
14279    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14280$as_echo "host tool" >&6; }
14281  else
14282    # We need a cross tool
14283    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14284$as_echo "pre-installed" >&6; }
14285  fi
14286fi
14287
14288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14289$as_echo_n "checking where to find the target ld... " >&6; }
14290if test "x${build}" != "x${host}" ; then
14291  if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14292    # We already found the complete path
14293    ac_dir=`dirname $LD_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    *" ld "*) ;;
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    LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14312$as_echo "just compiled" >&6; }
14313  elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14314    # We already found the complete path
14315    ac_dir=`dirname $LD_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    LD_FOR_TARGET='$(LD)'
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 lipo" >&5
14331$as_echo_n "checking where to find the target lipo... " >&6; }
14332if test "x${build}" != "x${host}" ; then
14333  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14334    # We already found the complete path
14335    ac_dir=`dirname $LIPO_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  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14345    # We already found the complete path
14346    ac_dir=`dirname $LIPO_FOR_TARGET`
14347    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14348$as_echo "pre-installed in $ac_dir" >&6; }
14349  elif test "x$target" = "x$host"; then
14350    # We can use an host tool
14351    LIPO_FOR_TARGET='$(LIPO)'
14352    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14353$as_echo "host tool" >&6; }
14354  else
14355    # We need a cross tool
14356    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14357$as_echo "pre-installed" >&6; }
14358  fi
14359fi
14360
14361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14362$as_echo_n "checking where to find the target nm... " >&6; }
14363if test "x${build}" != "x${host}" ; then
14364  if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14365    # We already found the complete path
14366    ac_dir=`dirname $NM_FOR_TARGET`
14367    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14368$as_echo "pre-installed in $ac_dir" >&6; }
14369  else
14370    # Canadian cross, just use what we found
14371    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14372$as_echo "pre-installed" >&6; }
14373  fi
14374else
14375  ok=yes
14376  case " ${configdirs} " in
14377    *" binutils "*) ;;
14378    *) ok=no ;;
14379  esac
14380
14381  if test $ok = yes; then
14382    # An in-tree tool is available and we can use it
14383    NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14385$as_echo "just compiled" >&6; }
14386  elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14387    # We already found the complete path
14388    ac_dir=`dirname $NM_FOR_TARGET`
14389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14390$as_echo "pre-installed in $ac_dir" >&6; }
14391  elif test "x$target" = "x$host"; then
14392    # We can use an host tool
14393    NM_FOR_TARGET='$(NM)'
14394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14395$as_echo "host tool" >&6; }
14396  else
14397    # We need a cross tool
14398    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14399$as_echo "pre-installed" >&6; }
14400  fi
14401fi
14402
14403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14404$as_echo_n "checking where to find the target objcopy... " >&6; }
14405if test "x${build}" != "x${host}" ; then
14406  if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14407    # We already found the complete path
14408    ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14409    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14410$as_echo "pre-installed in $ac_dir" >&6; }
14411  else
14412    # Canadian cross, just use what we found
14413    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14414$as_echo "pre-installed" >&6; }
14415  fi
14416else
14417  ok=yes
14418  case " ${configdirs} " in
14419    *" binutils "*) ;;
14420    *) ok=no ;;
14421  esac
14422
14423  if test $ok = yes; then
14424    # An in-tree tool is available and we can use it
14425    OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14426    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14427$as_echo "just compiled" >&6; }
14428  elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14429    # We already found the complete path
14430    ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14431    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14432$as_echo "pre-installed in $ac_dir" >&6; }
14433  elif test "x$target" = "x$host"; then
14434    # We can use an host tool
14435    OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14436    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14437$as_echo "host tool" >&6; }
14438  else
14439    # We need a cross tool
14440    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14441$as_echo "pre-installed" >&6; }
14442  fi
14443fi
14444
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14446$as_echo_n "checking where to find the target objdump... " >&6; }
14447if test "x${build}" != "x${host}" ; then
14448  if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14449    # We already found the complete path
14450    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14451    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14452$as_echo "pre-installed in $ac_dir" >&6; }
14453  else
14454    # Canadian cross, just use what we found
14455    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14456$as_echo "pre-installed" >&6; }
14457  fi
14458else
14459  ok=yes
14460  case " ${configdirs} " in
14461    *" binutils "*) ;;
14462    *) ok=no ;;
14463  esac
14464
14465  if test $ok = yes; then
14466    # An in-tree tool is available and we can use it
14467    OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14468    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14469$as_echo "just compiled" >&6; }
14470  elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14471    # We already found the complete path
14472    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14473    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14474$as_echo "pre-installed in $ac_dir" >&6; }
14475  elif test "x$target" = "x$host"; then
14476    # We can use an host tool
14477    OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14479$as_echo "host tool" >&6; }
14480  else
14481    # We need a cross tool
14482    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14483$as_echo "pre-installed" >&6; }
14484  fi
14485fi
14486
14487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14488$as_echo_n "checking where to find the target ranlib... " >&6; }
14489if test "x${build}" != "x${host}" ; then
14490  if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14491    # We already found the complete path
14492    ac_dir=`dirname $RANLIB_FOR_TARGET`
14493    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14494$as_echo "pre-installed in $ac_dir" >&6; }
14495  else
14496    # Canadian cross, just use what we found
14497    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14498$as_echo "pre-installed" >&6; }
14499  fi
14500else
14501  ok=yes
14502  case " ${configdirs} " in
14503    *" binutils "*) ;;
14504    *) ok=no ;;
14505  esac
14506
14507  if test $ok = yes; then
14508    # An in-tree tool is available and we can use it
14509    RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14511$as_echo "just compiled" >&6; }
14512  elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14513    # We already found the complete path
14514    ac_dir=`dirname $RANLIB_FOR_TARGET`
14515    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14516$as_echo "pre-installed in $ac_dir" >&6; }
14517  elif test "x$target" = "x$host"; then
14518    # We can use an host tool
14519    RANLIB_FOR_TARGET='$(RANLIB)'
14520    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14521$as_echo "host tool" >&6; }
14522  else
14523    # We need a cross tool
14524    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14525$as_echo "pre-installed" >&6; }
14526  fi
14527fi
14528
14529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14530$as_echo_n "checking where to find the target readelf... " >&6; }
14531if test "x${build}" != "x${host}" ; then
14532  if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14533    # We already found the complete path
14534    ac_dir=`dirname $READELF_FOR_TARGET`
14535    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14536$as_echo "pre-installed in $ac_dir" >&6; }
14537  else
14538    # Canadian cross, just use what we found
14539    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14540$as_echo "pre-installed" >&6; }
14541  fi
14542else
14543  ok=yes
14544  case " ${configdirs} " in
14545    *" binutils "*) ;;
14546    *) ok=no ;;
14547  esac
14548
14549  if test $ok = yes; then
14550    # An in-tree tool is available and we can use it
14551    READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14553$as_echo "just compiled" >&6; }
14554  elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14555    # We already found the complete path
14556    ac_dir=`dirname $READELF_FOR_TARGET`
14557    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14558$as_echo "pre-installed in $ac_dir" >&6; }
14559  elif test "x$target" = "x$host"; then
14560    # We can use an host tool
14561    READELF_FOR_TARGET='$(READELF)'
14562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14563$as_echo "host tool" >&6; }
14564  else
14565    # We need a cross tool
14566    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14567$as_echo "pre-installed" >&6; }
14568  fi
14569fi
14570
14571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14572$as_echo_n "checking where to find the target strip... " >&6; }
14573if test "x${build}" != "x${host}" ; then
14574  if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14575    # We already found the complete path
14576    ac_dir=`dirname $STRIP_FOR_TARGET`
14577    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14578$as_echo "pre-installed in $ac_dir" >&6; }
14579  else
14580    # Canadian cross, just use what we found
14581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14582$as_echo "pre-installed" >&6; }
14583  fi
14584else
14585  ok=yes
14586  case " ${configdirs} " in
14587    *" binutils "*) ;;
14588    *) ok=no ;;
14589  esac
14590
14591  if test $ok = yes; then
14592    # An in-tree tool is available and we can use it
14593    STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14595$as_echo "just compiled" >&6; }
14596  elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14597    # We already found the complete path
14598    ac_dir=`dirname $STRIP_FOR_TARGET`
14599    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14600$as_echo "pre-installed in $ac_dir" >&6; }
14601  elif test "x$target" = "x$host"; then
14602    # We can use an host tool
14603    STRIP_FOR_TARGET='$(STRIP)'
14604    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14605$as_echo "host tool" >&6; }
14606  else
14607    # We need a cross tool
14608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14609$as_echo "pre-installed" >&6; }
14610  fi
14611fi
14612
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14614$as_echo_n "checking where to find the target windres... " >&6; }
14615if test "x${build}" != "x${host}" ; then
14616  if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14617    # We already found the complete path
14618    ac_dir=`dirname $WINDRES_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  else
14622    # Canadian cross, just use what we found
14623    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14624$as_echo "pre-installed" >&6; }
14625  fi
14626else
14627  ok=yes
14628  case " ${configdirs} " in
14629    *" binutils "*) ;;
14630    *) ok=no ;;
14631  esac
14632
14633  if test $ok = yes; then
14634    # An in-tree tool is available and we can use it
14635    WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14637$as_echo "just compiled" >&6; }
14638  elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14639    # We already found the complete path
14640    ac_dir=`dirname $WINDRES_FOR_TARGET`
14641    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14642$as_echo "pre-installed in $ac_dir" >&6; }
14643  elif test "x$target" = "x$host"; then
14644    # We can use an host tool
14645    WINDRES_FOR_TARGET='$(WINDRES)'
14646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14647$as_echo "host tool" >&6; }
14648  else
14649    # We need a cross tool
14650    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14651$as_echo "pre-installed" >&6; }
14652  fi
14653fi
14654
14655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14656$as_echo_n "checking where to find the target windmc... " >&6; }
14657if test "x${build}" != "x${host}" ; then
14658  if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14659    # We already found the complete path
14660    ac_dir=`dirname $WINDMC_FOR_TARGET`
14661    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14662$as_echo "pre-installed in $ac_dir" >&6; }
14663  else
14664    # Canadian cross, just use what we found
14665    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14666$as_echo "pre-installed" >&6; }
14667  fi
14668else
14669  ok=yes
14670  case " ${configdirs} " in
14671    *" binutils "*) ;;
14672    *) ok=no ;;
14673  esac
14674
14675  if test $ok = yes; then
14676    # An in-tree tool is available and we can use it
14677    WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14679$as_echo "just compiled" >&6; }
14680  elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14681    # We already found the complete path
14682    ac_dir=`dirname $WINDMC_FOR_TARGET`
14683    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14684$as_echo "pre-installed in $ac_dir" >&6; }
14685  elif test "x$target" = "x$host"; then
14686    # We can use an host tool
14687    WINDMC_FOR_TARGET='$(WINDMC)'
14688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14689$as_echo "host tool" >&6; }
14690  else
14691    # We need a cross tool
14692    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14693$as_echo "pre-installed" >&6; }
14694  fi
14695fi
14696
14697
14698
14699
14700
14701# Certain tools may need extra flags.
14702AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14703RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14704NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14705
14706# When building target libraries, except in a Canadian cross, we use
14707# the same toolchain as the compiler we just built.
14708COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14709COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14710COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14711if test $host = $build; then
14712  case " $configdirs " in
14713    *" gcc "*)
14714      COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14715      COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14716      COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14717      ;;
14718  esac
14719fi
14720
14721
14722
14723
14724
14725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14726$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14727# Check whether --enable-maintainer-mode was given.
14728if test "${enable_maintainer_mode+set}" = set; then :
14729  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14730else
14731  USE_MAINTAINER_MODE=no
14732fi
14733
14734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14735$as_echo "$USE_MAINTAINER_MODE" >&6; }
14736
14737
14738if test "$USE_MAINTAINER_MODE" = yes; then
14739  MAINTAINER_MODE_TRUE=
14740  MAINTAINER_MODE_FALSE='#'
14741else
14742  MAINTAINER_MODE_TRUE='#'
14743  MAINTAINER_MODE_FALSE=
14744fi
14745MAINT=$MAINTAINER_MODE_TRUE
14746
14747# ---------------------
14748# GCC bootstrap support
14749# ---------------------
14750
14751# Stage specific cflags for build.
14752stage1_cflags="-g"
14753case $build in
14754  vax-*-*)
14755    case ${GCC} in
14756      yes) stage1_cflags="-g -Wa,-J" ;;
14757      *) stage1_cflags="-g -J" ;;
14758    esac ;;
14759esac
14760
14761
14762
14763# Enable --enable-checking in stage1 of the compiler.
14764# Check whether --enable-stage1-checking was given.
14765if test "${enable_stage1_checking+set}" = set; then :
14766  enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14767else
14768  if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14769  # For --disable-checking or implicit --enable-checking=release, avoid
14770  # setting --enable-checking=gc in the default stage1 checking for LTO
14771  # bootstraps.  See PR62077.
14772  stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14773  case $BUILD_CONFIG in
14774    *lto*)
14775      if test "x$enable_checking" = x && \
14776	 test -d ${srcdir}/gcc && \
14777	 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14778	stage1_checking=--enable-checking=yes,types
14779      fi;;
14780    *) stage1_checking=--enable-checking=yes,types;;
14781  esac
14782else
14783  stage1_checking=--enable-checking=$enable_checking,types
14784fi
14785fi
14786
14787
14788
14789# Enable -Werror in bootstrap stage2 and later.
14790# Check whether --enable-werror was given.
14791if test "${enable_werror+set}" = set; then :
14792  enableval=$enable_werror;
14793else
14794  if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14795  enable_werror=yes
14796else
14797  enable_werror=no
14798fi
14799fi
14800
14801case ${enable_werror} in
14802  yes) stage2_werror_flag="--enable-werror-always" ;;
14803  *) stage2_werror_flag="" ;;
14804esac
14805
14806
14807# Enable --enable-host-shared.
14808# Check whether --enable-host-shared was given.
14809if test "${enable_host_shared+set}" = set; then :
14810  enableval=$enable_host_shared; host_shared=$enableval
14811else
14812  host_shared=no
14813fi
14814
14815
14816
14817# PR jit/64780: Require the user to explicitly specify
14818# --enable-host-shared if the jit is enabled, hinting
14819# that they might want to do a separate configure/build of
14820# the jit, to avoid users from slowing down the rest of the
14821# compiler by enabling the jit.
14822if test ${host_shared} = "no" ; then
14823  case "${enable_languages}" in
14824    *jit*)
14825      as_fn_error "
14826Enabling language \"jit\" requires --enable-host-shared.
14827
14828--enable-host-shared typically slows the rest of the compiler down by
14829a few %, so you must explicitly enable it.
14830
14831If you want to build both the jit and the regular compiler, it is often
14832best to do this via two separate configure/builds, in separate
14833directories, to avoid imposing the performance cost of
14834--enable-host-shared on the regular compiler." "$LINENO" 5
14835      ;;
14836    *)
14837      ;;
14838  esac
14839fi
14840
14841# Specify what files to not compare during bootstrap.
14842
14843compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14844case "$target" in
14845  hppa*64*-*-hpux*) ;;
14846  hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14847  powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14848esac
14849
14850
14851ac_config_files="$ac_config_files Makefile"
14852
14853cat >confcache <<\_ACEOF
14854# This file is a shell script that caches the results of configure
14855# tests run on this system so they can be shared between configure
14856# scripts and configure runs, see configure's option --config-cache.
14857# It is not useful on other systems.  If it contains results you don't
14858# want to keep, you may remove or edit it.
14859#
14860# config.status only pays attention to the cache file if you give it
14861# the --recheck option to rerun configure.
14862#
14863# `ac_cv_env_foo' variables (set or unset) will be overridden when
14864# loading this file, other *unset* `ac_cv_foo' will be assigned the
14865# following values.
14866
14867_ACEOF
14868
14869# The following way of writing the cache mishandles newlines in values,
14870# but we know of no workaround that is simple, portable, and efficient.
14871# So, we kill variables containing newlines.
14872# Ultrix sh set writes to stderr and can't be redirected directly,
14873# and sets the high bit in the cache file unless we assign to the vars.
14874(
14875  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14876    eval ac_val=\$$ac_var
14877    case $ac_val in #(
14878    *${as_nl}*)
14879      case $ac_var in #(
14880      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14881$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14882      esac
14883      case $ac_var in #(
14884      _ | IFS | as_nl) ;; #(
14885      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14886      *) { eval $ac_var=; unset $ac_var;} ;;
14887      esac ;;
14888    esac
14889  done
14890
14891  (set) 2>&1 |
14892    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14893    *${as_nl}ac_space=\ *)
14894      # `set' does not quote correctly, so add quotes: double-quote
14895      # substitution turns \\\\ into \\, and sed turns \\ into \.
14896      sed -n \
14897	"s/'/'\\\\''/g;
14898	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14899      ;; #(
14900    *)
14901      # `set' quotes correctly as required by POSIX, so do not add quotes.
14902      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14903      ;;
14904    esac |
14905    sort
14906) |
14907  sed '
14908     /^ac_cv_env_/b end
14909     t clear
14910     :clear
14911     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14912     t end
14913     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14914     :end' >>confcache
14915if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14916  if test -w "$cache_file"; then
14917    test "x$cache_file" != "x/dev/null" &&
14918      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14919$as_echo "$as_me: updating cache $cache_file" >&6;}
14920    cat confcache >$cache_file
14921  else
14922    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14923$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14924  fi
14925fi
14926rm -f confcache
14927
14928test "x$prefix" = xNONE && prefix=$ac_default_prefix
14929# Let make expand exec_prefix.
14930test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14931
14932# Transform confdefs.h into DEFS.
14933# Protect against shell expansion while executing Makefile rules.
14934# Protect against Makefile macro expansion.
14935#
14936# If the first sed substitution is executed (which looks for macros that
14937# take arguments), then branch to the quote section.  Otherwise,
14938# look for a macro that doesn't take arguments.
14939ac_script='
14940:mline
14941/\\$/{
14942 N
14943 s,\\\n,,
14944 b mline
14945}
14946t clear
14947:clear
14948s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
14949t quote
14950s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
14951t quote
14952b any
14953:quote
14954s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14955s/\[/\\&/g
14956s/\]/\\&/g
14957s/\$/$$/g
14958H
14959:any
14960${
14961	g
14962	s/^\n//
14963	s/\n/ /g
14964	p
14965}
14966'
14967DEFS=`sed -n "$ac_script" confdefs.h`
14968
14969
14970ac_libobjs=
14971ac_ltlibobjs=
14972for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14973  # 1. Remove the extension, and $U if already installed.
14974  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14975  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14976  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14977  #    will be set to the directory where LIBOBJS objects are built.
14978  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14979  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14980done
14981LIBOBJS=$ac_libobjs
14982
14983LTLIBOBJS=$ac_ltlibobjs
14984
14985
14986
14987: ${CONFIG_STATUS=./config.status}
14988ac_write_fail=0
14989ac_clean_files_save=$ac_clean_files
14990ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14991{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14992$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14993as_write_fail=0
14994cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14995#! $SHELL
14996# Generated by $as_me.
14997# Run this file to recreate the current configuration.
14998# Compiler output produced by configure, useful for debugging
14999# configure, is in config.log if it exists.
15000
15001debug=false
15002ac_cs_recheck=false
15003ac_cs_silent=false
15004
15005SHELL=\${CONFIG_SHELL-$SHELL}
15006export SHELL
15007_ASEOF
15008cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15009## -------------------- ##
15010## M4sh Initialization. ##
15011## -------------------- ##
15012
15013# Be more Bourne compatible
15014DUALCASE=1; export DUALCASE # for MKS sh
15015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15016  emulate sh
15017  NULLCMD=:
15018  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15019  # is contrary to our usage.  Disable this feature.
15020  alias -g '${1+"$@"}'='"$@"'
15021  setopt NO_GLOB_SUBST
15022else
15023  case `(set -o) 2>/dev/null` in #(
15024  *posix*) :
15025    set -o posix ;; #(
15026  *) :
15027     ;;
15028esac
15029fi
15030
15031
15032as_nl='
15033'
15034export as_nl
15035# Printing a long string crashes Solaris 7 /usr/bin/printf.
15036as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15037as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15038as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15039# Prefer a ksh shell builtin over an external printf program on Solaris,
15040# but without wasting forks for bash or zsh.
15041if test -z "$BASH_VERSION$ZSH_VERSION" \
15042    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15043  as_echo='print -r --'
15044  as_echo_n='print -rn --'
15045elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15046  as_echo='printf %s\n'
15047  as_echo_n='printf %s'
15048else
15049  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15050    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15051    as_echo_n='/usr/ucb/echo -n'
15052  else
15053    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15054    as_echo_n_body='eval
15055      arg=$1;
15056      case $arg in #(
15057      *"$as_nl"*)
15058	expr "X$arg" : "X\\(.*\\)$as_nl";
15059	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15060      esac;
15061      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15062    '
15063    export as_echo_n_body
15064    as_echo_n='sh -c $as_echo_n_body as_echo'
15065  fi
15066  export as_echo_body
15067  as_echo='sh -c $as_echo_body as_echo'
15068fi
15069
15070# The user is always right.
15071if test "${PATH_SEPARATOR+set}" != set; then
15072  PATH_SEPARATOR=:
15073  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15074    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15075      PATH_SEPARATOR=';'
15076  }
15077fi
15078
15079
15080# IFS
15081# We need space, tab and new line, in precisely that order.  Quoting is
15082# there to prevent editors from complaining about space-tab.
15083# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15084# splitting by setting IFS to empty value.)
15085IFS=" ""	$as_nl"
15086
15087# Find who we are.  Look in the path if we contain no directory separator.
15088case $0 in #((
15089  *[\\/]* ) as_myself=$0 ;;
15090  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15091for as_dir in $PATH
15092do
15093  IFS=$as_save_IFS
15094  test -z "$as_dir" && as_dir=.
15095    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15096  done
15097IFS=$as_save_IFS
15098
15099     ;;
15100esac
15101# We did not find ourselves, most probably we were run as `sh COMMAND'
15102# in which case we are not to be found in the path.
15103if test "x$as_myself" = x; then
15104  as_myself=$0
15105fi
15106if test ! -f "$as_myself"; then
15107  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15108  exit 1
15109fi
15110
15111# Unset variables that we do not need and which cause bugs (e.g. in
15112# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15113# suppresses any "Segmentation fault" message there.  '((' could
15114# trigger a bug in pdksh 5.2.14.
15115for as_var in BASH_ENV ENV MAIL MAILPATH
15116do eval test x\${$as_var+set} = xset \
15117  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15118done
15119PS1='$ '
15120PS2='> '
15121PS4='+ '
15122
15123# NLS nuisances.
15124LC_ALL=C
15125export LC_ALL
15126LANGUAGE=C
15127export LANGUAGE
15128
15129# CDPATH.
15130(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15131
15132
15133# as_fn_error ERROR [LINENO LOG_FD]
15134# ---------------------------------
15135# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15136# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15137# script with status $?, using 1 if that was 0.
15138as_fn_error ()
15139{
15140  as_status=$?; test $as_status -eq 0 && as_status=1
15141  if test "$3"; then
15142    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15143    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15144  fi
15145  $as_echo "$as_me: error: $1" >&2
15146  as_fn_exit $as_status
15147} # as_fn_error
15148
15149
15150# as_fn_set_status STATUS
15151# -----------------------
15152# Set $? to STATUS, without forking.
15153as_fn_set_status ()
15154{
15155  return $1
15156} # as_fn_set_status
15157
15158# as_fn_exit STATUS
15159# -----------------
15160# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15161as_fn_exit ()
15162{
15163  set +e
15164  as_fn_set_status $1
15165  exit $1
15166} # as_fn_exit
15167
15168# as_fn_unset VAR
15169# ---------------
15170# Portably unset VAR.
15171as_fn_unset ()
15172{
15173  { eval $1=; unset $1;}
15174}
15175as_unset=as_fn_unset
15176# as_fn_append VAR VALUE
15177# ----------------------
15178# Append the text in VALUE to the end of the definition contained in VAR. Take
15179# advantage of any shell optimizations that allow amortized linear growth over
15180# repeated appends, instead of the typical quadratic growth present in naive
15181# implementations.
15182if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15183  eval 'as_fn_append ()
15184  {
15185    eval $1+=\$2
15186  }'
15187else
15188  as_fn_append ()
15189  {
15190    eval $1=\$$1\$2
15191  }
15192fi # as_fn_append
15193
15194# as_fn_arith ARG...
15195# ------------------
15196# Perform arithmetic evaluation on the ARGs, and store the result in the
15197# global $as_val. Take advantage of shells that can avoid forks. The arguments
15198# must be portable across $(()) and expr.
15199if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15200  eval 'as_fn_arith ()
15201  {
15202    as_val=$(( $* ))
15203  }'
15204else
15205  as_fn_arith ()
15206  {
15207    as_val=`expr "$@" || test $? -eq 1`
15208  }
15209fi # as_fn_arith
15210
15211
15212if expr a : '\(a\)' >/dev/null 2>&1 &&
15213   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15214  as_expr=expr
15215else
15216  as_expr=false
15217fi
15218
15219if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15220  as_basename=basename
15221else
15222  as_basename=false
15223fi
15224
15225if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15226  as_dirname=dirname
15227else
15228  as_dirname=false
15229fi
15230
15231as_me=`$as_basename -- "$0" ||
15232$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15233	 X"$0" : 'X\(//\)$' \| \
15234	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15235$as_echo X/"$0" |
15236    sed '/^.*\/\([^/][^/]*\)\/*$/{
15237	    s//\1/
15238	    q
15239	  }
15240	  /^X\/\(\/\/\)$/{
15241	    s//\1/
15242	    q
15243	  }
15244	  /^X\/\(\/\).*/{
15245	    s//\1/
15246	    q
15247	  }
15248	  s/.*/./; q'`
15249
15250# Avoid depending upon Character Ranges.
15251as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15252as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15253as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15254as_cr_digits='0123456789'
15255as_cr_alnum=$as_cr_Letters$as_cr_digits
15256
15257ECHO_C= ECHO_N= ECHO_T=
15258case `echo -n x` in #(((((
15259-n*)
15260  case `echo 'xy\c'` in
15261  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15262  xy)  ECHO_C='\c';;
15263  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15264       ECHO_T='	';;
15265  esac;;
15266*)
15267  ECHO_N='-n';;
15268esac
15269
15270rm -f conf$$ conf$$.exe conf$$.file
15271if test -d conf$$.dir; then
15272  rm -f conf$$.dir/conf$$.file
15273else
15274  rm -f conf$$.dir
15275  mkdir conf$$.dir 2>/dev/null
15276fi
15277if (echo >conf$$.file) 2>/dev/null; then
15278  if ln -s conf$$.file conf$$ 2>/dev/null; then
15279    as_ln_s='ln -s'
15280    # ... but there are two gotchas:
15281    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15282    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15283    # In both cases, we have to default to `cp -p'.
15284    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15285      as_ln_s='cp -p'
15286  elif ln conf$$.file conf$$ 2>/dev/null; then
15287    as_ln_s=ln
15288  else
15289    as_ln_s='cp -p'
15290  fi
15291else
15292  as_ln_s='cp -p'
15293fi
15294rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15295rmdir conf$$.dir 2>/dev/null
15296
15297
15298# as_fn_mkdir_p
15299# -------------
15300# Create "$as_dir" as a directory, including parents if necessary.
15301as_fn_mkdir_p ()
15302{
15303
15304  case $as_dir in #(
15305  -*) as_dir=./$as_dir;;
15306  esac
15307  test -d "$as_dir" || eval $as_mkdir_p || {
15308    as_dirs=
15309    while :; do
15310      case $as_dir in #(
15311      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15312      *) as_qdir=$as_dir;;
15313      esac
15314      as_dirs="'$as_qdir' $as_dirs"
15315      as_dir=`$as_dirname -- "$as_dir" ||
15316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15317	 X"$as_dir" : 'X\(//\)[^/]' \| \
15318	 X"$as_dir" : 'X\(//\)$' \| \
15319	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15320$as_echo X"$as_dir" |
15321    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15322	    s//\1/
15323	    q
15324	  }
15325	  /^X\(\/\/\)[^/].*/{
15326	    s//\1/
15327	    q
15328	  }
15329	  /^X\(\/\/\)$/{
15330	    s//\1/
15331	    q
15332	  }
15333	  /^X\(\/\).*/{
15334	    s//\1/
15335	    q
15336	  }
15337	  s/.*/./; q'`
15338      test -d "$as_dir" && break
15339    done
15340    test -z "$as_dirs" || eval "mkdir $as_dirs"
15341  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15342
15343
15344} # as_fn_mkdir_p
15345if mkdir -p . 2>/dev/null; then
15346  as_mkdir_p='mkdir -p "$as_dir"'
15347else
15348  test -d ./-p && rmdir ./-p
15349  as_mkdir_p=false
15350fi
15351
15352if test -x / >/dev/null 2>&1; then
15353  as_test_x='test -x'
15354else
15355  if ls -dL / >/dev/null 2>&1; then
15356    as_ls_L_option=L
15357  else
15358    as_ls_L_option=
15359  fi
15360  as_test_x='
15361    eval sh -c '\''
15362      if test -d "$1"; then
15363	test -d "$1/.";
15364      else
15365	case $1 in #(
15366	-*)set "./$1";;
15367	esac;
15368	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15369	???[sx]*):;;*)false;;esac;fi
15370    '\'' sh
15371  '
15372fi
15373as_executable_p=$as_test_x
15374
15375# Sed expression to map a string onto a valid CPP name.
15376as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15377
15378# Sed expression to map a string onto a valid variable name.
15379as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15380
15381
15382exec 6>&1
15383## ----------------------------------- ##
15384## Main body of $CONFIG_STATUS script. ##
15385## ----------------------------------- ##
15386_ASEOF
15387test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15388
15389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15390# Save the log message, to keep $0 and so on meaningful, and to
15391# report actual input values of CONFIG_FILES etc. instead of their
15392# values after options handling.
15393ac_log="
15394This file was extended by $as_me, which was
15395generated by GNU Autoconf 2.64.  Invocation command line was
15396
15397  CONFIG_FILES    = $CONFIG_FILES
15398  CONFIG_HEADERS  = $CONFIG_HEADERS
15399  CONFIG_LINKS    = $CONFIG_LINKS
15400  CONFIG_COMMANDS = $CONFIG_COMMANDS
15401  $ $0 $@
15402
15403on `(hostname || uname -n) 2>/dev/null | sed 1q`
15404"
15405
15406_ACEOF
15407
15408case $ac_config_files in *"
15409"*) set x $ac_config_files; shift; ac_config_files=$*;;
15410esac
15411
15412
15413
15414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15415# Files that config.status was made for.
15416config_files="$ac_config_files"
15417
15418_ACEOF
15419
15420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15421ac_cs_usage="\
15422\`$as_me' instantiates files and other configuration actions
15423from templates according to the current configuration.  Unless the files
15424and actions are specified as TAGs, all are instantiated by default.
15425
15426Usage: $0 [OPTION]... [TAG]...
15427
15428  -h, --help       print this help, then exit
15429  -V, --version    print version number and configuration settings, then exit
15430  -q, --quiet, --silent
15431                   do not print progress messages
15432  -d, --debug      don't remove temporary files
15433      --recheck    update $as_me by reconfiguring in the same conditions
15434      --file=FILE[:TEMPLATE]
15435                   instantiate the configuration file FILE
15436
15437Configuration files:
15438$config_files
15439
15440Report bugs to the package provider."
15441
15442_ACEOF
15443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15444ac_cs_version="\\
15445config.status
15446configured by $0, generated by GNU Autoconf 2.64,
15447  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15448
15449Copyright (C) 2009 Free Software Foundation, Inc.
15450This config.status script is free software; the Free Software Foundation
15451gives unlimited permission to copy, distribute and modify it."
15452
15453ac_pwd='$ac_pwd'
15454srcdir='$srcdir'
15455INSTALL='$INSTALL'
15456AWK='$AWK'
15457test -n "\$AWK" || AWK=awk
15458_ACEOF
15459
15460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15461# The default lists apply if the user does not specify any file.
15462ac_need_defaults=:
15463while test $# != 0
15464do
15465  case $1 in
15466  --*=*)
15467    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15468    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15469    ac_shift=:
15470    ;;
15471  *)
15472    ac_option=$1
15473    ac_optarg=$2
15474    ac_shift=shift
15475    ;;
15476  esac
15477
15478  case $ac_option in
15479  # Handling of the options.
15480  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15481    ac_cs_recheck=: ;;
15482  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15483    $as_echo "$ac_cs_version"; exit ;;
15484  --debug | --debu | --deb | --de | --d | -d )
15485    debug=: ;;
15486  --file | --fil | --fi | --f )
15487    $ac_shift
15488    case $ac_optarg in
15489    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15490    esac
15491    as_fn_append CONFIG_FILES " '$ac_optarg'"
15492    ac_need_defaults=false;;
15493  --he | --h |  --help | --hel | -h )
15494    $as_echo "$ac_cs_usage"; exit ;;
15495  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15496  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15497    ac_cs_silent=: ;;
15498
15499  # This is an error.
15500  -*) as_fn_error "unrecognized option: \`$1'
15501Try \`$0 --help' for more information." ;;
15502
15503  *) as_fn_append ac_config_targets " $1"
15504     ac_need_defaults=false ;;
15505
15506  esac
15507  shift
15508done
15509
15510ac_configure_extra_args=
15511
15512if $ac_cs_silent; then
15513  exec 6>/dev/null
15514  ac_configure_extra_args="$ac_configure_extra_args --silent"
15515fi
15516
15517_ACEOF
15518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15519if \$ac_cs_recheck; then
15520  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15521  shift
15522  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15523  CONFIG_SHELL='$SHELL'
15524  export CONFIG_SHELL
15525  exec "\$@"
15526fi
15527
15528_ACEOF
15529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15530exec 5>>config.log
15531{
15532  echo
15533  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15534## Running $as_me. ##
15535_ASBOX
15536  $as_echo "$ac_log"
15537} >&5
15538
15539_ACEOF
15540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15541#
15542# INIT-COMMANDS
15543#
15544extrasub_build="$extrasub_build"
15545   extrasub_host="$extrasub_host"
15546   extrasub_target="$extrasub_target"
15547
15548_ACEOF
15549
15550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15551
15552# Handling of arguments.
15553for ac_config_target in $ac_config_targets
15554do
15555  case $ac_config_target in
15556    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15557
15558  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15559  esac
15560done
15561
15562
15563# If the user did not use the arguments to specify the items to instantiate,
15564# then the envvar interface is used.  Set only those that are not.
15565# We use the long form for the default assignment because of an extremely
15566# bizarre bug on SunOS 4.1.3.
15567if $ac_need_defaults; then
15568  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15569fi
15570
15571# Have a temporary directory for convenience.  Make it in the build tree
15572# simply because there is no reason against having it here, and in addition,
15573# creating and moving files from /tmp can sometimes cause problems.
15574# Hook for its removal unless debugging.
15575# Note that there is a small window in which the directory will not be cleaned:
15576# after its creation but before its name has been assigned to `$tmp'.
15577$debug ||
15578{
15579  tmp=
15580  trap 'exit_status=$?
15581  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15582' 0
15583  trap 'as_fn_exit 1' 1 2 13 15
15584}
15585# Create a (secure) tmp directory for tmp files.
15586
15587{
15588  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15589  test -n "$tmp" && test -d "$tmp"
15590}  ||
15591{
15592  tmp=./conf$$-$RANDOM
15593  (umask 077 && mkdir "$tmp")
15594} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15595
15596# Set up the scripts for CONFIG_FILES section.
15597# No need to generate them if there are no CONFIG_FILES.
15598# This happens for instance with `./config.status config.h'.
15599if test -n "$CONFIG_FILES"; then
15600
15601if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15602  ac_cs_awk_getline=:
15603  ac_cs_awk_pipe_init=
15604  ac_cs_awk_read_file='
15605      while ((getline aline < (F[key])) > 0)
15606	print(aline)
15607      close(F[key])'
15608  ac_cs_awk_pipe_fini=
15609else
15610  ac_cs_awk_getline=false
15611  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15612  ac_cs_awk_read_file='
15613      print "|#_!!_#|"
15614      print "cat " F[key] " &&"
15615      '$ac_cs_awk_pipe_init
15616  # The final `:' finishes the AND list.
15617  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15618fi
15619ac_cr=`echo X | tr X '\015'`
15620# On cygwin, bash can eat \r inside `` if the user requested igncr.
15621# But we know of no other shell where ac_cr would be empty at this
15622# point, so we can use a bashism as a fallback.
15623if test "x$ac_cr" = x; then
15624  eval ac_cr=\$\'\\r\'
15625fi
15626ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15627if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15628  ac_cs_awk_cr='\r'
15629else
15630  ac_cs_awk_cr=$ac_cr
15631fi
15632
15633echo 'BEGIN {' >"$tmp/subs1.awk" &&
15634_ACEOF
15635
15636# Create commands to substitute file output variables.
15637{
15638  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15639  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15640  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15641  echo "_ACAWK" &&
15642  echo "_ACEOF"
15643} >conf$$files.sh &&
15644. ./conf$$files.sh ||
15645  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15646rm -f conf$$files.sh
15647
15648{
15649  echo "cat >conf$$subs.awk <<_ACEOF" &&
15650  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15651  echo "_ACEOF"
15652} >conf$$subs.sh ||
15653  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15654ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15655ac_delim='%!_!# '
15656for ac_last_try in false false false false false :; do
15657  . ./conf$$subs.sh ||
15658    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15659
15660  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15661  if test $ac_delim_n = $ac_delim_num; then
15662    break
15663  elif $ac_last_try; then
15664    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15665  else
15666    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15667  fi
15668done
15669rm -f conf$$subs.sh
15670
15671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15672cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15673_ACEOF
15674sed -n '
15675h
15676s/^/S["/; s/!.*/"]=/
15677p
15678g
15679s/^[^!]*!//
15680:repl
15681t repl
15682s/'"$ac_delim"'$//
15683t delim
15684:nl
15685h
15686s/\(.\{148\}\).*/\1/
15687t more1
15688s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15689p
15690n
15691b repl
15692:more1
15693s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15694p
15695g
15696s/.\{148\}//
15697t nl
15698:delim
15699h
15700s/\(.\{148\}\).*/\1/
15701t more2
15702s/["\\]/\\&/g; s/^/"/; s/$/"/
15703p
15704b
15705:more2
15706s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15707p
15708g
15709s/.\{148\}//
15710t delim
15711' <conf$$subs.awk | sed '
15712/^[^""]/{
15713  N
15714  s/\n//
15715}
15716' >>$CONFIG_STATUS || ac_write_fail=1
15717rm -f conf$$subs.awk
15718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15719_ACAWK
15720cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15721  for (key in S) S_is_set[key] = 1
15722  FS = ""
15723  \$ac_cs_awk_pipe_init
15724}
15725{
15726  line = $ 0
15727  nfields = split(line, field, "@")
15728  substed = 0
15729  len = length(field[1])
15730  for (i = 2; i < nfields; i++) {
15731    key = field[i]
15732    keylen = length(key)
15733    if (S_is_set[key]) {
15734      value = S[key]
15735      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15736      len += length(value) + length(field[++i])
15737      substed = 1
15738    } else
15739      len += 1 + keylen
15740  }
15741  if (nfields == 3 && !substed) {
15742    key = field[2]
15743    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
15744      \$ac_cs_awk_read_file
15745      next
15746    }
15747  }
15748  print line
15749}
15750\$ac_cs_awk_pipe_fini
15751_ACAWK
15752_ACEOF
15753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15754if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15755  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15756else
15757  cat
15758fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15759  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15760_ACEOF
15761
15762# VPATH may cause trouble with some makes, so we remove $(srcdir),
15763# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15764# trailing colons and then remove the whole line if VPATH becomes empty
15765# (actually we leave an empty line to preserve line numbers).
15766if test "x$srcdir" = x.; then
15767  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15768s/:*\$(srcdir):*/:/
15769s/:*\${srcdir}:*/:/
15770s/:*@srcdir@:*/:/
15771s/^\([^=]*=[	 ]*\):*/\1/
15772s/:*$//
15773s/^[^=]*=[	 ]*$//
15774}'
15775fi
15776
15777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15778fi # test -n "$CONFIG_FILES"
15779
15780
15781eval set X "  :F $CONFIG_FILES      "
15782shift
15783for ac_tag
15784do
15785  case $ac_tag in
15786  :[FHLC]) ac_mode=$ac_tag; continue;;
15787  esac
15788  case $ac_mode$ac_tag in
15789  :[FHL]*:*);;
15790  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15791  :[FH]-) ac_tag=-:-;;
15792  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15793  esac
15794  ac_save_IFS=$IFS
15795  IFS=:
15796  set x $ac_tag
15797  IFS=$ac_save_IFS
15798  shift
15799  ac_file=$1
15800  shift
15801
15802  case $ac_mode in
15803  :L) ac_source=$1;;
15804  :[FH])
15805    ac_file_inputs=
15806    for ac_f
15807    do
15808      case $ac_f in
15809      -) ac_f="$tmp/stdin";;
15810      *) # Look for the file first in the build tree, then in the source tree
15811	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15812	 # because $ac_f cannot contain `:'.
15813	 test -f "$ac_f" ||
15814	   case $ac_f in
15815	   [\\/$]*) false;;
15816	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15817	   esac ||
15818	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15819      esac
15820      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15821      as_fn_append ac_file_inputs " '$ac_f'"
15822    done
15823
15824    # Let's still pretend it is `configure' which instantiates (i.e., don't
15825    # use $as_me), people would be surprised to read:
15826    #    /* config.h.  Generated by config.status.  */
15827    configure_input='Generated from '`
15828	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15829	`' by configure.'
15830    if test x"$ac_file" != x-; then
15831      configure_input="$ac_file.  $configure_input"
15832      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15833$as_echo "$as_me: creating $ac_file" >&6;}
15834    fi
15835    # Neutralize special characters interpreted by sed in replacement strings.
15836    case $configure_input in #(
15837    *\&* | *\|* | *\\* )
15838       ac_sed_conf_input=`$as_echo "$configure_input" |
15839       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15840    *) ac_sed_conf_input=$configure_input;;
15841    esac
15842
15843    case $ac_tag in
15844    *:-:* | *:-) cat >"$tmp/stdin" \
15845      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15846    esac
15847    ;;
15848  esac
15849
15850  ac_dir=`$as_dirname -- "$ac_file" ||
15851$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15852	 X"$ac_file" : 'X\(//\)[^/]' \| \
15853	 X"$ac_file" : 'X\(//\)$' \| \
15854	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15855$as_echo X"$ac_file" |
15856    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15857	    s//\1/
15858	    q
15859	  }
15860	  /^X\(\/\/\)[^/].*/{
15861	    s//\1/
15862	    q
15863	  }
15864	  /^X\(\/\/\)$/{
15865	    s//\1/
15866	    q
15867	  }
15868	  /^X\(\/\).*/{
15869	    s//\1/
15870	    q
15871	  }
15872	  s/.*/./; q'`
15873  as_dir="$ac_dir"; as_fn_mkdir_p
15874  ac_builddir=.
15875
15876case "$ac_dir" in
15877.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15878*)
15879  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15880  # A ".." for each directory in $ac_dir_suffix.
15881  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15882  case $ac_top_builddir_sub in
15883  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15884  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15885  esac ;;
15886esac
15887ac_abs_top_builddir=$ac_pwd
15888ac_abs_builddir=$ac_pwd$ac_dir_suffix
15889# for backward compatibility:
15890ac_top_builddir=$ac_top_build_prefix
15891
15892case $srcdir in
15893  .)  # We are building in place.
15894    ac_srcdir=.
15895    ac_top_srcdir=$ac_top_builddir_sub
15896    ac_abs_top_srcdir=$ac_pwd ;;
15897  [\\/]* | ?:[\\/]* )  # Absolute name.
15898    ac_srcdir=$srcdir$ac_dir_suffix;
15899    ac_top_srcdir=$srcdir
15900    ac_abs_top_srcdir=$srcdir ;;
15901  *) # Relative name.
15902    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15903    ac_top_srcdir=$ac_top_build_prefix$srcdir
15904    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15905esac
15906ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15907
15908
15909  case $ac_mode in
15910  :F)
15911  #
15912  # CONFIG_FILE
15913  #
15914
15915  case $INSTALL in
15916  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15917  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15918  esac
15919_ACEOF
15920
15921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15922# If the template does not know about datarootdir, expand it.
15923# FIXME: This hack should be removed a few years after 2.60.
15924ac_datarootdir_hack=; ac_datarootdir_seen=
15925ac_sed_dataroot='
15926/datarootdir/ {
15927  p
15928  q
15929}
15930/@datadir@/p
15931/@docdir@/p
15932/@infodir@/p
15933/@localedir@/p
15934/@mandir@/p'
15935case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15936*datarootdir*) ac_datarootdir_seen=yes;;
15937*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15938  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15939$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15940_ACEOF
15941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15942  ac_datarootdir_hack='
15943  s&@datadir@&$datadir&g
15944  s&@docdir@&$docdir&g
15945  s&@infodir@&$infodir&g
15946  s&@localedir@&$localedir&g
15947  s&@mandir@&$mandir&g
15948  s&\\\${datarootdir}&$datarootdir&g' ;;
15949esac
15950_ACEOF
15951
15952# Neutralize VPATH when `$srcdir' = `.'.
15953# Shell code in configure.ac might set extrasub.
15954# FIXME: do we really want to maintain this feature?
15955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956ac_sed_extra="$ac_vpsub
15957$extrasub
15958_ACEOF
15959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15960:t
15961/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15962s|@configure_input@|$ac_sed_conf_input|;t t
15963s&@top_builddir@&$ac_top_builddir_sub&;t t
15964s&@top_build_prefix@&$ac_top_build_prefix&;t t
15965s&@srcdir@&$ac_srcdir&;t t
15966s&@abs_srcdir@&$ac_abs_srcdir&;t t
15967s&@top_srcdir@&$ac_top_srcdir&;t t
15968s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15969s&@builddir@&$ac_builddir&;t t
15970s&@abs_builddir@&$ac_abs_builddir&;t t
15971s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15972s&@INSTALL@&$ac_INSTALL&;t t
15973$ac_datarootdir_hack
15974"
15975eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15976if $ac_cs_awk_getline; then
15977  $AWK -f "$tmp/subs.awk"
15978else
15979  $AWK -f "$tmp/subs.awk" | $SHELL
15980fi >$tmp/out \
15981  || as_fn_error "could not create $ac_file" "$LINENO" 5
15982
15983test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15984  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15985  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15986  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15987which seems to be undefined.  Please make sure it is defined." >&5
15988$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15989which seems to be undefined.  Please make sure it is defined." >&2;}
15990
15991  rm -f "$tmp/stdin"
15992  case $ac_file in
15993  -) cat "$tmp/out" && rm -f "$tmp/out";;
15994  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15995  esac \
15996  || as_fn_error "could not create $ac_file" "$LINENO" 5
15997 ;;
15998
15999
16000
16001  esac
16002
16003
16004  case $ac_file$ac_mode in
16005    "Makefile":F) sed "$extrasub_build" Makefile |
16006   sed "$extrasub_host" |
16007   sed "$extrasub_target" > mf$$
16008   mv -f mf$$ Makefile ;;
16009
16010  esac
16011done # for ac_tag
16012
16013
16014as_fn_exit 0
16015_ACEOF
16016ac_clean_files=$ac_clean_files_save
16017
16018test $ac_write_fail = 0 ||
16019  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16020
16021
16022# configure is writing to config.log, and then calls config.status.
16023# config.status does its own redirection, appending to config.log.
16024# Unfortunately, on DOS this fails, as config.log is still kept open
16025# by configure, so config.status won't be able to write to it; its
16026# output is simply discarded.  So we exec the FD to /dev/null,
16027# effectively closing config.log, so it can be properly (re)opened and
16028# appended to by config.status.  When coming back to configure, we
16029# need to make the FD available again.
16030if test "$no_create" != yes; then
16031  ac_cs_success=:
16032  ac_config_status_args=
16033  test "$silent" = yes &&
16034    ac_config_status_args="$ac_config_status_args --quiet"
16035  exec 5>/dev/null
16036  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16037  exec 5>>config.log
16038  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16039  # would make configure fail if this is the last instruction.
16040  $ac_cs_success || as_fn_exit $?
16041fi
16042if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16043  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16044$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16045fi
16046
16047