Handle multiple target events before commit resume
[deliverable/binutils-gdb.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534else
535 as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="move-if-change"
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
604READELF_FOR_TARGET
605RANLIB_FOR_TARGET
606OBJDUMP_FOR_TARGET
607OBJCOPY_FOR_TARGET
608NM_FOR_TARGET
609LIPO_FOR_TARGET
610LD_FOR_TARGET
611DLLTOOL_FOR_TARGET
612AS_FOR_TARGET
613AR_FOR_TARGET
614GOC_FOR_TARGET
615GFORTRAN_FOR_TARGET
616GCC_FOR_TARGET
617CXX_FOR_TARGET
618CC_FOR_TARGET
619READELF
620OBJDUMP
621OBJCOPY
622WINDMC
623WINDRES
624STRIP
625RANLIB
626NM
627LIPO
628LD
629DLLTOOL
630AS
631AR
632RUNTEST
633EXPECT
634MAKEINFO
635FLEX
636LEX
637M4
638BISON
639YACC
640WINDRES_FOR_BUILD
641WINDMC_FOR_BUILD
642RANLIB_FOR_BUILD
643NM_FOR_BUILD
644LD_FOR_BUILD
645LDFLAGS_FOR_BUILD
646GOC_FOR_BUILD
647GFORTRAN_FOR_BUILD
648DLLTOOL_FOR_BUILD
649CXX_FOR_BUILD
650CXXFLAGS_FOR_BUILD
651CFLAGS_FOR_BUILD
652CC_FOR_BUILD
653AS_FOR_BUILD
654AR_FOR_BUILD
655target_configdirs
656configdirs
657build_configdirs
658INSTALL_GDB_TK
659GDB_TK
660CONFIGURE_GDB_TK
661build_tooldir
662tooldir
663GCC_SHLIB_SUBDIR
664RPATH_ENVVAR
665target_configargs
666host_configargs
667build_configargs
668BUILD_CONFIG
669LDFLAGS_FOR_TARGET
670CXXFLAGS_FOR_TARGET
671CFLAGS_FOR_TARGET
672DEBUG_PREFIX_CFLAGS_FOR_TARGET
673SYSROOT_CFLAGS_FOR_TARGET
674get_gcc_base_ver
675extra_host_zlib_configure_flags
676extra_host_libiberty_configure_flags
677stage1_languages
678host_shared
679extra_linker_plugin_flags
680extra_linker_plugin_configure_flags
681islinc
682isllibs
683poststage1_ldflags
684poststage1_libs
685stage1_ldflags
686stage1_libs
687extra_isl_gmp_configure_flags
688extra_mpc_mpfr_configure_flags
689extra_mpc_gmp_configure_flags
690extra_mpfr_configure_flags
691gmpinc
692gmplibs
693do_compare
694GNATMAKE
695GNATBIND
696ac_ct_CXX
697CXXFLAGS
698CXX
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
706extra_liboffloadmic_configure_flags
707target_subdir
708host_subdir
709build_subdir
710build_libsubdir
711AWK
712SED
713LN_S
714LN
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718target_os
719target_vendor
720target_cpu
721target
722host_os
723host_vendor
724host_cpu
725host
726target_noncanonical
727host_noncanonical
728build_noncanonical
729build_os
730build_vendor
731build_cpu
732build
733TOPLEVEL_CONFIGURE_ARGUMENTS
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
772ac_subst_files='serialization_dependencies
773host_makefile_frag
774target_makefile_frag
775alphaieee_frag
776ospace_frag'
777ac_user_opts='
778enable_option_checking
779with_build_libsubdir
780with_system_zlib
781enable_as_accelerator_for
782enable_offload_targets
783enable_gold
784enable_ld
785enable_compressed_debug_sections
786enable_libquadmath
787enable_libquadmath_support
788enable_libada
789enable_libssp
790enable_libstdcxx
791enable_liboffloadmic
792enable_bootstrap
793with_mpc
794with_mpc_include
795with_mpc_lib
796with_mpfr_dir
797with_mpfr
798with_mpfr_include
799with_mpfr_lib
800with_gmp_dir
801with_gmp
802with_gmp_include
803with_gmp_lib
804with_stage1_libs
805with_static_standard_libraries
806with_stage1_ldflags
807with_boot_libs
808with_boot_ldflags
809with_isl
810with_isl_include
811with_isl_lib
812enable_isl_version_check
813enable_lto
814enable_linker_plugin_configure_flags
815enable_linker_plugin_flags
816enable_host_shared
817enable_stage1_languages
818enable_objc_gc
819with_target_bdw_gc
820with_target_bdw_gc_include
821with_target_bdw_gc_lib
822with_gcc_major_version_only
823with_build_sysroot
824with_debug_prefix_map
825with_build_config
826enable_vtable_verify
827enable_serial_configure
828with_build_time_tools
829enable_maintainer_mode
830enable_stage1_checking
831enable_werror
832'
833 ac_precious_vars='build_alias
834host_alias
835target_alias
836CC
837CFLAGS
838LDFLAGS
839LIBS
840CPPFLAGS
841CXX
842CXXFLAGS
843CCC
844build_configargs
845host_configargs
846target_configargs
847AR
848AS
849DLLTOOL
850LD
851LIPO
852NM
853RANLIB
854STRIP
855WINDRES
856WINDMC
857OBJCOPY
858OBJDUMP
859READELF
860CC_FOR_TARGET
861CXX_FOR_TARGET
862GCC_FOR_TARGET
863GFORTRAN_FOR_TARGET
864GOC_FOR_TARGET
865AR_FOR_TARGET
866AS_FOR_TARGET
867DLLTOOL_FOR_TARGET
868LD_FOR_TARGET
869LIPO_FOR_TARGET
870NM_FOR_TARGET
871OBJCOPY_FOR_TARGET
872OBJDUMP_FOR_TARGET
873RANLIB_FOR_TARGET
874READELF_FOR_TARGET
875STRIP_FOR_TARGET
876WINDRES_FOR_TARGET
877WINDMC_FOR_TARGET'
878
879
880# Initialize some variables set by options.
881ac_init_help=
882ac_init_version=false
883ac_unrecognized_opts=
884ac_unrecognized_sep=
885# The variables have the same names as the options, with
886# dashes changed to underlines.
887cache_file=/dev/null
888exec_prefix=NONE
889no_create=
890no_recursion=
891prefix=NONE
892program_prefix=NONE
893program_suffix=NONE
894program_transform_name=s,x,x,
895silent=
896site=
897srcdir=
898verbose=
899x_includes=NONE
900x_libraries=NONE
901
902# Installation directory options.
903# These are left unexpanded so users can "make install exec_prefix=/foo"
904# and all the variables that are supposed to be based on exec_prefix
905# by default will actually change.
906# Use braces instead of parens because sh, perl, etc. also accept them.
907# (The list follows the same order as the GNU Coding Standards.)
908bindir='${exec_prefix}/bin'
909sbindir='${exec_prefix}/sbin'
910libexecdir='${exec_prefix}/libexec'
911datarootdir='${prefix}/share'
912datadir='${datarootdir}'
913sysconfdir='${prefix}/etc'
914sharedstatedir='${prefix}/com'
915localstatedir='${prefix}/var'
916includedir='${prefix}/include'
917oldincludedir='/usr/include'
918docdir='${datarootdir}/doc/${PACKAGE}'
919infodir='${datarootdir}/info'
920htmldir='${docdir}'
921dvidir='${docdir}'
922pdfdir='${docdir}'
923psdir='${docdir}'
924libdir='${exec_prefix}/lib'
925localedir='${datarootdir}/locale'
926mandir='${datarootdir}/man'
927
928ac_prev=
929ac_dashdash=
930for ac_option
931do
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
935 ac_prev=
936 continue
937 fi
938
939 case $ac_option in
940 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *=) ac_optarg= ;;
942 *) ac_optarg=yes ;;
943 esac
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 bindir=$ac_optarg ;;
955
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
970
971 -datadir | --datadir | --datadi | --datad)
972 ac_prev=datadir ;;
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
975
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
983 -disable-* | --disable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992"enable_$ac_useropt"
993"*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1008
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=\$ac_optarg ;;
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1044
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1049
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1079
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1153
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1212
1213 -with-* | --with-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
1228
1229 -without-* | --without-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error $? "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238"with_$ac_useropt"
1239"*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1262
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264Try \`$0 --help' for more information"
1265 ;;
1266
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 esac
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1276
1277 *)
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283 ;;
1284
1285 esac
1286done
1287
1288if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error $? "missing argument to $ac_option"
1291fi
1292
1293if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 esac
1299fi
1300
1301# Check all directory arguments for consistency.
1302for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1306do
1307 eval ac_val=\$$ac_var
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
1315 case $ac_val in
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 esac
1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320done
1321
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
1328
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1335 fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
1342
1343
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error $? "working directory cannot be determined"
1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error $? "pwd does not report name of working directory"
1350
1351
1352# Find the source files, if location was not specified.
1353if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361$as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)[^/].*/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\).*/{
1375 s//\1/
1376 q
1377 }
1378 s/.*/./; q'`
1379 srcdir=$ac_confdir
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 srcdir=..
1382 fi
1383else
1384 ac_srcdir_defaulted=no
1385fi
1386if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389fi
1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393 pwd)`
1394# When building in place, set srcdir=.
1395if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397fi
1398# Remove unnecessary trailing slashes from srcdir.
1399# Double slashes in file names in object file debugging info
1400# mess up M-x gdb in Emacs.
1401case $srcdir in
1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403esac
1404case $srcdir in
1405 *" "*)
1406 as_fn_error $? "path to source, $srcdir, contains spaces"
1407 ;;
1408esac
1409ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1410
1411for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416done
1417
1418#
1419# Report the --help message.
1420#
1421if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425\`configure' configures this package to adapt to many kinds of systems.
1426
1427Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430VAR=VALUE. See below for descriptions of some of the useful variables.
1431
1432Defaults for the options are specified in brackets.
1433
1434Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
1439 -q, --quiet, --silent do not print \`checking ...' messages
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444
1445Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
1447 [$ac_default_prefix]
1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 [PREFIX]
1450
1451By default, \`make install' will install all the files in
1452\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454for instance \`--prefix=\$HOME'.
1455
1456For better control, use the options below.
1457
1458Fine tuning of the installation directories:
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1478_ACEOF
1479
1480 cat <<\_ACEOF
1481
1482Program names:
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1486
1487System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 --target=TARGET configure for building compilers for TARGET [HOST]
1491_ACEOF
1492fi
1493
1494if test -n "$ac_init_help"; then
1495
1496 cat <<\_ACEOF
1497
1498Optional Features:
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --enable-as-accelerator-for=ARG
1503 build as offload target compiler. Specify offload
1504 host triple by ARG
1505 --enable-offload-targets=LIST
1506 enable offloading to devices from comma-separated
1507 LIST of TARGET[=DIR]. Use optional path to find
1508 offload target compiler during the build
1509 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1510 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1511 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1512 Enable compressed debug sections for gas, gold or ld
1513 by default
1514 --disable-libquadmath do not build libquadmath directory
1515 --disable-libquadmath-support
1516 disable libquadmath support for Fortran
1517 --enable-libada build libada directory
1518 --enable-libssp build libssp directory
1519 --disable-libstdcxx do not build libstdc++-v3 directory
1520 --enable-liboffloadmic=ARG
1521 build liboffloadmic [ARG={no,host,target}]
1522 --enable-bootstrap enable bootstrapping [yes if native build]
1523 --disable-isl-version-check
1524 disable check for isl version
1525 --enable-lto enable link time optimization support
1526 --enable-linker-plugin-configure-flags=FLAGS
1527 additional flags for configuring linker plugins
1528 [none]
1529 --enable-linker-plugin-flags=FLAGS
1530 additional flags for configuring and building linker
1531 plugins [none]
1532 --enable-host-shared build host code as shared libraries
1533 --enable-stage1-languages[=all]
1534 choose additional languages to build during stage1.
1535 Mostly useful for compiler development
1536 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1537 Objective-C runtime
1538 --enable-vtable-verify Enable vtable verification feature
1539 --enable-serial-[{host,target,build}-]configure
1540 force sequential configuration of sub-packages for
1541 the host, target or build machine, or all
1542 sub-packages
1543 --enable-maintainer-mode
1544 enable make rules and dependencies not useful (and
1545 sometimes confusing) to the casual installer
1546 --enable-stage1-checking[=all]
1547 choose additional checking for stage1 of the
1548 compiler
1549 --enable-werror enable -Werror in bootstrap stage2 and later
1550
1551Optional Packages:
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1554 --with-build-libsubdir=DIR Directory where to find libraries for build system
1555 --with-system-zlib use installed libz
1556 --with-mpc=PATH specify prefix directory for installed MPC package.
1557 Equivalent to --with-mpc-include=PATH/include plus
1558 --with-mpc-lib=PATH/lib
1559 --with-mpc-include=PATH specify directory for installed MPC include files
1560 --with-mpc-lib=PATH specify directory for the installed MPC library
1561 --with-mpfr-dir=PATH this option has been REMOVED
1562 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1563 Equivalent to --with-mpfr-include=PATH/include plus
1564 --with-mpfr-lib=PATH/lib
1565 --with-mpfr-include=PATH
1566 specify directory for installed MPFR include files
1567 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1568 --with-gmp-dir=PATH this option has been REMOVED
1569 --with-gmp=PATH specify prefix directory for the installed GMP
1570 package. Equivalent to
1571 --with-gmp-include=PATH/include plus
1572 --with-gmp-lib=PATH/lib
1573 --with-gmp-include=PATH specify directory for installed GMP include files
1574 --with-gmp-lib=PATH specify directory for the installed GMP library
1575 --with-stage1-libs=LIBS libraries for stage1
1576 --with-static-standard-libraries
1577 use -static-libstdc++ and -static-libgcc
1578 (default=auto)
1579 --with-stage1-ldflags=FLAGS
1580 linker flags for stage1
1581 --with-boot-libs=LIBS libraries for stage2 and later
1582 --with-boot-ldflags=FLAGS
1583 linker flags for stage2 and later
1584 --with-isl=PATH Specify prefix directory for the installed isl
1585 package. Equivalent to
1586 --with-isl-include=PATH/include plus
1587 --with-isl-lib=PATH/lib
1588 --with-isl-include=PATH Specify directory for installed isl include files
1589 --with-isl-lib=PATH Specify the directory for the installed isl library
1590 --with-target-bdw-gc=PATHLIST
1591 specify prefix directory for installed bdw-gc
1592 package. Equivalent to
1593 --with-target-bdw-gc-include=PATH/include plus
1594 --with-target-bdw-gc-lib=PATH/lib
1595 --with-target-bdw-gc-include=PATHLIST
1596 specify directories for installed bdw-gc include
1597 files
1598 --with-target-bdw-gc-lib=PATHLIST
1599 specify directories for installed bdw-gc library
1600 --with-gcc-major-version-only
1601 use only GCC major number in filesystem paths
1602 --with-build-sysroot=SYSROOT
1603 use sysroot as the system root during the build
1604 --with-debug-prefix-map='A=B C=D ...'
1605 map A to B, C to D ... in debug information
1606 --with-build-config='NAME NAME2...'
1607 use config/NAME.mk build configuration
1608 --with-build-time-tools=PATH
1609 use given path to find target tools during the build
1610
1611Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 CXX C++ compiler command
1620 CXXFLAGS C++ compiler flags
1621 build_configargs
1622 additional configure arguments for build directories
1623 host_configargs
1624 additional configure arguments for host directories
1625 target_configargs
1626 additional configure arguments for target directories
1627 AR AR for the host
1628 AS AS for the host
1629 DLLTOOL DLLTOOL for the host
1630 LD LD for the host
1631 LIPO LIPO for the host
1632 NM NM for the host
1633 RANLIB RANLIB for the host
1634 STRIP STRIP for the host
1635 WINDRES WINDRES for the host
1636 WINDMC WINDMC for the host
1637 OBJCOPY OBJCOPY for the host
1638 OBJDUMP OBJDUMP for the host
1639 READELF READELF for the host
1640 CC_FOR_TARGET
1641 CC for the target
1642 CXX_FOR_TARGET
1643 CXX for the target
1644 GCC_FOR_TARGET
1645 GCC for the target
1646 GFORTRAN_FOR_TARGET
1647 GFORTRAN for the target
1648 GOC_FOR_TARGET
1649 GOC for the target
1650 AR_FOR_TARGET
1651 AR for the target
1652 AS_FOR_TARGET
1653 AS for the target
1654 DLLTOOL_FOR_TARGET
1655 DLLTOOL for the target
1656 LD_FOR_TARGET
1657 LD for the target
1658 LIPO_FOR_TARGET
1659 LIPO for the target
1660 NM_FOR_TARGET
1661 NM for the target
1662 OBJCOPY_FOR_TARGET
1663 OBJCOPY for the target
1664 OBJDUMP_FOR_TARGET
1665 OBJDUMP for the target
1666 RANLIB_FOR_TARGET
1667 RANLIB for the target
1668 READELF_FOR_TARGET
1669 READELF for the target
1670 STRIP_FOR_TARGET
1671 STRIP for the target
1672 WINDRES_FOR_TARGET
1673 WINDRES for the target
1674 WINDMC_FOR_TARGET
1675 WINDMC for the target
1676
1677Use these variables to override the choices made by `configure' or to help
1678it to find libraries and programs with nonstandard names/locations.
1679
1680Report bugs to the package provider.
1681_ACEOF
1682ac_status=$?
1683fi
1684
1685if test "$ac_init_help" = "recursive"; then
1686 # If there are subdirs, report their specific --help.
1687 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1688 test -d "$ac_dir" ||
1689 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690 continue
1691 ac_builddir=.
1692
1693case "$ac_dir" in
1694.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695*)
1696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1697 # A ".." for each directory in $ac_dir_suffix.
1698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1699 case $ac_top_builddir_sub in
1700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1702 esac ;;
1703esac
1704ac_abs_top_builddir=$ac_pwd
1705ac_abs_builddir=$ac_pwd$ac_dir_suffix
1706# for backward compatibility:
1707ac_top_builddir=$ac_top_build_prefix
1708
1709case $srcdir in
1710 .) # We are building in place.
1711 ac_srcdir=.
1712 ac_top_srcdir=$ac_top_builddir_sub
1713 ac_abs_top_srcdir=$ac_pwd ;;
1714 [\\/]* | ?:[\\/]* ) # Absolute name.
1715 ac_srcdir=$srcdir$ac_dir_suffix;
1716 ac_top_srcdir=$srcdir
1717 ac_abs_top_srcdir=$srcdir ;;
1718 *) # Relative name.
1719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1720 ac_top_srcdir=$ac_top_build_prefix$srcdir
1721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1722esac
1723ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724
1725 cd "$ac_dir" || { ac_status=$?; continue; }
1726 # Check for guested configure.
1727 if test -f "$ac_srcdir/configure.gnu"; then
1728 echo &&
1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730 elif test -f "$ac_srcdir/configure"; then
1731 echo &&
1732 $SHELL "$ac_srcdir/configure" --help=recursive
1733 else
1734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 fi || ac_status=$?
1736 cd "$ac_pwd" || { ac_status=$?; break; }
1737 done
1738fi
1739
1740test -n "$ac_init_help" && exit $ac_status
1741if $ac_init_version; then
1742 cat <<\_ACEOF
1743configure
1744generated by GNU Autoconf 2.69
1745
1746Copyright (C) 2012 Free Software Foundation, Inc.
1747This configure script is free software; the Free Software Foundation
1748gives unlimited permission to copy, distribute and modify it.
1749_ACEOF
1750 exit
1751fi
1752
1753## ------------------------ ##
1754## Autoconf initialization. ##
1755## ------------------------ ##
1756
1757# ac_fn_c_try_compile LINENO
1758# --------------------------
1759# Try to compile conftest.$ac_ext, and return whether this succeeded.
1760ac_fn_c_try_compile ()
1761{
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext
1764 if { { ac_try="$ac_compile"
1765case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_compile") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest.$ac_objext; then :
1783 ac_retval=0
1784else
1785 $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=1
1789fi
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1792
1793} # ac_fn_c_try_compile
1794
1795# ac_fn_cxx_try_compile LINENO
1796# ----------------------------
1797# Try to compile conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_cxx_try_compile ()
1799{
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827fi
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831} # ac_fn_cxx_try_compile
1832
1833# ac_fn_cxx_try_link LINENO
1834# -------------------------
1835# Try to link conftest.$ac_ext, and return whether this succeeded.
1836ac_fn_cxx_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_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest$ac_exeext && {
1859 test "$cross_compiling" = yes ||
1860 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; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877} # ac_fn_cxx_try_link
1878
1879# ac_fn_c_try_link LINENO
1880# -----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded.
1882ac_fn_c_try_link ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1907 }; then :
1908 ac_retval=0
1909else
1910 $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923} # ac_fn_c_try_link
1924cat >config.log <<_ACEOF
1925This file contains any messages produced by compilers while
1926running configure, to aid debugging if configure makes a mistake.
1927
1928It was created by $as_me, which was
1929generated by GNU Autoconf 2.69. Invocation command line was
1930
1931 $ $0 $@
1932
1933_ACEOF
1934exec 5>>config.log
1935{
1936cat <<_ASUNAME
1937## --------- ##
1938## Platform. ##
1939## --------- ##
1940
1941hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1942uname -m = `(uname -m) 2>/dev/null || echo unknown`
1943uname -r = `(uname -r) 2>/dev/null || echo unknown`
1944uname -s = `(uname -s) 2>/dev/null || echo unknown`
1945uname -v = `(uname -v) 2>/dev/null || echo unknown`
1946
1947/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1948/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1949
1950/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1951/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1952/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1953/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1954/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1955/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1956/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1957
1958_ASUNAME
1959
1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 $as_echo "PATH: $as_dir"
1966 done
1967IFS=$as_save_IFS
1968
1969} >&5
1970
1971cat >&5 <<_ACEOF
1972
1973
1974## ----------- ##
1975## Core tests. ##
1976## ----------- ##
1977
1978_ACEOF
1979
1980
1981# Keep a trace of the command line.
1982# Strip out --no-create and --no-recursion so they do not pile up.
1983# Strip out --silent because we don't want to record it for future runs.
1984# Also quote any args containing shell meta-characters.
1985# Make two passes to allow for proper duplicate-argument suppression.
1986ac_configure_args=
1987ac_configure_args0=
1988ac_configure_args1=
1989ac_must_keep_next=false
1990for ac_pass in 1 2
1991do
1992 for ac_arg
1993 do
1994 case $ac_arg in
1995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1997 | -silent | --silent | --silen | --sile | --sil)
1998 continue ;;
1999 *\'*)
2000 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 esac
2002 case $ac_pass in
2003 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2004 2)
2005 as_fn_append ac_configure_args1 " '$ac_arg'"
2006 if test $ac_must_keep_next = true; then
2007 ac_must_keep_next=false # Got value, back to normal.
2008 else
2009 case $ac_arg in
2010 *=* | --config-cache | -C | -disable-* | --disable-* \
2011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2013 | -with-* | --with-* | -without-* | --without-* | --x)
2014 case "$ac_configure_args0 " in
2015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2016 esac
2017 ;;
2018 -* ) ac_must_keep_next=true ;;
2019 esac
2020 fi
2021 as_fn_append ac_configure_args " '$ac_arg'"
2022 ;;
2023 esac
2024 done
2025done
2026{ ac_configure_args0=; unset ac_configure_args0;}
2027{ ac_configure_args1=; unset ac_configure_args1;}
2028
2029# When interrupted or exit'd, cleanup temporary files, and complete
2030# config.log. We remove comments because anyway the quotes in there
2031# would cause problems or look ugly.
2032# WARNING: Use '\'' to represent an apostrophe within the trap.
2033# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2034trap 'exit_status=$?
2035 # Save into config.log some information that might help in debugging.
2036 {
2037 echo
2038
2039 $as_echo "## ---------------- ##
2040## Cache variables. ##
2041## ---------------- ##"
2042 echo
2043 # The following way of writing the cache mishandles newlines in values,
2044(
2045 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in #(
2048 *${as_nl}*)
2049 case $ac_var in #(
2050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2051$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2052 esac
2053 case $ac_var in #(
2054 _ | IFS | as_nl) ;; #(
2055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2056 *) { eval $ac_var=; unset $ac_var;} ;;
2057 esac ;;
2058 esac
2059 done
2060 (set) 2>&1 |
2061 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2062 *${as_nl}ac_space=\ *)
2063 sed -n \
2064 "s/'\''/'\''\\\\'\'''\''/g;
2065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2066 ;; #(
2067 *)
2068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069 ;;
2070 esac |
2071 sort
2072)
2073 echo
2074
2075 $as_echo "## ----------------- ##
2076## Output variables. ##
2077## ----------------- ##"
2078 echo
2079 for ac_var in $ac_subst_vars
2080 do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
2086 done | sort
2087 echo
2088
2089 if test -n "$ac_subst_files"; then
2090 $as_echo "## ------------------- ##
2091## File substitutions. ##
2092## ------------------- ##"
2093 echo
2094 for ac_var in $ac_subst_files
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103 fi
2104
2105 if test -s confdefs.h; then
2106 $as_echo "## ----------- ##
2107## confdefs.h. ##
2108## ----------- ##"
2109 echo
2110 cat confdefs.h
2111 echo
2112 fi
2113 test "$ac_signal" != 0 &&
2114 $as_echo "$as_me: caught signal $ac_signal"
2115 $as_echo "$as_me: exit $exit_status"
2116 } >&5
2117 rm -f core *.core core.conftest.* &&
2118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2119 exit $exit_status
2120' 0
2121for ac_signal in 1 2 13 15; do
2122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2123done
2124ac_signal=0
2125
2126# confdefs.h avoids OS command line length limits that DEFS can exceed.
2127rm -f -r conftest* confdefs.h
2128
2129$as_echo "/* confdefs.h */" > confdefs.h
2130
2131# Predefined preprocessor variables.
2132
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_NAME "$PACKAGE_NAME"
2135_ACEOF
2136
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139_ACEOF
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_VERSION "$PACKAGE_VERSION"
2143_ACEOF
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_STRING "$PACKAGE_STRING"
2147_ACEOF
2148
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151_ACEOF
2152
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_URL "$PACKAGE_URL"
2155_ACEOF
2156
2157
2158# Let the site file select an alternate cache file if it wants to.
2159# Prefer an explicitly selected file to automatically selected ones.
2160ac_site_file1=NONE
2161ac_site_file2=NONE
2162if test -n "$CONFIG_SITE"; then
2163 # We do not want a PATH search for config.site.
2164 case $CONFIG_SITE in #((
2165 -*) ac_site_file1=./$CONFIG_SITE;;
2166 */*) ac_site_file1=$CONFIG_SITE;;
2167 *) ac_site_file1=./$CONFIG_SITE;;
2168 esac
2169elif test "x$prefix" != xNONE; then
2170 ac_site_file1=$prefix/share/config.site
2171 ac_site_file2=$prefix/etc/config.site
2172else
2173 ac_site_file1=$ac_default_prefix/share/config.site
2174 ac_site_file2=$ac_default_prefix/etc/config.site
2175fi
2176for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2177do
2178 test "x$ac_site_file" = xNONE && continue
2179 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2181$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2182 sed 's/^/| /' "$ac_site_file" >&5
2183 . "$ac_site_file" \
2184 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186as_fn_error $? "failed to load site script $ac_site_file
2187See \`config.log' for more details" "$LINENO" 5; }
2188 fi
2189done
2190
2191if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special files
2193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196$as_echo "$as_me: loading cache $cache_file" >&6;}
2197 case $cache_file in
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
2200 esac
2201 fi
2202else
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204$as_echo "$as_me: creating cache $cache_file" >&6;}
2205 >$cache_file
2206fi
2207
2208# Check that the precious variables saved in the cache have kept the same
2209# value.
2210ac_cache_corrupted=false
2211for ac_var in $ac_precious_vars; do
2212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213 eval ac_new_set=\$ac_env_${ac_var}_set
2214 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215 eval ac_new_val=\$ac_env_${ac_var}_value
2216 case $ac_old_set,$ac_new_set in
2217 set,)
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2221 ,set)
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2224 ac_cache_corrupted=: ;;
2225 ,);;
2226 *)
2227 if test "x$ac_old_val" != "x$ac_new_val"; then
2228 # differences in whitespace do not lead to failure.
2229 ac_old_val_w=`echo x $ac_old_val`
2230 ac_new_val_w=`echo x $ac_new_val`
2231 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234 ac_cache_corrupted=:
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238 eval $ac_var=\$ac_old_val
2239 fi
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2241$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2243$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2244 fi;;
2245 esac
2246 # Pass precious variables to config.status.
2247 if test "$ac_new_set" = set; then
2248 case $ac_new_val in
2249 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 *) ac_arg=$ac_var=$ac_new_val ;;
2251 esac
2252 case " $ac_configure_args " in
2253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2254 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2255 esac
2256 fi
2257done
2258if $ac_cache_corrupted; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2264fi
2265## -------------------- ##
2266## Main body of script. ##
2267## -------------------- ##
2268
2269ac_ext=c
2270ac_cpp='$CPP $CPPFLAGS'
2271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275
2276
2277
2278
2279
2280
2281
2282if test x"${enable_gdb}" != x"no" -a x"${enable_src_release_build}" != x"yes"; then
2283 # For this branch, we do not support building GDB in-tree.
2284 # Try to detect whether we are in this situation or not by
2285 # searching for a couple of known files in the source directory.
2286 if test -f gnulib/update-gnulib.sh -a -f gdb/ChangeLog; then
2287 as_fn_error $? "GDB must be configured and built in a directory separate from its sources.
2288
2289To do so, create a dedicated directory for your GDB build and invoke
2290the configure script from that directory:
2291
2292 $ mkdir build
2293 $ cd build
2294 $ <full path to your sources>/gdb-VERSION/configure [etc...]
2295 $ make" "$LINENO" 5
2296 fi
2297fi
2298
2299progname=$0
2300# if PWD already has a value, it is probably wrong.
2301if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2302
2303# Export original configure arguments for use by sub-configures.
2304# Quote arguments with shell meta charatcers.
2305TOPLEVEL_CONFIGURE_ARGUMENTS=
2306set -- "$progname" "$@"
2307for ac_arg
2308do
2309 case "$ac_arg" in
2310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2311 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2312 # if the argument is of the form -foo=baz, quote the baz part only
2313 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2314 *) ;;
2315 esac
2316 # Add the quoted argument to the list.
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2318done
2319if test "$silent" = yes; then
2320 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2321fi
2322# Remove the initial space we just introduced and, as these will be
2323# expanded by make, quote '$'.
2324TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2325
2326
2327# Find the build, host, and target systems.
2328ac_aux_dir=
2329for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2330 if test -f "$ac_dir/install-sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install-sh -c"
2333 break
2334 elif test -f "$ac_dir/install.sh"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/install.sh -c"
2337 break
2338 elif test -f "$ac_dir/shtool"; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/shtool install -c"
2341 break
2342 fi
2343done
2344if test -z "$ac_aux_dir"; then
2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2346fi
2347
2348# These three variables are undocumented and unsupported,
2349# and are intended to be withdrawn in a future Autoconf release.
2350# They can cause serious problems if a builder's source tree is in a directory
2351# whose full name contains unusual characters.
2352ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2355
2356
2357# Make sure we can run config.sub.
2358$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2360
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362$as_echo_n "checking build system type... " >&6; }
2363if ${ac_cv_build+:} false; then :
2364 $as_echo_n "(cached) " >&6
2365else
2366 ac_build_alias=$build_alias
2367test "x$ac_build_alias" = x &&
2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369test "x$ac_build_alias" = x &&
2370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2371ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2373
2374fi
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376$as_echo "$ac_cv_build" >&6; }
2377case $ac_cv_build in
2378*-*-*) ;;
2379*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2380esac
2381build=$ac_cv_build
2382ac_save_IFS=$IFS; IFS='-'
2383set x $ac_cv_build
2384shift
2385build_cpu=$1
2386build_vendor=$2
2387shift; shift
2388# Remember, the first character of IFS is used to create $*,
2389# except with old shells:
2390build_os=$*
2391IFS=$ac_save_IFS
2392case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2393
2394
2395 case ${build_alias} in
2396 "") build_noncanonical=${build} ;;
2397 *) build_noncanonical=${build_alias} ;;
2398esac
2399
2400
2401
2402 case ${host_alias} in
2403 "") host_noncanonical=${build_noncanonical} ;;
2404 *) host_noncanonical=${host_alias} ;;
2405esac
2406
2407
2408
2409 case ${target_alias} in
2410 "") target_noncanonical=${host_noncanonical} ;;
2411 *) target_noncanonical=${target_alias} ;;
2412esac
2413
2414
2415
2416
2417test "$host_noncanonical" = "$target_noncanonical" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_transform_name=s,y,y,
2421
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2423$as_echo_n "checking host system type... " >&6; }
2424if ${ac_cv_host+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426else
2427 if test "x$host_alias" = x; then
2428 ac_cv_host=$ac_cv_build
2429else
2430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2432fi
2433
2434fi
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2436$as_echo "$ac_cv_host" >&6; }
2437case $ac_cv_host in
2438*-*-*) ;;
2439*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2440esac
2441host=$ac_cv_host
2442ac_save_IFS=$IFS; IFS='-'
2443set x $ac_cv_host
2444shift
2445host_cpu=$1
2446host_vendor=$2
2447shift; shift
2448# Remember, the first character of IFS is used to create $*,
2449# except with old shells:
2450host_os=$*
2451IFS=$ac_save_IFS
2452case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2453
2454
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2456$as_echo_n "checking target system type... " >&6; }
2457if ${ac_cv_target+:} false; then :
2458 $as_echo_n "(cached) " >&6
2459else
2460 if test "x$target_alias" = x; then
2461 ac_cv_target=$ac_cv_host
2462else
2463 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2465fi
2466
2467fi
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2469$as_echo "$ac_cv_target" >&6; }
2470case $ac_cv_target in
2471*-*-*) ;;
2472*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2473esac
2474target=$ac_cv_target
2475ac_save_IFS=$IFS; IFS='-'
2476set x $ac_cv_target
2477shift
2478target_cpu=$1
2479target_vendor=$2
2480shift; shift
2481# Remember, the first character of IFS is used to create $*,
2482# except with old shells:
2483target_os=$*
2484IFS=$ac_save_IFS
2485case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2486
2487
2488# The aliases save the names the user supplied, while $host etc.
2489# will get canonicalized.
2490test -n "$target_alias" &&
2491 test "$program_prefix$program_suffix$program_transform_name" = \
2492 NONENONEs,x,x, &&
2493 program_prefix=${target_alias}-
2494
2495test "$program_prefix" != NONE &&
2496 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2497# Use a double $ so make ignores it.
2498test "$program_suffix" != NONE &&
2499 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2500# Double any \ or $.
2501# By default was `s,x,x', remove it if useless.
2502ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2503program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2504
2505
2506
2507# Get 'install' or 'install-sh' and its variants.
2508# Find a good install program. We prefer a C program (faster),
2509# so one script is as good as another. But avoid the broken or
2510# incompatible versions:
2511# SysV /etc/install, /usr/sbin/install
2512# SunOS /usr/etc/install
2513# IRIX /sbin/install
2514# AIX /bin/install
2515# AmigaOS /C/install, which installs bootblocks on floppy discs
2516# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2517# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2518# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2519# OS/2's system install, which has a completely different semantic
2520# ./install, which can be erroneously created by make from ./install.sh.
2521# Reject install programs that cannot install multiple files.
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2523$as_echo_n "checking for a BSD-compatible install... " >&6; }
2524if test -z "$INSTALL"; then
2525if ${ac_cv_path_install+:} false; then :
2526 $as_echo_n "(cached) " >&6
2527else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 # Account for people who put trailing slashes in PATH elements.
2534case $as_dir/ in #((
2535 ./ | .// | /[cC]/* | \
2536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2537 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2538 /usr/ucb/* ) ;;
2539 *)
2540 # OSF1 and SCO ODT 3.0 have their own names for install.
2541 # Don't use installbsd from OSF since it installs stuff as root
2542 # by default.
2543 for ac_prog in ginstall scoinst install; do
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2546 if test $ac_prog = install &&
2547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # AIX install. It has an incompatible calling convention.
2549 :
2550 elif test $ac_prog = install &&
2551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552 # program-specific install script used by HP pwplus--don't use.
2553 :
2554 else
2555 rm -rf conftest.one conftest.two conftest.dir
2556 echo one > conftest.one
2557 echo two > conftest.two
2558 mkdir conftest.dir
2559 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2560 test -s conftest.one && test -s conftest.two &&
2561 test -s conftest.dir/conftest.one &&
2562 test -s conftest.dir/conftest.two
2563 then
2564 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2565 break 3
2566 fi
2567 fi
2568 fi
2569 done
2570 done
2571 ;;
2572esac
2573
2574 done
2575IFS=$as_save_IFS
2576
2577rm -rf conftest.one conftest.two conftest.dir
2578
2579fi
2580 if test "${ac_cv_path_install+set}" = set; then
2581 INSTALL=$ac_cv_path_install
2582 else
2583 # As a last resort, use the slow shell script. Don't cache a
2584 # value for INSTALL within a source directory, because that will
2585 # break other packages using the cache if that directory is
2586 # removed, or if the value is a relative name.
2587 INSTALL=$ac_install_sh
2588 fi
2589fi
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2591$as_echo "$INSTALL" >&6; }
2592
2593# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2594# It thinks the first close brace ends the variable substitution.
2595test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2596
2597test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2598
2599test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2600
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2602$as_echo_n "checking whether ln works... " >&6; }
2603if ${acx_cv_prog_LN+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605else
2606 rm -f conftestdata_t
2607echo >conftestdata_f
2608if ln conftestdata_f conftestdata_t 2>/dev/null
2609then
2610 acx_cv_prog_LN=ln
2611else
2612 acx_cv_prog_LN=no
2613fi
2614rm -f conftestdata_f conftestdata_t
2615
2616fi
2617if test $acx_cv_prog_LN = no; then
2618 LN="cp"
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2620$as_echo "no, using $LN" >&6; }
2621else
2622 LN="$acx_cv_prog_LN"
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624$as_echo "yes" >&6; }
2625fi
2626
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2628$as_echo_n "checking whether ln -s works... " >&6; }
2629LN_S=$as_ln_s
2630if test "$LN_S" = "ln -s"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632$as_echo "yes" >&6; }
2633else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2635$as_echo "no, using $LN_S" >&6; }
2636fi
2637
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2639$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2640if ${ac_cv_path_SED+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642else
2643 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2644 for ac_i in 1 2 3 4 5 6 7; do
2645 ac_script="$ac_script$as_nl$ac_script"
2646 done
2647 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2648 { ac_script=; unset ac_script;}
2649 if test -z "$SED"; then
2650 ac_path_SED_found=false
2651 # Loop through the user's path and test for each of PROGNAME-LIST
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_prog in sed gsed; do
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2660 as_fn_executable_p "$ac_path_SED" || continue
2661# Check for GNU ac_path_SED and select it if it is found.
2662 # Check for GNU $ac_path_SED
2663case `"$ac_path_SED" --version 2>&1` in
2664*GNU*)
2665 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2666*)
2667 ac_count=0
2668 $as_echo_n 0123456789 >"conftest.in"
2669 while :
2670 do
2671 cat "conftest.in" "conftest.in" >"conftest.tmp"
2672 mv "conftest.tmp" "conftest.in"
2673 cp "conftest.in" "conftest.nl"
2674 $as_echo '' >> "conftest.nl"
2675 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2677 as_fn_arith $ac_count + 1 && ac_count=$as_val
2678 if test $ac_count -gt ${ac_path_SED_max-0}; then
2679 # Best one so far, save it but keep looking for a better one
2680 ac_cv_path_SED="$ac_path_SED"
2681 ac_path_SED_max=$ac_count
2682 fi
2683 # 10*(2^10) chars as input seems more than enough
2684 test $ac_count -gt 10 && break
2685 done
2686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2687esac
2688
2689 $ac_path_SED_found && break 3
2690 done
2691 done
2692 done
2693IFS=$as_save_IFS
2694 if test -z "$ac_cv_path_SED"; then
2695 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2696 fi
2697else
2698 ac_cv_path_SED=$SED
2699fi
2700
2701fi
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2703$as_echo "$ac_cv_path_SED" >&6; }
2704 SED="$ac_cv_path_SED"
2705 rm -f conftest.sed
2706
2707for ac_prog in gawk mawk nawk awk
2708do
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710set dummy $ac_prog; ac_word=$2
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712$as_echo_n "checking for $ac_word... " >&6; }
2713if ${ac_cv_prog_AWK+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715else
2716 if test -n "$AWK"; then
2717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2718else
2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726 ac_cv_prog_AWK="$ac_prog"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2729 fi
2730done
2731 done
2732IFS=$as_save_IFS
2733
2734fi
2735fi
2736AWK=$ac_cv_prog_AWK
2737if test -n "$AWK"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2739$as_echo "$AWK" >&6; }
2740else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742$as_echo "no" >&6; }
2743fi
2744
2745
2746 test -n "$AWK" && break
2747done
2748
2749
2750srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2751
2752# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2753# a relative path.
2754if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2755 INSTALL="${srcpwd}/install-sh -c"
2756fi
2757
2758# Set srcdir to "." if that's what it is.
2759# This is important for multilib support.
2760pwd=`${PWDCMD-pwd}`
2761if test "${pwd}" = "${srcpwd}" ; then
2762 srcdir=.
2763fi
2764
2765topsrcdir=$srcpwd
2766
2767extra_host_args=
2768
2769### To add a new directory to the tree, first choose whether it is a target
2770### or a host dependent tool. Then put it into the appropriate list
2771### (library or tools, host or target), doing a dependency sort.
2772
2773# Subdirs will be configured in the order listed in build_configdirs,
2774# configdirs, or target_configdirs; see the serialization section below.
2775
2776# Dependency sorting is only needed when *configuration* must be done in
2777# a particular order. In all cases a dependency should be specified in
2778# the Makefile, whether or not it's implicitly specified here.
2779
2780# Double entries in build_configdirs, configdirs, or target_configdirs may
2781# cause circular dependencies and break everything horribly.
2782
2783# these library is used by various programs built for the build
2784# environment
2785#
2786build_libs="build-libiberty build-libcpp"
2787
2788# these tools are built for the build environment
2789build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2790
2791# these libraries are used by various programs built for the host environment
2792#f
2793host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2794
2795# these tools are built for the host environment
2796# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2797# know that we are building the simulator.
2798# binutils, gas and ld appear in that order because it makes sense to run
2799# "make check" in that particular order.
2800# If --enable-gold is used, "gold" may replace "ld".
2801host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2802
2803# these libraries are built for the target environment, and are built after
2804# the host libraries and the host tools (which may be a cross compiler)
2805# Note that libiberty is not a target library.
2806target_libraries="target-libgcc \
2807 target-libbacktrace \
2808 target-libgloss \
2809 target-newlib \
2810 target-libgomp \
2811 target-liboffloadmic \
2812 target-libhsail-rt \
2813 target-libatomic \
2814 target-libitm \
2815 target-libstdc++-v3 \
2816 target-libsanitizer \
2817 target-libvtv \
2818 target-libssp \
2819 target-libquadmath \
2820 target-libgfortran \
2821 target-libffi \
2822 target-libobjc \
2823 target-libada \
2824 target-libgo"
2825
2826# these tools are built using the target libraries, and are intended to
2827# run only in the target environment
2828#
2829# note: any program that *uses* libraries that are in the "target_libraries"
2830# list belongs in this list.
2831#
2832target_tools="target-rda"
2833
2834################################################################################
2835
2836## All tools belong in one of the four categories, and are assigned above
2837## We assign ${configdirs} this way to remove all embedded newlines. This
2838## is important because configure will choke if they ever get through.
2839## ${configdirs} is directories we build using the host tools.
2840## ${target_configdirs} is directories we build using the target tools.
2841configdirs=`echo ${host_libs} ${host_tools}`
2842target_configdirs=`echo ${target_libraries} ${target_tools}`
2843build_configdirs=`echo ${build_libs} ${build_tools}`
2844
2845
2846
2847################################################################################
2848
2849srcname="gnu development package"
2850
2851# This gets set non-empty for some net releases of packages.
2852appdirs=""
2853
2854# Define is_cross_compiler to save on calls to 'test'.
2855is_cross_compiler=
2856if test x"${host}" = x"${target}" ; then
2857 is_cross_compiler=no
2858else
2859 is_cross_compiler=yes
2860fi
2861
2862# Find the build and target subdir names.
2863
2864# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2865# have matching libraries, they should use host libraries: Makefile.tpl
2866# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2867# However, they still use the build modules, because the corresponding
2868# host modules (e.g. bison) are only built for the host when bootstrap
2869# finishes. So:
2870# - build_subdir is where we find build modules, and never changes.
2871# - build_libsubdir is where we find build libraries, and can be overridden.
2872
2873# Prefix 'build-' so this never conflicts with target_subdir.
2874build_subdir="build-${build_noncanonical}"
2875
2876# Check whether --with-build-libsubdir was given.
2877if test "${with_build_libsubdir+set}" = set; then :
2878 withval=$with_build_libsubdir; build_libsubdir="$withval"
2879else
2880 build_libsubdir="$build_subdir"
2881fi
2882
2883# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2884if ( test $srcdir = . && test -d gcc ) \
2885 || test -d $srcdir/../host-${host_noncanonical}; then
2886 host_subdir="host-${host_noncanonical}"
2887else
2888 host_subdir=.
2889fi
2890# No prefix.
2891target_subdir=${target_noncanonical}
2892
2893# Be sure to cover against remnants of an in-tree build.
2894if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2895 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2896Use a pristine source tree when building in a separate tree" "$LINENO" 5
2897fi
2898
2899# Skipdirs are removed silently.
2900skipdirs=
2901# Noconfigdirs are removed loudly.
2902noconfigdirs=""
2903
2904use_gnu_ld=
2905# Make sure we don't let GNU ld be added if we didn't want it.
2906if test x$with_gnu_ld = xno ; then
2907 use_gnu_ld=no
2908 noconfigdirs="$noconfigdirs ld gold"
2909fi
2910
2911use_gnu_as=
2912# Make sure we don't let GNU as be added if we didn't want it.
2913if test x$with_gnu_as = xno ; then
2914 use_gnu_as=no
2915 noconfigdirs="$noconfigdirs gas"
2916fi
2917
2918use_included_zlib=
2919
2920# Check whether --with-system-zlib was given.
2921if test "${with_system_zlib+set}" = set; then :
2922 withval=$with_system_zlib;
2923fi
2924
2925# Make sure we don't let ZLIB be added if we didn't want it.
2926if test x$with_system_zlib = xyes ; then
2927 use_included_zlib=no
2928 noconfigdirs="$noconfigdirs zlib"
2929fi
2930
2931# Don't compile the bundled readline/libreadline.a if --with-system-readline
2932# is provided.
2933if test x$with_system_readline = xyes ; then
2934 noconfigdirs="$noconfigdirs readline"
2935fi
2936
2937# some tools are so dependent upon X11 that if we're not building with X,
2938# it's not even worth trying to configure, much less build, that tool.
2939
2940case ${with_x} in
2941 yes | "") ;; # the default value for this tree is that X11 is available
2942 no)
2943 skipdirs="${skipdirs} tk itcl libgui"
2944 # We won't be able to build gdbtk without X.
2945 enable_gdbtk=no
2946 ;;
2947 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2948esac
2949
2950# Some are only suitable for cross toolchains.
2951# Remove these if host=target.
2952cross_only="target-libgloss target-newlib target-opcodes"
2953
2954case $is_cross_compiler in
2955 no) skipdirs="${skipdirs} ${cross_only}" ;;
2956esac
2957
2958# If both --with-headers and --with-libs are specified, default to
2959# --without-newlib.
2960if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2961 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2962 if test x"${with_newlib}" = x ; then
2963 with_newlib=no
2964 fi
2965fi
2966
2967# Recognize --with-newlib/--without-newlib.
2968case ${with_newlib} in
2969 no) skipdirs="${skipdirs} target-newlib" ;;
2970 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2971esac
2972
2973# Check whether --enable-as-accelerator-for was given.
2974if test "${enable_as_accelerator_for+set}" = set; then :
2975 enableval=$enable_as_accelerator_for;
2976fi
2977
2978
2979# Check whether --enable-offload-targets was given.
2980if test "${enable_offload_targets+set}" = set; then :
2981 enableval=$enable_offload_targets;
2982 if test x"$enable_offload_targets" = x; then
2983 as_fn_error $? "no offload targets specified" "$LINENO" 5
2984 fi
2985
2986else
2987 enable_offload_targets=
2988fi
2989
2990
2991# Handle --enable-gold, --enable-ld.
2992# --disable-gold [--enable-ld]
2993# Build only ld. Default option.
2994# --enable-gold [--enable-ld]
2995# Build both gold and ld. Install gold as "ld.gold", install ld
2996# as "ld.bfd" and "ld".
2997# --enable-gold=default [--enable-ld]
2998# Build both gold and ld. Install gold as "ld.gold" and "ld",
2999# install ld as "ld.bfd".
3000# --enable-gold[=default] --disable-ld
3001# Build only gold, which is then installed as both "ld.gold" and "ld".
3002# --enable-gold --enable-ld=default
3003# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3004# and ld.bfd).
3005# In other words, ld is default
3006# --enable-gold=default --enable-ld=default
3007# Error.
3008
3009default_ld=
3010# Check whether --enable-gold was given.
3011if test "${enable_gold+set}" = set; then :
3012 enableval=$enable_gold; ENABLE_GOLD=$enableval
3013else
3014 ENABLE_GOLD=no
3015fi
3016
3017case "${ENABLE_GOLD}" in
3018 yes|default)
3019 # Check for ELF target.
3020 is_elf=no
3021 case "${target}" in
3022 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3023 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3024 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3025 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3026 case "${target}" in
3027 *-*-linux*aout* | *-*-linux*oldld*)
3028 ;;
3029 *)
3030 is_elf=yes
3031 ;;
3032 esac
3033 esac
3034
3035 if test "$is_elf" = "yes"; then
3036 # Check for target supported by gold.
3037 case "${target}" in
3038 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3039 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3040 configdirs="$configdirs gold"
3041 if test x${ENABLE_GOLD} = xdefault; then
3042 default_ld=gold
3043 fi
3044 ENABLE_GOLD=yes
3045 ;;
3046 esac
3047 fi
3048 ;;
3049 no)
3050 ;;
3051 *)
3052 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3053 ;;
3054esac
3055
3056# Check whether --enable-ld was given.
3057if test "${enable_ld+set}" = set; then :
3058 enableval=$enable_ld; ENABLE_LD=$enableval
3059else
3060 ENABLE_LD=yes
3061fi
3062
3063
3064case "${ENABLE_LD}" in
3065 default)
3066 if test x${default_ld} != x; then
3067 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3068 fi
3069 ;;
3070 yes)
3071 ;;
3072 no)
3073 if test x${ENABLE_GOLD} != xyes; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3075$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3076 fi
3077 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3078 ;;
3079 *)
3080 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3081 ;;
3082esac
3083
3084# PR gas/19109
3085# Decide the default method for compressing debug sections.
3086# Provide a configure time option to override our default.
3087# Check whether --enable-compressed_debug_sections was given.
3088if test "${enable_compressed_debug_sections+set}" = set; then :
3089 enableval=$enable_compressed_debug_sections;
3090 if test x"$enable_compressed_debug_sections" = xyes; then
3091 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3092 fi
3093
3094else
3095 enable_compressed_debug_sections=
3096fi
3097
3098
3099# Configure extra directories which are host specific
3100
3101case "${host}" in
3102 *-cygwin*)
3103 configdirs="$configdirs libtermcap" ;;
3104esac
3105
3106# A target can indicate whether a language isn't supported for some reason.
3107# Only spaces may be used in this macro; not newlines or tabs.
3108unsupported_languages=
3109
3110# Remove more programs from consideration, based on the host or
3111# target this usually means that a port of the program doesn't
3112# exist yet.
3113
3114case "${host}" in
3115 i[3456789]86-*-msdosdjgpp*)
3116 noconfigdirs="$noconfigdirs tcl tk itcl"
3117 ;;
3118esac
3119
3120
3121# Check whether --enable-libquadmath was given.
3122if test "${enable_libquadmath+set}" = set; then :
3123 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3124else
3125 ENABLE_LIBQUADMATH=yes
3126fi
3127
3128if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3129 noconfigdirs="$noconfigdirs target-libquadmath"
3130fi
3131
3132
3133# Check whether --enable-libquadmath-support was given.
3134if test "${enable_libquadmath_support+set}" = set; then :
3135 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3136else
3137 ENABLE_LIBQUADMATH_SUPPORT=yes
3138fi
3139
3140enable_libquadmath_support=
3141if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3142 enable_libquadmath_support=no
3143fi
3144
3145
3146# Check whether --enable-libada was given.
3147if test "${enable_libada+set}" = set; then :
3148 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3149else
3150 ENABLE_LIBADA=yes
3151fi
3152
3153if test "${ENABLE_LIBADA}" != "yes" ; then
3154 noconfigdirs="$noconfigdirs gnattools"
3155fi
3156
3157# Check whether --enable-libssp was given.
3158if test "${enable_libssp+set}" = set; then :
3159 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3160else
3161 ENABLE_LIBSSP=yes
3162fi
3163
3164
3165# Check whether --enable-libstdcxx was given.
3166if test "${enable_libstdcxx+set}" = set; then :
3167 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3168else
3169 ENABLE_LIBSTDCXX=default
3170fi
3171
3172if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3173 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3174fi
3175
3176# If this is accelerator compiler and its target is intelmic we enable
3177# target liboffloadmic by default. If this is compiler with offloading
3178# for intelmic we enable host liboffloadmic by default. Otherwise
3179# liboffloadmic is disabled by default.
3180# Check whether --enable-liboffloadmic was given.
3181if test "${enable_liboffloadmic+set}" = set; then :
3182 enableval=$enable_liboffloadmic; case "$enableval" in
3183 no | host | target)
3184 enable_liboffloadmic=$enableval ;;
3185 *)
3186 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3187esac
3188else
3189 if test x"$enable_as_accelerator_for" != x; then
3190 case "${target}" in
3191 *-intelmic-* | *-intelmicemul-*)
3192 enable_liboffloadmic=target
3193 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3194 ;;
3195 *)
3196 enable_liboffloadmic=no
3197 ;;
3198 esac
3199else
3200 case "${enable_offload_targets}" in
3201 *-intelmic-* | *-intelmicemul-*)
3202 enable_liboffloadmic=host
3203 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3204 ;;
3205 *)
3206 enable_liboffloadmic=no
3207 ;;
3208 esac
3209fi
3210fi
3211
3212
3213
3214# Enable libgomp by default on hosted POSIX systems, and a few others.
3215if test x$enable_libgomp = x ; then
3216 case "${target}" in
3217 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3218 ;;
3219 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3220 ;;
3221 *-*-solaris2* | *-*-hpux11*)
3222 ;;
3223 *-*-darwin* | *-*-aix*)
3224 ;;
3225 nvptx*-*-*)
3226 ;;
3227 *)
3228 noconfigdirs="$noconfigdirs target-libgomp"
3229 ;;
3230 esac
3231fi
3232
3233# Disable libatomic on unsupported systems.
3234if test -d ${srcdir}/libatomic; then
3235 if test x$enable_libatomic = x; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3237$as_echo_n "checking for libatomic support... " >&6; }
3238 if (srcdir=${srcdir}/libatomic; \
3239 . ${srcdir}/configure.tgt; \
3240 test -n "$UNSUPPORTED")
3241 then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243$as_echo "no" >&6; }
3244 noconfigdirs="$noconfigdirs target-libatomic"
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247$as_echo "yes" >&6; }
3248 fi
3249 fi
3250fi
3251
3252# Disable liboffloadmic on unsupported systems.
3253if test -d ${srcdir}/liboffloadmic; then
3254 if test x$enable_liboffloadmic != xno; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3256$as_echo_n "checking for liboffloadmic support... " >&6; }
3257 if (srcdir=${srcdir}/liboffloadmic; \
3258 . ${srcdir}/configure.tgt; \
3259 test -n "$UNSUPPORTED")
3260 then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262$as_echo "no" >&6; }
3263 noconfigdirs="$noconfigdirs target-liboffloadmic"
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3266$as_echo "yes" >&6; }
3267 fi
3268 fi
3269fi
3270
3271# Disable libitm on unsupported systems.
3272if test -d ${srcdir}/libitm; then
3273 if test x$enable_libitm = x; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3275$as_echo_n "checking for libitm support... " >&6; }
3276 if (srcdir=${srcdir}/libitm; \
3277 . ${srcdir}/configure.tgt; \
3278 test -n "$UNSUPPORTED")
3279 then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281$as_echo "no" >&6; }
3282 noconfigdirs="$noconfigdirs target-libitm"
3283 else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285$as_echo "yes" >&6; }
3286 fi
3287 fi
3288fi
3289
3290# Disable libsanitizer on unsupported systems.
3291if test -d ${srcdir}/libsanitizer; then
3292 if test x$enable_libsanitizer = x; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3294$as_echo_n "checking for libsanitizer support... " >&6; }
3295 if (srcdir=${srcdir}/libsanitizer; \
3296 . ${srcdir}/configure.tgt; \
3297 test -n "$UNSUPPORTED")
3298 then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300$as_echo "no" >&6; }
3301 noconfigdirs="$noconfigdirs target-libsanitizer"
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304$as_echo "yes" >&6; }
3305 fi
3306 fi
3307fi
3308
3309# Disable libvtv on unsupported systems.
3310if test -d ${srcdir}/libvtv; then
3311 if test x$enable_libvtv = x; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3313$as_echo_n "checking for libvtv support... " >&6; }
3314 if (srcdir=${srcdir}/libvtv; \
3315 . ${srcdir}/configure.tgt; \
3316 test "$VTV_SUPPORTED" != "yes")
3317 then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319$as_echo "no" >&6; }
3320 noconfigdirs="$noconfigdirs target-libvtv"
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323$as_echo "yes" >&6; }
3324 fi
3325 fi
3326fi
3327
3328
3329# Disable libhsail-rt on unsupported systems.
3330if test -d ${srcdir}/libhsail-rt; then
3331 if test x$enable_libhsail_rt = x; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3333$as_echo_n "checking for libhsail-rt support... " >&6; }
3334 if (srcdir=${srcdir}/libhsail-rt; \
3335 . ${srcdir}/configure.tgt; \
3336 test -n "$UNSUPPORTED")
3337 then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339$as_echo "no" >&6; }
3340 unsupported_languages="$unsupported_languages brig"
3341 # This implicitly disables also target-libhsail-rt as it won't
3342 # get added to the build without BRIG FE.
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345$as_echo "yes" >&6; }
3346 fi
3347 fi
3348fi
3349
3350
3351# Disable libquadmath for some systems.
3352case "${target}" in
3353 avr-*-*)
3354 noconfigdirs="$noconfigdirs target-libquadmath"
3355 ;;
3356 # libquadmath is unused on AIX and libquadmath build process use of
3357 # LD_LIBRARY_PATH can break AIX bootstrap.
3358 powerpc-*-aix* | rs6000-*-aix*)
3359 noconfigdirs="$noconfigdirs target-libquadmath"
3360 ;;
3361esac
3362
3363# Disable libssp for some systems.
3364case "${target}" in
3365 avr-*-*)
3366 # No hosted I/O support.
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
3369 powerpc-*-aix* | rs6000-*-aix*)
3370 noconfigdirs="$noconfigdirs target-libssp"
3371 ;;
3372 rl78-*-*)
3373 # libssp uses a misaligned load to trigger a fault, but the RL78
3374 # doesn't fault for those - instead, it gives a build-time error
3375 # for explicit misaligned loads.
3376 noconfigdirs="$noconfigdirs target-libssp"
3377 ;;
3378 visium-*-*)
3379 # No hosted I/O support.
3380 noconfigdirs="$noconfigdirs target-libssp"
3381 ;;
3382esac
3383
3384# Disable libstdc++-v3 for some systems.
3385# Allow user to override this if they pass --enable-libstdc++-v3
3386if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3387 case "${target}" in
3388 *-*-vxworks*)
3389 # VxWorks uses the Dinkumware C++ library.
3390 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3391 ;;
3392 arm*-wince-pe*)
3393 # the C++ libraries don't build on top of CE's C libraries
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395 ;;
3396 avr-*-*)
3397 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3398 ;;
3399 ft32-*-*)
3400 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 ;;
3402 esac
3403fi
3404
3405# Disable Fortran for some systems.
3406case "${target}" in
3407 mmix-*-*)
3408 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3409 unsupported_languages="$unsupported_languages fortran"
3410 ;;
3411esac
3412
3413# Disable libffi for some systems.
3414case "${target}" in
3415 powerpc-*-darwin*)
3416 ;;
3417 i[3456789]86-*-darwin*)
3418 ;;
3419 x86_64-*-darwin[912]*)
3420 ;;
3421 *-*-darwin*)
3422 noconfigdirs="$noconfigdirs target-libffi"
3423 ;;
3424 *-*-netware*)
3425 noconfigdirs="$noconfigdirs target-libffi"
3426 ;;
3427 *-*-phoenix*)
3428 noconfigdirs="$noconfigdirs target-libffi"
3429 ;;
3430 *-*-rtems*)
3431 noconfigdirs="$noconfigdirs target-libffi"
3432 ;;
3433 *-*-tpf*)
3434 noconfigdirs="$noconfigdirs target-libffi"
3435 ;;
3436 *-*-uclinux*)
3437 noconfigdirs="$noconfigdirs target-libffi"
3438 ;;
3439 *-*-vxworks*)
3440 noconfigdirs="$noconfigdirs target-libffi"
3441 ;;
3442 aarch64*-*-freebsd*)
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 alpha*-*-*vms*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3447 ;;
3448 arm*-*-freebsd*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 arm-wince-pe)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454 arm*-*-symbianelf*)
3455 noconfigdirs="$noconfigdirs target-libffi"
3456 ;;
3457 cris-*-* | crisv32-*-*)
3458 case "${target}" in
3459 *-*-linux*)
3460 ;;
3461 *) # See PR46792 regarding target-libffi.
3462 noconfigdirs="$noconfigdirs target-libffi";;
3463 esac
3464 ;;
3465 hppa*64*-*-hpux*)
3466 noconfigdirs="$noconfigdirs target-libffi"
3467 ;;
3468 hppa*-hp-hpux11*)
3469 ;;
3470 hppa*-*-hpux*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3472 ;;
3473 ia64*-*-*vms*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3475 ;;
3476 i[3456789]86-w64-mingw*)
3477 noconfigdirs="$noconfigdirs target-libffi"
3478 ;;
3479 i[3456789]86-*-mingw*)
3480 noconfigdirs="$noconfigdirs target-libffi"
3481 ;;
3482 x86_64-*-mingw*)
3483 noconfigdirs="$noconfigdirs target-libffi"
3484 ;;
3485 mmix-*-*)
3486 noconfigdirs="$noconfigdirs target-libffi"
3487 ;;
3488 powerpc-*-aix*)
3489 ;;
3490 rs6000-*-aix*)
3491 ;;
3492 ft32-*-*)
3493 noconfigdirs="$noconfigdirs target-libffi"
3494 ;;
3495 *-*-lynxos*)
3496 noconfigdirs="$noconfigdirs target-libffi"
3497 ;;
3498esac
3499
3500# Disable the go frontend on systems where it is known to not work. Please keep
3501# this in sync with contrib/config-list.mk.
3502case "${target}" in
3503*-*-darwin* | *-*-cygwin* | *-*-mingw*)
3504 unsupported_languages="$unsupported_languages go"
3505 ;;
3506esac
3507
3508# Disable libgo for some systems where it is known to not work.
3509# For testing, you can easily override this with --enable-libgo.
3510if test x$enable_libgo = x; then
3511 case "${target}" in
3512 *-*-darwin*)
3513 # PR 46986
3514 noconfigdirs="$noconfigdirs target-libgo"
3515 ;;
3516 *-*-cygwin* | *-*-mingw*)
3517 noconfigdirs="$noconfigdirs target-libgo"
3518 ;;
3519 esac
3520fi
3521
3522# Default libgloss CPU subdirectory.
3523libgloss_dir="$target_cpu"
3524
3525case "${target}" in
3526 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3527 libgloss_dir=wince
3528 ;;
3529 aarch64*-*-* )
3530 libgloss_dir=aarch64
3531 ;;
3532 arm*-*-*)
3533 libgloss_dir=arm
3534 ;;
3535 cris-*-* | crisv32-*-*)
3536 libgloss_dir=cris
3537 ;;
3538 hppa*-*-*)
3539 libgloss_dir=pa
3540 ;;
3541 i[3456789]86-*-*)
3542 libgloss_dir=i386
3543 ;;
3544 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3545 libgloss_dir=m68hc11
3546 ;;
3547 m68*-*-* | fido-*-*)
3548 libgloss_dir=m68k
3549 ;;
3550 mips*-*-*)
3551 libgloss_dir=mips
3552 ;;
3553 powerpc*-*-*)
3554 libgloss_dir=rs6000
3555 ;;
3556 sparc*-*-*)
3557 libgloss_dir=sparc
3558 ;;
3559esac
3560
3561# Disable newlib and libgloss for various target OSes.
3562case "${target}" in
3563 alpha*-dec-osf*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 ;;
3566 i[3456789]86-*-linux*)
3567 # This section makes it possible to build newlib natively on linux.
3568 # If we are using a cross compiler then don't configure newlib.
3569 if test x${is_cross_compiler} != xno ; then
3570 noconfigdirs="$noconfigdirs target-newlib"
3571 fi
3572 noconfigdirs="$noconfigdirs target-libgloss"
3573 # If we are not using a cross compiler, do configure newlib.
3574 # Note however, that newlib will only be configured in this situation
3575 # if the --with-newlib option has been given, because otherwise
3576 # 'target-newlib' will appear in skipdirs.
3577 ;;
3578 i[3456789]86-*-rdos*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3580 ;;
3581 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3583 ;;
3584 sparc-*-sunos4*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3586 ;;
3587 *-*-aix*)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3589 ;;
3590 *-*-beos*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3592 ;;
3593 *-*-chorusos)
3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3595 ;;
3596 *-*-dragonfly*)
3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3598 ;;
3599 *-*-freebsd*)
3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3601 ;;
3602 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3604 ;;
3605 *-*-lynxos*)
3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3607 ;;
3608 *-*-mingw*)
3609 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3610 ;;
3611 *-*-netbsd*)
3612 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3613 ;;
3614 *-*-netware*)
3615 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3616 ;;
3617 *-*-tpf*)
3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3619 ;;
3620 *-*-uclinux*)
3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3622 ;;
3623 *-*-vxworks*)
3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 ;;
3626esac
3627
3628case "${target}" in
3629 *-*-chorusos)
3630 ;;
3631 aarch64-*-darwin*)
3632 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3633 noconfigdirs="$noconfigdirs sim target-rda"
3634 ;;
3635 arm-*-darwin*)
3636 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3637 noconfigdirs="$noconfigdirs sim target-rda"
3638 ;;
3639 powerpc-*-darwin*)
3640 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3641 noconfigdirs="$noconfigdirs sim target-rda"
3642 ;;
3643 i[3456789]86-*-darwin*)
3644 noconfigdirs="$noconfigdirs ld gprof"
3645 noconfigdirs="$noconfigdirs sim target-rda"
3646 ;;
3647 x86_64-*-darwin[912]*)
3648 noconfigdirs="$noconfigdirs ld gas gprof"
3649 noconfigdirs="$noconfigdirs sim target-rda"
3650 ;;
3651 *-*-darwin*)
3652 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3653 noconfigdirs="$noconfigdirs sim target-rda"
3654 ;;
3655 *-*-dragonfly*)
3656 ;;
3657 *-*-freebsd*)
3658 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3659 && test -f /usr/local/include/gmp.h; then
3660 with_gmp=/usr/local
3661 fi
3662 ;;
3663 *-*-kaos*)
3664 # Remove unsupported stuff on all kaOS configurations.
3665 noconfigdirs="$noconfigdirs target-libgloss"
3666 ;;
3667 *-*-netbsd*)
3668 ;;
3669 *-*-netware*)
3670 ;;
3671 *-*-phoenix*)
3672 noconfigdirs="$noconfigdirs target-libgloss"
3673 ;;
3674 *-*-rtems*)
3675 noconfigdirs="$noconfigdirs target-libgloss"
3676 ;;
3677 # The tpf target doesn't support gdb yet.
3678 *-*-tpf*)
3679 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3680 ;;
3681 *-*-uclinux*)
3682 noconfigdirs="$noconfigdirs target-rda"
3683 ;;
3684 *-*-vxworks*)
3685 ;;
3686 alpha*-dec-osf*)
3687 # ld works, but does not support shared libraries.
3688 # gas doesn't generate exception information.
3689 noconfigdirs="$noconfigdirs gas ld"
3690 ;;
3691 alpha*-*-*vms*)
3692 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3693 ;;
3694 alpha*-*-*)
3695 # newlib is not 64 bit ready
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 ;;
3698 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3699 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3700 ;;
3701 arc*-*-*)
3702 noconfigdirs="$noconfigdirs sim"
3703 ;;
3704 arm-*-pe*)
3705 noconfigdirs="$noconfigdirs target-libgloss"
3706 ;;
3707 arm-*-riscix*)
3708 noconfigdirs="$noconfigdirs ld target-libgloss"
3709 ;;
3710 avr-*-*)
3711 if test x${with_avrlibc} != xno; then
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 fi
3714 ;;
3715 c4x-*-* | tic4x-*-*)
3716 noconfigdirs="$noconfigdirs target-libgloss"
3717 ;;
3718 tic54x-*-*)
3719 noconfigdirs="$noconfigdirs target-libgloss gdb"
3720 ;;
3721 d10v-*-*)
3722 noconfigdirs="$noconfigdirs target-libgloss"
3723 ;;
3724 d30v-*-*)
3725 noconfigdirs="$noconfigdirs gdb"
3726 ;;
3727 fr30-*-elf*)
3728 noconfigdirs="$noconfigdirs gdb"
3729 ;;
3730 ft32-*-*)
3731 noconfigdirs="$noconfigdirs target-rda gprof"
3732 ;;
3733 moxie-*-*)
3734 noconfigdirs="$noconfigdirs"
3735 ;;
3736 h8300*-*-*)
3737 noconfigdirs="$noconfigdirs target-libgloss"
3738 ;;
3739 h8500-*-*)
3740 noconfigdirs="$noconfigdirs target-libgloss"
3741 ;;
3742 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3743 ;;
3744 hppa*64*-*-hpux*)
3745 noconfigdirs="$noconfigdirs gdb"
3746 ;;
3747 hppa*-*-hpux11*)
3748 noconfigdirs="$noconfigdirs gdb ld"
3749 ;;
3750 hppa*64*-*-linux*)
3751 ;;
3752 hppa*-*-linux*)
3753 ;;
3754 hppa*-*-*elf* | \
3755 hppa*-*-lites* | \
3756 hppa*-*-openbsd* | \
3757 hppa*64*-*-*)
3758 ;;
3759 hppa*-*-pro*)
3760 ;;
3761 hppa*-*-*)
3762 noconfigdirs="$noconfigdirs ld"
3763 ;;
3764 i960-*-*)
3765 noconfigdirs="$noconfigdirs gdb"
3766 ;;
3767 ia64*-*-elf*)
3768 # No gdb support yet.
3769 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3770 ;;
3771 ia64*-**-hpux*)
3772 # No ld support yet.
3773 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3774 ;;
3775 ia64*-*-*vms*)
3776 # No ld support yet.
3777 noconfigdirs="$noconfigdirs libgui itcl ld"
3778 ;;
3779 i[3456789]86-w64-mingw*)
3780 ;;
3781 i[3456789]86-*-mingw*)
3782 target_configdirs="$target_configdirs target-winsup"
3783 ;;
3784 *-*-cygwin*)
3785 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3786 noconfigdirs="$noconfigdirs target-libgloss"
3787 # always build newlib if winsup directory is present.
3788 if test -d "$srcdir/winsup/cygwin"; then
3789 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3790 elif test -d "$srcdir/newlib"; then
3791 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3792 fi
3793 ;;
3794 i[3456789]86-*-pe)
3795 noconfigdirs="$noconfigdirs target-libgloss"
3796 ;;
3797 i[3456789]86-*-sco3.2v5*)
3798 # The linker does not yet know about weak symbols in COFF,
3799 # and is not configured to handle mixed ELF and COFF.
3800 noconfigdirs="$noconfigdirs ld target-libgloss"
3801 ;;
3802 i[3456789]86-*-sco*)
3803 noconfigdirs="$noconfigdirs gprof target-libgloss"
3804 ;;
3805 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3806 noconfigdirs="$noconfigdirs target-libgloss"
3807 ;;
3808 i[3456789]86-*-sysv4*)
3809 noconfigdirs="$noconfigdirs target-libgloss"
3810 ;;
3811 i[3456789]86-*-beos*)
3812 noconfigdirs="$noconfigdirs gdb"
3813 ;;
3814 i[3456789]86-*-rdos*)
3815 noconfigdirs="$noconfigdirs gdb"
3816 ;;
3817 mmix-*-*)
3818 noconfigdirs="$noconfigdirs gdb"
3819 ;;
3820 mt-*-*)
3821 noconfigdirs="$noconfigdirs sim"
3822 ;;
3823 nfp-*-*)
3824 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3825 noconfigdirs="$noconfigdirs $target_libraries"
3826 ;;
3827 powerpc-*-aix*)
3828 # copied from rs6000-*-* entry
3829 noconfigdirs="$noconfigdirs gprof"
3830 ;;
3831 powerpc*-*-winnt* | powerpc*-*-pe*)
3832 target_configdirs="$target_configdirs target-winsup"
3833 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3834 # always build newlib.
3835 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3836 ;;
3837 # This is temporary until we can link against shared libraries
3838 powerpcle-*-solaris*)
3839 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3840 ;;
3841 powerpc-*-beos*)
3842 noconfigdirs="$noconfigdirs gdb"
3843 ;;
3844 rs6000-*-lynxos*)
3845 noconfigdirs="$noconfigdirs gprof"
3846 ;;
3847 rs6000-*-aix*)
3848 noconfigdirs="$noconfigdirs gprof"
3849 ;;
3850 rs6000-*-*)
3851 noconfigdirs="$noconfigdirs gprof"
3852 ;;
3853 m68k-apollo-*)
3854 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3855 ;;
3856 microblaze*)
3857 noconfigdirs="$noconfigdirs gprof"
3858 ;;
3859 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3860 if test x$with_newlib = xyes; then
3861 noconfigdirs="$noconfigdirs gprof"
3862 fi
3863 ;;
3864 mips*-*-irix5*)
3865 noconfigdirs="$noconfigdirs gprof target-libgloss"
3866 ;;
3867 mips*-*-irix6*)
3868 noconfigdirs="$noconfigdirs gprof target-libgloss"
3869 ;;
3870 mips*-*-bsd*)
3871 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3872 ;;
3873 mips*-*-linux*)
3874 ;;
3875 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3876 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3877 noconfigdirs="$noconfigdirs ld gas gprof"
3878 ;;
3879 mips*-*-*)
3880 noconfigdirs="$noconfigdirs gprof"
3881 ;;
3882 nvptx*-*-*)
3883 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3884 ;;
3885 sh-*-*)
3886 case "${target}" in
3887 sh*-*-elf)
3888 ;;
3889 *)
3890 noconfigdirs="$noconfigdirs target-libgloss" ;;
3891 esac
3892 ;;
3893 sparc-*-sunos4*)
3894 if test x${is_cross_compiler} = xno ; then
3895 use_gnu_ld=no
3896 fi
3897 ;;
3898 tic6x-*-*)
3899 noconfigdirs="$noconfigdirs sim"
3900 ;;
3901 tilepro*-*-* | tilegx*-*-*)
3902 noconfigdirs="$noconfigdirs sim"
3903 ;;
3904 v810-*-*)
3905 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3906 ;;
3907 vax-*-*)
3908 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3909 ;;
3910 wasm32-*-*)
3911 noconfigdirs="$noconfigdirs ld"
3912 ;;
3913esac
3914
3915# If we aren't building newlib, then don't build libgloss, since libgloss
3916# depends upon some newlib header files.
3917case "${noconfigdirs}" in
3918 *target-libgloss*) ;;
3919 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3920esac
3921
3922# Work in distributions that contain no compiler tools, like Autoconf.
3923host_makefile_frag=/dev/null
3924if test -d ${srcdir}/config ; then
3925case "${host}" in
3926 i[3456789]86-*-msdosdjgpp*)
3927 host_makefile_frag="config/mh-djgpp"
3928 ;;
3929 *-cygwin*)
3930
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3932$as_echo_n "checking to see if cat works as expected... " >&6; }
3933echo a >cygwin-cat-check
3934if test `cat cygwin-cat-check` = a ; then
3935 rm cygwin-cat-check
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3937$as_echo "yes" >&6; }
3938else
3939 rm cygwin-cat-check
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941$as_echo "no" >&6; }
3942 as_fn_error $? "The cat command does not ignore carriage return characters.
3943 Please either mount the build directory in binary mode or run the following
3944 commands before running any configure script:
3945set -o igncr
3946export SHELLOPTS
3947 " "$LINENO" 5
3948fi
3949
3950 host_makefile_frag="config/mh-cygwin"
3951 ;;
3952 *-mingw*)
3953 host_makefile_frag="config/mh-mingw"
3954 ;;
3955 alpha*-linux*)
3956 host_makefile_frag="config/mh-alpha-linux"
3957 ;;
3958 hppa*-hp-hpux10*)
3959 host_makefile_frag="config/mh-pa-hpux10"
3960 ;;
3961 hppa*-hp-hpux*)
3962 host_makefile_frag="config/mh-pa"
3963 ;;
3964 hppa*-*)
3965 host_makefile_frag="config/mh-pa"
3966 ;;
3967 *-*-darwin*)
3968 host_makefile_frag="config/mh-darwin"
3969 ;;
3970 powerpc-*-aix*)
3971 host_makefile_frag="config/mh-ppc-aix"
3972 ;;
3973 rs6000-*-aix*)
3974 host_makefile_frag="config/mh-ppc-aix"
3975 ;;
3976esac
3977fi
3978
3979if test "${build}" != "${host}" ; then
3980 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3981 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3982 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3983 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3984 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3985 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3986 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3987 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3988 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3989 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3990 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3991 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3992else
3993 AR_FOR_BUILD="\$(AR)"
3994 AS_FOR_BUILD="\$(AS)"
3995 CC_FOR_BUILD="\$(CC)"
3996 CXX_FOR_BUILD="\$(CXX)"
3997 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3998 GOC_FOR_BUILD="\$(GOC)"
3999 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4000 LD_FOR_BUILD="\$(LD)"
4001 NM_FOR_BUILD="\$(NM)"
4002 RANLIB_FOR_BUILD="\$(RANLIB)"
4003 WINDRES_FOR_BUILD="\$(WINDRES)"
4004 WINDMC_FOR_BUILD="\$(WINDMC)"
4005fi
4006
4007ac_ext=c
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4014set dummy ${ac_tool_prefix}gcc; ac_word=$2
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016$as_echo_n "checking for $ac_word... " >&6; }
4017if ${ac_cv_prog_CC+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019else
4020 if test -n "$CC"; then
4021 ac_cv_prog_CC="$CC" # Let the user override the test.
4022else
4023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024for as_dir in $PATH
4025do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 break 2
4033 fi
4034done
4035 done
4036IFS=$as_save_IFS
4037
4038fi
4039fi
4040CC=$ac_cv_prog_CC
4041if test -n "$CC"; then
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4043$as_echo "$CC" >&6; }
4044else
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046$as_echo "no" >&6; }
4047fi
4048
4049
4050fi
4051if test -z "$ac_cv_prog_CC"; then
4052 ac_ct_CC=$CC
4053 # Extract the first word of "gcc", so it can be a program name with args.
4054set dummy gcc; ac_word=$2
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056$as_echo_n "checking for $ac_word... " >&6; }
4057if ${ac_cv_prog_ac_ct_CC+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059else
4060 if test -n "$ac_ct_CC"; then
4061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4062else
4063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH
4065do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_ac_ct_CC="gcc"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4073 fi
4074done
4075 done
4076IFS=$as_save_IFS
4077
4078fi
4079fi
4080ac_ct_CC=$ac_cv_prog_ac_ct_CC
4081if test -n "$ac_ct_CC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4083$as_echo "$ac_ct_CC" >&6; }
4084else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086$as_echo "no" >&6; }
4087fi
4088
4089 if test "x$ac_ct_CC" = x; then
4090 CC=""
4091 else
4092 case $cross_compiling:$ac_tool_warned in
4093yes:)
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4096ac_tool_warned=yes ;;
4097esac
4098 CC=$ac_ct_CC
4099 fi
4100else
4101 CC="$ac_cv_prog_CC"
4102fi
4103
4104if test -z "$CC"; then
4105 if test -n "$ac_tool_prefix"; then
4106 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4107set dummy ${ac_tool_prefix}cc; ac_word=$2
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109$as_echo_n "checking for $ac_word... " >&6; }
4110if ${ac_cv_prog_CC+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112else
4113 if test -n "$CC"; then
4114 ac_cv_prog_CC="$CC" # Let the user override the test.
4115else
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_CC="${ac_tool_prefix}cc"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127done
4128 done
4129IFS=$as_save_IFS
4130
4131fi
4132fi
4133CC=$ac_cv_prog_CC
4134if test -n "$CC"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4136$as_echo "$CC" >&6; }
4137else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139$as_echo "no" >&6; }
4140fi
4141
4142
4143 fi
4144fi
4145if test -z "$CC"; then
4146 # Extract the first word of "cc", so it can be a program name with args.
4147set dummy cc; ac_word=$2
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149$as_echo_n "checking for $ac_word... " >&6; }
4150if ${ac_cv_prog_CC+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152else
4153 if test -n "$CC"; then
4154 ac_cv_prog_CC="$CC" # Let the user override the test.
4155else
4156 ac_prog_rejected=no
4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4165 ac_prog_rejected=yes
4166 continue
4167 fi
4168 ac_cv_prog_CC="cc"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172done
4173 done
4174IFS=$as_save_IFS
4175
4176if test $ac_prog_rejected = yes; then
4177 # We found a bogon in the path, so make sure we never use it.
4178 set dummy $ac_cv_prog_CC
4179 shift
4180 if test $# != 0; then
4181 # We chose a different compiler from the bogus one.
4182 # However, it has the same basename, so the bogon will be chosen
4183 # first if we set CC to just the basename; use the full file name.
4184 shift
4185 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4186 fi
4187fi
4188fi
4189fi
4190CC=$ac_cv_prog_CC
4191if test -n "$CC"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4193$as_echo "$CC" >&6; }
4194else
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196$as_echo "no" >&6; }
4197fi
4198
4199
4200fi
4201if test -z "$CC"; then
4202 if test -n "$ac_tool_prefix"; then
4203 for ac_prog in cl.exe
4204 do
4205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208$as_echo_n "checking for $ac_word... " >&6; }
4209if ${ac_cv_prog_CC+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211else
4212 if test -n "$CC"; then
4213 ac_cv_prog_CC="$CC" # Let the user override the test.
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226done
4227 done
4228IFS=$as_save_IFS
4229
4230fi
4231fi
4232CC=$ac_cv_prog_CC
4233if test -n "$CC"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4235$as_echo "$CC" >&6; }
4236else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238$as_echo "no" >&6; }
4239fi
4240
4241
4242 test -n "$CC" && break
4243 done
4244fi
4245if test -z "$CC"; then
4246 ac_ct_CC=$CC
4247 for ac_prog in cl.exe
4248do
4249 # Extract the first word of "$ac_prog", so it can be a program name with args.
4250set dummy $ac_prog; ac_word=$2
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252$as_echo_n "checking for $ac_word... " >&6; }
4253if ${ac_cv_prog_ac_ct_CC+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255else
4256 if test -n "$ac_ct_CC"; then
4257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4258else
4259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260for as_dir in $PATH
4261do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4266 ac_cv_prog_ac_ct_CC="$ac_prog"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 break 2
4269 fi
4270done
4271 done
4272IFS=$as_save_IFS
4273
4274fi
4275fi
4276ac_ct_CC=$ac_cv_prog_ac_ct_CC
4277if test -n "$ac_ct_CC"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4279$as_echo "$ac_ct_CC" >&6; }
4280else
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282$as_echo "no" >&6; }
4283fi
4284
4285
4286 test -n "$ac_ct_CC" && break
4287done
4288
4289 if test "x$ac_ct_CC" = x; then
4290 CC=""
4291 else
4292 case $cross_compiling:$ac_tool_warned in
4293yes:)
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4296ac_tool_warned=yes ;;
4297esac
4298 CC=$ac_ct_CC
4299 fi
4300fi
4301
4302fi
4303
4304
4305test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4307as_fn_error $? "no acceptable C compiler found in \$PATH
4308See \`config.log' for more details" "$LINENO" 5; }
4309
4310# Provide some information about the compiler.
4311$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4312set X $ac_compile
4313ac_compiler=$2
4314for ac_option in --version -v -V -qversion; do
4315 { { ac_try="$ac_compiler $ac_option >&5"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321$as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4323 ac_status=$?
4324 if test -s conftest.err; then
4325 sed '10a\
4326... rest of stderr output deleted ...
4327 10q' conftest.err >conftest.er1
4328 cat conftest.er1 >&5
4329 fi
4330 rm -f conftest.er1 conftest.err
4331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332 test $ac_status = 0; }
4333done
4334
4335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336/* end confdefs.h. */
4337
4338int
4339main ()
4340{
4341
4342 ;
4343 return 0;
4344}
4345_ACEOF
4346ac_clean_files_save=$ac_clean_files
4347ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4348# Try to create an executable without -o first, disregard a.out.
4349# It will help us diagnose broken compilers, and finding out an intuition
4350# of exeext.
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4352$as_echo_n "checking whether the C compiler works... " >&6; }
4353ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4354
4355# The possible output files:
4356ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4357
4358ac_rmfiles=
4359for ac_file in $ac_files
4360do
4361 case $ac_file in
4362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4363 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4364 esac
4365done
4366rm -f $ac_rmfiles
4367
4368if { { ac_try="$ac_link_default"
4369case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372esac
4373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374$as_echo "$ac_try_echo"; } >&5
4375 (eval "$ac_link_default") 2>&5
4376 ac_status=$?
4377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378 test $ac_status = 0; }; then :
4379 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4380# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4381# in a Makefile. We should not override ac_cv_exeext if it was cached,
4382# so that the user can short-circuit this test for compilers unknown to
4383# Autoconf.
4384for ac_file in $ac_files ''
4385do
4386 test -f "$ac_file" || continue
4387 case $ac_file in
4388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4389 ;;
4390 [ab].out )
4391 # We found the default executable, but exeext='' is most
4392 # certainly right.
4393 break;;
4394 *.* )
4395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4396 then :; else
4397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4398 fi
4399 # We set ac_cv_exeext here because the later test for it is not
4400 # safe: cross compilers may not add the suffix if given an `-o'
4401 # argument, so we may need to know it at that point already.
4402 # Even if this section looks crufty: it has the advantage of
4403 # actually working.
4404 break;;
4405 * )
4406 break;;
4407 esac
4408done
4409test "$ac_cv_exeext" = no && ac_cv_exeext=
4410
4411else
4412 ac_file=''
4413fi
4414if test -z "$ac_file"; then :
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416$as_echo "no" >&6; }
4417$as_echo "$as_me: failed program was:" >&5
4418sed 's/^/| /' conftest.$ac_ext >&5
4419
4420{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4422as_fn_error 77 "C compiler cannot create executables
4423See \`config.log' for more details" "$LINENO" 5; }
4424else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4426$as_echo "yes" >&6; }
4427fi
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4429$as_echo_n "checking for C compiler default output file name... " >&6; }
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4431$as_echo "$ac_file" >&6; }
4432ac_exeext=$ac_cv_exeext
4433
4434rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4435ac_clean_files=$ac_clean_files_save
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4437$as_echo_n "checking for suffix of executables... " >&6; }
4438if { { ac_try="$ac_link"
4439case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442esac
4443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444$as_echo "$ac_try_echo"; } >&5
4445 (eval "$ac_link") 2>&5
4446 ac_status=$?
4447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448 test $ac_status = 0; }; then :
4449 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4450# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4451# work properly (i.e., refer to `conftest.exe'), while it won't with
4452# `rm'.
4453for ac_file in conftest.exe conftest conftest.*; do
4454 test -f "$ac_file" || continue
4455 case $ac_file in
4456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4458 break;;
4459 * ) break;;
4460 esac
4461done
4462else
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4466See \`config.log' for more details" "$LINENO" 5; }
4467fi
4468rm -f conftest conftest$ac_cv_exeext
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4470$as_echo "$ac_cv_exeext" >&6; }
4471
4472rm -f conftest.$ac_ext
4473EXEEXT=$ac_cv_exeext
4474ac_exeext=$EXEEXT
4475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h. */
4477#include <stdio.h>
4478int
4479main ()
4480{
4481FILE *f = fopen ("conftest.out", "w");
4482 return ferror (f) || fclose (f) != 0;
4483
4484 ;
4485 return 0;
4486}
4487_ACEOF
4488ac_clean_files="$ac_clean_files conftest.out"
4489# Check that the compiler produces executables we can run. If not, either
4490# the compiler is broken, or we cross compile.
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4492$as_echo_n "checking whether we are cross compiling... " >&6; }
4493if test "$cross_compiling" != yes; then
4494 { { ac_try="$ac_link"
4495case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498esac
4499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500$as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_link") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }
4505 if { ac_try='./conftest$ac_cv_exeext'
4506 { { case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509esac
4510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511$as_echo "$ac_try_echo"; } >&5
4512 (eval "$ac_try") 2>&5
4513 ac_status=$?
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }; }; then
4516 cross_compiling=no
4517 else
4518 if test "$cross_compiling" = maybe; then
4519 cross_compiling=yes
4520 else
4521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4523as_fn_error $? "cannot run C compiled programs.
4524If you meant to cross compile, use \`--host'.
4525See \`config.log' for more details" "$LINENO" 5; }
4526 fi
4527 fi
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4530$as_echo "$cross_compiling" >&6; }
4531
4532rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4533ac_clean_files=$ac_clean_files_save
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4535$as_echo_n "checking for suffix of object files... " >&6; }
4536if ${ac_cv_objext+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538else
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540/* end confdefs.h. */
4541
4542int
4543main ()
4544{
4545
4546 ;
4547 return 0;
4548}
4549_ACEOF
4550rm -f conftest.o conftest.obj
4551if { { ac_try="$ac_compile"
4552case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555esac
4556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557$as_echo "$ac_try_echo"; } >&5
4558 (eval "$ac_compile") 2>&5
4559 ac_status=$?
4560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }; then :
4562 for ac_file in conftest.o conftest.obj conftest.*; do
4563 test -f "$ac_file" || continue;
4564 case $ac_file in
4565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4566 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4567 break;;
4568 esac
4569done
4570else
4571 $as_echo "$as_me: failed program was:" >&5
4572sed 's/^/| /' conftest.$ac_ext >&5
4573
4574{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4576as_fn_error $? "cannot compute suffix of object files: cannot compile
4577See \`config.log' for more details" "$LINENO" 5; }
4578fi
4579rm -f conftest.$ac_cv_objext conftest.$ac_ext
4580fi
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4582$as_echo "$ac_cv_objext" >&6; }
4583OBJEXT=$ac_cv_objext
4584ac_objext=$OBJEXT
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4586$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4587if ${ac_cv_c_compiler_gnu+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589else
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591/* end confdefs.h. */
4592
4593int
4594main ()
4595{
4596#ifndef __GNUC__
4597 choke me
4598#endif
4599
4600 ;
4601 return 0;
4602}
4603_ACEOF
4604if ac_fn_c_try_compile "$LINENO"; then :
4605 ac_compiler_gnu=yes
4606else
4607 ac_compiler_gnu=no
4608fi
4609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610ac_cv_c_compiler_gnu=$ac_compiler_gnu
4611
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4614$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4615if test $ac_compiler_gnu = yes; then
4616 GCC=yes
4617else
4618 GCC=
4619fi
4620ac_test_CFLAGS=${CFLAGS+set}
4621ac_save_CFLAGS=$CFLAGS
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4623$as_echo_n "checking whether $CC accepts -g... " >&6; }
4624if ${ac_cv_prog_cc_g+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626else
4627 ac_save_c_werror_flag=$ac_c_werror_flag
4628 ac_c_werror_flag=yes
4629 ac_cv_prog_cc_g=no
4630 CFLAGS="-g"
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h. */
4633
4634int
4635main ()
4636{
4637
4638 ;
4639 return 0;
4640}
4641_ACEOF
4642if ac_fn_c_try_compile "$LINENO"; then :
4643 ac_cv_prog_cc_g=yes
4644else
4645 CFLAGS=""
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h. */
4648
4649int
4650main ()
4651{
4652
4653 ;
4654 return 0;
4655}
4656_ACEOF
4657if ac_fn_c_try_compile "$LINENO"; then :
4658
4659else
4660 ac_c_werror_flag=$ac_save_c_werror_flag
4661 CFLAGS="-g"
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663/* end confdefs.h. */
4664
4665int
4666main ()
4667{
4668
4669 ;
4670 return 0;
4671}
4672_ACEOF
4673if ac_fn_c_try_compile "$LINENO"; then :
4674 ac_cv_prog_cc_g=yes
4675fi
4676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677fi
4678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679fi
4680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 ac_c_werror_flag=$ac_save_c_werror_flag
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4684$as_echo "$ac_cv_prog_cc_g" >&6; }
4685if test "$ac_test_CFLAGS" = set; then
4686 CFLAGS=$ac_save_CFLAGS
4687elif test $ac_cv_prog_cc_g = yes; then
4688 if test "$GCC" = yes; then
4689 CFLAGS="-g -O2"
4690 else
4691 CFLAGS="-g"
4692 fi
4693else
4694 if test "$GCC" = yes; then
4695 CFLAGS="-O2"
4696 else
4697 CFLAGS=
4698 fi
4699fi
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4701$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4702if ${ac_cv_prog_cc_c89+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704else
4705 ac_cv_prog_cc_c89=no
4706ac_save_CC=$CC
4707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708/* end confdefs.h. */
4709#include <stdarg.h>
4710#include <stdio.h>
4711struct stat;
4712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4713struct buf { int x; };
4714FILE * (*rcsopen) (struct buf *, struct stat *, int);
4715static char *e (p, i)
4716 char **p;
4717 int i;
4718{
4719 return p[i];
4720}
4721static char *f (char * (*g) (char **, int), char **p, ...)
4722{
4723 char *s;
4724 va_list v;
4725 va_start (v,p);
4726 s = g (p, va_arg (v,int));
4727 va_end (v);
4728 return s;
4729}
4730
4731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4732 function prototypes and stuff, but not '\xHH' hex character constants.
4733 These don't provoke an error unfortunately, instead are silently treated
4734 as 'x'. The following induces an error, until -std is added to get
4735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4736 array size at least. It's necessary to write '\x00'==0 to get something
4737 that's true only with -std. */
4738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4739
4740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4741 inside strings and character constants. */
4742#define FOO(x) 'x'
4743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4744
4745int test (int i, double x);
4746struct s1 {int (*f) (int a);};
4747struct s2 {int (*f) (double a);};
4748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4749int argc;
4750char **argv;
4751int
4752main ()
4753{
4754return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4755 ;
4756 return 0;
4757}
4758_ACEOF
4759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4761do
4762 CC="$ac_save_CC $ac_arg"
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 ac_cv_prog_cc_c89=$ac_arg
4765fi
4766rm -f core conftest.err conftest.$ac_objext
4767 test "x$ac_cv_prog_cc_c89" != "xno" && break
4768done
4769rm -f conftest.$ac_ext
4770CC=$ac_save_CC
4771
4772fi
4773# AC_CACHE_VAL
4774case "x$ac_cv_prog_cc_c89" in
4775 x)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4777$as_echo "none needed" >&6; } ;;
4778 xno)
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4780$as_echo "unsupported" >&6; } ;;
4781 *)
4782 CC="$CC $ac_cv_prog_cc_c89"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4785esac
4786if test "x$ac_cv_prog_cc_c89" != xno; then :
4787
4788fi
4789
4790ac_ext=c
4791ac_cpp='$CPP $CPPFLAGS'
4792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795
4796ac_ext=cpp
4797ac_cpp='$CXXCPP $CPPFLAGS'
4798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4801if test -z "$CXX"; then
4802 if test -n "$CCC"; then
4803 CXX=$CCC
4804 else
4805 if test -n "$ac_tool_prefix"; then
4806 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4807 do
4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811$as_echo_n "checking for $ac_word... " >&6; }
4812if ${ac_cv_prog_CXX+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814else
4815 if test -n "$CXX"; then
4816 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4817else
4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829done
4830 done
4831IFS=$as_save_IFS
4832
4833fi
4834fi
4835CXX=$ac_cv_prog_CXX
4836if test -n "$CXX"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4838$as_echo "$CXX" >&6; }
4839else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841$as_echo "no" >&6; }
4842fi
4843
4844
4845 test -n "$CXX" && break
4846 done
4847fi
4848if test -z "$CXX"; then
4849 ac_ct_CXX=$CXX
4850 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4851do
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853set dummy $ac_prog; ac_word=$2
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
4856if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858else
4859 if test -n "$ac_ct_CXX"; then
4860 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_ac_ct_CXX="$ac_prog"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873done
4874 done
4875IFS=$as_save_IFS
4876
4877fi
4878fi
4879ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4880if test -n "$ac_ct_CXX"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4882$as_echo "$ac_ct_CXX" >&6; }
4883else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885$as_echo "no" >&6; }
4886fi
4887
4888
4889 test -n "$ac_ct_CXX" && break
4890done
4891
4892 if test "x$ac_ct_CXX" = x; then
4893 CXX="g++"
4894 else
4895 case $cross_compiling:$ac_tool_warned in
4896yes:)
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899ac_tool_warned=yes ;;
4900esac
4901 CXX=$ac_ct_CXX
4902 fi
4903fi
4904
4905 fi
4906fi
4907# Provide some information about the compiler.
4908$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4909set X $ac_compile
4910ac_compiler=$2
4911for ac_option in --version -v -V -qversion; do
4912 { { ac_try="$ac_compiler $ac_option >&5"
4913case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916esac
4917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4918$as_echo "$ac_try_echo"; } >&5
4919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4920 ac_status=$?
4921 if test -s conftest.err; then
4922 sed '10a\
4923... rest of stderr output deleted ...
4924 10q' conftest.err >conftest.er1
4925 cat conftest.er1 >&5
4926 fi
4927 rm -f conftest.er1 conftest.err
4928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4929 test $ac_status = 0; }
4930done
4931
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4933$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4934if ${ac_cv_cxx_compiler_gnu+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936else
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938/* end confdefs.h. */
4939
4940int
4941main ()
4942{
4943#ifndef __GNUC__
4944 choke me
4945#endif
4946
4947 ;
4948 return 0;
4949}
4950_ACEOF
4951if ac_fn_cxx_try_compile "$LINENO"; then :
4952 ac_compiler_gnu=yes
4953else
4954 ac_compiler_gnu=no
4955fi
4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4958
4959fi
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4961$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4962if test $ac_compiler_gnu = yes; then
4963 GXX=yes
4964else
4965 GXX=
4966fi
4967ac_test_CXXFLAGS=${CXXFLAGS+set}
4968ac_save_CXXFLAGS=$CXXFLAGS
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4970$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4971if ${ac_cv_prog_cxx_g+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973else
4974 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4975 ac_cxx_werror_flag=yes
4976 ac_cv_prog_cxx_g=no
4977 CXXFLAGS="-g"
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979/* end confdefs.h. */
4980
4981int
4982main ()
4983{
4984
4985 ;
4986 return 0;
4987}
4988_ACEOF
4989if ac_fn_cxx_try_compile "$LINENO"; then :
4990 ac_cv_prog_cxx_g=yes
4991else
4992 CXXFLAGS=""
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994/* end confdefs.h. */
4995
4996int
4997main ()
4998{
4999
5000 ;
5001 return 0;
5002}
5003_ACEOF
5004if ac_fn_cxx_try_compile "$LINENO"; then :
5005
5006else
5007 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5008 CXXFLAGS="-g"
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h. */
5011
5012int
5013main ()
5014{
5015
5016 ;
5017 return 0;
5018}
5019_ACEOF
5020if ac_fn_cxx_try_compile "$LINENO"; then :
5021 ac_cv_prog_cxx_g=yes
5022fi
5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024fi
5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026fi
5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5029fi
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5031$as_echo "$ac_cv_prog_cxx_g" >&6; }
5032if test "$ac_test_CXXFLAGS" = set; then
5033 CXXFLAGS=$ac_save_CXXFLAGS
5034elif test $ac_cv_prog_cxx_g = yes; then
5035 if test "$GXX" = yes; then
5036 CXXFLAGS="-g -O2"
5037 else
5038 CXXFLAGS="-g"
5039 fi
5040else
5041 if test "$GXX" = yes; then
5042 CXXFLAGS="-O2"
5043 else
5044 CXXFLAGS=
5045 fi
5046fi
5047ac_ext=c
5048ac_cpp='$CPP $CPPFLAGS'
5049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052
5053
5054# We must set the default linker to the linker used by gcc for the correct
5055# operation of libtool. If LD is not defined and we are using gcc, try to
5056# set the LD default to the ld used by gcc.
5057if test -z "$LD"; then
5058 if test "$GCC" = yes; then
5059 case $build in
5060 *-*-mingw*)
5061 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5062 *)
5063 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5064 esac
5065 case $gcc_prog_ld in
5066 # Accept absolute paths.
5067 [\\/]* | [A-Za-z]:[\\/]*)
5068 LD="$gcc_prog_ld" ;;
5069 esac
5070 fi
5071fi
5072
5073# Check whether -static-libstdc++ -static-libgcc is supported.
5074have_static_libs=no
5075if test "$GCC" = yes; then
5076 saved_LDFLAGS="$LDFLAGS"
5077
5078 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5080$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5081 ac_ext=cpp
5082ac_cpp='$CXXCPP $CPPFLAGS'
5083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5086
5087
5088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089/* end confdefs.h. */
5090
5091#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5092#error -static-libstdc++ not implemented
5093#endif
5094int main() {}
5095_ACEOF
5096if ac_fn_cxx_try_link "$LINENO"; then :
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098$as_echo "yes" >&6; }; have_static_libs=yes
5099else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101$as_echo "no" >&6; }
5102fi
5103rm -f core conftest.err conftest.$ac_objext \
5104 conftest$ac_exeext conftest.$ac_ext
5105 ac_ext=c
5106ac_cpp='$CPP $CPPFLAGS'
5107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110
5111
5112 LDFLAGS="$saved_LDFLAGS"
5113fi
5114
5115
5116
5117
5118if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5120set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122$as_echo_n "checking for $ac_word... " >&6; }
5123if ${ac_cv_prog_GNATBIND+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125else
5126 if test -n "$GNATBIND"; then
5127 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5128else
5129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130for as_dir in $PATH
5131do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5139 fi
5140done
5141 done
5142IFS=$as_save_IFS
5143
5144fi
5145fi
5146GNATBIND=$ac_cv_prog_GNATBIND
5147if test -n "$GNATBIND"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5149$as_echo "$GNATBIND" >&6; }
5150else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152$as_echo "no" >&6; }
5153fi
5154
5155
5156fi
5157if test -z "$ac_cv_prog_GNATBIND"; then
5158 ac_ct_GNATBIND=$GNATBIND
5159 # Extract the first word of "gnatbind", so it can be a program name with args.
5160set dummy gnatbind; ac_word=$2
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162$as_echo_n "checking for $ac_word... " >&6; }
5163if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165else
5166 if test -n "$ac_ct_GNATBIND"; then
5167 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5168else
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180done
5181 done
5182IFS=$as_save_IFS
5183
5184fi
5185fi
5186ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5187if test -n "$ac_ct_GNATBIND"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5189$as_echo "$ac_ct_GNATBIND" >&6; }
5190else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192$as_echo "no" >&6; }
5193fi
5194
5195 if test "x$ac_ct_GNATBIND" = x; then
5196 GNATBIND="no"
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199yes:)
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202ac_tool_warned=yes ;;
5203esac
5204 GNATBIND=$ac_ct_GNATBIND
5205 fi
5206else
5207 GNATBIND="$ac_cv_prog_GNATBIND"
5208fi
5209
5210if test -n "$ac_tool_prefix"; then
5211 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5212set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214$as_echo_n "checking for $ac_word... " >&6; }
5215if ${ac_cv_prog_GNATMAKE+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217else
5218 if test -n "$GNATMAKE"; then
5219 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5220else
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232done
5233 done
5234IFS=$as_save_IFS
5235
5236fi
5237fi
5238GNATMAKE=$ac_cv_prog_GNATMAKE
5239if test -n "$GNATMAKE"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5241$as_echo "$GNATMAKE" >&6; }
5242else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244$as_echo "no" >&6; }
5245fi
5246
5247
5248fi
5249if test -z "$ac_cv_prog_GNATMAKE"; then
5250 ac_ct_GNATMAKE=$GNATMAKE
5251 # Extract the first word of "gnatmake", so it can be a program name with args.
5252set dummy gnatmake; ac_word=$2
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254$as_echo_n "checking for $ac_word... " >&6; }
5255if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257else
5258 if test -n "$ac_ct_GNATMAKE"; then
5259 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5260else
5261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262for as_dir in $PATH
5263do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272done
5273 done
5274IFS=$as_save_IFS
5275
5276fi
5277fi
5278ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5279if test -n "$ac_ct_GNATMAKE"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5281$as_echo "$ac_ct_GNATMAKE" >&6; }
5282else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284$as_echo "no" >&6; }
5285fi
5286
5287 if test "x$ac_ct_GNATMAKE" = x; then
5288 GNATMAKE="no"
5289 else
5290 case $cross_compiling:$ac_tool_warned in
5291yes:)
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5294ac_tool_warned=yes ;;
5295esac
5296 GNATMAKE=$ac_ct_GNATMAKE
5297 fi
5298else
5299 GNATMAKE="$ac_cv_prog_GNATMAKE"
5300fi
5301
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5303$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5304if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306else
5307 cat >conftest.adb <<EOF
5308procedure conftest is begin null; end conftest;
5309EOF
5310acx_cv_cc_gcc_supports_ada=no
5311# There is a bug in old released versions of GCC which causes the
5312# driver to exit successfully when the appropriate language module
5313# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5314# Therefore we must check for the error message as well as an
5315# unsuccessful exit.
5316# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5317# given a .adb file, but produce no object file. So we must check
5318# if an object file was really produced to guard against this.
5319errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5320if test x"$errors" = x && test -f conftest.$ac_objext; then
5321 acx_cv_cc_gcc_supports_ada=yes
5322fi
5323rm -f conftest.*
5324fi
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5326$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5327
5328if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5329 have_gnat=yes
5330else
5331 have_gnat=no
5332fi
5333
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5335$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5336if ${gcc_cv_prog_cmp_skip+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338else
5339 echo abfoo >t1
5340 echo cdfoo >t2
5341 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5342 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5343 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5344 :
5345 else
5346 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5347 fi
5348 fi
5349 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5350 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5351 :
5352 else
5353 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5354 fi
5355 fi
5356 rm t1 t2
5357
5358fi
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5360$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5361do_compare="$gcc_cv_prog_cmp_skip"
5362
5363
5364
5365# Check whether --enable-bootstrap was given.
5366if test "${enable_bootstrap+set}" = set; then :
5367 enableval=$enable_bootstrap;
5368else
5369 enable_bootstrap=default
5370fi
5371
5372
5373# Issue errors and warnings for invalid/strange bootstrap combinations.
5374if test -r $srcdir/gcc/configure; then
5375 have_compiler=yes
5376else
5377 have_compiler=no
5378fi
5379
5380case "$have_compiler:$host:$target:$enable_bootstrap" in
5381 *:*:*:no) ;;
5382
5383 # Default behavior. Enable bootstrap if we have a compiler
5384 # and we are in a native configuration.
5385 yes:$build:$build:default)
5386 enable_bootstrap=yes ;;
5387
5388 *:*:*:default)
5389 enable_bootstrap=no ;;
5390
5391 # We have a compiler and we are in a native configuration, bootstrap is ok
5392 yes:$build:$build:yes)
5393 ;;
5394
5395 # Other configurations, but we have a compiler. Assume the user knows
5396 # what he's doing.
5397 yes:*:*:yes)
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5399$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5400 ;;
5401
5402 # No compiler: if they passed --enable-bootstrap explicitly, fail
5403 no:*:*:yes)
5404 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5405
5406 # Fail if wrong command line
5407 *)
5408 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5409 ;;
5410esac
5411
5412# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5413# C++98 compiler can still start the bootstrap.
5414if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5415 CXX="$CXX -std=gnu++98"
5416fi
5417
5418# Used for setting $lt_cv_objdir
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5420$as_echo_n "checking for objdir... " >&6; }
5421if ${lt_cv_objdir+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423else
5424 rm -f .libs 2>/dev/null
5425mkdir .libs 2>/dev/null
5426if test -d .libs; then
5427 lt_cv_objdir=.libs
5428else
5429 # MS-DOS does not allow filenames that begin with a dot.
5430 lt_cv_objdir=_libs
5431fi
5432rmdir .libs 2>/dev/null
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5435$as_echo "$lt_cv_objdir" >&6; }
5436objdir=$lt_cv_objdir
5437
5438
5439
5440
5441
5442cat >>confdefs.h <<_ACEOF
5443#define LT_OBJDIR "$lt_cv_objdir/"
5444_ACEOF
5445
5446
5447
5448# Check for GMP, MPFR and MPC
5449gmplibs="-lmpc -lmpfr -lgmp"
5450gmpinc=
5451have_gmp=no
5452
5453# Specify a location for mpc
5454# check for this first so it ends up on the link line before mpfr.
5455
5456# Check whether --with-mpc was given.
5457if test "${with_mpc+set}" = set; then :
5458 withval=$with_mpc;
5459fi
5460
5461
5462# Check whether --with-mpc-include was given.
5463if test "${with_mpc_include+set}" = set; then :
5464 withval=$with_mpc_include;
5465fi
5466
5467
5468# Check whether --with-mpc-lib was given.
5469if test "${with_mpc_lib+set}" = set; then :
5470 withval=$with_mpc_lib;
5471fi
5472
5473
5474if test "x$with_mpc" != x; then
5475 gmplibs="-L$with_mpc/lib $gmplibs"
5476 gmpinc="-I$with_mpc/include $gmpinc"
5477fi
5478if test "x$with_mpc_include" != x; then
5479 gmpinc="-I$with_mpc_include $gmpinc"
5480fi
5481if test "x$with_mpc_lib" != x; then
5482 gmplibs="-L$with_mpc_lib $gmplibs"
5483fi
5484if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5485 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5486 gmpinc='-I$$s/mpc/src '"$gmpinc"
5487 # Do not test the mpc version. Assume that it is sufficient, since
5488 # it is in the source tree, and the library has not been built yet
5489 # but it would be included on the link line in the version check below
5490 # hence making the test fail.
5491 have_gmp=yes
5492fi
5493
5494# Specify a location for mpfr
5495# check for this first so it ends up on the link line before gmp.
5496
5497# Check whether --with-mpfr-dir was given.
5498if test "${with_mpfr_dir+set}" = set; then :
5499 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5500Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5501fi
5502
5503
5504
5505# Check whether --with-mpfr was given.
5506if test "${with_mpfr+set}" = set; then :
5507 withval=$with_mpfr;
5508fi
5509
5510
5511# Check whether --with-mpfr-include was given.
5512if test "${with_mpfr_include+set}" = set; then :
5513 withval=$with_mpfr_include;
5514fi
5515
5516
5517# Check whether --with-mpfr-lib was given.
5518if test "${with_mpfr_lib+set}" = set; then :
5519 withval=$with_mpfr_lib;
5520fi
5521
5522
5523if test "x$with_mpfr" != x; then
5524 gmplibs="-L$with_mpfr/lib $gmplibs"
5525 gmpinc="-I$with_mpfr/include $gmpinc"
5526fi
5527if test "x$with_mpfr_include" != x; then
5528 gmpinc="-I$with_mpfr_include $gmpinc"
5529fi
5530if test "x$with_mpfr_lib" != x; then
5531 gmplibs="-L$with_mpfr_lib $gmplibs"
5532fi
5533if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5534 # MPFR v3.1.0 moved the sources into a src sub-directory.
5535 if ! test -d ${srcdir}/mpfr/src; then
5536 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5537 fi
5538 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5539 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5540 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5541 # Do not test the mpfr version. Assume that it is sufficient, since
5542 # it is in the source tree, and the library has not been built yet
5543 # but it would be included on the link line in the version check below
5544 # hence making the test fail.
5545 have_gmp=yes
5546fi
5547
5548# Specify a location for gmp
5549
5550# Check whether --with-gmp-dir was given.
5551if test "${with_gmp_dir+set}" = set; then :
5552 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5553Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5554fi
5555
5556
5557
5558# Check whether --with-gmp was given.
5559if test "${with_gmp+set}" = set; then :
5560 withval=$with_gmp;
5561fi
5562
5563
5564# Check whether --with-gmp-include was given.
5565if test "${with_gmp_include+set}" = set; then :
5566 withval=$with_gmp_include;
5567fi
5568
5569
5570# Check whether --with-gmp-lib was given.
5571if test "${with_gmp_lib+set}" = set; then :
5572 withval=$with_gmp_lib;
5573fi
5574
5575
5576
5577if test "x$with_gmp" != x; then
5578 gmplibs="-L$with_gmp/lib $gmplibs"
5579 gmpinc="-I$with_gmp/include $gmpinc"
5580fi
5581if test "x$with_gmp_include" != x; then
5582 gmpinc="-I$with_gmp_include $gmpinc"
5583fi
5584if test "x$with_gmp_lib" != x; then
5585 gmplibs="-L$with_gmp_lib $gmplibs"
5586fi
5587if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5588 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5589 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5590 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5591 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5592 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5593 # Do not test the gmp version. Assume that it is sufficient, since
5594 # it is in the source tree, and the library has not been built yet
5595 # but it would be included on the link line in the version check below
5596 # hence making the test fail.
5597 have_gmp=yes
5598fi
5599
5600if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5601 have_gmp=yes
5602 saved_CFLAGS="$CFLAGS"
5603 CFLAGS="$CFLAGS $gmpinc"
5604 # Check for the recommended and required versions of GMP.
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5606$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5607
5608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609/* end confdefs.h. */
5610#include "gmp.h"
5611int
5612main ()
5613{
5614
5615 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5616 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5617 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5618 choke me
5619 #endif
5620
5621 ;
5622 return 0;
5623}
5624_ACEOF
5625if ac_fn_c_try_compile "$LINENO"; then :
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627/* end confdefs.h. */
5628#include <gmp.h>
5629int
5630main ()
5631{
5632
5633 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5634 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5635 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5636 choke me
5637 #endif
5638
5639 ;
5640 return 0;
5641}
5642_ACEOF
5643if ac_fn_c_try_compile "$LINENO"; then :
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5645$as_echo "yes" >&6; }
5646else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5648$as_echo "buggy but acceptable" >&6; }
5649fi
5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }; have_gmp=no
5654fi
5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656
5657 # If we have GMP, check the MPFR version.
5658 if test x"$have_gmp" = xyes; then
5659 # Check for the recommended and required versions of MPFR.
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5661$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h. */
5664#include <gmp.h>
5665 #include <mpfr.h>
5666int
5667main ()
5668{
5669
5670 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5671 choke me
5672 #endif
5673
5674 ;
5675 return 0;
5676}
5677_ACEOF
5678if ac_fn_c_try_compile "$LINENO"; then :
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h. */
5681#include <gmp.h>
5682 #include <mpfr.h>
5683int
5684main ()
5685{
5686
5687 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5688 choke me
5689 #endif
5690
5691 ;
5692 return 0;
5693}
5694_ACEOF
5695if ac_fn_c_try_compile "$LINENO"; then :
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5697$as_echo "yes" >&6; }
5698else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5700$as_echo "buggy but acceptable" >&6; }
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705$as_echo "no" >&6; }; have_gmp=no
5706fi
5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 fi
5709
5710 # Check for the MPC header version.
5711 if test x"$have_gmp" = xyes ; then
5712 # Check for the recommended and required versions of MPC.
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5714$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716/* end confdefs.h. */
5717#include <mpc.h>
5718int
5719main ()
5720{
5721
5722 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5723 choke me
5724 #endif
5725
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730if ac_fn_c_try_compile "$LINENO"; then :
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732/* end confdefs.h. */
5733#include <mpc.h>
5734int
5735main ()
5736{
5737
5738 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5739 choke me
5740 #endif
5741
5742 ;
5743 return 0;
5744}
5745_ACEOF
5746if ac_fn_c_try_compile "$LINENO"; then :
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5748$as_echo "yes" >&6; }
5749else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5751$as_echo "buggy but acceptable" >&6; }
5752fi
5753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5754else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756$as_echo "no" >&6; }; have_gmp=no
5757fi
5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 fi
5760
5761 # Now check the MPFR library.
5762 if test x"$have_gmp" = xyes; then
5763 saved_LIBS="$LIBS"
5764 LIBS="$LIBS $gmplibs"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5766$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768/* end confdefs.h. */
5769#include <mpc.h>
5770int
5771main ()
5772{
5773
5774 mpfr_t n;
5775 mpfr_t x;
5776 mpc_t c;
5777 int t;
5778 mpfr_init (n);
5779 mpfr_init (x);
5780 mpfr_atan2 (n, n, x, GMP_RNDN);
5781 mpfr_erfc (n, x, GMP_RNDN);
5782 mpfr_subnormalize (x, t, GMP_RNDN);
5783 mpfr_clear(n);
5784 mpfr_clear(x);
5785 mpc_init2 (c, 53);
5786 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5787 mpc_cosh (c, c, MPC_RNDNN);
5788 mpc_pow (c, c, c, MPC_RNDNN);
5789 mpc_acosh (c, c, MPC_RNDNN);
5790 mpc_clear (c);
5791
5792 ;
5793 return 0;
5794}
5795_ACEOF
5796if ac_fn_c_try_link "$LINENO"; then :
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5798$as_echo "yes" >&6; }
5799else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801$as_echo "no" >&6; }; have_gmp=no
5802fi
5803rm -f core conftest.err conftest.$ac_objext \
5804 conftest$ac_exeext conftest.$ac_ext
5805 LIBS="$saved_LIBS"
5806 fi
5807
5808 CFLAGS="$saved_CFLAGS"
5809
5810# The library versions listed in the error message below should match
5811# the HARD-minimums enforced above.
5812 if test x$have_gmp != xyes; then
5813 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5814Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5815their locations. Source code for these libraries can be found at
5816their respective hosting sites as well as at
5817ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5818http://gcc.gnu.org/install/prerequisites.html for additional info. If
5819you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5820make sure that you have installed both the libraries and the header
5821files. They may be located in separate packages." "$LINENO" 5
5822 fi
5823fi
5824
5825# Flags needed for both GMP, MPFR and/or MPC.
5826
5827
5828
5829
5830
5831
5832
5833# Libraries to use for stage1 or when not bootstrapping.
5834
5835# Check whether --with-stage1-libs was given.
5836if test "${with_stage1_libs+set}" = set; then :
5837 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5838 stage1_libs=
5839 else
5840 stage1_libs=$withval
5841 fi
5842else
5843 stage1_libs=
5844fi
5845
5846
5847
5848# Whether or not to use -static-libstdc++ and -static-libgcc. The
5849# default is yes if gcc is being built; no otherwise. The reason for
5850# this default is that gdb is sometimes linked against GNU Source
5851# Highlight, which is a shared library that uses C++ exceptions. In
5852# this case, -static-libstdc++ will cause crashes.
5853
5854# Check whether --with-static-standard-libraries was given.
5855if test "${with_static_standard_libraries+set}" = set; then :
5856 withval=$with_static_standard_libraries;
5857else
5858 with_static_standard_libraries=auto
5859fi
5860
5861if test "$with_static_standard_libraries" = auto; then
5862 with_static_standard_libraries=$have_compiler
5863fi
5864
5865# Linker flags to use for stage1 or when not bootstrapping.
5866
5867# Check whether --with-stage1-ldflags was given.
5868if test "${with_stage1_ldflags+set}" = set; then :
5869 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5870 stage1_ldflags=
5871 else
5872 stage1_ldflags=$withval
5873 fi
5874else
5875 stage1_ldflags=
5876 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5877 # if supported. But if the user explicitly specified the libraries to use,
5878 # trust that they are doing what they want.
5879 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5880 -a "$have_static_libs" = yes; then
5881 stage1_ldflags="-static-libstdc++ -static-libgcc"
5882 fi
5883fi
5884
5885
5886
5887# Libraries to use for stage2 and later builds.
5888
5889# Check whether --with-boot-libs was given.
5890if test "${with_boot_libs+set}" = set; then :
5891 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5892 poststage1_libs=
5893 else
5894 poststage1_libs=$withval
5895 fi
5896else
5897 poststage1_libs=
5898fi
5899
5900
5901
5902# Linker flags to use for stage2 and later builds.
5903
5904# Check whether --with-boot-ldflags was given.
5905if test "${with_boot_ldflags+set}" = set; then :
5906 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5907 poststage1_ldflags=
5908 else
5909 poststage1_ldflags=$withval
5910 fi
5911else
5912 poststage1_ldflags=
5913 # In stages 2 and 3, default to linking libstdc++ and libgcc
5914 # statically. But if the user explicitly specified the libraries to
5915 # use, trust that they are doing what they want.
5916 if test "$poststage1_libs" = ""; then
5917 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5918 fi
5919fi
5920
5921
5922
5923# GCC GRAPHITE dependency isl.
5924# Basic setup is inlined here, actual checks are in config/isl.m4
5925
5926
5927# Check whether --with-isl was given.
5928if test "${with_isl+set}" = set; then :
5929 withval=$with_isl;
5930fi
5931
5932
5933# Treat --without-isl as a request to disable
5934# GRAPHITE support and skip all following checks.
5935if test "x$with_isl" != "xno"; then
5936 # Check for isl
5937
5938
5939# Check whether --with-isl-include was given.
5940if test "${with_isl_include+set}" = set; then :
5941 withval=$with_isl_include;
5942fi
5943
5944
5945# Check whether --with-isl-lib was given.
5946if test "${with_isl_lib+set}" = set; then :
5947 withval=$with_isl_lib;
5948fi
5949
5950
5951 # Check whether --enable-isl-version-check was given.
5952if test "${enable_isl_version_check+set}" = set; then :
5953 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5954else
5955 ENABLE_ISL_CHECK=yes
5956fi
5957
5958
5959 # Initialize isllibs and islinc.
5960 case $with_isl in
5961 no)
5962 isllibs=
5963 islinc=
5964 ;;
5965 "" | yes)
5966 ;;
5967 *)
5968 isllibs="-L$with_isl/lib"
5969 islinc="-I$with_isl/include"
5970 ;;
5971 esac
5972 if test "x${with_isl_include}" != x ; then
5973 islinc="-I$with_isl_include"
5974 fi
5975 if test "x${with_isl_lib}" != x; then
5976 isllibs="-L$with_isl_lib"
5977 fi
5978 if test "x${islinc}" = x && test "x${isllibs}" = x \
5979 && test -d ${srcdir}/isl; then
5980 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5981 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5982 ENABLE_ISL_CHECK=no
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5984$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5985 fi
5986
5987 isllibs="${isllibs} -lisl"
5988
5989
5990
5991 if test "${ENABLE_ISL_CHECK}" = yes ; then
5992 _isl_saved_CFLAGS=$CFLAGS
5993 _isl_saved_LDFLAGS=$LDFLAGS
5994 _isl_saved_LIBS=$LIBS
5995
5996 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5997 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5998 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5999
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6001$as_echo_n "checking for isl 0.15 or later... " >&6; }
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003/* end confdefs.h. */
6004#include <isl/schedule.h>
6005int
6006main ()
6007{
6008isl_options_set_schedule_serialize_sccs (NULL, 0);
6009 ;
6010 return 0;
6011}
6012_ACEOF
6013if ac_fn_c_try_link "$LINENO"; then :
6014 gcc_cv_isl=yes
6015else
6016 gcc_cv_isl=no
6017fi
6018rm -f core conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6021$as_echo "$gcc_cv_isl" >&6; }
6022
6023 if test "${gcc_cv_isl}" = no ; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6025$as_echo "required isl version is 0.15 or later" >&6; }
6026 fi
6027
6028 CFLAGS=$_isl_saved_CFLAGS
6029 LDFLAGS=$_isl_saved_LDFLAGS
6030 LIBS=$_isl_saved_LIBS
6031 fi
6032
6033
6034
6035
6036
6037
6038 if test "x${with_isl}" = xno; then
6039 graphite_requested=no
6040 elif test "x${with_isl}" != x \
6041 || test "x${with_isl_include}" != x \
6042 || test "x${with_isl_lib}" != x ; then
6043 graphite_requested=yes
6044 else
6045 graphite_requested=no
6046 fi
6047
6048
6049
6050 if test "${gcc_cv_isl}" = no ; then
6051 isllibs=
6052 islinc=
6053 fi
6054
6055 if test "${graphite_requested}" = yes \
6056 && test "x${isllibs}" = x \
6057 && test "x${islinc}" = x ; then
6058
6059 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6060 fi
6061
6062
6063fi
6064
6065# If the isl check failed, disable builds of in-tree variant of isl
6066if test "x$with_isl" = xno ||
6067 test "x$gcc_cv_isl" = xno; then
6068 noconfigdirs="$noconfigdirs isl"
6069 islinc=
6070fi
6071
6072
6073
6074
6075# Check for LTO support.
6076# Check whether --enable-lto was given.
6077if test "${enable_lto+set}" = set; then :
6078 enableval=$enable_lto; enable_lto=$enableval
6079else
6080 enable_lto=yes; default_enable_lto=yes
6081fi
6082
6083
6084
6085
6086
6087target_elf=no
6088case $target in
6089 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6090 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6091 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6092 nvptx-*-none)
6093 target_elf=no
6094 ;;
6095 *)
6096 target_elf=yes
6097 ;;
6098esac
6099
6100if test $target_elf = yes; then :
6101 # ELF platforms build the lto-plugin always.
6102 build_lto_plugin=yes
6103
6104else
6105 if test x"$default_enable_lto" = x"yes" ; then
6106 case $target in
6107 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6108 # On other non-ELF platforms, LTO has yet to be validated.
6109 *) enable_lto=no ;;
6110 esac
6111 else
6112 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6113 # It would also be nice to check the binutils support, but we don't
6114 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6115 # warn during gcc/ subconfigure; unless you're bootstrapping with
6116 # -flto it won't be needed until after installation anyway.
6117 case $target in
6118 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6119 *) if test x"$enable_lto" = x"yes"; then
6120 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6121 fi
6122 ;;
6123 esac
6124 fi
6125 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6126 # Build it unless LTO was explicitly disabled.
6127 case $target in
6128 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6129 *) ;;
6130 esac
6131
6132fi
6133
6134
6135# Check whether --enable-linker-plugin-configure-flags was given.
6136if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6137 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6138else
6139 extra_linker_plugin_configure_flags=
6140fi
6141
6142
6143# Check whether --enable-linker-plugin-flags was given.
6144if test "${enable_linker_plugin_flags+set}" = set; then :
6145 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6146else
6147 extra_linker_plugin_flags=
6148fi
6149
6150
6151
6152# Enable --enable-host-shared.
6153# Checked early to determine whether jit is an 'all' language
6154# Check whether --enable-host-shared was given.
6155if test "${enable_host_shared+set}" = set; then :
6156 enableval=$enable_host_shared; host_shared=$enableval
6157else
6158 host_shared=no
6159fi
6160
6161
6162
6163# By default, C and C++ are the only stage 1 languages.
6164stage1_languages=,c,
6165
6166# Target libraries that we bootstrap.
6167bootstrap_target_libs=,target-libgcc,
6168
6169# Figure out what language subdirectories are present.
6170# Look if the user specified --enable-languages="..."; if not, use
6171# the environment variable $LANGUAGES if defined. $LANGUAGES might
6172# go away some day.
6173# NB: embedded tabs in this IF block -- do not untabify
6174if test -d ${srcdir}/gcc; then
6175 if test x"${enable_languages+set}" != xset; then
6176 if test x"${LANGUAGES+set}" = xset; then
6177 enable_languages="${LANGUAGES}"
6178 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6179 else
6180 enable_languages=default
6181 fi
6182 else
6183 if test x"${enable_languages}" = x ||
6184 test x"${enable_languages}" = xyes;
6185 then
6186 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6187 exit 1
6188 fi
6189 fi
6190 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6191
6192 # 'f95' is the old name for the 'fortran' language. We issue a warning
6193 # and make the substitution.
6194 case ,${enable_languages}, in
6195 *,f95,*)
6196 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6197 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6198 ;;
6199 esac
6200
6201 # If bootstrapping, C++ must be enabled.
6202 case ",$enable_languages,:$enable_bootstrap" in
6203 *,c++,*:*) ;;
6204 *:yes)
6205 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6206 enable_languages="${enable_languages},c++"
6207 else
6208 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6209 fi
6210 ;;
6211 esac
6212
6213 # First scan to see if an enabled language requires some other language.
6214 # We assume that a given config-lang.in will list all the language
6215 # front ends it requires, even if some are required indirectly.
6216 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6217 case ${lang_frag} in
6218 ..) ;;
6219 # The odd quoting in the next line works around
6220 # an apparent bug in bash 1.12 on linux.
6221 ${srcdir}/gcc/[*]/config-lang.in) ;;
6222 *)
6223 # From the config-lang.in, get $language, $lang_requires, and
6224 # $lang_requires_boot_languages.
6225 language=
6226 lang_requires=
6227 lang_requires_boot_languages=
6228 # set srcdir during sourcing lang_frag to the gcc dir.
6229 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6230 # polutes this shell
6231 saved_srcdir=${srcdir}
6232 srcdir=${srcdir}/gcc . ${lang_frag}
6233 srcdir=${saved_srcdir}
6234 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6235 case ,${enable_languages}, in
6236 *,$other,*) ;;
6237 *,default,*) ;;
6238 *,all,*) ;;
6239 *,$language,*)
6240 echo " \`$other' language required by \`$language'; enabling" 1>&2
6241 enable_languages="${enable_languages},${other}"
6242 ;;
6243 esac
6244 done
6245 for other in ${lang_requires_boot_languages} ; do
6246 if test "$other" != "c"; then
6247 case ,${enable_stage1_languages}, in
6248 *,$other,*) ;;
6249 *,default,*) ;;
6250 *,all,*) ;;
6251 *)
6252 case ,${enable_languages}, in
6253 *,$language,*)
6254 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6255 enable_stage1_languages="$enable_stage1_languages,${other}"
6256 ;;
6257 esac
6258 ;;
6259 esac
6260 fi
6261 done
6262 ;;
6263 esac
6264 done
6265
6266 new_enable_languages=,c,
6267
6268 # If LTO is enabled, add the LTO front end.
6269 if test "$enable_lto" = "yes" ; then
6270 case ,${enable_languages}, in
6271 *,lto,*) ;;
6272 *) enable_languages="${enable_languages},lto" ;;
6273 esac
6274 if test "${build_lto_plugin}" = "yes" ; then
6275 configdirs="$configdirs lto-plugin"
6276 fi
6277 fi
6278
6279 # If we're building an offloading compiler, add the LTO front end.
6280 if test x"$enable_as_accelerator_for" != x ; then
6281 case ,${enable_languages}, in
6282 *,lto,*) ;;
6283 *) enable_languages="${enable_languages},lto" ;;
6284 esac
6285 fi
6286
6287 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6288 potential_languages=,c,
6289
6290 enabled_target_libs=
6291 disabled_target_libs=
6292
6293 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6294 case ${lang_frag} in
6295 ..) ;;
6296 # The odd quoting in the next line works around
6297 # an apparent bug in bash 1.12 on linux.
6298 ${srcdir}/gcc/[*]/config-lang.in) ;;
6299 *)
6300 # From the config-lang.in, get $language, $target_libs,
6301 # $lang_dirs, $boot_language, and $build_by_default
6302 language=
6303 target_libs=
6304 lang_dirs=
6305 subdir_requires=
6306 boot_language=no
6307 build_by_default=yes
6308 # set srcdir during sourcing. See above about save & restore
6309 saved_srcdir=${srcdir}
6310 srcdir=${srcdir}/gcc . ${lang_frag}
6311 srcdir=${saved_srcdir}
6312 if test x${language} = x; then
6313 echo "${lang_frag} doesn't set \$language." 1>&2
6314 exit 1
6315 fi
6316
6317 if test "$language" = "c++"; then
6318 boot_language=yes
6319 fi
6320
6321 add_this_lang=no
6322 # C is always enabled, so no need to add it again
6323 if test "$language" != "c"; then
6324 case ,${enable_languages}, in
6325 *,${language},*)
6326 # Language was explicitly selected; include it
6327 add_this_lang=yes
6328 ;;
6329 *,all,*)
6330 # All languages are enabled
6331 add_this_lang=all
6332 ;;
6333 *,default,*)
6334 # 'default' was selected, select it if it is a default language
6335 add_this_lang=${build_by_default}
6336 ;;
6337 esac
6338 fi
6339
6340 # Disable languages that need other directories if these aren't available.
6341 for i in $subdir_requires; do
6342 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6343 case ${add_this_lang} in
6344 yes)
6345 # Specifically requested language; tell them.
6346 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6347 ;;
6348 all)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6350$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6351 add_this_lang=unsupported
6352 ;;
6353 *)
6354 # Silently disable.
6355 add_this_lang=unsupported
6356 ;;
6357 esac
6358 done
6359
6360 # Disable Ada if no preexisting GNAT is available.
6361 case ${add_this_lang}:${language}:${have_gnat} in
6362 yes:ada:no)
6363 # Specifically requested language; tell them.
6364 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6365 ;;
6366 all:ada:no)
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6368$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6369 add_this_lang=unsupported
6370 ;;
6371 *:ada:no)
6372 # Silently disable.
6373 add_this_lang=unsupported
6374 ;;
6375 esac
6376
6377 # Disable jit if -enable-host-shared not specified
6378 case ${add_this_lang}:${language}:${host_shared} in
6379 yes:jit:no)
6380 # PR jit/64780: explicitly specify --enable-host-shared
6381 as_fn_error $? "
6382Enabling language \"jit\" requires --enable-host-shared.
6383
6384--enable-host-shared typically slows the rest of the compiler down by
6385a few %, so you must explicitly enable it.
6386
6387If you want to build both the jit and the regular compiler, it is often
6388best to do this via two separate configure/builds, in separate
6389directories, to avoid imposing the performance cost of
6390--enable-host-shared on the regular compiler." "$LINENO" 5
6391 ;;
6392 all:jit:no)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6394$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6395 add_this_lang=unsupported
6396 ;;
6397 *:jit:no)
6398 # Silently disable.
6399 add_this_lang=unsupported
6400 ;;
6401 esac
6402
6403 # Disable a language that is unsupported by the target.
6404 case "${add_this_lang}: $unsupported_languages " in
6405 no:*) ;;
6406 unsupported:*) ;;
6407 *:*" $language "*)
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6409$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6410 add_this_lang=unsupported
6411 ;;
6412 esac
6413
6414 case $add_this_lang in
6415 unsupported)
6416 # Remove language-dependent dirs.
6417 disabled_target_libs="$disabled_target_libs $target_libs"
6418 noconfigdirs="$noconfigdirs $lang_dirs"
6419 ;;
6420 no)
6421 # Remove language-dependent dirs; still show language as supported.
6422 disabled_target_libs="$disabled_target_libs $target_libs"
6423 noconfigdirs="$noconfigdirs $lang_dirs"
6424 potential_languages="${potential_languages}${language},"
6425 ;;
6426 all|yes)
6427 new_enable_languages="${new_enable_languages}${language},"
6428 potential_languages="${potential_languages}${language},"
6429 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6430 enabled_target_libs="$enabled_target_libs $target_libs"
6431 case "${boot_language}:,$enable_stage1_languages," in
6432 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6433 # Add to (comma-separated) list of stage 1 languages.
6434 case ",$stage1_languages," in
6435 *,$language,* | ,yes, | ,all,) ;;
6436 *) stage1_languages="${stage1_languages}${language}," ;;
6437 esac
6438 # We need to bootstrap any supporting libraries.
6439 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6440 ;;
6441 esac
6442 ;;
6443 esac
6444 ;;
6445 esac
6446 done
6447
6448 # Add target libraries which are only needed for disabled languages
6449 # to noconfigdirs.
6450 if test -n "$disabled_target_libs"; then
6451 for dir in $disabled_target_libs; do
6452 case " $enabled_target_libs " in
6453 *" ${dir} "*) ;;
6454 *) noconfigdirs="$noconfigdirs $dir" ;;
6455 esac
6456 done
6457 fi
6458
6459 # Check whether --enable-stage1-languages was given.
6460if test "${enable_stage1_languages+set}" = set; then :
6461 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6462 ,no,|,,)
6463 # Set it to something that will have no effect in the loop below
6464 enable_stage1_languages=c ;;
6465 ,yes,)
6466 enable_stage1_languages=`echo $new_enable_languages | \
6467 sed -e "s/^,//" -e "s/,$//" ` ;;
6468 *,all,*)
6469 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6470 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6471 esac
6472
6473 # Add "good" languages from enable_stage1_languages to stage1_languages,
6474 # while "bad" languages go in missing_languages. Leave no duplicates.
6475 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6476 case $potential_languages in
6477 *,$i,*)
6478 case $stage1_languages in
6479 *,$i,*) ;;
6480 *) stage1_languages="$stage1_languages$i," ;;
6481 esac ;;
6482 *)
6483 case $missing_languages in
6484 *,$i,*) ;;
6485 *) missing_languages="$missing_languages$i," ;;
6486 esac ;;
6487 esac
6488 done
6489fi
6490
6491
6492 # Remove leading/trailing commas that were added for simplicity
6493 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6494 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6495 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6496 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6497
6498 if test "x$missing_languages" != x; then
6499 as_fn_error $? "
6500The following requested languages could not be built: ${missing_languages}
6501Supported languages are: ${potential_languages}" "$LINENO" 5
6502 fi
6503 if test "x$new_enable_languages" != "x$enable_languages"; then
6504 echo The following languages will be built: ${new_enable_languages}
6505 enable_languages="$new_enable_languages"
6506 fi
6507
6508
6509 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6510fi
6511
6512# Handle --disable-<component> generically.
6513for dir in $configdirs $build_configdirs $target_configdirs ; do
6514 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6515 varname=`echo $dirname | sed -e s/+/_/g`
6516 if eval test x\${enable_${varname}} "=" xno ; then
6517 noconfigdirs="$noconfigdirs $dir"
6518 fi
6519done
6520
6521# Check for Boehm's garbage collector
6522# Check whether --enable-objc-gc was given.
6523if test "${enable_objc_gc+set}" = set; then :
6524 enableval=$enable_objc_gc;
6525fi
6526
6527
6528# Check whether --with-target-bdw-gc was given.
6529if test "${with_target_bdw_gc+set}" = set; then :
6530 withval=$with_target_bdw_gc;
6531fi
6532
6533
6534# Check whether --with-target-bdw-gc-include was given.
6535if test "${with_target_bdw_gc_include+set}" = set; then :
6536 withval=$with_target_bdw_gc_include;
6537fi
6538
6539
6540# Check whether --with-target-bdw-gc-lib was given.
6541if test "${with_target_bdw_gc_lib+set}" = set; then :
6542 withval=$with_target_bdw_gc_lib;
6543fi
6544
6545
6546case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6548$as_echo_n "checking for bdw garbage collector... " >&6; }
6549 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6551$as_echo "using bdw-gc in default locations" >&6; }
6552 else
6553 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6554 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6555 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6556 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6559$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6560 fi
6561 fi
6562esac
6563
6564# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6565case ,${enable_languages}, in
6566 *,c++,*)
6567 # Disable libitm, libsanitizer if we're not building libstdc++
6568 case "${noconfigdirs}" in
6569 *target-libstdc++-v3*)
6570 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6571 ;;
6572 *) ;;
6573 esac
6574 ;;
6575 *)
6576 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6577 ;;
6578esac
6579
6580# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6581# $build_configdirs and $target_configdirs.
6582# If we have the source for $noconfigdirs entries, add them to $notsupp.
6583
6584notsupp=""
6585for dir in . $skipdirs $noconfigdirs ; do
6586 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6587 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6588 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6589 if test -r $srcdir/$dirname/configure ; then
6590 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6591 true
6592 else
6593 notsupp="$notsupp $dir"
6594 fi
6595 fi
6596 fi
6597 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6598 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6599 if test -r $srcdir/$dirname/configure ; then
6600 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6601 true
6602 else
6603 notsupp="$notsupp $dir"
6604 fi
6605 fi
6606 fi
6607 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6608 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6609 if test -r $srcdir/$dirname/configure ; then
6610 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6611 true
6612 else
6613 notsupp="$notsupp $dir"
6614 fi
6615 fi
6616 fi
6617done
6618
6619# Quietly strip out all directories which aren't configurable in this tree.
6620# This relies on all configurable subdirectories being autoconfiscated, which
6621# is now the case.
6622build_configdirs_all="$build_configdirs"
6623build_configdirs=
6624for i in ${build_configdirs_all} ; do
6625 j=`echo $i | sed -e s/build-//g`
6626 if test -f ${srcdir}/$j/configure ; then
6627 build_configdirs="${build_configdirs} $i"
6628 fi
6629done
6630
6631configdirs_all="$configdirs"
6632configdirs=
6633for i in ${configdirs_all} ; do
6634 if test -f ${srcdir}/$i/configure ; then
6635 configdirs="${configdirs} $i"
6636 fi
6637done
6638
6639target_configdirs_all="$target_configdirs"
6640target_configdirs=
6641for i in ${target_configdirs_all} ; do
6642 j=`echo $i | sed -e s/target-//g`
6643 if test -f ${srcdir}/$j/configure ; then
6644 target_configdirs="${target_configdirs} $i"
6645 fi
6646done
6647
6648# libiberty-linker-plugin is special: it doesn't have its own source directory,
6649# so we have to add it after the preceding checks.
6650if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6651then
6652 case " $configdirs " in
6653 *" libiberty "*)
6654 # If we can build libiberty, we can also build libiberty-linker-plugin.
6655 configdirs="$configdirs libiberty-linker-plugin"
6656 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6657 --with-libiberty=../libiberty-linker-plugin";;
6658 *)
6659 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6660 esac
6661fi
6662
6663# Sometimes we have special requirements for the host libiberty.
6664extra_host_libiberty_configure_flags=
6665extra_host_zlib_configure_flags=
6666case " $configdirs " in
6667 *" lto-plugin "* | *" libcc1 "*)
6668 # When these are to be built as shared libraries, the same applies to
6669 # libiberty.
6670 extra_host_libiberty_configure_flags=--enable-shared
6671 ;;
6672 *" bfd "*)
6673 # When bfd is to be built as a shared library, the same applies to
6674 # zlib.
6675 if test "$enable_shared" = "yes"; then
6676 extra_host_zlib_configure_flags=--enable-host-shared
6677 fi
6678 ;;
6679esac
6680
6681
6682
6683# Produce a warning message for the subdirs we can't configure.
6684# This isn't especially interesting in the Cygnus tree, but in the individual
6685# FSF releases, it's important to let people know when their machine isn't
6686# supported by the one or two programs in a package.
6687
6688if test -n "${notsupp}" && test -z "${norecursion}" ; then
6689 # If $appdirs is non-empty, at least one of those directories must still
6690 # be configured, or we error out. (E.g., if the gas release supports a
6691 # specified target in some subdirs but not the gas subdir, we shouldn't
6692 # pretend that all is well.)
6693 if test -n "$appdirs" ; then
6694 for dir in $appdirs ; do
6695 if test -r $dir/Makefile.in ; then
6696 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6697 appdirs=""
6698 break
6699 fi
6700 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6701 appdirs=""
6702 break
6703 fi
6704 fi
6705 done
6706 if test -n "$appdirs" ; then
6707 echo "*** This configuration is not supported by this package." 1>&2
6708 exit 1
6709 fi
6710 fi
6711 # Okay, some application will build, or we don't care to check. Still
6712 # notify of subdirs not getting built.
6713 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6714 echo " ${notsupp}" 1>&2
6715 echo " (Any other directories should still work fine.)" 1>&2
6716fi
6717
6718case "$host" in
6719 *msdosdjgpp*)
6720 enable_gdbtk=no ;;
6721esac
6722
6723# To find our prefix, in gcc_cv_tool_prefix.
6724
6725# The user is always right.
6726if test "${PATH_SEPARATOR+set}" != set; then
6727 echo "#! /bin/sh" >conf$$.sh
6728 echo "exit 0" >>conf$$.sh
6729 chmod +x conf$$.sh
6730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6731 PATH_SEPARATOR=';'
6732 else
6733 PATH_SEPARATOR=:
6734 fi
6735 rm -f conf$$.sh
6736fi
6737
6738
6739 get_gcc_base_ver="cat"
6740
6741# Check whether --with-gcc-major-version-only was given.
6742if test "${with_gcc_major_version_only+set}" = set; then :
6743 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6744 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6745 fi
6746
6747fi
6748
6749
6750
6751
6752
6753
6754if test "x$exec_prefix" = xNONE; then
6755 if test "x$prefix" = xNONE; then
6756 gcc_cv_tool_prefix=$ac_default_prefix
6757 else
6758 gcc_cv_tool_prefix=$prefix
6759 fi
6760else
6761 gcc_cv_tool_prefix=$exec_prefix
6762fi
6763
6764# If there is no compiler in the tree, use the PATH only. In any
6765# case, if there is no compiler in the tree nobody should use
6766# AS_FOR_TARGET and LD_FOR_TARGET.
6767if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6768 if test x$with_gcc_major_version_only = xyes ; then
6769 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6770 else
6771 gcc_version=`cat $srcdir/gcc/BASE-VER`
6772 fi
6773 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6774 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6775 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6776 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6777 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6778 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6779else
6780 gcc_cv_tool_dirs=
6781fi
6782
6783if test x$build = x$target && test -n "$md_exec_prefix"; then
6784 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6785fi
6786
6787
6788
6789copy_dirs=
6790
6791
6792# Check whether --with-build-sysroot was given.
6793if test "${with_build_sysroot+set}" = set; then :
6794 withval=$with_build_sysroot; if test x"$withval" != x ; then
6795 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6796 fi
6797else
6798 SYSROOT_CFLAGS_FOR_TARGET=
6799fi
6800
6801
6802
6803
6804# Check whether --with-debug-prefix-map was given.
6805if test "${with_debug_prefix_map+set}" = set; then :
6806 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6807 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6808 for debug_map in $withval; do
6809 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6810 done
6811 fi
6812else
6813 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6814fi
6815
6816
6817
6818# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6819# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6820# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6821# We want to ensure that TARGET libraries (which we know are built with
6822# gcc) are built with "-O2 -g", so include those options when setting
6823# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6824if test "x$CFLAGS_FOR_TARGET" = x; then
6825 if test "x${is_cross_compiler}" = xyes; then
6826 CFLAGS_FOR_TARGET="-g -O2"
6827 else
6828 CFLAGS_FOR_TARGET=$CFLAGS
6829 case " $CFLAGS " in
6830 *" -O2 "*) ;;
6831 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6832 esac
6833 case " $CFLAGS " in
6834 *" -g "* | *" -g3 "*) ;;
6835 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6836 esac
6837 fi
6838fi
6839
6840
6841if test "x$CXXFLAGS_FOR_TARGET" = x; then
6842 if test "x${is_cross_compiler}" = xyes; then
6843 CXXFLAGS_FOR_TARGET="-g -O2"
6844 else
6845 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6846 case " $CXXFLAGS " in
6847 *" -O2 "*) ;;
6848 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6849 esac
6850 case " $CXXFLAGS " in
6851 *" -g "* | *" -g3 "*) ;;
6852 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6853 esac
6854 fi
6855fi
6856
6857
6858
6859
6860# Handle --with-headers=XXX. If the value is not "yes", the contents of
6861# the named directory are copied to $(tooldir)/sys-include.
6862if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6863 if test x${is_cross_compiler} = xno ; then
6864 echo 1>&2 '***' --with-headers is only supported when cross compiling
6865 exit 1
6866 fi
6867 if test x"${with_headers}" != xyes ; then
6868 x=${gcc_cv_tool_prefix}
6869 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6870 fi
6871fi
6872
6873# Handle --with-libs=XXX. If the value is not "yes", the contents of
6874# the name directories are copied to $(tooldir)/lib. Multiple directories
6875# are permitted.
6876if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6877 if test x${is_cross_compiler} = xno ; then
6878 echo 1>&2 '***' --with-libs is only supported when cross compiling
6879 exit 1
6880 fi
6881 if test x"${with_libs}" != xyes ; then
6882 # Copy the libraries in reverse order, so that files in the first named
6883 # library override files in subsequent libraries.
6884 x=${gcc_cv_tool_prefix}
6885 for l in ${with_libs}; do
6886 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6887 done
6888 fi
6889fi
6890
6891# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6892#
6893# This is done by determining whether or not the appropriate directory
6894# is available, and by checking whether or not specific configurations
6895# have requested that this magic not happen.
6896#
6897# The command line options always override the explicit settings in
6898# configure.ac, and the settings in configure.ac override this magic.
6899#
6900# If the default for a toolchain is to use GNU as and ld, and you don't
6901# want to do that, then you should use the --without-gnu-as and
6902# --without-gnu-ld options for the configure script. Similarly, if
6903# the default is to use the included zlib and you don't want to do that,
6904# you should use the --with-system-zlib option for the configure script.
6905
6906if test x${use_gnu_as} = x &&
6907 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6908 with_gnu_as=yes
6909 extra_host_args="$extra_host_args --with-gnu-as"
6910fi
6911
6912if test x${use_gnu_ld} = x &&
6913 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6914 with_gnu_ld=yes
6915 extra_host_args="$extra_host_args --with-gnu-ld"
6916fi
6917
6918if test x${use_included_zlib} = x &&
6919 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6920 :
6921else
6922 with_system_zlib=yes
6923 extra_host_args="$extra_host_args --with-system-zlib"
6924fi
6925
6926# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6927# can detect this case.
6928
6929if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6930 with_newlib=yes
6931 extra_host_args="$extra_host_args --with-newlib"
6932fi
6933
6934# Handle ${copy_dirs}
6935set fnord ${copy_dirs}
6936shift
6937while test $# != 0 ; do
6938 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6939 :
6940 else
6941 echo Copying $1 to $2
6942
6943 # Use the install script to create the directory and all required
6944 # parent directories.
6945 if test -d $2 ; then
6946 :
6947 else
6948 echo >config.temp
6949 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6950 fi
6951
6952 # Copy the directory, assuming we have tar.
6953 # FIXME: Should we use B in the second tar? Not all systems support it.
6954 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6955
6956 # It is the responsibility of the user to correctly adjust all
6957 # symlinks. If somebody can figure out how to handle them correctly
6958 # here, feel free to add the code.
6959
6960 echo $1 > $2/COPIED
6961 fi
6962 shift; shift
6963done
6964
6965# Determine a target-dependent exec_prefix that the installed
6966# gcc will search in. Keep this list sorted by triplet, with
6967# the *-*-osname triplets last.
6968md_exec_prefix=
6969case "${target}" in
6970 i[34567]86-pc-msdosdjgpp*)
6971 md_exec_prefix=/dev/env/DJDIR/bin
6972 ;;
6973 *-*-hpux* | \
6974 *-*-nto-qnx* | \
6975 *-*-solaris2*)
6976 md_exec_prefix=/usr/ccs/bin
6977 ;;
6978esac
6979
6980extra_arflags_for_target=
6981extra_nmflags_for_target=
6982extra_ranlibflags_for_target=
6983target_makefile_frag=/dev/null
6984case "${target}" in
6985 spu-*-*)
6986 target_makefile_frag="config/mt-spu"
6987 ;;
6988 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6989 target_makefile_frag="config/mt-sde"
6990 ;;
6991 mipsisa*-*-elfoabi*)
6992 target_makefile_frag="config/mt-mips-elfoabi"
6993 ;;
6994 mips*-*-*linux* | mips*-*-gnu*)
6995 target_makefile_frag="config/mt-mips-gnu"
6996 ;;
6997 nios2-*-elf*)
6998 target_makefile_frag="config/mt-nios2-elf"
6999 ;;
7000 *-*-linux-android*)
7001 target_makefile_frag="config/mt-android"
7002 ;;
7003 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7004 target_makefile_frag="config/mt-gnu"
7005 ;;
7006 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7007 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7008 # commands to handle both 32-bit and 64-bit objects. These flags are
7009 # harmless if we're using GNU nm or ar.
7010 extra_arflags_for_target=" -X32_64"
7011 extra_nmflags_for_target=" -B -X32_64"
7012 ;;
7013esac
7014
7015alphaieee_frag=/dev/null
7016case $target in
7017 alpha*-*-*)
7018 # This just makes sure to use the -mieee option to build target libs.
7019 # This should probably be set individually by each library.
7020 alphaieee_frag="config/mt-alphaieee"
7021 ;;
7022esac
7023
7024# If --enable-target-optspace always use -Os instead of -O2 to build
7025# the target libraries, similarly if it is not specified, use -Os
7026# on selected platforms.
7027ospace_frag=/dev/null
7028case "${enable_target_optspace}:${target}" in
7029 yes:*)
7030 ospace_frag="config/mt-ospace"
7031 ;;
7032 :d30v-*)
7033 ospace_frag="config/mt-d30v"
7034 ;;
7035 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7036 ospace_frag="config/mt-ospace"
7037 ;;
7038 no:* | :*)
7039 ;;
7040 *)
7041 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7042 ;;
7043esac
7044
7045# Some systems (e.g., one of the i386-aix systems the gas testers are
7046# using) don't handle "\$" correctly, so don't use it here.
7047tooldir='${exec_prefix}'/${target_noncanonical}
7048build_tooldir=${tooldir}
7049
7050# Create a .gdbinit file which runs the one in srcdir
7051# and tells GDB to look there for source files.
7052
7053if test -r ${srcdir}/.gdbinit ; then
7054 case ${srcdir} in
7055 .) ;;
7056 *) cat > ./.gdbinit <<EOF
7057# ${NO_EDIT}
7058dir ${srcdir}
7059dir .
7060source ${srcdir}/.gdbinit
7061EOF
7062 ;;
7063 esac
7064fi
7065
7066# Make sure that the compiler is able to generate an executable. If it
7067# can't, we are probably in trouble. We don't care whether we can run the
7068# executable--we might be using a cross compiler--we only care whether it
7069# can be created. At this point the main configure script has set CC.
7070we_are_ok=no
7071echo "int main () { return 0; }" > conftest.c
7072${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7073if test $? = 0 ; then
7074 if test -s conftest || test -s conftest.exe ; then
7075 we_are_ok=yes
7076 fi
7077fi
7078case $we_are_ok in
7079 no)
7080 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7081 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7082 rm -f conftest*
7083 exit 1
7084 ;;
7085esac
7086rm -f conftest*
7087
7088# Decide which environment variable is used to find dynamic libraries.
7089case "${host}" in
7090 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7091 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7092 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7093 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7094esac
7095
7096# On systems where the dynamic library environment variable is PATH,
7097# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7098# built executables to PATH.
7099if test "$RPATH_ENVVAR" = PATH; then
7100 GCC_SHLIB_SUBDIR=/shlib
7101else
7102 GCC_SHLIB_SUBDIR=
7103fi
7104
7105# Adjust the toplevel makefile according to whether bootstrap was selected.
7106case $enable_bootstrap in
7107 yes)
7108 bootstrap_suffix=bootstrap
7109 BUILD_CONFIG=bootstrap-debug
7110 ;;
7111 no)
7112 bootstrap_suffix=no-bootstrap
7113 BUILD_CONFIG=
7114 ;;
7115esac
7116
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7118$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7119
7120
7121# Check whether --with-build-config was given.
7122if test "${with_build_config+set}" = set; then :
7123 withval=$with_build_config; case $with_build_config in
7124 yes) with_build_config= ;;
7125 no) with_build_config= BUILD_CONFIG= ;;
7126 esac
7127fi
7128
7129
7130if test "x${with_build_config}" != x; then
7131 BUILD_CONFIG=$with_build_config
7132else
7133 case $BUILD_CONFIG in
7134 bootstrap-debug)
7135 if echo "int f (void) { return 0; }" > conftest.c &&
7136 ${CC} -c conftest.c &&
7137 mv conftest.o conftest.o.g0 &&
7138 ${CC} -c -g conftest.c &&
7139 mv conftest.o conftest.o.g &&
7140 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7141 :
7142 else
7143 BUILD_CONFIG=
7144 fi
7145 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7146 ;;
7147 esac
7148fi
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7150$as_echo "$BUILD_CONFIG" >&6; }
7151
7152
7153# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7155$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7156# Check whether --enable-vtable-verify was given.
7157if test "${enable_vtable_verify+set}" = set; then :
7158 enableval=$enable_vtable_verify; case "$enableval" in
7159 yes) enable_vtable_verify=yes ;;
7160 no) enable_vtable_verify=no ;;
7161 *) enable_vtable_verify=no;;
7162 esac
7163else
7164 enable_vtable_verify=no
7165fi
7166
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7168$as_echo "$enable_vtable_verify" >&6; }
7169
7170# Record target_configdirs and the configure arguments for target and
7171# build configuration in Makefile.
7172target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7173build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7174bootstrap_fixincludes=no
7175
7176# If we are building libgomp, bootstrap it.
7177if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7178 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7179fi
7180
7181# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7182# or bootstrap-ubsan, bootstrap it.
7183if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7184 case "$BUILD_CONFIG" in
7185 *bootstrap-asan* | *bootstrap-ubsan* )
7186 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7187 bootstrap_fixincludes=yes
7188 ;;
7189 esac
7190fi
7191
7192# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7193if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7194 test "$enable_vtable_verify" != no; then
7195 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7196fi
7197
7198# Determine whether gdb needs tk/tcl or not.
7199# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7200# and in that case we want gdb to be built without tk. Ugh!
7201# In fact I believe gdb is the *only* package directly dependent on tk,
7202# so we should be able to put the 'maybe's in unconditionally and
7203# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7204# 100% sure that that's safe though.
7205
7206gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7207case "$enable_gdbtk" in
7208 no)
7209 GDB_TK="" ;;
7210 yes)
7211 GDB_TK="${gdb_tk}" ;;
7212 *)
7213 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7214 # distro. Eventually someone will fix this and move Insight, nee
7215 # gdbtk to a separate directory.
7216 if test -d ${srcdir}/gdb/gdbtk ; then
7217 GDB_TK="${gdb_tk}"
7218 else
7219 GDB_TK=""
7220 fi
7221 ;;
7222esac
7223CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7224INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7225
7226# gdb depends on gnulib, but as nothing else does, only include it if
7227# gdb is built.
7228if echo " ${configdirs} " | grep " gdb " > /dev/null 2>&1 ; then
7229 # The Makefile provides the ordering, so it's enough here to add
7230 # gnulib to the list.
7231 configdirs="${configdirs} gnulib"
7232fi
7233
7234# Strip out unwanted targets.
7235
7236# While at that, we remove Makefiles if we were started for recursive
7237# configuration, so that the top-level Makefile reconfigures them,
7238# like we used to do when configure itself was recursive.
7239
7240# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7241# but now we're fixing up the Makefile ourselves with the additional
7242# commands passed to AC_CONFIG_FILES. Use separate variables
7243# extrasub-{build,host,target} not because there is any reason to split
7244# the substitutions up that way, but only to remain below the limit of
7245# 99 commands in a script, for HP-UX sed.
7246
7247# Do not nest @if/@endif or @unless/@endunless pairs, because
7248# configure will not warn you at all.
7249
7250case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7251 yes:yes:*\ gold\ *:*,c++,*) ;;
7252 yes:yes:*\ gold\ *:*)
7253 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7254 ;;
7255esac
7256
7257extrasub_build=
7258for module in ${build_configdirs} ; do
7259 if test -z "${no_recursion}" \
7260 && test -f ${build_subdir}/${module}/Makefile; then
7261 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7262 rm -f ${build_subdir}/${module}/Makefile
7263 fi
7264 extrasub_build="$extrasub_build
7265/^@if build-$module\$/d
7266/^@endif build-$module\$/d
7267/^@unless build-$module\$/,/^@endunless build-$module\$/d
7268/^@if build-$module-$bootstrap_suffix\$/d
7269/^@endif build-$module-$bootstrap_suffix\$/d
7270/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7271done
7272extrasub_host=
7273for module in ${configdirs} ; do
7274 if test -z "${no_recursion}"; then
7275 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7276 if test -f ${file}; then
7277 echo 1>&2 "*** removing ${file} to force reconfigure"
7278 rm -f ${file}
7279 fi
7280 done
7281 fi
7282 case ${module},${bootstrap_fixincludes} in
7283 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7284 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7285 esac
7286 extrasub_host="$extrasub_host
7287/^@if $module\$/d
7288/^@endif $module\$/d
7289/^@unless $module\$/,/^@endunless $module\$/d
7290/^@if $module-$host_bootstrap_suffix\$/d
7291/^@endif $module-$host_bootstrap_suffix\$/d
7292/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7293done
7294extrasub_target=
7295for module in ${target_configdirs} ; do
7296 if test -z "${no_recursion}" \
7297 && test -f ${target_subdir}/${module}/Makefile; then
7298 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7299 rm -f ${target_subdir}/${module}/Makefile
7300 fi
7301
7302 # We only bootstrap target libraries listed in bootstrap_target_libs.
7303 case $bootstrap_target_libs in
7304 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7305 *) target_bootstrap_suffix=no-bootstrap ;;
7306 esac
7307
7308 extrasub_target="$extrasub_target
7309/^@if target-$module\$/d
7310/^@endif target-$module\$/d
7311/^@unless target-$module\$/,/^@endunless target-$module\$/d
7312/^@if target-$module-$target_bootstrap_suffix\$/d
7313/^@endif target-$module-$target_bootstrap_suffix\$/d
7314/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7315done
7316
7317# Do the final fixup along with target modules.
7318extrasub_target="$extrasub_target
7319/^@if /,/^@endif /d
7320/^@unless /d
7321/^@endunless /d"
7322
7323# Create the serialization dependencies. This uses a temporary file.
7324
7325# Check whether --enable-serial-configure was given.
7326if test "${enable_serial_configure+set}" = set; then :
7327 enableval=$enable_serial_configure;
7328fi
7329
7330
7331case ${enable_serial_configure} in
7332 yes)
7333 enable_serial_build_configure=yes
7334 enable_serial_host_configure=yes
7335 enable_serial_target_configure=yes
7336 ;;
7337esac
7338
7339# These force 'configure's to be done one at a time, to avoid problems
7340# with contention over a shared config.cache.
7341rm -f serdep.tmp
7342echo '# serdep.tmp' > serdep.tmp
7343olditem=
7344test "x${enable_serial_build_configure}" = xyes &&
7345for item in ${build_configdirs} ; do
7346 case ${olditem} in
7347 "") ;;
7348 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7349 esac
7350 olditem=${item}
7351done
7352olditem=
7353test "x${enable_serial_host_configure}" = xyes &&
7354for item in ${configdirs} ; do
7355 case ${olditem} in
7356 "") ;;
7357 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7358 esac
7359 olditem=${item}
7360done
7361olditem=
7362test "x${enable_serial_target_configure}" = xyes &&
7363for item in ${target_configdirs} ; do
7364 case ${olditem} in
7365 "") ;;
7366 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7367 esac
7368 olditem=${item}
7369done
7370serialization_dependencies=serdep.tmp
7371
7372
7373# Base args. Strip norecursion, cache-file, srcdir, host, build,
7374# target, nonopt, and variable assignments. These are the ones we
7375# might not want to pass down to subconfigures. The exception being
7376# --cache-file=/dev/null, which is used to turn off the use of cache
7377# files altogether, and which should be passed on to subconfigures.
7378# Also strip program-prefix, program-suffix, and program-transform-name,
7379# so that we can pass down a consistent program-transform-name.
7380baseargs=
7381tbaseargs=
7382keep_next=no
7383skip_next=no
7384eval "set -- $ac_configure_args"
7385for ac_arg
7386do
7387 if test X"$skip_next" = X"yes"; then
7388 skip_next=no
7389 continue
7390 fi
7391 if test X"$keep_next" = X"yes"; then
7392 case $ac_arg in
7393 *\'*)
7394 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7395 esac
7396 baseargs="$baseargs '$ac_arg'"
7397 tbaseargs="$tbaseargs '$ac_arg'"
7398 keep_next=no
7399 continue
7400 fi
7401
7402 # Handle separated arguments. Based on the logic generated by
7403 # autoconf 2.59.
7404 case $ac_arg in
7405 *=* | --config-cache | -C | -disable-* | --disable-* \
7406 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7407 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7408 | -with-* | --with-* | -without-* | --without-* | --x)
7409 separate_arg=no
7410 ;;
7411 -*)
7412 separate_arg=yes
7413 ;;
7414 *)
7415 separate_arg=no
7416 ;;
7417 esac
7418
7419 skip_targ=no
7420 case $ac_arg in
7421
7422 --with-* | --without-*)
7423 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7424
7425 case $libopt in
7426 *[-_]include)
7427 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7428 ;;
7429 *[-_]lib)
7430 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7431 ;;
7432 *)
7433 lib=$libopt
7434 ;;
7435 esac
7436
7437
7438 case $lib in
7439 mpc | mpfr | gmp | isl)
7440 # If we're processing --with-$lib, --with-$lib-include or
7441 # --with-$lib-lib, for one of the libs above, and target is
7442 # different from host, don't pass the current argument to any
7443 # target library's configure.
7444 if test x$is_cross_compiler = xyes; then
7445 skip_targ=yes
7446 fi
7447 ;;
7448 esac
7449 ;;
7450 esac
7451
7452 case "$ac_arg" in
7453 --cache-file=/dev/null | \
7454 -cache-file=/dev/null )
7455 # Handled here to avoid the test to skip args below.
7456 baseargs="$baseargs '$ac_arg'"
7457 tbaseargs="$tbaseargs '$ac_arg'"
7458 # Assert: $separate_arg should always be no.
7459 keep_next=$separate_arg
7460 ;;
7461 --no*)
7462 continue
7463 ;;
7464 --c* | \
7465 --sr* | \
7466 --ho* | \
7467 --bu* | \
7468 --t* | \
7469 --program-* | \
7470 -cache_file* | \
7471 -srcdir* | \
7472 -host* | \
7473 -build* | \
7474 -target* | \
7475 -program-prefix* | \
7476 -program-suffix* | \
7477 -program-transform-name* )
7478 skip_next=$separate_arg
7479 continue
7480 ;;
7481 -*)
7482 # An option. Add it.
7483 case $ac_arg in
7484 *\'*)
7485 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7486 esac
7487 baseargs="$baseargs '$ac_arg'"
7488 if test X"$skip_targ" = Xno; then
7489 tbaseargs="$tbaseargs '$ac_arg'"
7490 fi
7491 keep_next=$separate_arg
7492 ;;
7493 *)
7494 # Either a variable assignment, or a nonopt (triplet). Don't
7495 # pass it down; let the Makefile handle this.
7496 continue
7497 ;;
7498 esac
7499done
7500# Remove the initial space we just introduced and, as these will be
7501# expanded by make, quote '$'.
7502baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7503
7504# Add in --program-transform-name, after --program-prefix and
7505# --program-suffix have been applied to it. Autoconf has already
7506# doubled dollar signs and backslashes in program_transform_name; we want
7507# the backslashes un-doubled, and then the entire thing wrapped in single
7508# quotes, because this will be expanded first by make and then by the shell.
7509# Also, because we want to override the logic in subdir configure scripts to
7510# choose program_transform_name, replace any s,x,x, with s,y,y,.
7511sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7512${program_transform_name}
7513EOF_SED
7514gcc_transform_name=`cat conftestsed.out`
7515rm -f conftestsed.out
7516baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7517tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7518if test "$silent" = yes; then
7519 baseargs="$baseargs --silent"
7520 tbaseargs="$tbaseargs --silent"
7521fi
7522baseargs="$baseargs --disable-option-checking"
7523tbaseargs="$tbaseargs --disable-option-checking"
7524
7525# Record and document user additions to sub configure arguments.
7526
7527
7528
7529
7530# For the build-side libraries, we just need to pretend we're native,
7531# and not use the same cache file. Multilibs are neither needed nor
7532# desired. We can't even use the same cache file for all build-side
7533# libraries, as they're compiled differently; some with C, some with
7534# C++ or with different feature-enabling options.
7535build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7536
7537# For host modules, accept cache file option, or specification as blank.
7538case "${cache_file}" in
7539"") # empty
7540 cache_file_option="" ;;
7541/* | [A-Za-z]:[\\/]* ) # absolute path
7542 cache_file_option="--cache-file=${cache_file}" ;;
7543*) # relative path
7544 cache_file_option="--cache-file=../${cache_file}" ;;
7545esac
7546
7547# Host dirs don't like to share a cache file either, horribly enough.
7548# This seems to be due to autoconf 2.5x stupidity.
7549host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7550
7551target_configargs="$target_configargs ${tbaseargs}"
7552
7553# Passing a --with-cross-host argument lets the target libraries know
7554# whether they are being built with a cross-compiler or being built
7555# native. However, it would be better to use other mechanisms to make the
7556# sorts of decisions they want to make on this basis. Please consider
7557# this option to be deprecated. FIXME.
7558if test x${is_cross_compiler} = xyes ; then
7559 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7560fi
7561
7562# Special user-friendly check for native x86_64-linux build, if
7563# multilib is not explicitly enabled.
7564case "$target:$have_compiler:$host:$target:$enable_multilib" in
7565 x86_64-*linux*:yes:$build:$build:)
7566 # Make sure we have a development environment that handles 32-bit
7567 dev64=no
7568 echo "int main () { return 0; }" > conftest.c
7569 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7570 if test $? = 0 ; then
7571 if test -s conftest || test -s conftest.exe ; then
7572 dev64=yes
7573 fi
7574 fi
7575 rm -f conftest*
7576 if test x${dev64} != xyes ; then
7577 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7578 fi
7579 ;;
7580esac
7581
7582# Default to --enable-multilib.
7583if test x${enable_multilib} = x ; then
7584 target_configargs="--enable-multilib ${target_configargs}"
7585fi
7586
7587# Pass --with-newlib if appropriate. Note that target_configdirs has
7588# changed from the earlier setting of with_newlib.
7589if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7590 target_configargs="--with-newlib ${target_configargs}"
7591fi
7592
7593# Different target subdirs use different values of certain variables
7594# (notably CXX). Worse, multilibs use *lots* of different values.
7595# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7596# it doesn't automatically accept command-line overrides of them.
7597# This means it's not safe for target subdirs to share a cache file,
7598# which is disgusting, but there you have it. Hopefully this can be
7599# fixed in future. It's still worthwhile to use a cache file for each
7600# directory. I think.
7601
7602# Pass the appropriate --build, --host, --target and --cache-file arguments.
7603# We need to pass --target, as newer autoconf's requires consistency
7604# for target_alias and gcc doesn't manage it consistently.
7605target_configargs="--cache-file=./config.cache ${target_configargs}"
7606
7607FLAGS_FOR_TARGET=
7608case " $target_configdirs " in
7609 *" newlib "*)
7610 case " $target_configargs " in
7611 *" --with-newlib "*)
7612 case "$target" in
7613 *-cygwin*)
7614 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7615 ;;
7616 esac
7617
7618 # If we're not building GCC, don't discard standard headers.
7619 if test -d ${srcdir}/gcc; then
7620 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7621
7622 if test "${build}" != "${host}"; then
7623 # On Canadian crosses, CC_FOR_TARGET will have already been set
7624 # by `configure', so we won't have an opportunity to add -Bgcc/
7625 # to it. This is right: we don't want to search that directory
7626 # for binaries, but we want the header files in there, so add
7627 # them explicitly.
7628 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7629
7630 # Someone might think of using the pre-installed headers on
7631 # Canadian crosses, in case the installed compiler is not fully
7632 # compatible with the compiler being built. In this case, it
7633 # would be better to flag an error than risking having
7634 # incompatible object files being constructed. We can't
7635 # guarantee that an error will be flagged, but let's hope the
7636 # compiler will do it, when presented with incompatible header
7637 # files.
7638 fi
7639 fi
7640
7641 case "${target}-${is_cross_compiler}" in
7642 i[3456789]86-*-linux*-no)
7643 # Here host == target, so we don't need to build gcc,
7644 # so we don't want to discard standard headers.
7645 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7646 ;;
7647 *)
7648 # If we're building newlib, use its generic headers last, but search
7649 # for any libc-related directories first (so make it the last -B
7650 # switch).
7651 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7652
7653 # If we're building libgloss, find the startup file, simulator library
7654 # and linker script.
7655 case " $target_configdirs " in
7656 *" libgloss "*)
7657 # Look for startup file, simulator library and maybe linker script.
7658 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7659 # Look for libnosys.a in case the target needs it.
7660 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7661 # Most targets have the linker script in the source directory.
7662 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7663 ;;
7664 esac
7665 ;;
7666 esac
7667 ;;
7668 esac
7669 ;;
7670esac
7671
7672case "$target" in
7673 x86_64-*mingw* | *-w64-mingw*)
7674 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7675 # however, use a symlink named 'mingw' in ${prefix} .
7676 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7677 ;;
7678 *-mingw*)
7679 # MinGW can't be handled as Cygwin above since it does not use newlib.
7680 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'
7681 ;;
7682esac
7683
7684# Allow the user to override the flags for
7685# our build compiler if desired.
7686if test x"${build}" = x"${host}" ; then
7687 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7688 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7689 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7690fi
7691
7692# On Canadian crosses, we'll be searching the right directories for
7693# the previously-installed cross compiler, so don't bother to add
7694# flags for directories within the install tree of the compiler
7695# being built; programs in there won't even run.
7696if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7697 # Search for pre-installed headers if nothing else fits.
7698 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7699fi
7700
7701if test "x${use_gnu_ld}" = x &&
7702 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7703 # Arrange for us to find uninstalled linker scripts.
7704 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7705fi
7706
7707# Search for other target-specific linker scripts and such.
7708case "${target}" in
7709 mep*)
7710 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7711 ;;
7712esac
7713
7714# Makefile fragments.
7715for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7716do
7717 eval fragval=\$$frag
7718 if test $fragval != /dev/null; then
7719 eval $frag=${srcdir}/$fragval
7720 fi
7721done
7722
7723
7724
7725
7726
7727# Miscellanea: directories, flags, etc.
7728
7729
7730
7731
7732
7733
7734
7735
7736# Build module lists & subconfigure args.
7737
7738
7739
7740# Host module lists & subconfigure args.
7741
7742
7743
7744
7745# Target module lists & subconfigure args.
7746
7747
7748
7749# Build tools.
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766# Generate default definitions for YACC, M4, LEX and other programs that run
7767# on the build machine. These are used if the Makefile can't locate these
7768# programs in objdir.
7769MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7770
7771for ac_prog in 'bison -y' byacc yacc
7772do
7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
7774set dummy $ac_prog; ac_word=$2
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776$as_echo_n "checking for $ac_word... " >&6; }
7777if ${ac_cv_prog_YACC+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779else
7780 if test -n "$YACC"; then
7781 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7782else
7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $PATH
7785do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790 ac_cv_prog_YACC="$ac_prog"
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7793 fi
7794done
7795 done
7796IFS=$as_save_IFS
7797
7798fi
7799fi
7800YACC=$ac_cv_prog_YACC
7801if test -n "$YACC"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7803$as_echo "$YACC" >&6; }
7804else
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
7807fi
7808
7809
7810 test -n "$YACC" && break
7811done
7812test -n "$YACC" || YACC="$MISSING bison -y"
7813
7814case " $build_configdirs " in
7815 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7816esac
7817
7818for ac_prog in bison
7819do
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821set dummy $ac_prog; ac_word=$2
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823$as_echo_n "checking for $ac_word... " >&6; }
7824if ${ac_cv_prog_BISON+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826else
7827 if test -n "$BISON"; then
7828 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7829else
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_BISON="$ac_prog"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841done
7842 done
7843IFS=$as_save_IFS
7844
7845fi
7846fi
7847BISON=$ac_cv_prog_BISON
7848if test -n "$BISON"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7850$as_echo "$BISON" >&6; }
7851else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853$as_echo "no" >&6; }
7854fi
7855
7856
7857 test -n "$BISON" && break
7858done
7859test -n "$BISON" || BISON="$MISSING bison"
7860
7861case " $build_configdirs " in
7862 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7863esac
7864
7865for ac_prog in gm4 gnum4 m4
7866do
7867 # Extract the first word of "$ac_prog", so it can be a program name with args.
7868set dummy $ac_prog; ac_word=$2
7869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870$as_echo_n "checking for $ac_word... " >&6; }
7871if ${ac_cv_prog_M4+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873else
7874 if test -n "$M4"; then
7875 ac_cv_prog_M4="$M4" # Let the user override the test.
7876else
7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7884 ac_cv_prog_M4="$ac_prog"
7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7887 fi
7888done
7889 done
7890IFS=$as_save_IFS
7891
7892fi
7893fi
7894M4=$ac_cv_prog_M4
7895if test -n "$M4"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7897$as_echo "$M4" >&6; }
7898else
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900$as_echo "no" >&6; }
7901fi
7902
7903
7904 test -n "$M4" && break
7905done
7906test -n "$M4" || M4="$MISSING m4"
7907
7908case " $build_configdirs " in
7909 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7910esac
7911
7912for ac_prog in flex lex
7913do
7914 # Extract the first word of "$ac_prog", so it can be a program name with args.
7915set dummy $ac_prog; ac_word=$2
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917$as_echo_n "checking for $ac_word... " >&6; }
7918if ${ac_cv_prog_LEX+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920else
7921 if test -n "$LEX"; then
7922 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_LEX="$ac_prog"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935done
7936 done
7937IFS=$as_save_IFS
7938
7939fi
7940fi
7941LEX=$ac_cv_prog_LEX
7942if test -n "$LEX"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7944$as_echo "$LEX" >&6; }
7945else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947$as_echo "no" >&6; }
7948fi
7949
7950
7951 test -n "$LEX" && break
7952done
7953test -n "$LEX" || LEX="$MISSING flex"
7954
7955case " $build_configdirs " in
7956 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7957 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7958esac
7959
7960for ac_prog in flex
7961do
7962 # Extract the first word of "$ac_prog", so it can be a program name with args.
7963set dummy $ac_prog; ac_word=$2
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965$as_echo_n "checking for $ac_word... " >&6; }
7966if ${ac_cv_prog_FLEX+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968else
7969 if test -n "$FLEX"; then
7970 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7971else
7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973for as_dir in $PATH
7974do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7979 ac_cv_prog_FLEX="$ac_prog"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983done
7984 done
7985IFS=$as_save_IFS
7986
7987fi
7988fi
7989FLEX=$ac_cv_prog_FLEX
7990if test -n "$FLEX"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7992$as_echo "$FLEX" >&6; }
7993else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }
7996fi
7997
7998
7999 test -n "$FLEX" && break
8000done
8001test -n "$FLEX" || FLEX="$MISSING flex"
8002
8003case " $build_configdirs " in
8004 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8005esac
8006
8007for ac_prog in makeinfo
8008do
8009 # Extract the first word of "$ac_prog", so it can be a program name with args.
8010set dummy $ac_prog; ac_word=$2
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012$as_echo_n "checking for $ac_word... " >&6; }
8013if ${ac_cv_prog_MAKEINFO+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015else
8016 if test -n "$MAKEINFO"; then
8017 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8018else
8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020for as_dir in $PATH
8021do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026 ac_cv_prog_MAKEINFO="$ac_prog"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8029 fi
8030done
8031 done
8032IFS=$as_save_IFS
8033
8034fi
8035fi
8036MAKEINFO=$ac_cv_prog_MAKEINFO
8037if test -n "$MAKEINFO"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8039$as_echo "$MAKEINFO" >&6; }
8040else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042$as_echo "no" >&6; }
8043fi
8044
8045
8046 test -n "$MAKEINFO" && break
8047done
8048test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8049
8050case " $build_configdirs " in
8051 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8052 *)
8053
8054 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8055 # higher, else we use the "missing" dummy.
8056 if ${MAKEINFO} --version \
8057 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8058 :
8059 else
8060 MAKEINFO="$MISSING makeinfo"
8061 fi
8062 ;;
8063
8064esac
8065
8066# FIXME: expect and dejagnu may become build tools?
8067
8068for ac_prog in expect
8069do
8070 # Extract the first word of "$ac_prog", so it can be a program name with args.
8071set dummy $ac_prog; ac_word=$2
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073$as_echo_n "checking for $ac_word... " >&6; }
8074if ${ac_cv_prog_EXPECT+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076else
8077 if test -n "$EXPECT"; then
8078 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8079else
8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081for as_dir in $PATH
8082do
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8087 ac_cv_prog_EXPECT="$ac_prog"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 break 2
8090 fi
8091done
8092 done
8093IFS=$as_save_IFS
8094
8095fi
8096fi
8097EXPECT=$ac_cv_prog_EXPECT
8098if test -n "$EXPECT"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8100$as_echo "$EXPECT" >&6; }
8101else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
8104fi
8105
8106
8107 test -n "$EXPECT" && break
8108done
8109test -n "$EXPECT" || EXPECT="expect"
8110
8111case " $configdirs " in
8112 *" expect "*)
8113 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8114 ;;
8115esac
8116
8117for ac_prog in runtest
8118do
8119 # Extract the first word of "$ac_prog", so it can be a program name with args.
8120set dummy $ac_prog; ac_word=$2
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122$as_echo_n "checking for $ac_word... " >&6; }
8123if ${ac_cv_prog_RUNTEST+:} false; then :
8124 $as_echo_n "(cached) " >&6
8125else
8126 if test -n "$RUNTEST"; then
8127 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8128else
8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8136 ac_cv_prog_RUNTEST="$ac_prog"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8139 fi
8140done
8141 done
8142IFS=$as_save_IFS
8143
8144fi
8145fi
8146RUNTEST=$ac_cv_prog_RUNTEST
8147if test -n "$RUNTEST"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8149$as_echo "$RUNTEST" >&6; }
8150else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152$as_echo "no" >&6; }
8153fi
8154
8155
8156 test -n "$RUNTEST" && break
8157done
8158test -n "$RUNTEST" || RUNTEST="runtest"
8159
8160case " $configdirs " in
8161 *" dejagnu "*)
8162 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8163 ;;
8164esac
8165
8166
8167# Host tools.
8168ncn_tool_prefix=
8169test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8170ncn_target_tool_prefix=
8171test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8172
8173
8174
8175if test -n "$AR"; then
8176 ac_cv_prog_AR=$AR
8177elif test -n "$ac_cv_prog_AR"; then
8178 AR=$ac_cv_prog_AR
8179fi
8180
8181if test -n "$ac_cv_prog_AR"; then
8182 for ncn_progname in ar; do
8183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8184set dummy ${ncn_progname}; ac_word=$2
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186$as_echo_n "checking for $ac_word... " >&6; }
8187if ${ac_cv_prog_AR+:} false; then :
8188 $as_echo_n "(cached) " >&6
8189else
8190 if test -n "$AR"; then
8191 ac_cv_prog_AR="$AR" # Let the user override the test.
8192else
8193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH
8195do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200 ac_cv_prog_AR="${ncn_progname}"
8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202 break 2
8203 fi
8204done
8205 done
8206IFS=$as_save_IFS
8207
8208fi
8209fi
8210AR=$ac_cv_prog_AR
8211if test -n "$AR"; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8213$as_echo "$AR" >&6; }
8214else
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216$as_echo "no" >&6; }
8217fi
8218
8219
8220 done
8221fi
8222
8223for ncn_progname in ar; do
8224 if test -n "$ncn_tool_prefix"; then
8225 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8226set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228$as_echo_n "checking for $ac_word... " >&6; }
8229if ${ac_cv_prog_AR+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231else
8232 if test -n "$AR"; then
8233 ac_cv_prog_AR="$AR" # Let the user override the test.
8234else
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8242 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 break 2
8245 fi
8246done
8247 done
8248IFS=$as_save_IFS
8249
8250fi
8251fi
8252AR=$ac_cv_prog_AR
8253if test -n "$AR"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8255$as_echo "$AR" >&6; }
8256else
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258$as_echo "no" >&6; }
8259fi
8260
8261
8262 fi
8263 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8265set dummy ${ncn_progname}; ac_word=$2
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
8268if ${ac_cv_prog_AR+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270else
8271 if test -n "$AR"; then
8272 ac_cv_prog_AR="$AR" # Let the user override the test.
8273else
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_AR="${ncn_progname}"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285done
8286 done
8287IFS=$as_save_IFS
8288
8289fi
8290fi
8291AR=$ac_cv_prog_AR
8292if test -n "$AR"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8294$as_echo "$AR" >&6; }
8295else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
8298fi
8299
8300
8301 fi
8302 test -n "$ac_cv_prog_AR" && break
8303done
8304
8305if test -z "$ac_cv_prog_AR" ; then
8306 set dummy ar
8307 if test $build = $host ; then
8308 AR="$2"
8309 else
8310 AR="${ncn_tool_prefix}$2"
8311 fi
8312fi
8313
8314
8315
8316if test -n "$AS"; then
8317 ac_cv_prog_AS=$AS
8318elif test -n "$ac_cv_prog_AS"; then
8319 AS=$ac_cv_prog_AS
8320fi
8321
8322if test -n "$ac_cv_prog_AS"; then
8323 for ncn_progname in as; do
8324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8325set dummy ${ncn_progname}; ac_word=$2
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327$as_echo_n "checking for $ac_word... " >&6; }
8328if ${ac_cv_prog_AS+:} false; then :
8329 $as_echo_n "(cached) " >&6
8330else
8331 if test -n "$AS"; then
8332 ac_cv_prog_AS="$AS" # Let the user override the test.
8333else
8334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335for as_dir in $PATH
8336do
8337 IFS=$as_save_IFS
8338 test -z "$as_dir" && as_dir=.
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8341 ac_cv_prog_AS="${ncn_progname}"
8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8343 break 2
8344 fi
8345done
8346 done
8347IFS=$as_save_IFS
8348
8349fi
8350fi
8351AS=$ac_cv_prog_AS
8352if test -n "$AS"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8354$as_echo "$AS" >&6; }
8355else
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357$as_echo "no" >&6; }
8358fi
8359
8360
8361 done
8362fi
8363
8364for ncn_progname in as; do
8365 if test -n "$ncn_tool_prefix"; then
8366 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8367set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369$as_echo_n "checking for $ac_word... " >&6; }
8370if ${ac_cv_prog_AS+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372else
8373 if test -n "$AS"; then
8374 ac_cv_prog_AS="$AS" # Let the user override the test.
8375else
8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8383 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 break 2
8386 fi
8387done
8388 done
8389IFS=$as_save_IFS
8390
8391fi
8392fi
8393AS=$ac_cv_prog_AS
8394if test -n "$AS"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8396$as_echo "$AS" >&6; }
8397else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399$as_echo "no" >&6; }
8400fi
8401
8402
8403 fi
8404 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_progname}; ac_word=$2
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408$as_echo_n "checking for $ac_word... " >&6; }
8409if ${ac_cv_prog_AS+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411else
8412 if test -n "$AS"; then
8413 ac_cv_prog_AS="$AS" # Let the user override the test.
8414else
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_AS="${ncn_progname}"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8425 fi
8426done
8427 done
8428IFS=$as_save_IFS
8429
8430fi
8431fi
8432AS=$ac_cv_prog_AS
8433if test -n "$AS"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8435$as_echo "$AS" >&6; }
8436else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
8439fi
8440
8441
8442 fi
8443 test -n "$ac_cv_prog_AS" && break
8444done
8445
8446if test -z "$ac_cv_prog_AS" ; then
8447 set dummy as
8448 if test $build = $host ; then
8449 AS="$2"
8450 else
8451 AS="${ncn_tool_prefix}$2"
8452 fi
8453fi
8454
8455
8456
8457if test -n "$DLLTOOL"; then
8458 ac_cv_prog_DLLTOOL=$DLLTOOL
8459elif test -n "$ac_cv_prog_DLLTOOL"; then
8460 DLLTOOL=$ac_cv_prog_DLLTOOL
8461fi
8462
8463if test -n "$ac_cv_prog_DLLTOOL"; then
8464 for ncn_progname in dlltool; do
8465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8466set dummy ${ncn_progname}; ac_word=$2
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468$as_echo_n "checking for $ac_word... " >&6; }
8469if ${ac_cv_prog_DLLTOOL+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471else
8472 if test -n "$DLLTOOL"; then
8473 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8474else
8475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476for as_dir in $PATH
8477do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482 ac_cv_prog_DLLTOOL="${ncn_progname}"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 break 2
8485 fi
8486done
8487 done
8488IFS=$as_save_IFS
8489
8490fi
8491fi
8492DLLTOOL=$ac_cv_prog_DLLTOOL
8493if test -n "$DLLTOOL"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8495$as_echo "$DLLTOOL" >&6; }
8496else
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498$as_echo "no" >&6; }
8499fi
8500
8501
8502 done
8503fi
8504
8505for ncn_progname in dlltool; do
8506 if test -n "$ncn_tool_prefix"; then
8507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8508set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510$as_echo_n "checking for $ac_word... " >&6; }
8511if ${ac_cv_prog_DLLTOOL+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513else
8514 if test -n "$DLLTOOL"; then
8515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8516else
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528done
8529 done
8530IFS=$as_save_IFS
8531
8532fi
8533fi
8534DLLTOOL=$ac_cv_prog_DLLTOOL
8535if test -n "$DLLTOOL"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8537$as_echo "$DLLTOOL" >&6; }
8538else
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
8541fi
8542
8543
8544 fi
8545 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8547set dummy ${ncn_progname}; ac_word=$2
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549$as_echo_n "checking for $ac_word... " >&6; }
8550if ${ac_cv_prog_DLLTOOL+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552else
8553 if test -n "$DLLTOOL"; then
8554 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8555else
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_DLLTOOL="${ncn_progname}"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8566 fi
8567done
8568 done
8569IFS=$as_save_IFS
8570
8571fi
8572fi
8573DLLTOOL=$ac_cv_prog_DLLTOOL
8574if test -n "$DLLTOOL"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8576$as_echo "$DLLTOOL" >&6; }
8577else
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579$as_echo "no" >&6; }
8580fi
8581
8582
8583 fi
8584 test -n "$ac_cv_prog_DLLTOOL" && break
8585done
8586
8587if test -z "$ac_cv_prog_DLLTOOL" ; then
8588 set dummy dlltool
8589 if test $build = $host ; then
8590 DLLTOOL="$2"
8591 else
8592 DLLTOOL="${ncn_tool_prefix}$2"
8593 fi
8594fi
8595
8596
8597
8598if test -n "$LD"; then
8599 ac_cv_prog_LD=$LD
8600elif test -n "$ac_cv_prog_LD"; then
8601 LD=$ac_cv_prog_LD
8602fi
8603
8604if test -n "$ac_cv_prog_LD"; then
8605 for ncn_progname in ld; do
8606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8607set dummy ${ncn_progname}; ac_word=$2
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
8610if ${ac_cv_prog_LD+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612else
8613 if test -n "$LD"; then
8614 ac_cv_prog_LD="$LD" # Let the user override the test.
8615else
8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8623 ac_cv_prog_LD="${ncn_progname}"
8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 break 2
8626 fi
8627done
8628 done
8629IFS=$as_save_IFS
8630
8631fi
8632fi
8633LD=$ac_cv_prog_LD
8634if test -n "$LD"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8636$as_echo "$LD" >&6; }
8637else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639$as_echo "no" >&6; }
8640fi
8641
8642
8643 done
8644fi
8645
8646for ncn_progname in ld; do
8647 if test -n "$ncn_tool_prefix"; then
8648 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8649set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651$as_echo_n "checking for $ac_word... " >&6; }
8652if ${ac_cv_prog_LD+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654else
8655 if test -n "$LD"; then
8656 ac_cv_prog_LD="$LD" # Let the user override the test.
8657else
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8668 fi
8669done
8670 done
8671IFS=$as_save_IFS
8672
8673fi
8674fi
8675LD=$ac_cv_prog_LD
8676if test -n "$LD"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8678$as_echo "$LD" >&6; }
8679else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681$as_echo "no" >&6; }
8682fi
8683
8684
8685 fi
8686 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8688set dummy ${ncn_progname}; ac_word=$2
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690$as_echo_n "checking for $ac_word... " >&6; }
8691if ${ac_cv_prog_LD+:} false; then :
8692 $as_echo_n "(cached) " >&6
8693else
8694 if test -n "$LD"; then
8695 ac_cv_prog_LD="$LD" # Let the user override the test.
8696else
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704 ac_cv_prog_LD="${ncn_progname}"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8707 fi
8708done
8709 done
8710IFS=$as_save_IFS
8711
8712fi
8713fi
8714LD=$ac_cv_prog_LD
8715if test -n "$LD"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8717$as_echo "$LD" >&6; }
8718else
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720$as_echo "no" >&6; }
8721fi
8722
8723
8724 fi
8725 test -n "$ac_cv_prog_LD" && break
8726done
8727
8728if test -z "$ac_cv_prog_LD" ; then
8729 set dummy ld
8730 if test $build = $host ; then
8731 LD="$2"
8732 else
8733 LD="${ncn_tool_prefix}$2"
8734 fi
8735fi
8736
8737
8738
8739if test -n "$LIPO"; then
8740 ac_cv_prog_LIPO=$LIPO
8741elif test -n "$ac_cv_prog_LIPO"; then
8742 LIPO=$ac_cv_prog_LIPO
8743fi
8744
8745if test -n "$ac_cv_prog_LIPO"; then
8746 for ncn_progname in lipo; do
8747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8748set dummy ${ncn_progname}; ac_word=$2
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750$as_echo_n "checking for $ac_word... " >&6; }
8751if ${ac_cv_prog_LIPO+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753else
8754 if test -n "$LIPO"; then
8755 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8756else
8757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758for as_dir in $PATH
8759do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8764 ac_cv_prog_LIPO="${ncn_progname}"
8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 break 2
8767 fi
8768done
8769 done
8770IFS=$as_save_IFS
8771
8772fi
8773fi
8774LIPO=$ac_cv_prog_LIPO
8775if test -n "$LIPO"; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8777$as_echo "$LIPO" >&6; }
8778else
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780$as_echo "no" >&6; }
8781fi
8782
8783
8784 done
8785fi
8786
8787for ncn_progname in lipo; do
8788 if test -n "$ncn_tool_prefix"; then
8789 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8790set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792$as_echo_n "checking for $ac_word... " >&6; }
8793if ${ac_cv_prog_LIPO+:} false; then :
8794 $as_echo_n "(cached) " >&6
8795else
8796 if test -n "$LIPO"; then
8797 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8798else
8799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800for as_dir in $PATH
8801do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808 break 2
8809 fi
8810done
8811 done
8812IFS=$as_save_IFS
8813
8814fi
8815fi
8816LIPO=$ac_cv_prog_LIPO
8817if test -n "$LIPO"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8819$as_echo "$LIPO" >&6; }
8820else
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822$as_echo "no" >&6; }
8823fi
8824
8825
8826 fi
8827 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8829set dummy ${ncn_progname}; ac_word=$2
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831$as_echo_n "checking for $ac_word... " >&6; }
8832if ${ac_cv_prog_LIPO+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834else
8835 if test -n "$LIPO"; then
8836 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8837else
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_prog_LIPO="${ncn_progname}"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8848 fi
8849done
8850 done
8851IFS=$as_save_IFS
8852
8853fi
8854fi
8855LIPO=$ac_cv_prog_LIPO
8856if test -n "$LIPO"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8858$as_echo "$LIPO" >&6; }
8859else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861$as_echo "no" >&6; }
8862fi
8863
8864
8865 fi
8866 test -n "$ac_cv_prog_LIPO" && break
8867done
8868
8869if test -z "$ac_cv_prog_LIPO" ; then
8870 set dummy lipo
8871 if test $build = $host ; then
8872 LIPO="$2"
8873 else
8874 LIPO="${ncn_tool_prefix}$2"
8875 fi
8876fi
8877
8878
8879
8880if test -n "$NM"; then
8881 ac_cv_prog_NM=$NM
8882elif test -n "$ac_cv_prog_NM"; then
8883 NM=$ac_cv_prog_NM
8884fi
8885
8886if test -n "$ac_cv_prog_NM"; then
8887 for ncn_progname in nm; do
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8889set dummy ${ncn_progname}; ac_word=$2
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891$as_echo_n "checking for $ac_word... " >&6; }
8892if ${ac_cv_prog_NM+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894else
8895 if test -n "$NM"; then
8896 ac_cv_prog_NM="$NM" # Let the user override the test.
8897else
8898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899for as_dir in $PATH
8900do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_NM="${ncn_progname}"
8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 break 2
8908 fi
8909done
8910 done
8911IFS=$as_save_IFS
8912
8913fi
8914fi
8915NM=$ac_cv_prog_NM
8916if test -n "$NM"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8918$as_echo "$NM" >&6; }
8919else
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921$as_echo "no" >&6; }
8922fi
8923
8924
8925 done
8926fi
8927
8928for ncn_progname in nm; do
8929 if test -n "$ncn_tool_prefix"; then
8930 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8931set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933$as_echo_n "checking for $ac_word... " >&6; }
8934if ${ac_cv_prog_NM+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936else
8937 if test -n "$NM"; then
8938 ac_cv_prog_NM="$NM" # Let the user override the test.
8939else
8940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941for as_dir in $PATH
8942do
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8947 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 break 2
8950 fi
8951done
8952 done
8953IFS=$as_save_IFS
8954
8955fi
8956fi
8957NM=$ac_cv_prog_NM
8958if test -n "$NM"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8960$as_echo "$NM" >&6; }
8961else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963$as_echo "no" >&6; }
8964fi
8965
8966
8967 fi
8968 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8970set dummy ${ncn_progname}; ac_word=$2
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972$as_echo_n "checking for $ac_word... " >&6; }
8973if ${ac_cv_prog_NM+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975else
8976 if test -n "$NM"; then
8977 ac_cv_prog_NM="$NM" # Let the user override the test.
8978else
8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $PATH
8981do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8986 ac_cv_prog_NM="${ncn_progname}"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8989 fi
8990done
8991 done
8992IFS=$as_save_IFS
8993
8994fi
8995fi
8996NM=$ac_cv_prog_NM
8997if test -n "$NM"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8999$as_echo "$NM" >&6; }
9000else
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002$as_echo "no" >&6; }
9003fi
9004
9005
9006 fi
9007 test -n "$ac_cv_prog_NM" && break
9008done
9009
9010if test -z "$ac_cv_prog_NM" ; then
9011 set dummy nm
9012 if test $build = $host ; then
9013 NM="$2"
9014 else
9015 NM="${ncn_tool_prefix}$2"
9016 fi
9017fi
9018
9019
9020
9021if test -n "$RANLIB"; then
9022 ac_cv_prog_RANLIB=$RANLIB
9023elif test -n "$ac_cv_prog_RANLIB"; then
9024 RANLIB=$ac_cv_prog_RANLIB
9025fi
9026
9027if test -n "$ac_cv_prog_RANLIB"; then
9028 for ncn_progname in ranlib; do
9029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9030set dummy ${ncn_progname}; ac_word=$2
9031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032$as_echo_n "checking for $ac_word... " >&6; }
9033if ${ac_cv_prog_RANLIB+:} false; then :
9034 $as_echo_n "(cached) " >&6
9035else
9036 if test -n "$RANLIB"; then
9037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9038else
9039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040for as_dir in $PATH
9041do
9042 IFS=$as_save_IFS
9043 test -z "$as_dir" && as_dir=.
9044 for ac_exec_ext in '' $ac_executable_extensions; do
9045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9046 ac_cv_prog_RANLIB="${ncn_progname}"
9047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9048 break 2
9049 fi
9050done
9051 done
9052IFS=$as_save_IFS
9053
9054fi
9055fi
9056RANLIB=$ac_cv_prog_RANLIB
9057if test -n "$RANLIB"; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9059$as_echo "$RANLIB" >&6; }
9060else
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062$as_echo "no" >&6; }
9063fi
9064
9065
9066 done
9067fi
9068
9069for ncn_progname in ranlib; do
9070 if test -n "$ncn_tool_prefix"; then
9071 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9072set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074$as_echo_n "checking for $ac_word... " >&6; }
9075if ${ac_cv_prog_RANLIB+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077else
9078 if test -n "$RANLIB"; then
9079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9080else
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9088 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9091 fi
9092done
9093 done
9094IFS=$as_save_IFS
9095
9096fi
9097fi
9098RANLIB=$ac_cv_prog_RANLIB
9099if test -n "$RANLIB"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9101$as_echo "$RANLIB" >&6; }
9102else
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104$as_echo "no" >&6; }
9105fi
9106
9107
9108 fi
9109 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9111set dummy ${ncn_progname}; ac_word=$2
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113$as_echo_n "checking for $ac_word... " >&6; }
9114if ${ac_cv_prog_RANLIB+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116else
9117 if test -n "$RANLIB"; then
9118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9119else
9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127 ac_cv_prog_RANLIB="${ncn_progname}"
9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129 break 2
9130 fi
9131done
9132 done
9133IFS=$as_save_IFS
9134
9135fi
9136fi
9137RANLIB=$ac_cv_prog_RANLIB
9138if test -n "$RANLIB"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9140$as_echo "$RANLIB" >&6; }
9141else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
9144fi
9145
9146
9147 fi
9148 test -n "$ac_cv_prog_RANLIB" && break
9149done
9150
9151if test -z "$ac_cv_prog_RANLIB" ; then
9152 RANLIB="true"
9153fi
9154
9155
9156
9157if test -n "$STRIP"; then
9158 ac_cv_prog_STRIP=$STRIP
9159elif test -n "$ac_cv_prog_STRIP"; then
9160 STRIP=$ac_cv_prog_STRIP
9161fi
9162
9163if test -n "$ac_cv_prog_STRIP"; then
9164 for ncn_progname in strip; do
9165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9166set dummy ${ncn_progname}; ac_word=$2
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168$as_echo_n "checking for $ac_word... " >&6; }
9169if ${ac_cv_prog_STRIP+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171else
9172 if test -n "$STRIP"; then
9173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9174else
9175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176for as_dir in $PATH
9177do
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182 ac_cv_prog_STRIP="${ncn_progname}"
9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9184 break 2
9185 fi
9186done
9187 done
9188IFS=$as_save_IFS
9189
9190fi
9191fi
9192STRIP=$ac_cv_prog_STRIP
9193if test -n "$STRIP"; then
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9195$as_echo "$STRIP" >&6; }
9196else
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198$as_echo "no" >&6; }
9199fi
9200
9201
9202 done
9203fi
9204
9205for ncn_progname in strip; do
9206 if test -n "$ncn_tool_prefix"; then
9207 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9208set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210$as_echo_n "checking for $ac_word... " >&6; }
9211if ${ac_cv_prog_STRIP+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213else
9214 if test -n "$STRIP"; then
9215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9216else
9217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218for as_dir in $PATH
9219do
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9224 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 break 2
9227 fi
9228done
9229 done
9230IFS=$as_save_IFS
9231
9232fi
9233fi
9234STRIP=$ac_cv_prog_STRIP
9235if test -n "$STRIP"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9237$as_echo "$STRIP" >&6; }
9238else
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240$as_echo "no" >&6; }
9241fi
9242
9243
9244 fi
9245 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9247set dummy ${ncn_progname}; ac_word=$2
9248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249$as_echo_n "checking for $ac_word... " >&6; }
9250if ${ac_cv_prog_STRIP+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252else
9253 if test -n "$STRIP"; then
9254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9255else
9256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257for as_dir in $PATH
9258do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9263 ac_cv_prog_STRIP="${ncn_progname}"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 break 2
9266 fi
9267done
9268 done
9269IFS=$as_save_IFS
9270
9271fi
9272fi
9273STRIP=$ac_cv_prog_STRIP
9274if test -n "$STRIP"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9276$as_echo "$STRIP" >&6; }
9277else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279$as_echo "no" >&6; }
9280fi
9281
9282
9283 fi
9284 test -n "$ac_cv_prog_STRIP" && break
9285done
9286
9287if test -z "$ac_cv_prog_STRIP" ; then
9288 STRIP="true"
9289fi
9290
9291
9292
9293if test -n "$WINDRES"; then
9294 ac_cv_prog_WINDRES=$WINDRES
9295elif test -n "$ac_cv_prog_WINDRES"; then
9296 WINDRES=$ac_cv_prog_WINDRES
9297fi
9298
9299if test -n "$ac_cv_prog_WINDRES"; then
9300 for ncn_progname in windres; do
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302set dummy ${ncn_progname}; ac_word=$2
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304$as_echo_n "checking for $ac_word... " >&6; }
9305if ${ac_cv_prog_WINDRES+:} false; then :
9306 $as_echo_n "(cached) " >&6
9307else
9308 if test -n "$WINDRES"; then
9309 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9310else
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314 IFS=$as_save_IFS
9315 test -z "$as_dir" && as_dir=.
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9318 ac_cv_prog_WINDRES="${ncn_progname}"
9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9320 break 2
9321 fi
9322done
9323 done
9324IFS=$as_save_IFS
9325
9326fi
9327fi
9328WINDRES=$ac_cv_prog_WINDRES
9329if test -n "$WINDRES"; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9331$as_echo "$WINDRES" >&6; }
9332else
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334$as_echo "no" >&6; }
9335fi
9336
9337
9338 done
9339fi
9340
9341for ncn_progname in windres; do
9342 if test -n "$ncn_tool_prefix"; then
9343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9344set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346$as_echo_n "checking for $ac_word... " >&6; }
9347if ${ac_cv_prog_WINDRES+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349else
9350 if test -n "$WINDRES"; then
9351 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9352else
9353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354for as_dir in $PATH
9355do
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9360 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9362 break 2
9363 fi
9364done
9365 done
9366IFS=$as_save_IFS
9367
9368fi
9369fi
9370WINDRES=$ac_cv_prog_WINDRES
9371if test -n "$WINDRES"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9373$as_echo "$WINDRES" >&6; }
9374else
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376$as_echo "no" >&6; }
9377fi
9378
9379
9380 fi
9381 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9383set dummy ${ncn_progname}; ac_word=$2
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385$as_echo_n "checking for $ac_word... " >&6; }
9386if ${ac_cv_prog_WINDRES+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388else
9389 if test -n "$WINDRES"; then
9390 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9391else
9392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $PATH
9394do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9399 ac_cv_prog_WINDRES="${ncn_progname}"
9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 break 2
9402 fi
9403done
9404 done
9405IFS=$as_save_IFS
9406
9407fi
9408fi
9409WINDRES=$ac_cv_prog_WINDRES
9410if test -n "$WINDRES"; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9412$as_echo "$WINDRES" >&6; }
9413else
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415$as_echo "no" >&6; }
9416fi
9417
9418
9419 fi
9420 test -n "$ac_cv_prog_WINDRES" && break
9421done
9422
9423if test -z "$ac_cv_prog_WINDRES" ; then
9424 set dummy windres
9425 if test $build = $host ; then
9426 WINDRES="$2"
9427 else
9428 WINDRES="${ncn_tool_prefix}$2"
9429 fi
9430fi
9431
9432
9433
9434if test -n "$WINDMC"; then
9435 ac_cv_prog_WINDMC=$WINDMC
9436elif test -n "$ac_cv_prog_WINDMC"; then
9437 WINDMC=$ac_cv_prog_WINDMC
9438fi
9439
9440if test -n "$ac_cv_prog_WINDMC"; then
9441 for ncn_progname in windmc; do
9442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443set dummy ${ncn_progname}; ac_word=$2
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445$as_echo_n "checking for $ac_word... " >&6; }
9446if ${ac_cv_prog_WINDMC+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448else
9449 if test -n "$WINDMC"; then
9450 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9451else
9452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453for as_dir in $PATH
9454do
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9459 ac_cv_prog_WINDMC="${ncn_progname}"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 break 2
9462 fi
9463done
9464 done
9465IFS=$as_save_IFS
9466
9467fi
9468fi
9469WINDMC=$ac_cv_prog_WINDMC
9470if test -n "$WINDMC"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9472$as_echo "$WINDMC" >&6; }
9473else
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475$as_echo "no" >&6; }
9476fi
9477
9478
9479 done
9480fi
9481
9482for ncn_progname in windmc; do
9483 if test -n "$ncn_tool_prefix"; then
9484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9487$as_echo_n "checking for $ac_word... " >&6; }
9488if ${ac_cv_prog_WINDMC+:} false; then :
9489 $as_echo_n "(cached) " >&6
9490else
9491 if test -n "$WINDMC"; then
9492 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9493else
9494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495for as_dir in $PATH
9496do
9497 IFS=$as_save_IFS
9498 test -z "$as_dir" && as_dir=.
9499 for ac_exec_ext in '' $ac_executable_extensions; do
9500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9501 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9503 break 2
9504 fi
9505done
9506 done
9507IFS=$as_save_IFS
9508
9509fi
9510fi
9511WINDMC=$ac_cv_prog_WINDMC
9512if test -n "$WINDMC"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9514$as_echo "$WINDMC" >&6; }
9515else
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517$as_echo "no" >&6; }
9518fi
9519
9520
9521 fi
9522 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9524set dummy ${ncn_progname}; ac_word=$2
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526$as_echo_n "checking for $ac_word... " >&6; }
9527if ${ac_cv_prog_WINDMC+:} false; then :
9528 $as_echo_n "(cached) " >&6
9529else
9530 if test -n "$WINDMC"; then
9531 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9532else
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9540 ac_cv_prog_WINDMC="${ncn_progname}"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 break 2
9543 fi
9544done
9545 done
9546IFS=$as_save_IFS
9547
9548fi
9549fi
9550WINDMC=$ac_cv_prog_WINDMC
9551if test -n "$WINDMC"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9553$as_echo "$WINDMC" >&6; }
9554else
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556$as_echo "no" >&6; }
9557fi
9558
9559
9560 fi
9561 test -n "$ac_cv_prog_WINDMC" && break
9562done
9563
9564if test -z "$ac_cv_prog_WINDMC" ; then
9565 set dummy windmc
9566 if test $build = $host ; then
9567 WINDMC="$2"
9568 else
9569 WINDMC="${ncn_tool_prefix}$2"
9570 fi
9571fi
9572
9573
9574
9575if test -n "$OBJCOPY"; then
9576 ac_cv_prog_OBJCOPY=$OBJCOPY
9577elif test -n "$ac_cv_prog_OBJCOPY"; then
9578 OBJCOPY=$ac_cv_prog_OBJCOPY
9579fi
9580
9581if test -n "$ac_cv_prog_OBJCOPY"; then
9582 for ncn_progname in objcopy; do
9583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9584set dummy ${ncn_progname}; ac_word=$2
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586$as_echo_n "checking for $ac_word... " >&6; }
9587if ${ac_cv_prog_OBJCOPY+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589else
9590 if test -n "$OBJCOPY"; then
9591 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9592else
9593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594for as_dir in $PATH
9595do
9596 IFS=$as_save_IFS
9597 test -z "$as_dir" && as_dir=.
9598 for ac_exec_ext in '' $ac_executable_extensions; do
9599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9600 ac_cv_prog_OBJCOPY="${ncn_progname}"
9601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9602 break 2
9603 fi
9604done
9605 done
9606IFS=$as_save_IFS
9607
9608fi
9609fi
9610OBJCOPY=$ac_cv_prog_OBJCOPY
9611if test -n "$OBJCOPY"; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9613$as_echo "$OBJCOPY" >&6; }
9614else
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616$as_echo "no" >&6; }
9617fi
9618
9619
9620 done
9621fi
9622
9623for ncn_progname in objcopy; do
9624 if test -n "$ncn_tool_prefix"; then
9625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9626set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628$as_echo_n "checking for $ac_word... " >&6; }
9629if ${ac_cv_prog_OBJCOPY+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631else
9632 if test -n "$OBJCOPY"; then
9633 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9634else
9635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $PATH
9637do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9642 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 break 2
9645 fi
9646done
9647 done
9648IFS=$as_save_IFS
9649
9650fi
9651fi
9652OBJCOPY=$ac_cv_prog_OBJCOPY
9653if test -n "$OBJCOPY"; then
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9655$as_echo "$OBJCOPY" >&6; }
9656else
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658$as_echo "no" >&6; }
9659fi
9660
9661
9662 fi
9663 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9665set dummy ${ncn_progname}; ac_word=$2
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667$as_echo_n "checking for $ac_word... " >&6; }
9668if ${ac_cv_prog_OBJCOPY+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670else
9671 if test -n "$OBJCOPY"; then
9672 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9673else
9674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675for as_dir in $PATH
9676do
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9681 ac_cv_prog_OBJCOPY="${ncn_progname}"
9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9683 break 2
9684 fi
9685done
9686 done
9687IFS=$as_save_IFS
9688
9689fi
9690fi
9691OBJCOPY=$ac_cv_prog_OBJCOPY
9692if test -n "$OBJCOPY"; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9694$as_echo "$OBJCOPY" >&6; }
9695else
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697$as_echo "no" >&6; }
9698fi
9699
9700
9701 fi
9702 test -n "$ac_cv_prog_OBJCOPY" && break
9703done
9704
9705if test -z "$ac_cv_prog_OBJCOPY" ; then
9706 set dummy objcopy
9707 if test $build = $host ; then
9708 OBJCOPY="$2"
9709 else
9710 OBJCOPY="${ncn_tool_prefix}$2"
9711 fi
9712fi
9713
9714
9715
9716if test -n "$OBJDUMP"; then
9717 ac_cv_prog_OBJDUMP=$OBJDUMP
9718elif test -n "$ac_cv_prog_OBJDUMP"; then
9719 OBJDUMP=$ac_cv_prog_OBJDUMP
9720fi
9721
9722if test -n "$ac_cv_prog_OBJDUMP"; then
9723 for ncn_progname in objdump; do
9724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9725set dummy ${ncn_progname}; ac_word=$2
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727$as_echo_n "checking for $ac_word... " >&6; }
9728if ${ac_cv_prog_OBJDUMP+:} false; then :
9729 $as_echo_n "(cached) " >&6
9730else
9731 if test -n "$OBJDUMP"; then
9732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9733else
9734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735for as_dir in $PATH
9736do
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
9739 for ac_exec_ext in '' $ac_executable_extensions; do
9740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9741 ac_cv_prog_OBJDUMP="${ncn_progname}"
9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9743 break 2
9744 fi
9745done
9746 done
9747IFS=$as_save_IFS
9748
9749fi
9750fi
9751OBJDUMP=$ac_cv_prog_OBJDUMP
9752if test -n "$OBJDUMP"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9754$as_echo "$OBJDUMP" >&6; }
9755else
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757$as_echo "no" >&6; }
9758fi
9759
9760
9761 done
9762fi
9763
9764for ncn_progname in objdump; do
9765 if test -n "$ncn_tool_prefix"; then
9766 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9767set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769$as_echo_n "checking for $ac_word... " >&6; }
9770if ${ac_cv_prog_OBJDUMP+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772else
9773 if test -n "$OBJDUMP"; then
9774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9775else
9776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777for as_dir in $PATH
9778do
9779 IFS=$as_save_IFS
9780 test -z "$as_dir" && as_dir=.
9781 for ac_exec_ext in '' $ac_executable_extensions; do
9782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9783 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9785 break 2
9786 fi
9787done
9788 done
9789IFS=$as_save_IFS
9790
9791fi
9792fi
9793OBJDUMP=$ac_cv_prog_OBJDUMP
9794if test -n "$OBJDUMP"; then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9796$as_echo "$OBJDUMP" >&6; }
9797else
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799$as_echo "no" >&6; }
9800fi
9801
9802
9803 fi
9804 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9806set dummy ${ncn_progname}; ac_word=$2
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808$as_echo_n "checking for $ac_word... " >&6; }
9809if ${ac_cv_prog_OBJDUMP+:} false; then :
9810 $as_echo_n "(cached) " >&6
9811else
9812 if test -n "$OBJDUMP"; then
9813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9814else
9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9822 ac_cv_prog_OBJDUMP="${ncn_progname}"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824 break 2
9825 fi
9826done
9827 done
9828IFS=$as_save_IFS
9829
9830fi
9831fi
9832OBJDUMP=$ac_cv_prog_OBJDUMP
9833if test -n "$OBJDUMP"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9835$as_echo "$OBJDUMP" >&6; }
9836else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838$as_echo "no" >&6; }
9839fi
9840
9841
9842 fi
9843 test -n "$ac_cv_prog_OBJDUMP" && break
9844done
9845
9846if test -z "$ac_cv_prog_OBJDUMP" ; then
9847 set dummy objdump
9848 if test $build = $host ; then
9849 OBJDUMP="$2"
9850 else
9851 OBJDUMP="${ncn_tool_prefix}$2"
9852 fi
9853fi
9854
9855
9856
9857if test -n "$READELF"; then
9858 ac_cv_prog_READELF=$READELF
9859elif test -n "$ac_cv_prog_READELF"; then
9860 READELF=$ac_cv_prog_READELF
9861fi
9862
9863if test -n "$ac_cv_prog_READELF"; then
9864 for ncn_progname in readelf; do
9865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9866set dummy ${ncn_progname}; ac_word=$2
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868$as_echo_n "checking for $ac_word... " >&6; }
9869if ${ac_cv_prog_READELF+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871else
9872 if test -n "$READELF"; then
9873 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9874else
9875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876for as_dir in $PATH
9877do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
9880 for ac_exec_ext in '' $ac_executable_extensions; do
9881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9882 ac_cv_prog_READELF="${ncn_progname}"
9883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886done
9887 done
9888IFS=$as_save_IFS
9889
9890fi
9891fi
9892READELF=$ac_cv_prog_READELF
9893if test -n "$READELF"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9895$as_echo "$READELF" >&6; }
9896else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898$as_echo "no" >&6; }
9899fi
9900
9901
9902 done
9903fi
9904
9905for ncn_progname in readelf; do
9906 if test -n "$ncn_tool_prefix"; then
9907 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9908set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910$as_echo_n "checking for $ac_word... " >&6; }
9911if ${ac_cv_prog_READELF+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913else
9914 if test -n "$READELF"; then
9915 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9916else
9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9924 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928done
9929 done
9930IFS=$as_save_IFS
9931
9932fi
9933fi
9934READELF=$ac_cv_prog_READELF
9935if test -n "$READELF"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9937$as_echo "$READELF" >&6; }
9938else
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940$as_echo "no" >&6; }
9941fi
9942
9943
9944 fi
9945 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9947set dummy ${ncn_progname}; ac_word=$2
9948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949$as_echo_n "checking for $ac_word... " >&6; }
9950if ${ac_cv_prog_READELF+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952else
9953 if test -n "$READELF"; then
9954 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9955else
9956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957for as_dir in $PATH
9958do
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9963 ac_cv_prog_READELF="${ncn_progname}"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9966 fi
9967done
9968 done
9969IFS=$as_save_IFS
9970
9971fi
9972fi
9973READELF=$ac_cv_prog_READELF
9974if test -n "$READELF"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9976$as_echo "$READELF" >&6; }
9977else
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979$as_echo "no" >&6; }
9980fi
9981
9982
9983 fi
9984 test -n "$ac_cv_prog_READELF" && break
9985done
9986
9987if test -z "$ac_cv_prog_READELF" ; then
9988 set dummy readelf
9989 if test $build = $host ; then
9990 READELF="$2"
9991 else
9992 READELF="${ncn_tool_prefix}$2"
9993 fi
9994fi
9995
9996
9997
9998
9999
10000
10001# Target tools.
10002
10003# Check whether --with-build-time-tools was given.
10004if test "${with_build_time_tools+set}" = set; then :
10005 withval=$with_build_time_tools; case x"$withval" in
10006 x/*) ;;
10007 *)
10008 with_build_time_tools=
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10010$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10011 ;;
10012 esac
10013else
10014 with_build_time_tools=
10015fi
10016
10017
10018
10019
10020if test -n "$CC_FOR_TARGET"; then
10021 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10022elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10023 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10024fi
10025
10026if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10027 for ncn_progname in cc gcc; do
10028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10029set dummy ${ncn_progname}; ac_word=$2
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031$as_echo_n "checking for $ac_word... " >&6; }
10032if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034else
10035 if test -n "$CC_FOR_TARGET"; then
10036 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10037else
10038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039for as_dir in $PATH
10040do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10045 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 break 2
10048 fi
10049done
10050 done
10051IFS=$as_save_IFS
10052
10053fi
10054fi
10055CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10056if test -n "$CC_FOR_TARGET"; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10058$as_echo "$CC_FOR_TARGET" >&6; }
10059else
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061$as_echo "no" >&6; }
10062fi
10063
10064
10065 done
10066fi
10067
10068if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10069 for ncn_progname in cc gcc; do
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10071$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10072 if test -x $with_build_time_tools/${ncn_progname}; then
10073 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10075$as_echo "yes" >&6; }
10076 break
10077 else
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079$as_echo "no" >&6; }
10080 fi
10081 done
10082fi
10083
10084if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10085 for ncn_progname in cc gcc; do
10086 if test -n "$ncn_target_tool_prefix"; then
10087 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10088set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090$as_echo_n "checking for $ac_word... " >&6; }
10091if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093else
10094 if test -n "$CC_FOR_TARGET"; then
10095 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10096else
10097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098for as_dir in $PATH
10099do
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 break 2
10107 fi
10108done
10109 done
10110IFS=$as_save_IFS
10111
10112fi
10113fi
10114CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10115if test -n "$CC_FOR_TARGET"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10117$as_echo "$CC_FOR_TARGET" >&6; }
10118else
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120$as_echo "no" >&6; }
10121fi
10122
10123
10124 fi
10125 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10127set dummy ${ncn_progname}; ac_word=$2
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129$as_echo_n "checking for $ac_word... " >&6; }
10130if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10131 $as_echo_n "(cached) " >&6
10132else
10133 if test -n "$CC_FOR_TARGET"; then
10134 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10135else
10136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137for as_dir in $PATH
10138do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
10141 for ac_exec_ext in '' $ac_executable_extensions; do
10142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10143 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10145 break 2
10146 fi
10147done
10148 done
10149IFS=$as_save_IFS
10150
10151fi
10152fi
10153CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10154if test -n "$CC_FOR_TARGET"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10156$as_echo "$CC_FOR_TARGET" >&6; }
10157else
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159$as_echo "no" >&6; }
10160fi
10161
10162
10163 fi
10164 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10165 done
10166fi
10167
10168if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10169 set dummy cc gcc
10170 if test $build = $target ; then
10171 CC_FOR_TARGET="$2"
10172 else
10173 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10174 fi
10175else
10176 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10177fi
10178
10179
10180
10181if test -n "$CXX_FOR_TARGET"; then
10182 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10183elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10184 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10185fi
10186
10187if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10188 for ncn_progname in c++ g++ cxx gxx; do
10189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10190set dummy ${ncn_progname}; ac_word=$2
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192$as_echo_n "checking for $ac_word... " >&6; }
10193if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10194 $as_echo_n "(cached) " >&6
10195else
10196 if test -n "$CXX_FOR_TARGET"; then
10197 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10198else
10199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200for as_dir in $PATH
10201do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10206 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10209 fi
10210done
10211 done
10212IFS=$as_save_IFS
10213
10214fi
10215fi
10216CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10217if test -n "$CXX_FOR_TARGET"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10219$as_echo "$CXX_FOR_TARGET" >&6; }
10220else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222$as_echo "no" >&6; }
10223fi
10224
10225
10226 done
10227fi
10228
10229if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10230 for ncn_progname in c++ g++ cxx gxx; do
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10232$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10233 if test -x $with_build_time_tools/${ncn_progname}; then
10234 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10236$as_echo "yes" >&6; }
10237 break
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240$as_echo "no" >&6; }
10241 fi
10242 done
10243fi
10244
10245if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10246 for ncn_progname in c++ g++ cxx gxx; do
10247 if test -n "$ncn_target_tool_prefix"; then
10248 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10249set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251$as_echo_n "checking for $ac_word... " >&6; }
10252if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10253 $as_echo_n "(cached) " >&6
10254else
10255 if test -n "$CXX_FOR_TARGET"; then
10256 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10257else
10258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259for as_dir in $PATH
10260do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 break 2
10268 fi
10269done
10270 done
10271IFS=$as_save_IFS
10272
10273fi
10274fi
10275CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10276if test -n "$CXX_FOR_TARGET"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10278$as_echo "$CXX_FOR_TARGET" >&6; }
10279else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
10282fi
10283
10284
10285 fi
10286 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10288set dummy ${ncn_progname}; ac_word=$2
10289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290$as_echo_n "checking for $ac_word... " >&6; }
10291if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10292 $as_echo_n "(cached) " >&6
10293else
10294 if test -n "$CXX_FOR_TARGET"; then
10295 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10296else
10297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298for as_dir in $PATH
10299do
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10304 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 break 2
10307 fi
10308done
10309 done
10310IFS=$as_save_IFS
10311
10312fi
10313fi
10314CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10315if test -n "$CXX_FOR_TARGET"; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10317$as_echo "$CXX_FOR_TARGET" >&6; }
10318else
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320$as_echo "no" >&6; }
10321fi
10322
10323
10324 fi
10325 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10326 done
10327fi
10328
10329if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10330 set dummy c++ g++ cxx gxx
10331 if test $build = $target ; then
10332 CXX_FOR_TARGET="$2"
10333 else
10334 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10335 fi
10336else
10337 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10338fi
10339
10340
10341
10342if test -n "$GCC_FOR_TARGET"; then
10343 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10344elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10345 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10346fi
10347
10348if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10349 for ncn_progname in gcc; do
10350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10351set dummy ${ncn_progname}; ac_word=$2
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353$as_echo_n "checking for $ac_word... " >&6; }
10354if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356else
10357 if test -n "$GCC_FOR_TARGET"; then
10358 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10359else
10360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361for as_dir in $PATH
10362do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10367 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10370 fi
10371done
10372 done
10373IFS=$as_save_IFS
10374
10375fi
10376fi
10377GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10378if test -n "$GCC_FOR_TARGET"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10380$as_echo "$GCC_FOR_TARGET" >&6; }
10381else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383$as_echo "no" >&6; }
10384fi
10385
10386
10387 done
10388fi
10389
10390if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10391 for ncn_progname in gcc; do
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10393$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10394 if test -x $with_build_time_tools/${ncn_progname}; then
10395 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10397$as_echo "yes" >&6; }
10398 break
10399 else
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401$as_echo "no" >&6; }
10402 fi
10403 done
10404fi
10405
10406if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10407 for ncn_progname in gcc; do
10408 if test -n "$ncn_target_tool_prefix"; then
10409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10410set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412$as_echo_n "checking for $ac_word... " >&6; }
10413if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10414 $as_echo_n "(cached) " >&6
10415else
10416 if test -n "$GCC_FOR_TARGET"; then
10417 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10418else
10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10426 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10429 fi
10430done
10431 done
10432IFS=$as_save_IFS
10433
10434fi
10435fi
10436GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10437if test -n "$GCC_FOR_TARGET"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10439$as_echo "$GCC_FOR_TARGET" >&6; }
10440else
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442$as_echo "no" >&6; }
10443fi
10444
10445
10446 fi
10447 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10449set dummy ${ncn_progname}; ac_word=$2
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451$as_echo_n "checking for $ac_word... " >&6; }
10452if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10453 $as_echo_n "(cached) " >&6
10454else
10455 if test -n "$GCC_FOR_TARGET"; then
10456 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10457else
10458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459for as_dir in $PATH
10460do
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10465 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 break 2
10468 fi
10469done
10470 done
10471IFS=$as_save_IFS
10472
10473fi
10474fi
10475GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10476if test -n "$GCC_FOR_TARGET"; then
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10478$as_echo "$GCC_FOR_TARGET" >&6; }
10479else
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481$as_echo "no" >&6; }
10482fi
10483
10484
10485 fi
10486 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10487 done
10488fi
10489
10490if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10491 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10492else
10493 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10494fi
10495
10496
10497
10498if test -n "$GFORTRAN_FOR_TARGET"; then
10499 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10500elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10501 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10502fi
10503
10504if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10505 for ncn_progname in gfortran; do
10506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10507set dummy ${ncn_progname}; ac_word=$2
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10509$as_echo_n "checking for $ac_word... " >&6; }
10510if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10511 $as_echo_n "(cached) " >&6
10512else
10513 if test -n "$GFORTRAN_FOR_TARGET"; then
10514 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10515else
10516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517for as_dir in $PATH
10518do
10519 IFS=$as_save_IFS
10520 test -z "$as_dir" && as_dir=.
10521 for ac_exec_ext in '' $ac_executable_extensions; do
10522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10523 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10525 break 2
10526 fi
10527done
10528 done
10529IFS=$as_save_IFS
10530
10531fi
10532fi
10533GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10534if test -n "$GFORTRAN_FOR_TARGET"; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10536$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10537else
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539$as_echo "no" >&6; }
10540fi
10541
10542
10543 done
10544fi
10545
10546if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10547 for ncn_progname in gfortran; do
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10549$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10550 if test -x $with_build_time_tools/${ncn_progname}; then
10551 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10553$as_echo "yes" >&6; }
10554 break
10555 else
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557$as_echo "no" >&6; }
10558 fi
10559 done
10560fi
10561
10562if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10563 for ncn_progname in gfortran; do
10564 if test -n "$ncn_target_tool_prefix"; then
10565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10566set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568$as_echo_n "checking for $ac_word... " >&6; }
10569if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10570 $as_echo_n "(cached) " >&6
10571else
10572 if test -n "$GFORTRAN_FOR_TARGET"; then
10573 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10574else
10575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576for as_dir in $PATH
10577do
10578 IFS=$as_save_IFS
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10582 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10584 break 2
10585 fi
10586done
10587 done
10588IFS=$as_save_IFS
10589
10590fi
10591fi
10592GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10593if test -n "$GFORTRAN_FOR_TARGET"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10595$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10596else
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598$as_echo "no" >&6; }
10599fi
10600
10601
10602 fi
10603 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10605set dummy ${ncn_progname}; ac_word=$2
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607$as_echo_n "checking for $ac_word... " >&6; }
10608if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10609 $as_echo_n "(cached) " >&6
10610else
10611 if test -n "$GFORTRAN_FOR_TARGET"; then
10612 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10613else
10614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615for as_dir in $PATH
10616do
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10624 fi
10625done
10626 done
10627IFS=$as_save_IFS
10628
10629fi
10630fi
10631GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10632if test -n "$GFORTRAN_FOR_TARGET"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10634$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10635else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637$as_echo "no" >&6; }
10638fi
10639
10640
10641 fi
10642 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10643 done
10644fi
10645
10646if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10647 set dummy gfortran
10648 if test $build = $target ; then
10649 GFORTRAN_FOR_TARGET="$2"
10650 else
10651 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10652 fi
10653else
10654 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10655fi
10656
10657
10658
10659if test -n "$GOC_FOR_TARGET"; then
10660 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10661elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10662 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10663fi
10664
10665if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10666 for ncn_progname in gccgo; do
10667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10668set dummy ${ncn_progname}; ac_word=$2
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670$as_echo_n "checking for $ac_word... " >&6; }
10671if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10672 $as_echo_n "(cached) " >&6
10673else
10674 if test -n "$GOC_FOR_TARGET"; then
10675 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10676else
10677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678for as_dir in $PATH
10679do
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10684 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10686 break 2
10687 fi
10688done
10689 done
10690IFS=$as_save_IFS
10691
10692fi
10693fi
10694GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10695if test -n "$GOC_FOR_TARGET"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10697$as_echo "$GOC_FOR_TARGET" >&6; }
10698else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700$as_echo "no" >&6; }
10701fi
10702
10703
10704 done
10705fi
10706
10707if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10708 for ncn_progname in gccgo; do
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10710$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10711 if test -x $with_build_time_tools/${ncn_progname}; then
10712 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10714$as_echo "yes" >&6; }
10715 break
10716 else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718$as_echo "no" >&6; }
10719 fi
10720 done
10721fi
10722
10723if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10724 for ncn_progname in gccgo; do
10725 if test -n "$ncn_target_tool_prefix"; then
10726 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10727set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729$as_echo_n "checking for $ac_word... " >&6; }
10730if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732else
10733 if test -n "$GOC_FOR_TARGET"; then
10734 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10735else
10736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737for as_dir in $PATH
10738do
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10743 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 break 2
10746 fi
10747done
10748 done
10749IFS=$as_save_IFS
10750
10751fi
10752fi
10753GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10754if test -n "$GOC_FOR_TARGET"; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10756$as_echo "$GOC_FOR_TARGET" >&6; }
10757else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759$as_echo "no" >&6; }
10760fi
10761
10762
10763 fi
10764 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10766set dummy ${ncn_progname}; ac_word=$2
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768$as_echo_n "checking for $ac_word... " >&6; }
10769if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771else
10772 if test -n "$GOC_FOR_TARGET"; then
10773 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10774else
10775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776for as_dir in $PATH
10777do
10778 IFS=$as_save_IFS
10779 test -z "$as_dir" && as_dir=.
10780 for ac_exec_ext in '' $ac_executable_extensions; do
10781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10782 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10784 break 2
10785 fi
10786done
10787 done
10788IFS=$as_save_IFS
10789
10790fi
10791fi
10792GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10793if test -n "$GOC_FOR_TARGET"; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10795$as_echo "$GOC_FOR_TARGET" >&6; }
10796else
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798$as_echo "no" >&6; }
10799fi
10800
10801
10802 fi
10803 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10804 done
10805fi
10806
10807if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10808 set dummy gccgo
10809 if test $build = $target ; then
10810 GOC_FOR_TARGET="$2"
10811 else
10812 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10813 fi
10814else
10815 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10816fi
10817
10818
10819
10820cat > conftest.c << \EOF
10821#ifdef __GNUC__
10822 gcc_yay;
10823#endif
10824EOF
10825if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10826 have_gcc_for_target=yes
10827else
10828 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10829 have_gcc_for_target=no
10830fi
10831rm conftest.c
10832
10833
10834
10835
10836if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10837 if test -n "$with_build_time_tools"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10839$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10840 if test -x $with_build_time_tools/ar; then
10841 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10842 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10844$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10845 else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847$as_echo "no" >&6; }
10848 fi
10849 elif test $build != $host && test $have_gcc_for_target = yes; then
10850 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10851 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10852 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10853 fi
10854fi
10855if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10856 # Extract the first word of "ar", so it can be a program name with args.
10857set dummy ar; ac_word=$2
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859$as_echo_n "checking for $ac_word... " >&6; }
10860if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
10861 $as_echo_n "(cached) " >&6
10862else
10863 case $AR_FOR_TARGET in
10864 [\\/]* | ?:[\\/]*)
10865 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10866 ;;
10867 *)
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869for as_dir in $gcc_cv_tool_dirs
10870do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10875 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 break 2
10878 fi
10879done
10880 done
10881IFS=$as_save_IFS
10882
10883 ;;
10884esac
10885fi
10886AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10887if test -n "$AR_FOR_TARGET"; then
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10889$as_echo "$AR_FOR_TARGET" >&6; }
10890else
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892$as_echo "no" >&6; }
10893fi
10894
10895
10896fi
10897if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10898
10899
10900if test -n "$AR_FOR_TARGET"; then
10901 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10902elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10903 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10904fi
10905
10906if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10907 for ncn_progname in ar; do
10908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10909set dummy ${ncn_progname}; ac_word=$2
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911$as_echo_n "checking for $ac_word... " >&6; }
10912if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10913 $as_echo_n "(cached) " >&6
10914else
10915 if test -n "$AR_FOR_TARGET"; then
10916 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10917else
10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919for as_dir in $PATH
10920do
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10925 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10928 fi
10929done
10930 done
10931IFS=$as_save_IFS
10932
10933fi
10934fi
10935AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10936if test -n "$AR_FOR_TARGET"; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10938$as_echo "$AR_FOR_TARGET" >&6; }
10939else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941$as_echo "no" >&6; }
10942fi
10943
10944
10945 done
10946fi
10947
10948if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10949 for ncn_progname in ar; do
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10951$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10952 if test -x $with_build_time_tools/${ncn_progname}; then
10953 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10955$as_echo "yes" >&6; }
10956 break
10957 else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959$as_echo "no" >&6; }
10960 fi
10961 done
10962fi
10963
10964if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10965 for ncn_progname in ar; do
10966 if test -n "$ncn_target_tool_prefix"; then
10967 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10968set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10970$as_echo_n "checking for $ac_word... " >&6; }
10971if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10972 $as_echo_n "(cached) " >&6
10973else
10974 if test -n "$AR_FOR_TARGET"; then
10975 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10976else
10977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978for as_dir in $PATH
10979do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10987 fi
10988done
10989 done
10990IFS=$as_save_IFS
10991
10992fi
10993fi
10994AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10995if test -n "$AR_FOR_TARGET"; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10997$as_echo "$AR_FOR_TARGET" >&6; }
10998else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
11001fi
11002
11003
11004 fi
11005 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11007set dummy ${ncn_progname}; ac_word=$2
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11009$as_echo_n "checking for $ac_word... " >&6; }
11010if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11011 $as_echo_n "(cached) " >&6
11012else
11013 if test -n "$AR_FOR_TARGET"; then
11014 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11015else
11016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017for as_dir in $PATH
11018do
11019 IFS=$as_save_IFS
11020 test -z "$as_dir" && as_dir=.
11021 for ac_exec_ext in '' $ac_executable_extensions; do
11022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11023 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11025 break 2
11026 fi
11027done
11028 done
11029IFS=$as_save_IFS
11030
11031fi
11032fi
11033AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11034if test -n "$AR_FOR_TARGET"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11036$as_echo "$AR_FOR_TARGET" >&6; }
11037else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039$as_echo "no" >&6; }
11040fi
11041
11042
11043 fi
11044 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11045 done
11046fi
11047
11048if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11049 set dummy ar
11050 if test $build = $target ; then
11051 AR_FOR_TARGET="$2"
11052 else
11053 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11054 fi
11055else
11056 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11057fi
11058
11059else
11060 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11061fi
11062
11063
11064
11065
11066if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11067 if test -n "$with_build_time_tools"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11069$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11070 if test -x $with_build_time_tools/as; then
11071 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11072 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11074$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11075 else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077$as_echo "no" >&6; }
11078 fi
11079 elif test $build != $host && test $have_gcc_for_target = yes; then
11080 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11081 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11082 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11083 fi
11084fi
11085if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11086 # Extract the first word of "as", so it can be a program name with args.
11087set dummy as; ac_word=$2
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089$as_echo_n "checking for $ac_word... " >&6; }
11090if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11091 $as_echo_n "(cached) " >&6
11092else
11093 case $AS_FOR_TARGET in
11094 [\\/]* | ?:[\\/]*)
11095 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11096 ;;
11097 *)
11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099for as_dir in $gcc_cv_tool_dirs
11100do
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11105 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11107 break 2
11108 fi
11109done
11110 done
11111IFS=$as_save_IFS
11112
11113 ;;
11114esac
11115fi
11116AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11117if test -n "$AS_FOR_TARGET"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11119$as_echo "$AS_FOR_TARGET" >&6; }
11120else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122$as_echo "no" >&6; }
11123fi
11124
11125
11126fi
11127if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11128
11129
11130if test -n "$AS_FOR_TARGET"; then
11131 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11132elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11133 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11134fi
11135
11136if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11137 for ncn_progname in as; do
11138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11139set dummy ${ncn_progname}; ac_word=$2
11140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141$as_echo_n "checking for $ac_word... " >&6; }
11142if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144else
11145 if test -n "$AS_FOR_TARGET"; then
11146 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11147else
11148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149for as_dir in $PATH
11150do
11151 IFS=$as_save_IFS
11152 test -z "$as_dir" && as_dir=.
11153 for ac_exec_ext in '' $ac_executable_extensions; do
11154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11155 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 break 2
11158 fi
11159done
11160 done
11161IFS=$as_save_IFS
11162
11163fi
11164fi
11165AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11166if test -n "$AS_FOR_TARGET"; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11168$as_echo "$AS_FOR_TARGET" >&6; }
11169else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171$as_echo "no" >&6; }
11172fi
11173
11174
11175 done
11176fi
11177
11178if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11179 for ncn_progname in as; do
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11181$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11182 if test -x $with_build_time_tools/${ncn_progname}; then
11183 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185$as_echo "yes" >&6; }
11186 break
11187 else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189$as_echo "no" >&6; }
11190 fi
11191 done
11192fi
11193
11194if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11195 for ncn_progname in as; do
11196 if test -n "$ncn_target_tool_prefix"; then
11197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11198set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200$as_echo_n "checking for $ac_word... " >&6; }
11201if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11202 $as_echo_n "(cached) " >&6
11203else
11204 if test -n "$AS_FOR_TARGET"; then
11205 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11206else
11207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208for as_dir in $PATH
11209do
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11214 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 break 2
11217 fi
11218done
11219 done
11220IFS=$as_save_IFS
11221
11222fi
11223fi
11224AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11225if test -n "$AS_FOR_TARGET"; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11227$as_echo "$AS_FOR_TARGET" >&6; }
11228else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
11231fi
11232
11233
11234 fi
11235 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11237set dummy ${ncn_progname}; ac_word=$2
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239$as_echo_n "checking for $ac_word... " >&6; }
11240if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242else
11243 if test -n "$AS_FOR_TARGET"; then
11244 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11245else
11246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247for as_dir in $PATH
11248do
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
11251 for ac_exec_ext in '' $ac_executable_extensions; do
11252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11253 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 break 2
11256 fi
11257done
11258 done
11259IFS=$as_save_IFS
11260
11261fi
11262fi
11263AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11264if test -n "$AS_FOR_TARGET"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11266$as_echo "$AS_FOR_TARGET" >&6; }
11267else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
11270fi
11271
11272
11273 fi
11274 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11275 done
11276fi
11277
11278if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11279 set dummy as
11280 if test $build = $target ; then
11281 AS_FOR_TARGET="$2"
11282 else
11283 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11284 fi
11285else
11286 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11287fi
11288
11289else
11290 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11291fi
11292
11293
11294
11295
11296if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11297 if test -n "$with_build_time_tools"; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11299$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11300 if test -x $with_build_time_tools/dlltool; then
11301 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11302 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11304$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11305 else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307$as_echo "no" >&6; }
11308 fi
11309 elif test $build != $host && test $have_gcc_for_target = yes; then
11310 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11311 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11312 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11313 fi
11314fi
11315if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11316 # Extract the first word of "dlltool", so it can be a program name with args.
11317set dummy dlltool; ac_word=$2
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319$as_echo_n "checking for $ac_word... " >&6; }
11320if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322else
11323 case $DLLTOOL_FOR_TARGET in
11324 [\\/]* | ?:[\\/]*)
11325 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11326 ;;
11327 *)
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $gcc_cv_tool_dirs
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339done
11340 done
11341IFS=$as_save_IFS
11342
11343 ;;
11344esac
11345fi
11346DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11347if test -n "$DLLTOOL_FOR_TARGET"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11349$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11350else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352$as_echo "no" >&6; }
11353fi
11354
11355
11356fi
11357if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11358
11359
11360if test -n "$DLLTOOL_FOR_TARGET"; then
11361 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11362elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11363 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11364fi
11365
11366if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11367 for ncn_progname in dlltool; do
11368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11369set dummy ${ncn_progname}; ac_word=$2
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371$as_echo_n "checking for $ac_word... " >&6; }
11372if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11373 $as_echo_n "(cached) " >&6
11374else
11375 if test -n "$DLLTOOL_FOR_TARGET"; then
11376 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11377else
11378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379for as_dir in $PATH
11380do
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
11383 for ac_exec_ext in '' $ac_executable_extensions; do
11384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11385 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 break 2
11388 fi
11389done
11390 done
11391IFS=$as_save_IFS
11392
11393fi
11394fi
11395DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11396if test -n "$DLLTOOL_FOR_TARGET"; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11398$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11399else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401$as_echo "no" >&6; }
11402fi
11403
11404
11405 done
11406fi
11407
11408if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11409 for ncn_progname in dlltool; do
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11411$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11412 if test -x $with_build_time_tools/${ncn_progname}; then
11413 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11415$as_echo "yes" >&6; }
11416 break
11417 else
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419$as_echo "no" >&6; }
11420 fi
11421 done
11422fi
11423
11424if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11425 for ncn_progname in dlltool; do
11426 if test -n "$ncn_target_tool_prefix"; then
11427 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11428set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11430$as_echo_n "checking for $ac_word... " >&6; }
11431if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11432 $as_echo_n "(cached) " >&6
11433else
11434 if test -n "$DLLTOOL_FOR_TARGET"; then
11435 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11436else
11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $PATH
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11444 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 break 2
11447 fi
11448done
11449 done
11450IFS=$as_save_IFS
11451
11452fi
11453fi
11454DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11455if test -n "$DLLTOOL_FOR_TARGET"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11457$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11458else
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
11461fi
11462
11463
11464 fi
11465 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11467set dummy ${ncn_progname}; ac_word=$2
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469$as_echo_n "checking for $ac_word... " >&6; }
11470if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472else
11473 if test -n "$DLLTOOL_FOR_TARGET"; then
11474 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11475else
11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $PATH
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11486 fi
11487done
11488 done
11489IFS=$as_save_IFS
11490
11491fi
11492fi
11493DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11494if test -n "$DLLTOOL_FOR_TARGET"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11496$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11497else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
11500fi
11501
11502
11503 fi
11504 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11505 done
11506fi
11507
11508if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11509 set dummy dlltool
11510 if test $build = $target ; then
11511 DLLTOOL_FOR_TARGET="$2"
11512 else
11513 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11514 fi
11515else
11516 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11517fi
11518
11519else
11520 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11521fi
11522
11523
11524
11525
11526if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11527 if test -n "$with_build_time_tools"; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11529$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11530 if test -x $with_build_time_tools/ld; then
11531 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11532 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11534$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537$as_echo "no" >&6; }
11538 fi
11539 elif test $build != $host && test $have_gcc_for_target = yes; then
11540 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11541 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11542 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11543 fi
11544fi
11545if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11546 # Extract the first word of "ld", so it can be a program name with args.
11547set dummy ld; ac_word=$2
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549$as_echo_n "checking for $ac_word... " >&6; }
11550if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11551 $as_echo_n "(cached) " >&6
11552else
11553 case $LD_FOR_TARGET in
11554 [\\/]* | ?:[\\/]*)
11555 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11556 ;;
11557 *)
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559for as_dir in $gcc_cv_tool_dirs
11560do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11568 fi
11569done
11570 done
11571IFS=$as_save_IFS
11572
11573 ;;
11574esac
11575fi
11576LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11577if test -n "$LD_FOR_TARGET"; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11579$as_echo "$LD_FOR_TARGET" >&6; }
11580else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582$as_echo "no" >&6; }
11583fi
11584
11585
11586fi
11587if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11588
11589
11590if test -n "$LD_FOR_TARGET"; then
11591 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11592elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11593 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11594fi
11595
11596if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11597 for ncn_progname in ld; do
11598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11599set dummy ${ncn_progname}; ac_word=$2
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601$as_echo_n "checking for $ac_word... " >&6; }
11602if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604else
11605 if test -n "$LD_FOR_TARGET"; then
11606 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11607else
11608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609for as_dir in $PATH
11610do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 break 2
11618 fi
11619done
11620 done
11621IFS=$as_save_IFS
11622
11623fi
11624fi
11625LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11626if test -n "$LD_FOR_TARGET"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11628$as_echo "$LD_FOR_TARGET" >&6; }
11629else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631$as_echo "no" >&6; }
11632fi
11633
11634
11635 done
11636fi
11637
11638if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11639 for ncn_progname in ld; do
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11641$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11642 if test -x $with_build_time_tools/${ncn_progname}; then
11643 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645$as_echo "yes" >&6; }
11646 break
11647 else
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649$as_echo "no" >&6; }
11650 fi
11651 done
11652fi
11653
11654if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11655 for ncn_progname in ld; do
11656 if test -n "$ncn_target_tool_prefix"; then
11657 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11658set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660$as_echo_n "checking for $ac_word... " >&6; }
11661if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11662 $as_echo_n "(cached) " >&6
11663else
11664 if test -n "$LD_FOR_TARGET"; then
11665 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11666else
11667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668for as_dir in $PATH
11669do
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
11672 for ac_exec_ext in '' $ac_executable_extensions; do
11673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11674 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11676 break 2
11677 fi
11678done
11679 done
11680IFS=$as_save_IFS
11681
11682fi
11683fi
11684LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11685if test -n "$LD_FOR_TARGET"; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11687$as_echo "$LD_FOR_TARGET" >&6; }
11688else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
11691fi
11692
11693
11694 fi
11695 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11697set dummy ${ncn_progname}; ac_word=$2
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699$as_echo_n "checking for $ac_word... " >&6; }
11700if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11701 $as_echo_n "(cached) " >&6
11702else
11703 if test -n "$LD_FOR_TARGET"; then
11704 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11705else
11706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707for as_dir in $PATH
11708do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 break 2
11716 fi
11717done
11718 done
11719IFS=$as_save_IFS
11720
11721fi
11722fi
11723LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11724if test -n "$LD_FOR_TARGET"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11726$as_echo "$LD_FOR_TARGET" >&6; }
11727else
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729$as_echo "no" >&6; }
11730fi
11731
11732
11733 fi
11734 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11735 done
11736fi
11737
11738if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11739 set dummy ld
11740 if test $build = $target ; then
11741 LD_FOR_TARGET="$2"
11742 else
11743 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11744 fi
11745else
11746 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11747fi
11748
11749else
11750 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11751fi
11752
11753
11754
11755
11756if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11757 if test -n "$with_build_time_tools"; then
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11759$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11760 if test -x $with_build_time_tools/lipo; then
11761 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11762 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11764$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11765 else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767$as_echo "no" >&6; }
11768 fi
11769 elif test $build != $host && test $have_gcc_for_target = yes; then
11770 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11771 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11772 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11773 fi
11774fi
11775if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11776 # Extract the first word of "lipo", so it can be a program name with args.
11777set dummy lipo; ac_word=$2
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779$as_echo_n "checking for $ac_word... " >&6; }
11780if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
11781 $as_echo_n "(cached) " >&6
11782else
11783 case $LIPO_FOR_TARGET in
11784 [\\/]* | ?:[\\/]*)
11785 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11786 ;;
11787 *)
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789for as_dir in $gcc_cv_tool_dirs
11790do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 break 2
11798 fi
11799done
11800 done
11801IFS=$as_save_IFS
11802
11803 ;;
11804esac
11805fi
11806LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11807if test -n "$LIPO_FOR_TARGET"; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11809$as_echo "$LIPO_FOR_TARGET" >&6; }
11810else
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812$as_echo "no" >&6; }
11813fi
11814
11815
11816fi
11817if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11818
11819
11820if test -n "$LIPO_FOR_TARGET"; then
11821 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11822elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11823 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11824fi
11825
11826if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11827 for ncn_progname in lipo; do
11828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11829set dummy ${ncn_progname}; ac_word=$2
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831$as_echo_n "checking for $ac_word... " >&6; }
11832if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11833 $as_echo_n "(cached) " >&6
11834else
11835 if test -n "$LIPO_FOR_TARGET"; then
11836 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11837else
11838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
11840do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 break 2
11848 fi
11849done
11850 done
11851IFS=$as_save_IFS
11852
11853fi
11854fi
11855LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11856if test -n "$LIPO_FOR_TARGET"; then
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11858$as_echo "$LIPO_FOR_TARGET" >&6; }
11859else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861$as_echo "no" >&6; }
11862fi
11863
11864
11865 done
11866fi
11867
11868if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11869 for ncn_progname in lipo; do
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11871$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11872 if test -x $with_build_time_tools/${ncn_progname}; then
11873 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875$as_echo "yes" >&6; }
11876 break
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879$as_echo "no" >&6; }
11880 fi
11881 done
11882fi
11883
11884if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11885 for ncn_progname in lipo; do
11886 if test -n "$ncn_target_tool_prefix"; then
11887 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11888set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890$as_echo_n "checking for $ac_word... " >&6; }
11891if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893else
11894 if test -n "$LIPO_FOR_TARGET"; then
11895 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11896else
11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $PATH
11899do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 break 2
11907 fi
11908done
11909 done
11910IFS=$as_save_IFS
11911
11912fi
11913fi
11914LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11915if test -n "$LIPO_FOR_TARGET"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11917$as_echo "$LIPO_FOR_TARGET" >&6; }
11918else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
11921fi
11922
11923
11924 fi
11925 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11927set dummy ${ncn_progname}; ac_word=$2
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929$as_echo_n "checking for $ac_word... " >&6; }
11930if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11931 $as_echo_n "(cached) " >&6
11932else
11933 if test -n "$LIPO_FOR_TARGET"; then
11934 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11935else
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11946 fi
11947done
11948 done
11949IFS=$as_save_IFS
11950
11951fi
11952fi
11953LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11954if test -n "$LIPO_FOR_TARGET"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11956$as_echo "$LIPO_FOR_TARGET" >&6; }
11957else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960fi
11961
11962
11963 fi
11964 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11965 done
11966fi
11967
11968if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11969 set dummy lipo
11970 if test $build = $target ; then
11971 LIPO_FOR_TARGET="$2"
11972 else
11973 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11974 fi
11975else
11976 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11977fi
11978
11979else
11980 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11981fi
11982
11983
11984
11985
11986if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11987 if test -n "$with_build_time_tools"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11989$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11990 if test -x $with_build_time_tools/nm; then
11991 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11992 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11994$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11995 else
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997$as_echo "no" >&6; }
11998 fi
11999 elif test $build != $host && test $have_gcc_for_target = yes; then
12000 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12001 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12002 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12003 fi
12004fi
12005if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12006 # Extract the first word of "nm", so it can be a program name with args.
12007set dummy nm; ac_word=$2
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009$as_echo_n "checking for $ac_word... " >&6; }
12010if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12011 $as_echo_n "(cached) " >&6
12012else
12013 case $NM_FOR_TARGET in
12014 [\\/]* | ?:[\\/]*)
12015 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12016 ;;
12017 *)
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019for as_dir in $gcc_cv_tool_dirs
12020do
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12028 fi
12029done
12030 done
12031IFS=$as_save_IFS
12032
12033 ;;
12034esac
12035fi
12036NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12037if test -n "$NM_FOR_TARGET"; then
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12039$as_echo "$NM_FOR_TARGET" >&6; }
12040else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042$as_echo "no" >&6; }
12043fi
12044
12045
12046fi
12047if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12048
12049
12050if test -n "$NM_FOR_TARGET"; then
12051 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12052elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12053 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12054fi
12055
12056if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12057 for ncn_progname in nm; do
12058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12059set dummy ${ncn_progname}; ac_word=$2
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061$as_echo_n "checking for $ac_word... " >&6; }
12062if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064else
12065 if test -n "$NM_FOR_TARGET"; then
12066 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12067else
12068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069for as_dir in $PATH
12070do
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12075 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 break 2
12078 fi
12079done
12080 done
12081IFS=$as_save_IFS
12082
12083fi
12084fi
12085NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12086if test -n "$NM_FOR_TARGET"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12088$as_echo "$NM_FOR_TARGET" >&6; }
12089else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091$as_echo "no" >&6; }
12092fi
12093
12094
12095 done
12096fi
12097
12098if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12099 for ncn_progname in nm; do
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12101$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12102 if test -x $with_build_time_tools/${ncn_progname}; then
12103 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105$as_echo "yes" >&6; }
12106 break
12107 else
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109$as_echo "no" >&6; }
12110 fi
12111 done
12112fi
12113
12114if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12115 for ncn_progname in nm; do
12116 if test -n "$ncn_target_tool_prefix"; then
12117 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12118set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120$as_echo_n "checking for $ac_word... " >&6; }
12121if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123else
12124 if test -n "$NM_FOR_TARGET"; then
12125 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12126else
12127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 break 2
12137 fi
12138done
12139 done
12140IFS=$as_save_IFS
12141
12142fi
12143fi
12144NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12145if test -n "$NM_FOR_TARGET"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12147$as_echo "$NM_FOR_TARGET" >&6; }
12148else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
12151fi
12152
12153
12154 fi
12155 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12157set dummy ${ncn_progname}; ac_word=$2
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159$as_echo_n "checking for $ac_word... " >&6; }
12160if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162else
12163 if test -n "$NM_FOR_TARGET"; then
12164 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12165else
12166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167for as_dir in $PATH
12168do
12169 IFS=$as_save_IFS
12170 test -z "$as_dir" && as_dir=.
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12173 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 break 2
12176 fi
12177done
12178 done
12179IFS=$as_save_IFS
12180
12181fi
12182fi
12183NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12184if test -n "$NM_FOR_TARGET"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12186$as_echo "$NM_FOR_TARGET" >&6; }
12187else
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189$as_echo "no" >&6; }
12190fi
12191
12192
12193 fi
12194 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12195 done
12196fi
12197
12198if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12199 set dummy nm
12200 if test $build = $target ; then
12201 NM_FOR_TARGET="$2"
12202 else
12203 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12204 fi
12205else
12206 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12207fi
12208
12209else
12210 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12211fi
12212
12213
12214
12215
12216if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12217 if test -n "$with_build_time_tools"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12219$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12220 if test -x $with_build_time_tools/objcopy; then
12221 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12222 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12224$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227$as_echo "no" >&6; }
12228 fi
12229 elif test $build != $host && test $have_gcc_for_target = yes; then
12230 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12231 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12232 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12233 fi
12234fi
12235if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12236 # Extract the first word of "objcopy", so it can be a program name with args.
12237set dummy objcopy; ac_word=$2
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239$as_echo_n "checking for $ac_word... " >&6; }
12240if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12241 $as_echo_n "(cached) " >&6
12242else
12243 case $OBJCOPY_FOR_TARGET in
12244 [\\/]* | ?:[\\/]*)
12245 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12246 ;;
12247 *)
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249for as_dir in $gcc_cv_tool_dirs
12250do
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
12253 for ac_exec_ext in '' $ac_executable_extensions; do
12254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12255 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 break 2
12258 fi
12259done
12260 done
12261IFS=$as_save_IFS
12262
12263 ;;
12264esac
12265fi
12266OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12267if test -n "$OBJCOPY_FOR_TARGET"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12269$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12270else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272$as_echo "no" >&6; }
12273fi
12274
12275
12276fi
12277if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12278
12279
12280if test -n "$OBJCOPY_FOR_TARGET"; then
12281 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12282elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12283 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12284fi
12285
12286if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12287 for ncn_progname in objcopy; do
12288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12289set dummy ${ncn_progname}; ac_word=$2
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291$as_echo_n "checking for $ac_word... " >&6; }
12292if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294else
12295 if test -n "$OBJCOPY_FOR_TARGET"; then
12296 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12297else
12298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299for as_dir in $PATH
12300do
12301 IFS=$as_save_IFS
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12305 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 break 2
12308 fi
12309done
12310 done
12311IFS=$as_save_IFS
12312
12313fi
12314fi
12315OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12316if test -n "$OBJCOPY_FOR_TARGET"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12318$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12319else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321$as_echo "no" >&6; }
12322fi
12323
12324
12325 done
12326fi
12327
12328if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12329 for ncn_progname in objcopy; do
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12331$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12332 if test -x $with_build_time_tools/${ncn_progname}; then
12333 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12335$as_echo "yes" >&6; }
12336 break
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339$as_echo "no" >&6; }
12340 fi
12341 done
12342fi
12343
12344if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12345 for ncn_progname in objcopy; do
12346 if test -n "$ncn_target_tool_prefix"; then
12347 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12348set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350$as_echo_n "checking for $ac_word... " >&6; }
12351if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12352 $as_echo_n "(cached) " >&6
12353else
12354 if test -n "$OBJCOPY_FOR_TARGET"; then
12355 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12356else
12357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $PATH
12359do
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
12362 for ac_exec_ext in '' $ac_executable_extensions; do
12363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12364 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366 break 2
12367 fi
12368done
12369 done
12370IFS=$as_save_IFS
12371
12372fi
12373fi
12374OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12375if test -n "$OBJCOPY_FOR_TARGET"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12377$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12378else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
12381fi
12382
12383
12384 fi
12385 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12387set dummy ${ncn_progname}; ac_word=$2
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389$as_echo_n "checking for $ac_word... " >&6; }
12390if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392else
12393 if test -n "$OBJCOPY_FOR_TARGET"; then
12394 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12395else
12396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397for as_dir in $PATH
12398do
12399 IFS=$as_save_IFS
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405 break 2
12406 fi
12407done
12408 done
12409IFS=$as_save_IFS
12410
12411fi
12412fi
12413OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12414if test -n "$OBJCOPY_FOR_TARGET"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12416$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12417else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419$as_echo "no" >&6; }
12420fi
12421
12422
12423 fi
12424 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12425 done
12426fi
12427
12428if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12429 set dummy objcopy
12430 if test $build = $target ; then
12431 OBJCOPY_FOR_TARGET="$2"
12432 else
12433 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12434 fi
12435else
12436 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12437fi
12438
12439else
12440 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12441fi
12442
12443
12444
12445
12446if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12447 if test -n "$with_build_time_tools"; then
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12449$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12450 if test -x $with_build_time_tools/objdump; then
12451 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12452 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12454$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457$as_echo "no" >&6; }
12458 fi
12459 elif test $build != $host && test $have_gcc_for_target = yes; then
12460 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12461 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12462 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12463 fi
12464fi
12465if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12466 # Extract the first word of "objdump", so it can be a program name with args.
12467set dummy objdump; ac_word=$2
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469$as_echo_n "checking for $ac_word... " >&6; }
12470if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12471 $as_echo_n "(cached) " >&6
12472else
12473 case $OBJDUMP_FOR_TARGET in
12474 [\\/]* | ?:[\\/]*)
12475 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12476 ;;
12477 *)
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479for as_dir in $gcc_cv_tool_dirs
12480do
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
12484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12485 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 break 2
12488 fi
12489done
12490 done
12491IFS=$as_save_IFS
12492
12493 ;;
12494esac
12495fi
12496OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12497if test -n "$OBJDUMP_FOR_TARGET"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12499$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12500else
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502$as_echo "no" >&6; }
12503fi
12504
12505
12506fi
12507if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12508
12509
12510if test -n "$OBJDUMP_FOR_TARGET"; then
12511 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12512elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12513 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12514fi
12515
12516if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12517 for ncn_progname in objdump; do
12518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12519set dummy ${ncn_progname}; ac_word=$2
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521$as_echo_n "checking for $ac_word... " >&6; }
12522if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12523 $as_echo_n "(cached) " >&6
12524else
12525 if test -n "$OBJDUMP_FOR_TARGET"; then
12526 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12527else
12528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529for as_dir in $PATH
12530do
12531 IFS=$as_save_IFS
12532 test -z "$as_dir" && as_dir=.
12533 for ac_exec_ext in '' $ac_executable_extensions; do
12534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12535 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12537 break 2
12538 fi
12539done
12540 done
12541IFS=$as_save_IFS
12542
12543fi
12544fi
12545OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12546if test -n "$OBJDUMP_FOR_TARGET"; then
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12548$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12549else
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551$as_echo "no" >&6; }
12552fi
12553
12554
12555 done
12556fi
12557
12558if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12559 for ncn_progname in objdump; do
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12561$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12562 if test -x $with_build_time_tools/${ncn_progname}; then
12563 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12565$as_echo "yes" >&6; }
12566 break
12567 else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569$as_echo "no" >&6; }
12570 fi
12571 done
12572fi
12573
12574if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12575 for ncn_progname in objdump; do
12576 if test -n "$ncn_target_tool_prefix"; then
12577 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12578set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580$as_echo_n "checking for $ac_word... " >&6; }
12581if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583else
12584 if test -n "$OBJDUMP_FOR_TARGET"; then
12585 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12586else
12587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588for as_dir in $PATH
12589do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 break 2
12597 fi
12598done
12599 done
12600IFS=$as_save_IFS
12601
12602fi
12603fi
12604OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12605if test -n "$OBJDUMP_FOR_TARGET"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12607$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12608else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
12611fi
12612
12613
12614 fi
12615 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12617set dummy ${ncn_progname}; ac_word=$2
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619$as_echo_n "checking for $ac_word... " >&6; }
12620if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622else
12623 if test -n "$OBJDUMP_FOR_TARGET"; then
12624 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12625else
12626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627for as_dir in $PATH
12628do
12629 IFS=$as_save_IFS
12630 test -z "$as_dir" && as_dir=.
12631 for ac_exec_ext in '' $ac_executable_extensions; do
12632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12633 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12635 break 2
12636 fi
12637done
12638 done
12639IFS=$as_save_IFS
12640
12641fi
12642fi
12643OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12644if test -n "$OBJDUMP_FOR_TARGET"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12646$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12647else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649$as_echo "no" >&6; }
12650fi
12651
12652
12653 fi
12654 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12655 done
12656fi
12657
12658if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12659 set dummy objdump
12660 if test $build = $target ; then
12661 OBJDUMP_FOR_TARGET="$2"
12662 else
12663 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12664 fi
12665else
12666 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12667fi
12668
12669else
12670 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12671fi
12672
12673
12674
12675
12676if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12677 if test -n "$with_build_time_tools"; then
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12679$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12680 if test -x $with_build_time_tools/ranlib; then
12681 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12682 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12684$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12685 else
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687$as_echo "no" >&6; }
12688 fi
12689 elif test $build != $host && test $have_gcc_for_target = yes; then
12690 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12691 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12692 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12693 fi
12694fi
12695if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12696 # Extract the first word of "ranlib", so it can be a program name with args.
12697set dummy ranlib; ac_word=$2
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699$as_echo_n "checking for $ac_word... " >&6; }
12700if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702else
12703 case $RANLIB_FOR_TARGET in
12704 [\\/]* | ?:[\\/]*)
12705 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12706 ;;
12707 *)
12708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709for as_dir in $gcc_cv_tool_dirs
12710do
12711 IFS=$as_save_IFS
12712 test -z "$as_dir" && as_dir=.
12713 for ac_exec_ext in '' $ac_executable_extensions; do
12714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12715 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717 break 2
12718 fi
12719done
12720 done
12721IFS=$as_save_IFS
12722
12723 ;;
12724esac
12725fi
12726RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12727if test -n "$RANLIB_FOR_TARGET"; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12729$as_echo "$RANLIB_FOR_TARGET" >&6; }
12730else
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732$as_echo "no" >&6; }
12733fi
12734
12735
12736fi
12737if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12738
12739
12740if test -n "$RANLIB_FOR_TARGET"; then
12741 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12742elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12743 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12744fi
12745
12746if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12747 for ncn_progname in ranlib; do
12748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12749set dummy ${ncn_progname}; ac_word=$2
12750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12751$as_echo_n "checking for $ac_word... " >&6; }
12752if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12753 $as_echo_n "(cached) " >&6
12754else
12755 if test -n "$RANLIB_FOR_TARGET"; then
12756 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12757else
12758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759for as_dir in $PATH
12760do
12761 IFS=$as_save_IFS
12762 test -z "$as_dir" && as_dir=.
12763 for ac_exec_ext in '' $ac_executable_extensions; do
12764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12765 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12767 break 2
12768 fi
12769done
12770 done
12771IFS=$as_save_IFS
12772
12773fi
12774fi
12775RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12776if test -n "$RANLIB_FOR_TARGET"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12778$as_echo "$RANLIB_FOR_TARGET" >&6; }
12779else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781$as_echo "no" >&6; }
12782fi
12783
12784
12785 done
12786fi
12787
12788if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12789 for ncn_progname in ranlib; do
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12791$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12792 if test -x $with_build_time_tools/${ncn_progname}; then
12793 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12795$as_echo "yes" >&6; }
12796 break
12797 else
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799$as_echo "no" >&6; }
12800 fi
12801 done
12802fi
12803
12804if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12805 for ncn_progname in ranlib; do
12806 if test -n "$ncn_target_tool_prefix"; then
12807 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12808set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810$as_echo_n "checking for $ac_word... " >&6; }
12811if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813else
12814 if test -n "$RANLIB_FOR_TARGET"; then
12815 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12816else
12817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818for as_dir in $PATH
12819do
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12824 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 break 2
12827 fi
12828done
12829 done
12830IFS=$as_save_IFS
12831
12832fi
12833fi
12834RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12835if test -n "$RANLIB_FOR_TARGET"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12837$as_echo "$RANLIB_FOR_TARGET" >&6; }
12838else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840$as_echo "no" >&6; }
12841fi
12842
12843
12844 fi
12845 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12847set dummy ${ncn_progname}; ac_word=$2
12848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12849$as_echo_n "checking for $ac_word... " >&6; }
12850if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12851 $as_echo_n "(cached) " >&6
12852else
12853 if test -n "$RANLIB_FOR_TARGET"; then
12854 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12855else
12856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857for as_dir in $PATH
12858do
12859 IFS=$as_save_IFS
12860 test -z "$as_dir" && as_dir=.
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12863 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12865 break 2
12866 fi
12867done
12868 done
12869IFS=$as_save_IFS
12870
12871fi
12872fi
12873RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12874if test -n "$RANLIB_FOR_TARGET"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12876$as_echo "$RANLIB_FOR_TARGET" >&6; }
12877else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879$as_echo "no" >&6; }
12880fi
12881
12882
12883 fi
12884 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12885 done
12886fi
12887
12888if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12889 set dummy ranlib
12890 if test $build = $target ; then
12891 RANLIB_FOR_TARGET="$2"
12892 else
12893 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12894 fi
12895else
12896 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12897fi
12898
12899else
12900 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12901fi
12902
12903
12904
12905
12906if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12907 if test -n "$with_build_time_tools"; then
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12909$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12910 if test -x $with_build_time_tools/readelf; then
12911 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12912 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12914$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917$as_echo "no" >&6; }
12918 fi
12919 elif test $build != $host && test $have_gcc_for_target = yes; then
12920 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12921 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12922 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12923 fi
12924fi
12925if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12926 # Extract the first word of "readelf", so it can be a program name with args.
12927set dummy readelf; ac_word=$2
12928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12929$as_echo_n "checking for $ac_word... " >&6; }
12930if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
12931 $as_echo_n "(cached) " >&6
12932else
12933 case $READELF_FOR_TARGET in
12934 [\\/]* | ?:[\\/]*)
12935 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12936 ;;
12937 *)
12938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12939for as_dir in $gcc_cv_tool_dirs
12940do
12941 IFS=$as_save_IFS
12942 test -z "$as_dir" && as_dir=.
12943 for ac_exec_ext in '' $ac_executable_extensions; do
12944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12945 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12947 break 2
12948 fi
12949done
12950 done
12951IFS=$as_save_IFS
12952
12953 ;;
12954esac
12955fi
12956READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12957if test -n "$READELF_FOR_TARGET"; then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12959$as_echo "$READELF_FOR_TARGET" >&6; }
12960else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962$as_echo "no" >&6; }
12963fi
12964
12965
12966fi
12967if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12968
12969
12970if test -n "$READELF_FOR_TARGET"; then
12971 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12972elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12973 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12974fi
12975
12976if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12977 for ncn_progname in readelf; do
12978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12979set dummy ${ncn_progname}; ac_word=$2
12980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981$as_echo_n "checking for $ac_word... " >&6; }
12982if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
12983 $as_echo_n "(cached) " >&6
12984else
12985 if test -n "$READELF_FOR_TARGET"; then
12986 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12987else
12988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989for as_dir in $PATH
12990do
12991 IFS=$as_save_IFS
12992 test -z "$as_dir" && as_dir=.
12993 for ac_exec_ext in '' $ac_executable_extensions; do
12994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12995 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12997 break 2
12998 fi
12999done
13000 done
13001IFS=$as_save_IFS
13002
13003fi
13004fi
13005READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13006if test -n "$READELF_FOR_TARGET"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13008$as_echo "$READELF_FOR_TARGET" >&6; }
13009else
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011$as_echo "no" >&6; }
13012fi
13013
13014
13015 done
13016fi
13017
13018if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13019 for ncn_progname in readelf; do
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13021$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13022 if test -x $with_build_time_tools/${ncn_progname}; then
13023 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13025$as_echo "yes" >&6; }
13026 break
13027 else
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029$as_echo "no" >&6; }
13030 fi
13031 done
13032fi
13033
13034if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13035 for ncn_progname in readelf; do
13036 if test -n "$ncn_target_tool_prefix"; then
13037 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13038set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040$as_echo_n "checking for $ac_word... " >&6; }
13041if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043else
13044 if test -n "$READELF_FOR_TARGET"; then
13045 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13046else
13047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048for as_dir in $PATH
13049do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13057 fi
13058done
13059 done
13060IFS=$as_save_IFS
13061
13062fi
13063fi
13064READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13065if test -n "$READELF_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13067$as_echo "$READELF_FOR_TARGET" >&6; }
13068else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
13071fi
13072
13073
13074 fi
13075 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13077set dummy ${ncn_progname}; ac_word=$2
13078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079$as_echo_n "checking for $ac_word... " >&6; }
13080if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082else
13083 if test -n "$READELF_FOR_TARGET"; then
13084 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13085else
13086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087for as_dir in $PATH
13088do
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095 break 2
13096 fi
13097done
13098 done
13099IFS=$as_save_IFS
13100
13101fi
13102fi
13103READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13104if test -n "$READELF_FOR_TARGET"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13106$as_echo "$READELF_FOR_TARGET" >&6; }
13107else
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109$as_echo "no" >&6; }
13110fi
13111
13112
13113 fi
13114 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13115 done
13116fi
13117
13118if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13119 set dummy readelf
13120 if test $build = $target ; then
13121 READELF_FOR_TARGET="$2"
13122 else
13123 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13124 fi
13125else
13126 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13127fi
13128
13129else
13130 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13131fi
13132
13133
13134
13135
13136if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13137 if test -n "$with_build_time_tools"; then
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13139$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13140 if test -x $with_build_time_tools/strip; then
13141 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13142 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13144$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13145 else
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147$as_echo "no" >&6; }
13148 fi
13149 elif test $build != $host && test $have_gcc_for_target = yes; then
13150 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13151 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13152 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13153 fi
13154fi
13155if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13156 # Extract the first word of "strip", so it can be a program name with args.
13157set dummy strip; ac_word=$2
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159$as_echo_n "checking for $ac_word... " >&6; }
13160if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13161 $as_echo_n "(cached) " >&6
13162else
13163 case $STRIP_FOR_TARGET in
13164 [\\/]* | ?:[\\/]*)
13165 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13166 ;;
13167 *)
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $gcc_cv_tool_dirs
13170do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13175 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13178 fi
13179done
13180 done
13181IFS=$as_save_IFS
13182
13183 ;;
13184esac
13185fi
13186STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13187if test -n "$STRIP_FOR_TARGET"; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13189$as_echo "$STRIP_FOR_TARGET" >&6; }
13190else
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192$as_echo "no" >&6; }
13193fi
13194
13195
13196fi
13197if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13198
13199
13200if test -n "$STRIP_FOR_TARGET"; then
13201 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13202elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13203 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13204fi
13205
13206if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13207 for ncn_progname in strip; do
13208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13209set dummy ${ncn_progname}; ac_word=$2
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211$as_echo_n "checking for $ac_word... " >&6; }
13212if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13213 $as_echo_n "(cached) " >&6
13214else
13215 if test -n "$STRIP_FOR_TARGET"; then
13216 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13217else
13218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219for as_dir in $PATH
13220do
13221 IFS=$as_save_IFS
13222 test -z "$as_dir" && as_dir=.
13223 for ac_exec_ext in '' $ac_executable_extensions; do
13224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13225 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13227 break 2
13228 fi
13229done
13230 done
13231IFS=$as_save_IFS
13232
13233fi
13234fi
13235STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13236if test -n "$STRIP_FOR_TARGET"; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13238$as_echo "$STRIP_FOR_TARGET" >&6; }
13239else
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241$as_echo "no" >&6; }
13242fi
13243
13244
13245 done
13246fi
13247
13248if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13249 for ncn_progname in strip; do
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13251$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13252 if test -x $with_build_time_tools/${ncn_progname}; then
13253 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13255$as_echo "yes" >&6; }
13256 break
13257 else
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259$as_echo "no" >&6; }
13260 fi
13261 done
13262fi
13263
13264if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13265 for ncn_progname in strip; do
13266 if test -n "$ncn_target_tool_prefix"; then
13267 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13268set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13270$as_echo_n "checking for $ac_word... " >&6; }
13271if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13272 $as_echo_n "(cached) " >&6
13273else
13274 if test -n "$STRIP_FOR_TARGET"; then
13275 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13276else
13277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278for as_dir in $PATH
13279do
13280 IFS=$as_save_IFS
13281 test -z "$as_dir" && as_dir=.
13282 for ac_exec_ext in '' $ac_executable_extensions; do
13283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13284 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13286 break 2
13287 fi
13288done
13289 done
13290IFS=$as_save_IFS
13291
13292fi
13293fi
13294STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13295if test -n "$STRIP_FOR_TARGET"; then
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13297$as_echo "$STRIP_FOR_TARGET" >&6; }
13298else
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300$as_echo "no" >&6; }
13301fi
13302
13303
13304 fi
13305 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13307set dummy ${ncn_progname}; ac_word=$2
13308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13309$as_echo_n "checking for $ac_word... " >&6; }
13310if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13311 $as_echo_n "(cached) " >&6
13312else
13313 if test -n "$STRIP_FOR_TARGET"; then
13314 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13315else
13316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13317for as_dir in $PATH
13318do
13319 IFS=$as_save_IFS
13320 test -z "$as_dir" && as_dir=.
13321 for ac_exec_ext in '' $ac_executable_extensions; do
13322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13323 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13325 break 2
13326 fi
13327done
13328 done
13329IFS=$as_save_IFS
13330
13331fi
13332fi
13333STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13334if test -n "$STRIP_FOR_TARGET"; then
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13336$as_echo "$STRIP_FOR_TARGET" >&6; }
13337else
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13339$as_echo "no" >&6; }
13340fi
13341
13342
13343 fi
13344 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13345 done
13346fi
13347
13348if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13349 set dummy strip
13350 if test $build = $target ; then
13351 STRIP_FOR_TARGET="$2"
13352 else
13353 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13354 fi
13355else
13356 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13357fi
13358
13359else
13360 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13361fi
13362
13363
13364
13365
13366if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13367 if test -n "$with_build_time_tools"; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13369$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13370 if test -x $with_build_time_tools/windres; then
13371 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13372 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13374$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377$as_echo "no" >&6; }
13378 fi
13379 elif test $build != $host && test $have_gcc_for_target = yes; then
13380 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13381 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13382 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13383 fi
13384fi
13385if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13386 # Extract the first word of "windres", so it can be a program name with args.
13387set dummy windres; ac_word=$2
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389$as_echo_n "checking for $ac_word... " >&6; }
13390if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392else
13393 case $WINDRES_FOR_TARGET in
13394 [\\/]* | ?:[\\/]*)
13395 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13396 ;;
13397 *)
13398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399for as_dir in $gcc_cv_tool_dirs
13400do
13401 IFS=$as_save_IFS
13402 test -z "$as_dir" && as_dir=.
13403 for ac_exec_ext in '' $ac_executable_extensions; do
13404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13405 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13407 break 2
13408 fi
13409done
13410 done
13411IFS=$as_save_IFS
13412
13413 ;;
13414esac
13415fi
13416WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13417if test -n "$WINDRES_FOR_TARGET"; then
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13419$as_echo "$WINDRES_FOR_TARGET" >&6; }
13420else
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422$as_echo "no" >&6; }
13423fi
13424
13425
13426fi
13427if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13428
13429
13430if test -n "$WINDRES_FOR_TARGET"; then
13431 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13432elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13433 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13434fi
13435
13436if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13437 for ncn_progname in windres; do
13438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13439set dummy ${ncn_progname}; ac_word=$2
13440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441$as_echo_n "checking for $ac_word... " >&6; }
13442if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444else
13445 if test -n "$WINDRES_FOR_TARGET"; then
13446 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13447else
13448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449for as_dir in $PATH
13450do
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13455 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13457 break 2
13458 fi
13459done
13460 done
13461IFS=$as_save_IFS
13462
13463fi
13464fi
13465WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13466if test -n "$WINDRES_FOR_TARGET"; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13468$as_echo "$WINDRES_FOR_TARGET" >&6; }
13469else
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471$as_echo "no" >&6; }
13472fi
13473
13474
13475 done
13476fi
13477
13478if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13479 for ncn_progname in windres; do
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13481$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13482 if test -x $with_build_time_tools/${ncn_progname}; then
13483 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13485$as_echo "yes" >&6; }
13486 break
13487 else
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489$as_echo "no" >&6; }
13490 fi
13491 done
13492fi
13493
13494if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13495 for ncn_progname in windres; do
13496 if test -n "$ncn_target_tool_prefix"; then
13497 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13498set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500$as_echo_n "checking for $ac_word... " >&6; }
13501if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13502 $as_echo_n "(cached) " >&6
13503else
13504 if test -n "$WINDRES_FOR_TARGET"; then
13505 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13506else
13507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508for as_dir in $PATH
13509do
13510 IFS=$as_save_IFS
13511 test -z "$as_dir" && as_dir=.
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13514 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13516 break 2
13517 fi
13518done
13519 done
13520IFS=$as_save_IFS
13521
13522fi
13523fi
13524WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13525if test -n "$WINDRES_FOR_TARGET"; then
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13527$as_echo "$WINDRES_FOR_TARGET" >&6; }
13528else
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530$as_echo "no" >&6; }
13531fi
13532
13533
13534 fi
13535 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13537set dummy ${ncn_progname}; ac_word=$2
13538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539$as_echo_n "checking for $ac_word... " >&6; }
13540if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13541 $as_echo_n "(cached) " >&6
13542else
13543 if test -n "$WINDRES_FOR_TARGET"; then
13544 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13545else
13546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13547for as_dir in $PATH
13548do
13549 IFS=$as_save_IFS
13550 test -z "$as_dir" && as_dir=.
13551 for ac_exec_ext in '' $ac_executable_extensions; do
13552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13553 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13555 break 2
13556 fi
13557done
13558 done
13559IFS=$as_save_IFS
13560
13561fi
13562fi
13563WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13564if test -n "$WINDRES_FOR_TARGET"; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13566$as_echo "$WINDRES_FOR_TARGET" >&6; }
13567else
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569$as_echo "no" >&6; }
13570fi
13571
13572
13573 fi
13574 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13575 done
13576fi
13577
13578if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13579 set dummy windres
13580 if test $build = $target ; then
13581 WINDRES_FOR_TARGET="$2"
13582 else
13583 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13584 fi
13585else
13586 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13587fi
13588
13589else
13590 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13591fi
13592
13593
13594
13595
13596if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13597 if test -n "$with_build_time_tools"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13599$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13600 if test -x $with_build_time_tools/windmc; then
13601 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13602 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13604$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13605 else
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607$as_echo "no" >&6; }
13608 fi
13609 elif test $build != $host && test $have_gcc_for_target = yes; then
13610 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13611 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13612 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13613 fi
13614fi
13615if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13616 # Extract the first word of "windmc", so it can be a program name with args.
13617set dummy windmc; ac_word=$2
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619$as_echo_n "checking for $ac_word... " >&6; }
13620if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13621 $as_echo_n "(cached) " >&6
13622else
13623 case $WINDMC_FOR_TARGET in
13624 [\\/]* | ?:[\\/]*)
13625 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13626 ;;
13627 *)
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629for as_dir in $gcc_cv_tool_dirs
13630do
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13638 fi
13639done
13640 done
13641IFS=$as_save_IFS
13642
13643 ;;
13644esac
13645fi
13646WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13647if test -n "$WINDMC_FOR_TARGET"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13649$as_echo "$WINDMC_FOR_TARGET" >&6; }
13650else
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652$as_echo "no" >&6; }
13653fi
13654
13655
13656fi
13657if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13658
13659
13660if test -n "$WINDMC_FOR_TARGET"; then
13661 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13662elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13663 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13664fi
13665
13666if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13667 for ncn_progname in windmc; do
13668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13669set dummy ${ncn_progname}; ac_word=$2
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671$as_echo_n "checking for $ac_word... " >&6; }
13672if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674else
13675 if test -n "$WINDMC_FOR_TARGET"; then
13676 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13677else
13678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13679for as_dir in $PATH
13680do
13681 IFS=$as_save_IFS
13682 test -z "$as_dir" && as_dir=.
13683 for ac_exec_ext in '' $ac_executable_extensions; do
13684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13685 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13687 break 2
13688 fi
13689done
13690 done
13691IFS=$as_save_IFS
13692
13693fi
13694fi
13695WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13696if test -n "$WINDMC_FOR_TARGET"; then
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13698$as_echo "$WINDMC_FOR_TARGET" >&6; }
13699else
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701$as_echo "no" >&6; }
13702fi
13703
13704
13705 done
13706fi
13707
13708if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13709 for ncn_progname in windmc; do
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13711$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13712 if test -x $with_build_time_tools/${ncn_progname}; then
13713 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13715$as_echo "yes" >&6; }
13716 break
13717 else
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719$as_echo "no" >&6; }
13720 fi
13721 done
13722fi
13723
13724if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13725 for ncn_progname in windmc; do
13726 if test -n "$ncn_target_tool_prefix"; then
13727 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13728set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13730$as_echo_n "checking for $ac_word... " >&6; }
13731if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13732 $as_echo_n "(cached) " >&6
13733else
13734 if test -n "$WINDMC_FOR_TARGET"; then
13735 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13736else
13737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13738for as_dir in $PATH
13739do
13740 IFS=$as_save_IFS
13741 test -z "$as_dir" && as_dir=.
13742 for ac_exec_ext in '' $ac_executable_extensions; do
13743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13744 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13746 break 2
13747 fi
13748done
13749 done
13750IFS=$as_save_IFS
13751
13752fi
13753fi
13754WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13755if test -n "$WINDMC_FOR_TARGET"; then
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13757$as_echo "$WINDMC_FOR_TARGET" >&6; }
13758else
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760$as_echo "no" >&6; }
13761fi
13762
13763
13764 fi
13765 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13767set dummy ${ncn_progname}; ac_word=$2
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13769$as_echo_n "checking for $ac_word... " >&6; }
13770if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13771 $as_echo_n "(cached) " >&6
13772else
13773 if test -n "$WINDMC_FOR_TARGET"; then
13774 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13775else
13776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13777for as_dir in $PATH
13778do
13779 IFS=$as_save_IFS
13780 test -z "$as_dir" && as_dir=.
13781 for ac_exec_ext in '' $ac_executable_extensions; do
13782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13783 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13785 break 2
13786 fi
13787done
13788 done
13789IFS=$as_save_IFS
13790
13791fi
13792fi
13793WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13794if test -n "$WINDMC_FOR_TARGET"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13796$as_echo "$WINDMC_FOR_TARGET" >&6; }
13797else
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799$as_echo "no" >&6; }
13800fi
13801
13802
13803 fi
13804 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13805 done
13806fi
13807
13808if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13809 set dummy windmc
13810 if test $build = $target ; then
13811 WINDMC_FOR_TARGET="$2"
13812 else
13813 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13814 fi
13815else
13816 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13817fi
13818
13819else
13820 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13821fi
13822
13823
13824RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13825
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13827$as_echo_n "checking where to find the target ar... " >&6; }
13828if test "x${build}" != "x${host}" ; then
13829 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13830 # We already found the complete path
13831 ac_dir=`dirname $AR_FOR_TARGET`
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13833$as_echo "pre-installed in $ac_dir" >&6; }
13834 else
13835 # Canadian cross, just use what we found
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13837$as_echo "pre-installed" >&6; }
13838 fi
13839else
13840 ok=yes
13841 case " ${configdirs} " in
13842 *" binutils "*) ;;
13843 *) ok=no ;;
13844 esac
13845
13846 if test $ok = yes; then
13847 # An in-tree tool is available and we can use it
13848 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13850$as_echo "just compiled" >&6; }
13851 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13852 # We already found the complete path
13853 ac_dir=`dirname $AR_FOR_TARGET`
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13855$as_echo "pre-installed in $ac_dir" >&6; }
13856 elif test "x$target" = "x$host"; then
13857 # We can use an host tool
13858 AR_FOR_TARGET='$(AR)'
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13860$as_echo "host tool" >&6; }
13861 else
13862 # We need a cross tool
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864$as_echo "pre-installed" >&6; }
13865 fi
13866fi
13867
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13869$as_echo_n "checking where to find the target as... " >&6; }
13870if test "x${build}" != "x${host}" ; then
13871 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13872 # We already found the complete path
13873 ac_dir=`dirname $AS_FOR_TARGET`
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13875$as_echo "pre-installed in $ac_dir" >&6; }
13876 else
13877 # Canadian cross, just use what we found
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13879$as_echo "pre-installed" >&6; }
13880 fi
13881else
13882 ok=yes
13883 case " ${configdirs} " in
13884 *" gas "*) ;;
13885 *) ok=no ;;
13886 esac
13887
13888 if test $ok = yes; then
13889 # An in-tree tool is available and we can use it
13890 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13892$as_echo "just compiled" >&6; }
13893 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13894 # We already found the complete path
13895 ac_dir=`dirname $AS_FOR_TARGET`
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13897$as_echo "pre-installed in $ac_dir" >&6; }
13898 elif test "x$target" = "x$host"; then
13899 # We can use an host tool
13900 AS_FOR_TARGET='$(AS)'
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13902$as_echo "host tool" >&6; }
13903 else
13904 # We need a cross tool
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13906$as_echo "pre-installed" >&6; }
13907 fi
13908fi
13909
13910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13911$as_echo_n "checking where to find the target cc... " >&6; }
13912if test "x${build}" != "x${host}" ; then
13913 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13914 # We already found the complete path
13915 ac_dir=`dirname $CC_FOR_TARGET`
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13917$as_echo "pre-installed in $ac_dir" >&6; }
13918 else
13919 # Canadian cross, just use what we found
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13921$as_echo "pre-installed" >&6; }
13922 fi
13923else
13924 ok=yes
13925 case " ${configdirs} " in
13926 *" gcc "*) ;;
13927 *) ok=no ;;
13928 esac
13929
13930 if test $ok = yes; then
13931 # An in-tree tool is available and we can use it
13932 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13934$as_echo "just compiled" >&6; }
13935 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13936 # We already found the complete path
13937 ac_dir=`dirname $CC_FOR_TARGET`
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13939$as_echo "pre-installed in $ac_dir" >&6; }
13940 elif test "x$target" = "x$host"; then
13941 # We can use an host tool
13942 CC_FOR_TARGET='$(CC)'
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13944$as_echo "host tool" >&6; }
13945 else
13946 # We need a cross tool
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13948$as_echo "pre-installed" >&6; }
13949 fi
13950fi
13951
13952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13953$as_echo_n "checking where to find the target c++... " >&6; }
13954if test "x${build}" != "x${host}" ; then
13955 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13956 # We already found the complete path
13957 ac_dir=`dirname $CXX_FOR_TARGET`
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13959$as_echo "pre-installed in $ac_dir" >&6; }
13960 else
13961 # Canadian cross, just use what we found
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963$as_echo "pre-installed" >&6; }
13964 fi
13965else
13966 ok=yes
13967 case " ${configdirs} " in
13968 *" gcc "*) ;;
13969 *) ok=no ;;
13970 esac
13971 case ,${enable_languages}, in
13972 *,c++,*) ;;
13973 *) ok=no ;;
13974 esac
13975 if test $ok = yes; then
13976 # An in-tree tool is available and we can use it
13977 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'
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13979$as_echo "just compiled" >&6; }
13980 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13981 # We already found the complete path
13982 ac_dir=`dirname $CXX_FOR_TARGET`
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13984$as_echo "pre-installed in $ac_dir" >&6; }
13985 elif test "x$target" = "x$host"; then
13986 # We can use an host tool
13987 CXX_FOR_TARGET='$(CXX)'
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13989$as_echo "host tool" >&6; }
13990 else
13991 # We need a cross tool
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13993$as_echo "pre-installed" >&6; }
13994 fi
13995fi
13996
13997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13998$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13999if test "x${build}" != "x${host}" ; then
14000 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14001 # We already found the complete path
14002 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14004$as_echo "pre-installed in $ac_dir" >&6; }
14005 else
14006 # Canadian cross, just use what we found
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14008$as_echo "pre-installed" >&6; }
14009 fi
14010else
14011 ok=yes
14012 case " ${configdirs} " in
14013 *" gcc "*) ;;
14014 *) ok=no ;;
14015 esac
14016 case ,${enable_languages}, in
14017 *,c++,*) ;;
14018 *) ok=no ;;
14019 esac
14020 if test $ok = yes; then
14021 # An in-tree tool is available and we can use it
14022 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'
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14024$as_echo "just compiled" >&6; }
14025 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14026 # We already found the complete path
14027 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14029$as_echo "pre-installed in $ac_dir" >&6; }
14030 elif test "x$target" = "x$host"; then
14031 # We can use an host tool
14032 RAW_CXX_FOR_TARGET='$(CXX)'
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14034$as_echo "host tool" >&6; }
14035 else
14036 # We need a cross tool
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14038$as_echo "pre-installed" >&6; }
14039 fi
14040fi
14041
14042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14043$as_echo_n "checking where to find the target dlltool... " >&6; }
14044if test "x${build}" != "x${host}" ; then
14045 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14046 # We already found the complete path
14047 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14049$as_echo "pre-installed in $ac_dir" >&6; }
14050 else
14051 # Canadian cross, just use what we found
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14053$as_echo "pre-installed" >&6; }
14054 fi
14055else
14056 ok=yes
14057 case " ${configdirs} " in
14058 *" binutils "*) ;;
14059 *) ok=no ;;
14060 esac
14061
14062 if test $ok = yes; then
14063 # An in-tree tool is available and we can use it
14064 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14066$as_echo "just compiled" >&6; }
14067 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14068 # We already found the complete path
14069 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14071$as_echo "pre-installed in $ac_dir" >&6; }
14072 elif test "x$target" = "x$host"; then
14073 # We can use an host tool
14074 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14076$as_echo "host tool" >&6; }
14077 else
14078 # We need a cross tool
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080$as_echo "pre-installed" >&6; }
14081 fi
14082fi
14083
14084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14085$as_echo_n "checking where to find the target gcc... " >&6; }
14086if test "x${build}" != "x${host}" ; then
14087 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14088 # We already found the complete path
14089 ac_dir=`dirname $GCC_FOR_TARGET`
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14091$as_echo "pre-installed in $ac_dir" >&6; }
14092 else
14093 # Canadian cross, just use what we found
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14095$as_echo "pre-installed" >&6; }
14096 fi
14097else
14098 ok=yes
14099 case " ${configdirs} " in
14100 *" gcc "*) ;;
14101 *) ok=no ;;
14102 esac
14103
14104 if test $ok = yes; then
14105 # An in-tree tool is available and we can use it
14106 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14108$as_echo "just compiled" >&6; }
14109 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14110 # We already found the complete path
14111 ac_dir=`dirname $GCC_FOR_TARGET`
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14113$as_echo "pre-installed in $ac_dir" >&6; }
14114 elif test "x$target" = "x$host"; then
14115 # We can use an host tool
14116 GCC_FOR_TARGET='$()'
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14118$as_echo "host tool" >&6; }
14119 else
14120 # We need a cross tool
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14122$as_echo "pre-installed" >&6; }
14123 fi
14124fi
14125
14126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14127$as_echo_n "checking where to find the target gfortran... " >&6; }
14128if test "x${build}" != "x${host}" ; then
14129 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14130 # We already found the complete path
14131 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14133$as_echo "pre-installed in $ac_dir" >&6; }
14134 else
14135 # Canadian cross, just use what we found
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14137$as_echo "pre-installed" >&6; }
14138 fi
14139else
14140 ok=yes
14141 case " ${configdirs} " in
14142 *" gcc "*) ;;
14143 *) ok=no ;;
14144 esac
14145 case ,${enable_languages}, in
14146 *,fortran,*) ;;
14147 *) ok=no ;;
14148 esac
14149 if test $ok = yes; then
14150 # An in-tree tool is available and we can use it
14151 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14153$as_echo "just compiled" >&6; }
14154 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14155 # We already found the complete path
14156 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14158$as_echo "pre-installed in $ac_dir" >&6; }
14159 elif test "x$target" = "x$host"; then
14160 # We can use an host tool
14161 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14163$as_echo "host tool" >&6; }
14164 else
14165 # We need a cross tool
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14167$as_echo "pre-installed" >&6; }
14168 fi
14169fi
14170
14171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14172$as_echo_n "checking where to find the target gccgo... " >&6; }
14173if test "x${build}" != "x${host}" ; then
14174 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14175 # We already found the complete path
14176 ac_dir=`dirname $GOC_FOR_TARGET`
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14178$as_echo "pre-installed in $ac_dir" >&6; }
14179 else
14180 # Canadian cross, just use what we found
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14182$as_echo "pre-installed" >&6; }
14183 fi
14184else
14185 ok=yes
14186 case " ${configdirs} " in
14187 *" gcc "*) ;;
14188 *) ok=no ;;
14189 esac
14190 case ,${enable_languages}, in
14191 *,go,*) ;;
14192 *) ok=no ;;
14193 esac
14194 if test $ok = yes; then
14195 # An in-tree tool is available and we can use it
14196 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14198$as_echo "just compiled" >&6; }
14199 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14200 # We already found the complete path
14201 ac_dir=`dirname $GOC_FOR_TARGET`
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14203$as_echo "pre-installed in $ac_dir" >&6; }
14204 elif test "x$target" = "x$host"; then
14205 # We can use an host tool
14206 GOC_FOR_TARGET='$(GOC)'
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14208$as_echo "host tool" >&6; }
14209 else
14210 # We need a cross tool
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14212$as_echo "pre-installed" >&6; }
14213 fi
14214fi
14215
14216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14217$as_echo_n "checking where to find the target ld... " >&6; }
14218if test "x${build}" != "x${host}" ; then
14219 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14220 # We already found the complete path
14221 ac_dir=`dirname $LD_FOR_TARGET`
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14223$as_echo "pre-installed in $ac_dir" >&6; }
14224 else
14225 # Canadian cross, just use what we found
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14227$as_echo "pre-installed" >&6; }
14228 fi
14229else
14230 ok=yes
14231 case " ${configdirs} " in
14232 *" ld "*) ;;
14233 *) ok=no ;;
14234 esac
14235
14236 if test $ok = yes; then
14237 # An in-tree tool is available and we can use it
14238 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14240$as_echo "just compiled" >&6; }
14241 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14242 # We already found the complete path
14243 ac_dir=`dirname $LD_FOR_TARGET`
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14245$as_echo "pre-installed in $ac_dir" >&6; }
14246 elif test "x$target" = "x$host"; then
14247 # We can use an host tool
14248 LD_FOR_TARGET='$(LD)'
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14250$as_echo "host tool" >&6; }
14251 else
14252 # We need a cross tool
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14254$as_echo "pre-installed" >&6; }
14255 fi
14256fi
14257
14258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14259$as_echo_n "checking where to find the target lipo... " >&6; }
14260if test "x${build}" != "x${host}" ; then
14261 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14262 # We already found the complete path
14263 ac_dir=`dirname $LIPO_FOR_TARGET`
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14265$as_echo "pre-installed in $ac_dir" >&6; }
14266 else
14267 # Canadian cross, just use what we found
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14269$as_echo "pre-installed" >&6; }
14270 fi
14271else
14272 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
14274 ac_dir=`dirname $LIPO_FOR_TARGET`
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276$as_echo "pre-installed in $ac_dir" >&6; }
14277 elif test "x$target" = "x$host"; then
14278 # We can use an host tool
14279 LIPO_FOR_TARGET='$(LIPO)'
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14281$as_echo "host tool" >&6; }
14282 else
14283 # We need a cross tool
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14285$as_echo "pre-installed" >&6; }
14286 fi
14287fi
14288
14289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14290$as_echo_n "checking where to find the target nm... " >&6; }
14291if test "x${build}" != "x${host}" ; then
14292 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14293 # We already found the complete path
14294 ac_dir=`dirname $NM_FOR_TARGET`
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14296$as_echo "pre-installed in $ac_dir" >&6; }
14297 else
14298 # Canadian cross, just use what we found
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14300$as_echo "pre-installed" >&6; }
14301 fi
14302else
14303 ok=yes
14304 case " ${configdirs} " in
14305 *" binutils "*) ;;
14306 *) ok=no ;;
14307 esac
14308
14309 if test $ok = yes; then
14310 # An in-tree tool is available and we can use it
14311 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14313$as_echo "just compiled" >&6; }
14314 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
14316 ac_dir=`dirname $NM_FOR_TARGET`
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14318$as_echo "pre-installed in $ac_dir" >&6; }
14319 elif test "x$target" = "x$host"; then
14320 # We can use an host tool
14321 NM_FOR_TARGET='$(NM)'
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14323$as_echo "host tool" >&6; }
14324 else
14325 # We need a cross tool
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14327$as_echo "pre-installed" >&6; }
14328 fi
14329fi
14330
14331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14332$as_echo_n "checking where to find the target objcopy... " >&6; }
14333if test "x${build}" != "x${host}" ; then
14334 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14335 # We already found the complete path
14336 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14338$as_echo "pre-installed in $ac_dir" >&6; }
14339 else
14340 # Canadian cross, just use what we found
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14342$as_echo "pre-installed" >&6; }
14343 fi
14344else
14345 ok=yes
14346 case " ${configdirs} " in
14347 *" binutils "*) ;;
14348 *) ok=no ;;
14349 esac
14350
14351 if test $ok = yes; then
14352 # An in-tree tool is available and we can use it
14353 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14355$as_echo "just compiled" >&6; }
14356 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14357 # We already found the complete path
14358 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14360$as_echo "pre-installed in $ac_dir" >&6; }
14361 elif test "x$target" = "x$host"; then
14362 # We can use an host tool
14363 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14365$as_echo "host tool" >&6; }
14366 else
14367 # We need a cross tool
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14369$as_echo "pre-installed" >&6; }
14370 fi
14371fi
14372
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14374$as_echo_n "checking where to find the target objdump... " >&6; }
14375if test "x${build}" != "x${host}" ; then
14376 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14377 # We already found the complete path
14378 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14380$as_echo "pre-installed in $ac_dir" >&6; }
14381 else
14382 # Canadian cross, just use what we found
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14384$as_echo "pre-installed" >&6; }
14385 fi
14386else
14387 ok=yes
14388 case " ${configdirs} " in
14389 *" binutils "*) ;;
14390 *) ok=no ;;
14391 esac
14392
14393 if test $ok = yes; then
14394 # An in-tree tool is available and we can use it
14395 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14397$as_echo "just compiled" >&6; }
14398 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
14400 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402$as_echo "pre-installed in $ac_dir" >&6; }
14403 elif test "x$target" = "x$host"; then
14404 # We can use an host tool
14405 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14407$as_echo "host tool" >&6; }
14408 else
14409 # We need a cross tool
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14411$as_echo "pre-installed" >&6; }
14412 fi
14413fi
14414
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14416$as_echo_n "checking where to find the target ranlib... " >&6; }
14417if test "x${build}" != "x${host}" ; then
14418 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14419 # We already found the complete path
14420 ac_dir=`dirname $RANLIB_FOR_TARGET`
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14422$as_echo "pre-installed in $ac_dir" >&6; }
14423 else
14424 # Canadian cross, just use what we found
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14426$as_echo "pre-installed" >&6; }
14427 fi
14428else
14429 ok=yes
14430 case " ${configdirs} " in
14431 *" binutils "*) ;;
14432 *) ok=no ;;
14433 esac
14434
14435 if test $ok = yes; then
14436 # An in-tree tool is available and we can use it
14437 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14439$as_echo "just compiled" >&6; }
14440 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
14442 ac_dir=`dirname $RANLIB_FOR_TARGET`
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444$as_echo "pre-installed in $ac_dir" >&6; }
14445 elif test "x$target" = "x$host"; then
14446 # We can use an host tool
14447 RANLIB_FOR_TARGET='$(RANLIB)'
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14449$as_echo "host tool" >&6; }
14450 else
14451 # We need a cross tool
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453$as_echo "pre-installed" >&6; }
14454 fi
14455fi
14456
14457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14458$as_echo_n "checking where to find the target readelf... " >&6; }
14459if test "x${build}" != "x${host}" ; then
14460 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14461 # We already found the complete path
14462 ac_dir=`dirname $READELF_FOR_TARGET`
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14464$as_echo "pre-installed in $ac_dir" >&6; }
14465 else
14466 # Canadian cross, just use what we found
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14468$as_echo "pre-installed" >&6; }
14469 fi
14470else
14471 ok=yes
14472 case " ${configdirs} " in
14473 *" binutils "*) ;;
14474 *) ok=no ;;
14475 esac
14476
14477 if test $ok = yes; then
14478 # An in-tree tool is available and we can use it
14479 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14481$as_echo "just compiled" >&6; }
14482 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14483 # We already found the complete path
14484 ac_dir=`dirname $READELF_FOR_TARGET`
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14486$as_echo "pre-installed in $ac_dir" >&6; }
14487 elif test "x$target" = "x$host"; then
14488 # We can use an host tool
14489 READELF_FOR_TARGET='$(READELF)'
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14491$as_echo "host tool" >&6; }
14492 else
14493 # We need a cross tool
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495$as_echo "pre-installed" >&6; }
14496 fi
14497fi
14498
14499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14500$as_echo_n "checking where to find the target strip... " >&6; }
14501if test "x${build}" != "x${host}" ; then
14502 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14503 # We already found the complete path
14504 ac_dir=`dirname $STRIP_FOR_TARGET`
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14506$as_echo "pre-installed in $ac_dir" >&6; }
14507 else
14508 # Canadian cross, just use what we found
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14510$as_echo "pre-installed" >&6; }
14511 fi
14512else
14513 ok=yes
14514 case " ${configdirs} " in
14515 *" binutils "*) ;;
14516 *) ok=no ;;
14517 esac
14518
14519 if test $ok = yes; then
14520 # An in-tree tool is available and we can use it
14521 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14523$as_echo "just compiled" >&6; }
14524 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14525 # We already found the complete path
14526 ac_dir=`dirname $STRIP_FOR_TARGET`
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14528$as_echo "pre-installed in $ac_dir" >&6; }
14529 elif test "x$target" = "x$host"; then
14530 # We can use an host tool
14531 STRIP_FOR_TARGET='$(STRIP)'
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14533$as_echo "host tool" >&6; }
14534 else
14535 # We need a cross tool
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537$as_echo "pre-installed" >&6; }
14538 fi
14539fi
14540
14541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14542$as_echo_n "checking where to find the target windres... " >&6; }
14543if test "x${build}" != "x${host}" ; then
14544 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14545 # We already found the complete path
14546 ac_dir=`dirname $WINDRES_FOR_TARGET`
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14548$as_echo "pre-installed in $ac_dir" >&6; }
14549 else
14550 # Canadian cross, just use what we found
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14552$as_echo "pre-installed" >&6; }
14553 fi
14554else
14555 ok=yes
14556 case " ${configdirs} " in
14557 *" binutils "*) ;;
14558 *) ok=no ;;
14559 esac
14560
14561 if test $ok = yes; then
14562 # An in-tree tool is available and we can use it
14563 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14565$as_echo "just compiled" >&6; }
14566 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14567 # We already found the complete path
14568 ac_dir=`dirname $WINDRES_FOR_TARGET`
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14570$as_echo "pre-installed in $ac_dir" >&6; }
14571 elif test "x$target" = "x$host"; then
14572 # We can use an host tool
14573 WINDRES_FOR_TARGET='$(WINDRES)'
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14575$as_echo "host tool" >&6; }
14576 else
14577 # We need a cross tool
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579$as_echo "pre-installed" >&6; }
14580 fi
14581fi
14582
14583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14584$as_echo_n "checking where to find the target windmc... " >&6; }
14585if test "x${build}" != "x${host}" ; then
14586 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14587 # We already found the complete path
14588 ac_dir=`dirname $WINDMC_FOR_TARGET`
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14590$as_echo "pre-installed in $ac_dir" >&6; }
14591 else
14592 # Canadian cross, just use what we found
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14594$as_echo "pre-installed" >&6; }
14595 fi
14596else
14597 ok=yes
14598 case " ${configdirs} " in
14599 *" binutils "*) ;;
14600 *) ok=no ;;
14601 esac
14602
14603 if test $ok = yes; then
14604 # An in-tree tool is available and we can use it
14605 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14607$as_echo "just compiled" >&6; }
14608 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14609 # We already found the complete path
14610 ac_dir=`dirname $WINDMC_FOR_TARGET`
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14612$as_echo "pre-installed in $ac_dir" >&6; }
14613 elif test "x$target" = "x$host"; then
14614 # We can use an host tool
14615 WINDMC_FOR_TARGET='$(WINDMC)'
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14617$as_echo "host tool" >&6; }
14618 else
14619 # We need a cross tool
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14621$as_echo "pre-installed" >&6; }
14622 fi
14623fi
14624
14625
14626
14627
14628
14629# Certain tools may need extra flags.
14630AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14631RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14632NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14633
14634# When building target libraries, except in a Canadian cross, we use
14635# the same toolchain as the compiler we just built.
14636COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14637COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14638COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14639if test $host = $build; then
14640 case " $configdirs " in
14641 *" gcc "*)
14642 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14643 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14644 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14645 ;;
14646 esac
14647fi
14648
14649
14650
14651
14652
14653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14654$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14655# Check whether --enable-maintainer-mode was given.
14656if test "${enable_maintainer_mode+set}" = set; then :
14657 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14658else
14659 USE_MAINTAINER_MODE=no
14660fi
14661
14662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14663$as_echo "$USE_MAINTAINER_MODE" >&6; }
14664
14665
14666if test "$USE_MAINTAINER_MODE" = yes; then
14667 MAINTAINER_MODE_TRUE=
14668 MAINTAINER_MODE_FALSE='#'
14669else
14670 MAINTAINER_MODE_TRUE='#'
14671 MAINTAINER_MODE_FALSE=
14672fi
14673MAINT=$MAINTAINER_MODE_TRUE
14674
14675# ---------------------
14676# GCC bootstrap support
14677# ---------------------
14678
14679# Stage specific cflags for build.
14680stage1_cflags="-g"
14681case $build in
14682 vax-*-*)
14683 case ${GCC} in
14684 yes) stage1_cflags="-g -Wa,-J" ;;
14685 *) stage1_cflags="-g -J" ;;
14686 esac ;;
14687esac
14688
14689
14690
14691# Enable --enable-checking in stage1 of the compiler.
14692# Check whether --enable-stage1-checking was given.
14693if test "${enable_stage1_checking+set}" = set; then :
14694 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14695else
14696 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14697 # For --disable-checking or implicit --enable-checking=release, avoid
14698 # setting --enable-checking=gc in the default stage1 checking for LTO
14699 # bootstraps. See PR62077.
14700 case $BUILD_CONFIG in
14701 *lto*)
14702 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14703 *)
14704 stage1_checking=--enable-checking=yes,types;;
14705 esac
14706 if test "x$enable_checking" = x && \
14707 test -d ${srcdir}/gcc && \
14708 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14709 stage1_checking=--enable-checking=yes,types,extra
14710 fi
14711else
14712 stage1_checking=--enable-checking=$enable_checking,types
14713fi
14714fi
14715
14716
14717
14718# Enable -Werror in bootstrap stage2 and later.
14719# Check whether --enable-werror was given.
14720if test "${enable_werror+set}" = set; then :
14721 enableval=$enable_werror;
14722case ${enable_werror} in
14723 yes) stage2_werror_flag="--enable-werror-always" ;;
14724 *) stage2_werror_flag="" ;;
14725esac
14726
14727else
14728
14729if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14730 case $BUILD_CONFIG in
14731 bootstrap-debug)
14732 stage2_werror_flag="--enable-werror-always" ;;
14733 "")
14734 stage2_werror_flag="--enable-werror-always" ;;
14735 esac
14736fi
14737
14738fi
14739
14740
14741
14742
14743# Specify what files to not compare during bootstrap.
14744
14745compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14746case "$target" in
14747 hppa*64*-*-hpux*) ;;
14748 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14749 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14750esac
14751
14752
14753ac_config_files="$ac_config_files Makefile"
14754
14755cat >confcache <<\_ACEOF
14756# This file is a shell script that caches the results of configure
14757# tests run on this system so they can be shared between configure
14758# scripts and configure runs, see configure's option --config-cache.
14759# It is not useful on other systems. If it contains results you don't
14760# want to keep, you may remove or edit it.
14761#
14762# config.status only pays attention to the cache file if you give it
14763# the --recheck option to rerun configure.
14764#
14765# `ac_cv_env_foo' variables (set or unset) will be overridden when
14766# loading this file, other *unset* `ac_cv_foo' will be assigned the
14767# following values.
14768
14769_ACEOF
14770
14771# The following way of writing the cache mishandles newlines in values,
14772# but we know of no workaround that is simple, portable, and efficient.
14773# So, we kill variables containing newlines.
14774# Ultrix sh set writes to stderr and can't be redirected directly,
14775# and sets the high bit in the cache file unless we assign to the vars.
14776(
14777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14778 eval ac_val=\$$ac_var
14779 case $ac_val in #(
14780 *${as_nl}*)
14781 case $ac_var in #(
14782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14783$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14784 esac
14785 case $ac_var in #(
14786 _ | IFS | as_nl) ;; #(
14787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14788 *) { eval $ac_var=; unset $ac_var;} ;;
14789 esac ;;
14790 esac
14791 done
14792
14793 (set) 2>&1 |
14794 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14795 *${as_nl}ac_space=\ *)
14796 # `set' does not quote correctly, so add quotes: double-quote
14797 # substitution turns \\\\ into \\, and sed turns \\ into \.
14798 sed -n \
14799 "s/'/'\\\\''/g;
14800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14801 ;; #(
14802 *)
14803 # `set' quotes correctly as required by POSIX, so do not add quotes.
14804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14805 ;;
14806 esac |
14807 sort
14808) |
14809 sed '
14810 /^ac_cv_env_/b end
14811 t clear
14812 :clear
14813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14814 t end
14815 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14816 :end' >>confcache
14817if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14818 if test -w "$cache_file"; then
14819 if test "x$cache_file" != "x/dev/null"; then
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14821$as_echo "$as_me: updating cache $cache_file" >&6;}
14822 if test ! -f "$cache_file" || test -h "$cache_file"; then
14823 cat confcache >"$cache_file"
14824 else
14825 case $cache_file in #(
14826 */* | ?:*)
14827 mv -f confcache "$cache_file"$$ &&
14828 mv -f "$cache_file"$$ "$cache_file" ;; #(
14829 *)
14830 mv -f confcache "$cache_file" ;;
14831 esac
14832 fi
14833 fi
14834 else
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14836$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14837 fi
14838fi
14839rm -f confcache
14840
14841test "x$prefix" = xNONE && prefix=$ac_default_prefix
14842# Let make expand exec_prefix.
14843test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14844
14845# Transform confdefs.h into DEFS.
14846# Protect against shell expansion while executing Makefile rules.
14847# Protect against Makefile macro expansion.
14848#
14849# If the first sed substitution is executed (which looks for macros that
14850# take arguments), then branch to the quote section. Otherwise,
14851# look for a macro that doesn't take arguments.
14852ac_script='
14853:mline
14854/\\$/{
14855 N
14856 s,\\\n,,
14857 b mline
14858}
14859t clear
14860:clear
14861s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14862t quote
14863s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14864t quote
14865b any
14866:quote
14867s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14868s/\[/\\&/g
14869s/\]/\\&/g
14870s/\$/$$/g
14871H
14872:any
14873${
14874 g
14875 s/^\n//
14876 s/\n/ /g
14877 p
14878}
14879'
14880DEFS=`sed -n "$ac_script" confdefs.h`
14881
14882
14883ac_libobjs=
14884ac_ltlibobjs=
14885U=
14886for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14887 # 1. Remove the extension, and $U if already installed.
14888 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14889 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14890 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14891 # will be set to the directory where LIBOBJS objects are built.
14892 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14893 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14894done
14895LIBOBJS=$ac_libobjs
14896
14897LTLIBOBJS=$ac_ltlibobjs
14898
14899
14900
14901: "${CONFIG_STATUS=./config.status}"
14902ac_write_fail=0
14903ac_clean_files_save=$ac_clean_files
14904ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14905{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14906$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14907as_write_fail=0
14908cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14909#! $SHELL
14910# Generated by $as_me.
14911# Run this file to recreate the current configuration.
14912# Compiler output produced by configure, useful for debugging
14913# configure, is in config.log if it exists.
14914
14915debug=false
14916ac_cs_recheck=false
14917ac_cs_silent=false
14918
14919SHELL=\${CONFIG_SHELL-$SHELL}
14920export SHELL
14921_ASEOF
14922cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14923## -------------------- ##
14924## M4sh Initialization. ##
14925## -------------------- ##
14926
14927# Be more Bourne compatible
14928DUALCASE=1; export DUALCASE # for MKS sh
14929if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14930 emulate sh
14931 NULLCMD=:
14932 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14933 # is contrary to our usage. Disable this feature.
14934 alias -g '${1+"$@"}'='"$@"'
14935 setopt NO_GLOB_SUBST
14936else
14937 case `(set -o) 2>/dev/null` in #(
14938 *posix*) :
14939 set -o posix ;; #(
14940 *) :
14941 ;;
14942esac
14943fi
14944
14945
14946as_nl='
14947'
14948export as_nl
14949# Printing a long string crashes Solaris 7 /usr/bin/printf.
14950as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14951as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14952as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14953# Prefer a ksh shell builtin over an external printf program on Solaris,
14954# but without wasting forks for bash or zsh.
14955if test -z "$BASH_VERSION$ZSH_VERSION" \
14956 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14957 as_echo='print -r --'
14958 as_echo_n='print -rn --'
14959elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14960 as_echo='printf %s\n'
14961 as_echo_n='printf %s'
14962else
14963 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14964 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14965 as_echo_n='/usr/ucb/echo -n'
14966 else
14967 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14968 as_echo_n_body='eval
14969 arg=$1;
14970 case $arg in #(
14971 *"$as_nl"*)
14972 expr "X$arg" : "X\\(.*\\)$as_nl";
14973 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14974 esac;
14975 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14976 '
14977 export as_echo_n_body
14978 as_echo_n='sh -c $as_echo_n_body as_echo'
14979 fi
14980 export as_echo_body
14981 as_echo='sh -c $as_echo_body as_echo'
14982fi
14983
14984# The user is always right.
14985if test "${PATH_SEPARATOR+set}" != set; then
14986 PATH_SEPARATOR=:
14987 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14988 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14989 PATH_SEPARATOR=';'
14990 }
14991fi
14992
14993
14994# IFS
14995# We need space, tab and new line, in precisely that order. Quoting is
14996# there to prevent editors from complaining about space-tab.
14997# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14998# splitting by setting IFS to empty value.)
14999IFS=" "" $as_nl"
15000
15001# Find who we are. Look in the path if we contain no directory separator.
15002as_myself=
15003case $0 in #((
15004 *[\\/]* ) as_myself=$0 ;;
15005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15006for as_dir in $PATH
15007do
15008 IFS=$as_save_IFS
15009 test -z "$as_dir" && as_dir=.
15010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15011 done
15012IFS=$as_save_IFS
15013
15014 ;;
15015esac
15016# We did not find ourselves, most probably we were run as `sh COMMAND'
15017# in which case we are not to be found in the path.
15018if test "x$as_myself" = x; then
15019 as_myself=$0
15020fi
15021if test ! -f "$as_myself"; then
15022 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15023 exit 1
15024fi
15025
15026# Unset variables that we do not need and which cause bugs (e.g. in
15027# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15028# suppresses any "Segmentation fault" message there. '((' could
15029# trigger a bug in pdksh 5.2.14.
15030for as_var in BASH_ENV ENV MAIL MAILPATH
15031do eval test x\${$as_var+set} = xset \
15032 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15033done
15034PS1='$ '
15035PS2='> '
15036PS4='+ '
15037
15038# NLS nuisances.
15039LC_ALL=C
15040export LC_ALL
15041LANGUAGE=C
15042export LANGUAGE
15043
15044# CDPATH.
15045(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15046
15047
15048# as_fn_error STATUS ERROR [LINENO LOG_FD]
15049# ----------------------------------------
15050# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15051# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15052# script with STATUS, using 1 if that was 0.
15053as_fn_error ()
15054{
15055 as_status=$1; test $as_status -eq 0 && as_status=1
15056 if test "$4"; then
15057 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15058 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15059 fi
15060 $as_echo "$as_me: error: $2" >&2
15061 as_fn_exit $as_status
15062} # as_fn_error
15063
15064
15065# as_fn_set_status STATUS
15066# -----------------------
15067# Set $? to STATUS, without forking.
15068as_fn_set_status ()
15069{
15070 return $1
15071} # as_fn_set_status
15072
15073# as_fn_exit STATUS
15074# -----------------
15075# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15076as_fn_exit ()
15077{
15078 set +e
15079 as_fn_set_status $1
15080 exit $1
15081} # as_fn_exit
15082
15083# as_fn_unset VAR
15084# ---------------
15085# Portably unset VAR.
15086as_fn_unset ()
15087{
15088 { eval $1=; unset $1;}
15089}
15090as_unset=as_fn_unset
15091# as_fn_append VAR VALUE
15092# ----------------------
15093# Append the text in VALUE to the end of the definition contained in VAR. Take
15094# advantage of any shell optimizations that allow amortized linear growth over
15095# repeated appends, instead of the typical quadratic growth present in naive
15096# implementations.
15097if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15098 eval 'as_fn_append ()
15099 {
15100 eval $1+=\$2
15101 }'
15102else
15103 as_fn_append ()
15104 {
15105 eval $1=\$$1\$2
15106 }
15107fi # as_fn_append
15108
15109# as_fn_arith ARG...
15110# ------------------
15111# Perform arithmetic evaluation on the ARGs, and store the result in the
15112# global $as_val. Take advantage of shells that can avoid forks. The arguments
15113# must be portable across $(()) and expr.
15114if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15115 eval 'as_fn_arith ()
15116 {
15117 as_val=$(( $* ))
15118 }'
15119else
15120 as_fn_arith ()
15121 {
15122 as_val=`expr "$@" || test $? -eq 1`
15123 }
15124fi # as_fn_arith
15125
15126
15127if expr a : '\(a\)' >/dev/null 2>&1 &&
15128 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15129 as_expr=expr
15130else
15131 as_expr=false
15132fi
15133
15134if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15135 as_basename=basename
15136else
15137 as_basename=false
15138fi
15139
15140if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15141 as_dirname=dirname
15142else
15143 as_dirname=false
15144fi
15145
15146as_me=`$as_basename -- "$0" ||
15147$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15148 X"$0" : 'X\(//\)$' \| \
15149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15150$as_echo X/"$0" |
15151 sed '/^.*\/\([^/][^/]*\)\/*$/{
15152 s//\1/
15153 q
15154 }
15155 /^X\/\(\/\/\)$/{
15156 s//\1/
15157 q
15158 }
15159 /^X\/\(\/\).*/{
15160 s//\1/
15161 q
15162 }
15163 s/.*/./; q'`
15164
15165# Avoid depending upon Character Ranges.
15166as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15167as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15168as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15169as_cr_digits='0123456789'
15170as_cr_alnum=$as_cr_Letters$as_cr_digits
15171
15172ECHO_C= ECHO_N= ECHO_T=
15173case `echo -n x` in #(((((
15174-n*)
15175 case `echo 'xy\c'` in
15176 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15177 xy) ECHO_C='\c';;
15178 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15179 ECHO_T=' ';;
15180 esac;;
15181*)
15182 ECHO_N='-n';;
15183esac
15184
15185rm -f conf$$ conf$$.exe conf$$.file
15186if test -d conf$$.dir; then
15187 rm -f conf$$.dir/conf$$.file
15188else
15189 rm -f conf$$.dir
15190 mkdir conf$$.dir 2>/dev/null
15191fi
15192if (echo >conf$$.file) 2>/dev/null; then
15193 if ln -s conf$$.file conf$$ 2>/dev/null; then
15194 as_ln_s='ln -s'
15195 # ... but there are two gotchas:
15196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15198 # In both cases, we have to default to `cp -pR'.
15199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15200 as_ln_s='cp -pR'
15201 elif ln conf$$.file conf$$ 2>/dev/null; then
15202 as_ln_s=ln
15203 else
15204 as_ln_s='cp -pR'
15205 fi
15206else
15207 as_ln_s='cp -pR'
15208fi
15209rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15210rmdir conf$$.dir 2>/dev/null
15211
15212
15213# as_fn_mkdir_p
15214# -------------
15215# Create "$as_dir" as a directory, including parents if necessary.
15216as_fn_mkdir_p ()
15217{
15218
15219 case $as_dir in #(
15220 -*) as_dir=./$as_dir;;
15221 esac
15222 test -d "$as_dir" || eval $as_mkdir_p || {
15223 as_dirs=
15224 while :; do
15225 case $as_dir in #(
15226 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15227 *) as_qdir=$as_dir;;
15228 esac
15229 as_dirs="'$as_qdir' $as_dirs"
15230 as_dir=`$as_dirname -- "$as_dir" ||
15231$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15232 X"$as_dir" : 'X\(//\)[^/]' \| \
15233 X"$as_dir" : 'X\(//\)$' \| \
15234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15235$as_echo X"$as_dir" |
15236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15237 s//\1/
15238 q
15239 }
15240 /^X\(\/\/\)[^/].*/{
15241 s//\1/
15242 q
15243 }
15244 /^X\(\/\/\)$/{
15245 s//\1/
15246 q
15247 }
15248 /^X\(\/\).*/{
15249 s//\1/
15250 q
15251 }
15252 s/.*/./; q'`
15253 test -d "$as_dir" && break
15254 done
15255 test -z "$as_dirs" || eval "mkdir $as_dirs"
15256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15257
15258
15259} # as_fn_mkdir_p
15260if mkdir -p . 2>/dev/null; then
15261 as_mkdir_p='mkdir -p "$as_dir"'
15262else
15263 test -d ./-p && rmdir ./-p
15264 as_mkdir_p=false
15265fi
15266
15267
15268# as_fn_executable_p FILE
15269# -----------------------
15270# Test if FILE is an executable regular file.
15271as_fn_executable_p ()
15272{
15273 test -f "$1" && test -x "$1"
15274} # as_fn_executable_p
15275as_test_x='test -x'
15276as_executable_p=as_fn_executable_p
15277
15278# Sed expression to map a string onto a valid CPP name.
15279as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15280
15281# Sed expression to map a string onto a valid variable name.
15282as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15283
15284
15285exec 6>&1
15286## ----------------------------------- ##
15287## Main body of $CONFIG_STATUS script. ##
15288## ----------------------------------- ##
15289_ASEOF
15290test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15291
15292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15293# Save the log message, to keep $0 and so on meaningful, and to
15294# report actual input values of CONFIG_FILES etc. instead of their
15295# values after options handling.
15296ac_log="
15297This file was extended by $as_me, which was
15298generated by GNU Autoconf 2.69. Invocation command line was
15299
15300 CONFIG_FILES = $CONFIG_FILES
15301 CONFIG_HEADERS = $CONFIG_HEADERS
15302 CONFIG_LINKS = $CONFIG_LINKS
15303 CONFIG_COMMANDS = $CONFIG_COMMANDS
15304 $ $0 $@
15305
15306on `(hostname || uname -n) 2>/dev/null | sed 1q`
15307"
15308
15309_ACEOF
15310
15311case $ac_config_files in *"
15312"*) set x $ac_config_files; shift; ac_config_files=$*;;
15313esac
15314
15315
15316
15317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318# Files that config.status was made for.
15319config_files="$ac_config_files"
15320
15321_ACEOF
15322
15323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15324ac_cs_usage="\
15325\`$as_me' instantiates files and other configuration actions
15326from templates according to the current configuration. Unless the files
15327and actions are specified as TAGs, all are instantiated by default.
15328
15329Usage: $0 [OPTION]... [TAG]...
15330
15331 -h, --help print this help, then exit
15332 -V, --version print version number and configuration settings, then exit
15333 --config print configuration, then exit
15334 -q, --quiet, --silent
15335 do not print progress messages
15336 -d, --debug don't remove temporary files
15337 --recheck update $as_me by reconfiguring in the same conditions
15338 --file=FILE[:TEMPLATE]
15339 instantiate the configuration file FILE
15340
15341Configuration files:
15342$config_files
15343
15344Report bugs to the package provider."
15345
15346_ACEOF
15347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15348ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15349ac_cs_version="\\
15350config.status
15351configured by $0, generated by GNU Autoconf 2.69,
15352 with options \\"\$ac_cs_config\\"
15353
15354Copyright (C) 2012 Free Software Foundation, Inc.
15355This config.status script is free software; the Free Software Foundation
15356gives unlimited permission to copy, distribute and modify it."
15357
15358ac_pwd='$ac_pwd'
15359srcdir='$srcdir'
15360INSTALL='$INSTALL'
15361AWK='$AWK'
15362test -n "\$AWK" || AWK=awk
15363_ACEOF
15364
15365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15366# The default lists apply if the user does not specify any file.
15367ac_need_defaults=:
15368while test $# != 0
15369do
15370 case $1 in
15371 --*=?*)
15372 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15373 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15374 ac_shift=:
15375 ;;
15376 --*=)
15377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15378 ac_optarg=
15379 ac_shift=:
15380 ;;
15381 *)
15382 ac_option=$1
15383 ac_optarg=$2
15384 ac_shift=shift
15385 ;;
15386 esac
15387
15388 case $ac_option in
15389 # Handling of the options.
15390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15391 ac_cs_recheck=: ;;
15392 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15393 $as_echo "$ac_cs_version"; exit ;;
15394 --config | --confi | --conf | --con | --co | --c )
15395 $as_echo "$ac_cs_config"; exit ;;
15396 --debug | --debu | --deb | --de | --d | -d )
15397 debug=: ;;
15398 --file | --fil | --fi | --f )
15399 $ac_shift
15400 case $ac_optarg in
15401 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15402 '') as_fn_error $? "missing file argument" ;;
15403 esac
15404 as_fn_append CONFIG_FILES " '$ac_optarg'"
15405 ac_need_defaults=false;;
15406 --he | --h | --help | --hel | -h )
15407 $as_echo "$ac_cs_usage"; exit ;;
15408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15409 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15410 ac_cs_silent=: ;;
15411
15412 # This is an error.
15413 -*) as_fn_error $? "unrecognized option: \`$1'
15414Try \`$0 --help' for more information." ;;
15415
15416 *) as_fn_append ac_config_targets " $1"
15417 ac_need_defaults=false ;;
15418
15419 esac
15420 shift
15421done
15422
15423ac_configure_extra_args=
15424
15425if $ac_cs_silent; then
15426 exec 6>/dev/null
15427 ac_configure_extra_args="$ac_configure_extra_args --silent"
15428fi
15429
15430_ACEOF
15431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15432if \$ac_cs_recheck; then
15433 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15434 shift
15435 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15436 CONFIG_SHELL='$SHELL'
15437 export CONFIG_SHELL
15438 exec "\$@"
15439fi
15440
15441_ACEOF
15442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15443exec 5>>config.log
15444{
15445 echo
15446 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15447## Running $as_me. ##
15448_ASBOX
15449 $as_echo "$ac_log"
15450} >&5
15451
15452_ACEOF
15453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15454#
15455# INIT-COMMANDS
15456#
15457extrasub_build="$extrasub_build"
15458 extrasub_host="$extrasub_host"
15459 extrasub_target="$extrasub_target"
15460
15461_ACEOF
15462
15463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15464
15465# Handling of arguments.
15466for ac_config_target in $ac_config_targets
15467do
15468 case $ac_config_target in
15469 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15470
15471 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15472 esac
15473done
15474
15475
15476# If the user did not use the arguments to specify the items to instantiate,
15477# then the envvar interface is used. Set only those that are not.
15478# We use the long form for the default assignment because of an extremely
15479# bizarre bug on SunOS 4.1.3.
15480if $ac_need_defaults; then
15481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15482fi
15483
15484# Have a temporary directory for convenience. Make it in the build tree
15485# simply because there is no reason against having it here, and in addition,
15486# creating and moving files from /tmp can sometimes cause problems.
15487# Hook for its removal unless debugging.
15488# Note that there is a small window in which the directory will not be cleaned:
15489# after its creation but before its name has been assigned to `$tmp'.
15490$debug ||
15491{
15492 tmp= ac_tmp=
15493 trap 'exit_status=$?
15494 : "${ac_tmp:=$tmp}"
15495 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15496' 0
15497 trap 'as_fn_exit 1' 1 2 13 15
15498}
15499# Create a (secure) tmp directory for tmp files.
15500
15501{
15502 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15503 test -d "$tmp"
15504} ||
15505{
15506 tmp=./conf$$-$RANDOM
15507 (umask 077 && mkdir "$tmp")
15508} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15509ac_tmp=$tmp
15510
15511# Set up the scripts for CONFIG_FILES section.
15512# No need to generate them if there are no CONFIG_FILES.
15513# This happens for instance with `./config.status config.h'.
15514if test -n "$CONFIG_FILES"; then
15515
15516if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15517 ac_cs_awk_getline=:
15518 ac_cs_awk_pipe_init=
15519 ac_cs_awk_read_file='
15520 while ((getline aline < (F[key])) > 0)
15521 print(aline)
15522 close(F[key])'
15523 ac_cs_awk_pipe_fini=
15524else
15525 ac_cs_awk_getline=false
15526 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15527 ac_cs_awk_read_file='
15528 print "|#_!!_#|"
15529 print "cat " F[key] " &&"
15530 '$ac_cs_awk_pipe_init
15531 # The final `:' finishes the AND list.
15532 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15533fi
15534ac_cr=`echo X | tr X '\015'`
15535# On cygwin, bash can eat \r inside `` if the user requested igncr.
15536# But we know of no other shell where ac_cr would be empty at this
15537# point, so we can use a bashism as a fallback.
15538if test "x$ac_cr" = x; then
15539 eval ac_cr=\$\'\\r\'
15540fi
15541ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15542if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15543 ac_cs_awk_cr='\\r'
15544else
15545 ac_cs_awk_cr=$ac_cr
15546fi
15547
15548echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15549_ACEOF
15550
15551# Create commands to substitute file output variables.
15552{
15553 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15554 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15555 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15556 echo "_ACAWK" &&
15557 echo "_ACEOF"
15558} >conf$$files.sh &&
15559. ./conf$$files.sh ||
15560 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15561rm -f conf$$files.sh
15562
15563{
15564 echo "cat >conf$$subs.awk <<_ACEOF" &&
15565 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15566 echo "_ACEOF"
15567} >conf$$subs.sh ||
15568 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15569ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15570ac_delim='%!_!# '
15571for ac_last_try in false false false false false :; do
15572 . ./conf$$subs.sh ||
15573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15574
15575 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15576 if test $ac_delim_n = $ac_delim_num; then
15577 break
15578 elif $ac_last_try; then
15579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15580 else
15581 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15582 fi
15583done
15584rm -f conf$$subs.sh
15585
15586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15587cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15588_ACEOF
15589sed -n '
15590h
15591s/^/S["/; s/!.*/"]=/
15592p
15593g
15594s/^[^!]*!//
15595:repl
15596t repl
15597s/'"$ac_delim"'$//
15598t delim
15599:nl
15600h
15601s/\(.\{148\}\)..*/\1/
15602t more1
15603s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15604p
15605n
15606b repl
15607:more1
15608s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15609p
15610g
15611s/.\{148\}//
15612t nl
15613:delim
15614h
15615s/\(.\{148\}\)..*/\1/
15616t more2
15617s/["\\]/\\&/g; s/^/"/; s/$/"/
15618p
15619b
15620:more2
15621s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15622p
15623g
15624s/.\{148\}//
15625t delim
15626' <conf$$subs.awk | sed '
15627/^[^""]/{
15628 N
15629 s/\n//
15630}
15631' >>$CONFIG_STATUS || ac_write_fail=1
15632rm -f conf$$subs.awk
15633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15634_ACAWK
15635cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15636 for (key in S) S_is_set[key] = 1
15637 FS = "\a"
15638 \$ac_cs_awk_pipe_init
15639}
15640{
15641 line = $ 0
15642 nfields = split(line, field, "@")
15643 substed = 0
15644 len = length(field[1])
15645 for (i = 2; i < nfields; i++) {
15646 key = field[i]
15647 keylen = length(key)
15648 if (S_is_set[key]) {
15649 value = S[key]
15650 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15651 len += length(value) + length(field[++i])
15652 substed = 1
15653 } else
15654 len += 1 + keylen
15655 }
15656 if (nfields == 3 && !substed) {
15657 key = field[2]
15658 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15659 \$ac_cs_awk_read_file
15660 next
15661 }
15662 }
15663 print line
15664}
15665\$ac_cs_awk_pipe_fini
15666_ACAWK
15667_ACEOF
15668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15669if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15670 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15671else
15672 cat
15673fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15674 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15675_ACEOF
15676
15677# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15678# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15679# trailing colons and then remove the whole line if VPATH becomes empty
15680# (actually we leave an empty line to preserve line numbers).
15681if test "x$srcdir" = x.; then
15682 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15683h
15684s///
15685s/^/:/
15686s/[ ]*$/:/
15687s/:\$(srcdir):/:/g
15688s/:\${srcdir}:/:/g
15689s/:@srcdir@:/:/g
15690s/^:*//
15691s/:*$//
15692x
15693s/\(=[ ]*\).*/\1/
15694G
15695s/\n//
15696s/^[^=]*=[ ]*$//
15697}'
15698fi
15699
15700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15701fi # test -n "$CONFIG_FILES"
15702
15703
15704eval set X " :F $CONFIG_FILES "
15705shift
15706for ac_tag
15707do
15708 case $ac_tag in
15709 :[FHLC]) ac_mode=$ac_tag; continue;;
15710 esac
15711 case $ac_mode$ac_tag in
15712 :[FHL]*:*);;
15713 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15714 :[FH]-) ac_tag=-:-;;
15715 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15716 esac
15717 ac_save_IFS=$IFS
15718 IFS=:
15719 set x $ac_tag
15720 IFS=$ac_save_IFS
15721 shift
15722 ac_file=$1
15723 shift
15724
15725 case $ac_mode in
15726 :L) ac_source=$1;;
15727 :[FH])
15728 ac_file_inputs=
15729 for ac_f
15730 do
15731 case $ac_f in
15732 -) ac_f="$ac_tmp/stdin";;
15733 *) # Look for the file first in the build tree, then in the source tree
15734 # (if the path is not absolute). The absolute path cannot be DOS-style,
15735 # because $ac_f cannot contain `:'.
15736 test -f "$ac_f" ||
15737 case $ac_f in
15738 [\\/$]*) false;;
15739 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15740 esac ||
15741 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15742 esac
15743 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15744 as_fn_append ac_file_inputs " '$ac_f'"
15745 done
15746
15747 # Let's still pretend it is `configure' which instantiates (i.e., don't
15748 # use $as_me), people would be surprised to read:
15749 # /* config.h. Generated by config.status. */
15750 configure_input='Generated from '`
15751 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15752 `' by configure.'
15753 if test x"$ac_file" != x-; then
15754 configure_input="$ac_file. $configure_input"
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15756$as_echo "$as_me: creating $ac_file" >&6;}
15757 fi
15758 # Neutralize special characters interpreted by sed in replacement strings.
15759 case $configure_input in #(
15760 *\&* | *\|* | *\\* )
15761 ac_sed_conf_input=`$as_echo "$configure_input" |
15762 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15763 *) ac_sed_conf_input=$configure_input;;
15764 esac
15765
15766 case $ac_tag in
15767 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15769 esac
15770 ;;
15771 esac
15772
15773 ac_dir=`$as_dirname -- "$ac_file" ||
15774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15775 X"$ac_file" : 'X\(//\)[^/]' \| \
15776 X"$ac_file" : 'X\(//\)$' \| \
15777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15778$as_echo X"$ac_file" |
15779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15780 s//\1/
15781 q
15782 }
15783 /^X\(\/\/\)[^/].*/{
15784 s//\1/
15785 q
15786 }
15787 /^X\(\/\/\)$/{
15788 s//\1/
15789 q
15790 }
15791 /^X\(\/\).*/{
15792 s//\1/
15793 q
15794 }
15795 s/.*/./; q'`
15796 as_dir="$ac_dir"; as_fn_mkdir_p
15797 ac_builddir=.
15798
15799case "$ac_dir" in
15800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15801*)
15802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15803 # A ".." for each directory in $ac_dir_suffix.
15804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15805 case $ac_top_builddir_sub in
15806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15808 esac ;;
15809esac
15810ac_abs_top_builddir=$ac_pwd
15811ac_abs_builddir=$ac_pwd$ac_dir_suffix
15812# for backward compatibility:
15813ac_top_builddir=$ac_top_build_prefix
15814
15815case $srcdir in
15816 .) # We are building in place.
15817 ac_srcdir=.
15818 ac_top_srcdir=$ac_top_builddir_sub
15819 ac_abs_top_srcdir=$ac_pwd ;;
15820 [\\/]* | ?:[\\/]* ) # Absolute name.
15821 ac_srcdir=$srcdir$ac_dir_suffix;
15822 ac_top_srcdir=$srcdir
15823 ac_abs_top_srcdir=$srcdir ;;
15824 *) # Relative name.
15825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15826 ac_top_srcdir=$ac_top_build_prefix$srcdir
15827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15828esac
15829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15830
15831
15832 case $ac_mode in
15833 :F)
15834 #
15835 # CONFIG_FILE
15836 #
15837
15838 case $INSTALL in
15839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15841 esac
15842_ACEOF
15843
15844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15845# If the template does not know about datarootdir, expand it.
15846# FIXME: This hack should be removed a few years after 2.60.
15847ac_datarootdir_hack=; ac_datarootdir_seen=
15848ac_sed_dataroot='
15849/datarootdir/ {
15850 p
15851 q
15852}
15853/@datadir@/p
15854/@docdir@/p
15855/@infodir@/p
15856/@localedir@/p
15857/@mandir@/p'
15858case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15859*datarootdir*) ac_datarootdir_seen=yes;;
15860*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15862$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15863_ACEOF
15864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15865 ac_datarootdir_hack='
15866 s&@datadir@&$datadir&g
15867 s&@docdir@&$docdir&g
15868 s&@infodir@&$infodir&g
15869 s&@localedir@&$localedir&g
15870 s&@mandir@&$mandir&g
15871 s&\\\${datarootdir}&$datarootdir&g' ;;
15872esac
15873_ACEOF
15874
15875# Neutralize VPATH when `$srcdir' = `.'.
15876# Shell code in configure.ac might set extrasub.
15877# FIXME: do we really want to maintain this feature?
15878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15879ac_sed_extra="$ac_vpsub
15880$extrasub
15881_ACEOF
15882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15883:t
15884/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15885s|@configure_input@|$ac_sed_conf_input|;t t
15886s&@top_builddir@&$ac_top_builddir_sub&;t t
15887s&@top_build_prefix@&$ac_top_build_prefix&;t t
15888s&@srcdir@&$ac_srcdir&;t t
15889s&@abs_srcdir@&$ac_abs_srcdir&;t t
15890s&@top_srcdir@&$ac_top_srcdir&;t t
15891s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15892s&@builddir@&$ac_builddir&;t t
15893s&@abs_builddir@&$ac_abs_builddir&;t t
15894s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15895s&@INSTALL@&$ac_INSTALL&;t t
15896$ac_datarootdir_hack
15897"
15898eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15899if $ac_cs_awk_getline; then
15900 $AWK -f "$ac_tmp/subs.awk"
15901else
15902 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15903fi \
15904 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15905
15906test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15907 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15908 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15909 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15911which seems to be undefined. Please make sure it is defined" >&5
15912$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15913which seems to be undefined. Please make sure it is defined" >&2;}
15914
15915 rm -f "$ac_tmp/stdin"
15916 case $ac_file in
15917 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15918 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15919 esac \
15920 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15921 ;;
15922
15923
15924
15925 esac
15926
15927
15928 case $ac_file$ac_mode in
15929 "Makefile":F) sed "$extrasub_build" Makefile |
15930 sed "$extrasub_host" |
15931 sed "$extrasub_target" > mf$$
15932 mv -f mf$$ Makefile ;;
15933
15934 esac
15935done # for ac_tag
15936
15937
15938as_fn_exit 0
15939_ACEOF
15940ac_clean_files=$ac_clean_files_save
15941
15942test $ac_write_fail = 0 ||
15943 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15944
15945
15946# configure is writing to config.log, and then calls config.status.
15947# config.status does its own redirection, appending to config.log.
15948# Unfortunately, on DOS this fails, as config.log is still kept open
15949# by configure, so config.status won't be able to write to it; its
15950# output is simply discarded. So we exec the FD to /dev/null,
15951# effectively closing config.log, so it can be properly (re)opened and
15952# appended to by config.status. When coming back to configure, we
15953# need to make the FD available again.
15954if test "$no_create" != yes; then
15955 ac_cs_success=:
15956 ac_config_status_args=
15957 test "$silent" = yes &&
15958 ac_config_status_args="$ac_config_status_args --quiet"
15959 exec 5>/dev/null
15960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15961 exec 5>>config.log
15962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15963 # would make configure fail if this is the last instruction.
15964 $ac_cs_success || as_fn_exit 1
15965fi
15966if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15968$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15969fi
15970
This page took 0.084132 seconds and 4 git commands to generate.