]> gcc.gnu.org Git - gcc.git/blame - configure
configure: Fix in-tree building of GMP on BSD [PR97302]
[gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
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 :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
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 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
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.
22e05272 90as_myself=
5213506e
RW
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
1c710c3c
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
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;}
5213506e
RW
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
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
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'\" &&
87264276
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
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
1c710c3c 211do
5213506e
RW
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 :
22e05272
JM
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
5213506e
RW
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."
1c710c3c 266 else
5213506e
RW
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."
1c710c3c 271 fi
5213506e
RW
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
1c710c3c 301
5213506e
RW
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"
22e05272 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
356
357
358} # as_fn_mkdir_p
22e05272
JM
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
5213506e
RW
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
22e05272
JM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
5213506e
RW
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
22e05272 407# script with STATUS, using 1 if that was 0.
5213506e
RW
408as_fn_error ()
409{
22e05272
JM
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
5213506e 414 fi
22e05272 415 $as_echo "$as_me: error: $2" >&2
5213506e
RW
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
1c710c3c
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
5213506e 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
5213506e
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
1c710c3c 437
5213506e 438as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
5213506e
RW
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'`
1c710c3c 456
2aeb72e9
DD
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
11a67599 463
1c710c3c 464
5213506e
RW
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 |
1c710c3c 474 sed '
5213506e
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
1c710c3c 479 N
5213506e
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 482 t loop
5213506e 483 s/-\n.*//
1c710c3c 484 ' >$as_me.lineno &&
5213506e
RW
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; }
1c710c3c 487
22e05272
JM
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
1c710c3c
DJ
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
5213506e
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
1c710c3c
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
5213506e
RW
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';;
1c710c3c
DJ
511esac
512
5213506e
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
1c710c3c 516else
5213506e
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
1c710c3c 519fi
5213506e
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 522 as_ln_s='ln -s'
5213506e
RW
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.
22e05272 526 # In both cases, we have to default to `cp -pR'.
5213506e 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 528 as_ln_s='cp -pR'
5213506e
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
22e05272 532 as_ln_s='cp -pR'
2aeb72e9 533 fi
1c710c3c 534else
22e05272 535 as_ln_s='cp -pR'
1c710c3c 536fi
5213506e
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
539
540if mkdir -p . 2>/dev/null; then
5213506e 541 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
22e05272
JM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
0b0dc272 549
1c710c3c
DJ
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
22e05272
JM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
1c710c3c
DJ
559
560# Name of the host.
22e05272 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1c710c3c
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
1c710c3c
DJ
565#
566# Initializations.
567#
671aa708 568ac_default_prefix=/usr/local
5213506e 569ac_clean_files=
1c710c3c 570ac_config_libobj_dir=.
5213506e 571LIBOBJS=
1c710c3c
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
2aeb72e9 576
1c710c3c
DJ
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
5213506e 583PACKAGE_URL=
1c710c3c
DJ
584
585ac_unique_file="move-if-change"
5213506e
RW
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
e7a82751 604READELF_FOR_TARGET
5213506e 605RANLIB_FOR_TARGET
e4a9a572 606OTOOL_FOR_TARGET
5213506e 607OBJDUMP_FOR_TARGET
9bccfdf5 608OBJCOPY_FOR_TARGET
5213506e
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
612DLLTOOL_FOR_TARGET
613AS_FOR_TARGET
614AR_FOR_TARGET
b4c522fa 615GDC_FOR_TARGET
632e2a07 616GOC_FOR_TARGET
5213506e 617GFORTRAN_FOR_TARGET
5213506e
RW
618GCC_FOR_TARGET
619CXX_FOR_TARGET
620CC_FOR_TARGET
e7a82751 621READELF
e4a9a572 622OTOOL
5213506e
RW
623OBJDUMP
624OBJCOPY
625WINDMC
626WINDRES
627STRIP
628RANLIB
629NM
630LIPO
631LD
632DLLTOOL
633AS
634AR
635RUNTEST
636EXPECT
637MAKEINFO
638FLEX
639LEX
640M4
641BISON
642YACC
5213506e
RW
643WINDRES_FOR_BUILD
644WINDMC_FOR_BUILD
645RANLIB_FOR_BUILD
646NM_FOR_BUILD
647LD_FOR_BUILD
648LDFLAGS_FOR_BUILD
b4c522fa 649GDC_FOR_BUILD
632e2a07 650GOC_FOR_BUILD
5213506e 651GFORTRAN_FOR_BUILD
5213506e
RW
652DLLTOOL_FOR_BUILD
653CXX_FOR_BUILD
654CXXFLAGS_FOR_BUILD
655CFLAGS_FOR_BUILD
656CC_FOR_BUILD
657AS_FOR_BUILD
658AR_FOR_BUILD
aae29963 659target_configdirs
5213506e 660configdirs
5213506e 661build_configdirs
5213506e
RW
662INSTALL_GDB_TK
663GDB_TK
664CONFIGURE_GDB_TK
665build_tooldir
666tooldir
667GCC_SHLIB_SUBDIR
668RPATH_ENVVAR
ffedf511
RW
669target_configargs
670host_configargs
671build_configargs
e12c4094 672BUILD_CONFIG
6f57bdf6 673LDFLAGS_FOR_TARGET
5213506e
RW
674CXXFLAGS_FOR_TARGET
675CFLAGS_FOR_TARGET
676DEBUG_PREFIX_CFLAGS_FOR_TARGET
677SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 678get_gcc_base_ver
1c01ebf6 679extra_host_zlib_configure_flags
d7f09764 680extra_host_libiberty_configure_flags
fca38047 681stage1_languages
cdfee50a 682host_shared
45b3824d
TS
683extra_linker_plugin_flags
684extra_linker_plugin_configure_flags
33ad93b9 685islinc
eae1a5d4 686isllibs
5213506e 687poststage1_ldflags
ed2eaa9f 688poststage1_libs
5213506e 689stage1_ldflags
0b21f5d3 690stage1_libs
0ff2d841 691extra_isl_gmp_configure_flags
5213506e
RW
692extra_mpc_mpfr_configure_flags
693extra_mpc_gmp_configure_flags
694extra_mpfr_configure_flags
695gmpinc
696gmplibs
697do_compare
698GNATMAKE
699GNATBIND
700ac_ct_CXX
701CXXFLAGS
702CXX
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
5f520819 710extra_liboffloadmic_configure_flags
5213506e
RW
711target_subdir
712host_subdir
713build_subdir
714build_libsubdir
87264276
PB
715AWK
716SED
5213506e
RW
717LN_S
718LN
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722target_os
723target_vendor
724target_cpu
725target
726host_os
727host_vendor
728host_cpu
729host
730target_noncanonical
731host_noncanonical
732build_noncanonical
733build_os
734build_vendor
735build_cpu
736build
737TOPLEVEL_CONFIGURE_ARGUMENTS
738target_alias
739host_alias
740build_alias
741LIBS
742ECHO_T
743ECHO_N
744ECHO_C
745DEFS
746mandir
747localedir
748libdir
749psdir
750pdfdir
751dvidir
752htmldir
753infodir
754docdir
755oldincludedir
756includedir
757localstatedir
758sharedstatedir
759sysconfdir
760datadir
761datarootdir
762libexecdir
763sbindir
764bindir
765program_transform_name
766prefix
767exec_prefix
768PACKAGE_URL
769PACKAGE_BUGREPORT
770PACKAGE_STRING
771PACKAGE_VERSION
772PACKAGE_TARNAME
773PACKAGE_NAME
774PATH_SEPARATOR
775SHELL'
776ac_subst_files='serialization_dependencies
777host_makefile_frag
778target_makefile_frag
779alphaieee_frag
780ospace_frag'
781ac_user_opts='
782enable_option_checking
783with_build_libsubdir
a05c2c75 784with_system_zlib
85c64bbe
BS
785enable_as_accelerator_for
786enable_offload_targets
5213506e 787enable_gold
21539e2e 788enable_ld
78edb32f 789enable_compressed_debug_sections
87e6d9dc
TB
790enable_libquadmath
791enable_libquadmath_support
5213506e
RW
792enable_libada
793enable_libssp
1873ec0c 794enable_libstdcxx
5f520819 795enable_liboffloadmic
ff3ac0f4 796enable_bootstrap
5213506e
RW
797with_mpc
798with_mpc_include
799with_mpc_lib
800with_mpfr_dir
801with_mpfr
802with_mpfr_include
803with_mpfr_lib
804with_gmp_dir
805with_gmp
806with_gmp_include
807with_gmp_lib
5213506e 808with_stage1_libs
aac9103b 809with_static_standard_libraries
0b21f5d3 810with_stage1_ldflags
5213506e 811with_boot_libs
ed2eaa9f 812with_boot_ldflags
33ad93b9
RG
813with_isl
814with_isl_include
815with_isl_lib
816enable_isl_version_check
d7f09764 817enable_lto
45b3824d
TS
818enable_linker_plugin_configure_flags
819enable_linker_plugin_flags
cdfee50a 820enable_host_shared
5213506e 821enable_stage1_languages
43c40f3e 822enable_objc_gc
114bf3f1
MK
823with_target_bdw_gc
824with_target_bdw_gc_include
825with_target_bdw_gc_lib
3c36aa6b 826with_gcc_major_version_only
5213506e
RW
827with_build_sysroot
828with_debug_prefix_map
5646b7b9 829with_build_config
beeda1d9 830enable_vtable_verify
5213506e
RW
831enable_serial_configure
832with_build_time_tools
833enable_maintainer_mode
834enable_stage1_checking
835enable_werror
5213506e
RW
836'
837 ac_precious_vars='build_alias
838host_alias
839target_alias
840CC
841CFLAGS
842LDFLAGS
843LIBS
844CPPFLAGS
845CXX
846CXXFLAGS
847CCC
ffedf511
RW
848build_configargs
849host_configargs
850target_configargs
5213506e
RW
851AR
852AS
853DLLTOOL
854LD
855LIPO
856NM
857RANLIB
858STRIP
859WINDRES
860WINDMC
861OBJCOPY
862OBJDUMP
e4a9a572 863OTOOL
e7a82751 864READELF
5213506e
RW
865CC_FOR_TARGET
866CXX_FOR_TARGET
867GCC_FOR_TARGET
5213506e 868GFORTRAN_FOR_TARGET
632e2a07 869GOC_FOR_TARGET
b4c522fa 870GDC_FOR_TARGET
5213506e
RW
871AR_FOR_TARGET
872AS_FOR_TARGET
873DLLTOOL_FOR_TARGET
874LD_FOR_TARGET
875LIPO_FOR_TARGET
876NM_FOR_TARGET
9bccfdf5 877OBJCOPY_FOR_TARGET
5213506e 878OBJDUMP_FOR_TARGET
e4a9a572 879OTOOL_FOR_TARGET
5213506e 880RANLIB_FOR_TARGET
e7a82751 881READELF_FOR_TARGET
5213506e
RW
882STRIP_FOR_TARGET
883WINDRES_FOR_TARGET
884WINDMC_FOR_TARGET'
885
671aa708
NN
886
887# Initialize some variables set by options.
1c710c3c
DJ
888ac_init_help=
889ac_init_version=false
5213506e
RW
890ac_unrecognized_opts=
891ac_unrecognized_sep=
671aa708
NN
892# The variables have the same names as the options, with
893# dashes changed to underlines.
1c710c3c 894cache_file=/dev/null
671aa708 895exec_prefix=NONE
671aa708 896no_create=
671aa708
NN
897no_recursion=
898prefix=NONE
899program_prefix=NONE
900program_suffix=NONE
901program_transform_name=s,x,x,
902silent=
903site=
904srcdir=
671aa708
NN
905verbose=
906x_includes=NONE
907x_libraries=NONE
1c710c3c
DJ
908
909# Installation directory options.
910# These are left unexpanded so users can "make install exec_prefix=/foo"
911# and all the variables that are supposed to be based on exec_prefix
912# by default will actually change.
913# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 914# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
915bindir='${exec_prefix}/bin'
916sbindir='${exec_prefix}/sbin'
917libexecdir='${exec_prefix}/libexec'
5213506e
RW
918datarootdir='${prefix}/share'
919datadir='${datarootdir}'
671aa708
NN
920sysconfdir='${prefix}/etc'
921sharedstatedir='${prefix}/com'
922localstatedir='${prefix}/var'
671aa708
NN
923includedir='${prefix}/include'
924oldincludedir='/usr/include'
5213506e
RW
925docdir='${datarootdir}/doc/${PACKAGE}'
926infodir='${datarootdir}/info'
927htmldir='${docdir}'
928dvidir='${docdir}'
929pdfdir='${docdir}'
930psdir='${docdir}'
931libdir='${exec_prefix}/lib'
932localedir='${datarootdir}/locale'
933mandir='${datarootdir}/man'
79c06341 934
671aa708 935ac_prev=
5213506e 936ac_dashdash=
671aa708
NN
937for ac_option
938do
671aa708
NN
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
5213506e 941 eval $ac_prev=\$ac_option
671aa708
NN
942 ac_prev=
943 continue
944 fi
79c06341 945
5213506e 946 case $ac_option in
22e05272
JM
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
5213506e 950 esac
671aa708
NN
951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
5213506e
RW
954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
671aa708
NN
957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 961 bindir=$ac_optarg ;;
671aa708
NN
962
963 -build | --build | --buil | --bui | --bu)
1c710c3c 964 ac_prev=build_alias ;;
671aa708 965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 966 build_alias=$ac_optarg ;;
671aa708
NN
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
671aa708 977
5213506e 978 -datadir | --datadir | --datadi | --datad)
671aa708 979 ac_prev=datadir ;;
5213506e 980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 981 datadir=$ac_optarg ;;
671aa708 982
5213506e
RW
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
671aa708 990 -disable-* | --disable-*)
5213506e 991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 992 # Reject names that are not valid shell variable names.
5213506e 993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 994 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999"enable_$ac_useropt"
1000"*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
671aa708
NN
1015
1016 -enable-* | --enable-*)
5213506e 1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1018 # Reject names that are not valid shell variable names.
5213506e 1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1020 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025"enable_$ac_useropt"
1026"*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
2aeb72e9 1029 esac
5213506e 1030 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1031
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1c710c3c 1039 exec_prefix=$ac_optarg ;;
671aa708
NN
1040
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1044
1c710c3c
DJ
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
671aa708
NN
1051
1052 -host | --host | --hos | --ho)
1c710c3c 1053 ac_prev=host_alias ;;
671aa708 1054 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1055 host_alias=$ac_optarg ;;
671aa708 1056
5213506e
RW
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
671aa708
NN
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1068 includedir=$ac_optarg ;;
671aa708
NN
1069
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1073 infodir=$ac_optarg ;;
671aa708
NN
1074
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1078 libdir=$ac_optarg ;;
671aa708
NN
1079
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1085 libexecdir=$ac_optarg ;;
671aa708 1086
5213506e
RW
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
671aa708 1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1093 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1097 localstatedir=$ac_optarg ;;
671aa708
NN
1098
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1102 mandir=$ac_optarg ;;
671aa708
NN
1103
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1107
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1109 | --no-cr | --no-c | -n)
671aa708
NN
1110 no_create=yes ;;
1111
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1115
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1123 oldincludedir=$ac_optarg ;;
671aa708
NN
1124
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1128 prefix=$ac_optarg ;;
671aa708
NN
1129
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1135 program_prefix=$ac_optarg ;;
671aa708
NN
1136
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1142 program_suffix=$ac_optarg ;;
671aa708
NN
1143
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1159 program_transform_name=$ac_optarg ;;
671aa708 1160
5213506e
RW
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
671aa708
NN
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1c710c3c 1179 sbindir=$ac_optarg ;;
671aa708
NN
1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1c710c3c 1190 sharedstatedir=$ac_optarg ;;
671aa708
NN
1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1c710c3c 1195 site=$ac_optarg ;;
671aa708
NN
1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1200 srcdir=$ac_optarg ;;
671aa708
NN
1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1207 sysconfdir=$ac_optarg ;;
671aa708
NN
1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1210 ac_prev=target_alias ;;
671aa708 1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1212 target_alias=$ac_optarg ;;
671aa708
NN
1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
1c710c3c
DJ
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
671aa708
NN
1219
1220 -with-* | --with-*)
5213506e 1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1222 # Reject names that are not valid shell variable names.
5213506e 1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1224 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229"with_$ac_useropt"
1230"*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
2aeb72e9 1233 esac
5213506e 1234 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1235
1236 -without-* | --without-*)
5213506e 1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1238 # Reject names that are not valid shell variable names.
5213506e 1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1240 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245"with_$ac_useropt"
1246"*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
671aa708
NN
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1261 x_includes=$ac_optarg ;;
671aa708
NN
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1268 x_libraries=$ac_optarg ;;
671aa708 1269
22e05272
JM
1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271Try \`$0 --help' for more information"
671aa708
NN
1272 ;;
1273
1c710c3c
DJ
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
5213506e
RW
1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1280 esac
1281 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1282 export $ac_envvar ;;
1283
671aa708 1284 *)
1c710c3c 1285 # FIXME: should be removed in autoconf 3.0.
5213506e 1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1290 ;;
1291
1292 esac
1293done
1294
1295if test -n "$ac_prev"; then
1c710c3c 1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1297 as_fn_error $? "missing argument to $ac_option"
af71363e 1298fi
af71363e 1299
5213506e
RW
1300if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
22e05272 1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1305 esac
5213506e 1306fi
2aeb72e9 1307
5213506e
RW
1308# Check all directory arguments for consistency.
1309for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
2aeb72e9 1313do
5213506e
RW
1314 eval ac_val=\$$ac_var
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
2aeb72e9 1322 case $ac_val in
5213506e
RW
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1325 esac
22e05272 1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1327done
1328
1c710c3c
DJ
1329# There might be people who depend on the old broken behavior: `$host'
1330# used to hold the argument of --host etc.
1331# FIXME: To remove some day.
1332build=$build_alias
1333host=$host_alias
1334target=$target_alias
0b0dc272 1335
1c710c3c
DJ
1336# FIXME: To remove some day.
1337if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
1c710c3c
DJ
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1342 fi
1343fi
1344
1345ac_tool_prefix=
1346test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348test "$silent" = yes && exec 6>/dev/null
671aa708 1349
671aa708 1350
5213506e
RW
1351ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352ac_ls_di=`ls -di .` &&
1353ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1354 as_fn_error $? "working directory cannot be determined"
5213506e 1355test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1356 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1357
1358
671aa708
NN
1359# Find the source files, if location was not specified.
1360if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
5213506e
RW
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368$as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
671aa708 1386 srcdir=$ac_confdir
5213506e 1387 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1388 srcdir=..
1389 fi
1390else
1391 ac_srcdir_defaulted=no
1392fi
5213506e
RW
1393if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1396fi
1397ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398ac_abs_confdir=`(
22e05272 1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1400 pwd)`
1401# When building in place, set srcdir=.
1402if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1404fi
1405# Remove unnecessary trailing slashes from srcdir.
1406# Double slashes in file names in object file debugging info
1407# mess up M-x gdb in Emacs.
1408case $srcdir in
1409*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410esac
87841584
AM
1411case $srcdir in
1412 *" "*)
22e05272 1413 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1414 ;;
1415esac
ac9e6043
RW
1416ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1417
5213506e
RW
1418for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423done
1c710c3c
DJ
1424
1425#
1426# Report the --help message.
1427#
1428if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432\`configure' configures this package to adapt to many kinds of systems.
1433
1434Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439Defaults for the options are specified in brackets.
1440
1441Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
22e05272 1446 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
1c710c3c
DJ
1452Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1454 [$ac_default_prefix]
1c710c3c 1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1456 [PREFIX]
1c710c3c
DJ
1457
1458By default, \`make install' will install all the files in
1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461for instance \`--prefix=\$HOME'.
1462
1463For better control, use the options below.
1464
1465Fine tuning of the installation directories:
5213506e
RW
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1485_ACEOF
1486
1487 cat <<\_ACEOF
1488
1489Program names:
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1493
1494System types:
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 --target=TARGET configure for building compilers for TARGET [HOST]
1498_ACEOF
1499fi
1500
1501if test -n "$ac_init_help"; then
1502
1503 cat <<\_ACEOF
1504
1505Optional Features:
5213506e 1506 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1509 --enable-as-accelerator-for=ARG
1510 build as offload target compiler. Specify offload
1511 host triple by ARG
1512 --enable-offload-targets=LIST
1513 enable offloading to devices from comma-separated
1514 LIST of TARGET[=DIR]. Use optional path to find
1515 offload target compiler during the build
21539e2e 1516 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1517 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1518 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1519 Enable compressed debug sections for gas, gold or ld
1520 by default
87e6d9dc
TB
1521 --disable-libquadmath do not build libquadmath directory
1522 --disable-libquadmath-support
1523 disable libquadmath support for Fortran
30b74385
RW
1524 --enable-libada build libada directory
1525 --enable-libssp build libssp directory
1873ec0c 1526 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1527 --enable-liboffloadmic=ARG
1528 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1529 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1530 --disable-isl-version-check
560d18d3 1531 disable check for isl version
d7f09764 1532 --enable-lto enable link time optimization support
45b3824d
TS
1533 --enable-linker-plugin-configure-flags=FLAGS
1534 additional flags for configuring linker plugins
1535 [none]
1536 --enable-linker-plugin-flags=FLAGS
1537 additional flags for configuring and building linker
1538 plugins [none]
cdfee50a 1539 --enable-host-shared build host code as shared libraries
33e39b66
AS
1540 --enable-stage1-languages[=all]
1541 choose additional languages to build during stage1.
1542 Mostly useful for compiler development
43c40f3e
RO
1543 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1544 Objective-C runtime
318a4e6d 1545 --enable-vtable-verify Enable vtable verification feature
30b74385 1546 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1547 force sequential configuration of sub-packages for
1548 the host, target or build machine, or all
1549 sub-packages
1550 --enable-maintainer-mode
1551 enable make rules and dependencies not useful (and
1552 sometimes confusing) to the casual installer
1553 --enable-stage1-checking[=all]
1554 choose additional checking for stage1 of the
1555 compiler
1c710c3c
DJ
1556 --enable-werror enable -Werror in bootstrap stage2 and later
1557
1558Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1562 --with-system-zlib use installed libz
33e39b66
AS
1563 --with-mpc=PATH specify prefix directory for installed MPC package.
1564 Equivalent to --with-mpc-include=PATH/include plus
1565 --with-mpc-lib=PATH/lib
1566 --with-mpc-include=PATH specify directory for installed MPC include files
1567 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1568 --with-mpfr-dir=PATH this option has been REMOVED
1569 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1570 Equivalent to --with-mpfr-include=PATH/include plus
1571 --with-mpfr-lib=PATH/lib
1c710c3c 1572 --with-mpfr-include=PATH
30b74385
RW
1573 specify directory for installed MPFR include files
1574 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1575 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1576 --with-gmp=PATH specify prefix directory for the installed GMP
1577 package. Equivalent to
1578 --with-gmp-include=PATH/include plus
1579 --with-gmp-lib=PATH/lib
30b74385
RW
1580 --with-gmp-include=PATH specify directory for installed GMP include files
1581 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1582 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1583 --with-static-standard-libraries
1584 use -static-libstdc++ and -static-libgcc
1585 (default=auto)
33e39b66
AS
1586 --with-stage1-ldflags=FLAGS
1587 linker flags for stage1
33e39b66
AS
1588 --with-boot-libs=LIBS libraries for stage2 and later
1589 --with-boot-ldflags=FLAGS
1590 linker flags for stage2 and later
e357a5e0 1591 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1592 package. Equivalent to
33ad93b9
RG
1593 --with-isl-include=PATH/include plus
1594 --with-isl-lib=PATH/lib
560d18d3
AK
1595 --with-isl-include=PATH Specify directory for installed isl include files
1596 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1597 --with-target-bdw-gc=PATHLIST
1598 specify prefix directory for installed bdw-gc
1599 package. Equivalent to
1600 --with-target-bdw-gc-include=PATH/include plus
1601 --with-target-bdw-gc-lib=PATH/lib
1602 --with-target-bdw-gc-include=PATHLIST
1603 specify directories for installed bdw-gc include
1604 files
1605 --with-target-bdw-gc-lib=PATHLIST
1606 specify directories for installed bdw-gc library
3c36aa6b
JJ
1607 --with-gcc-major-version-only
1608 use only GCC major number in filesystem paths
30b74385 1609 --with-build-sysroot=SYSROOT
1c710c3c 1610 use sysroot as the system root during the build
c8aea42c 1611 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1612 map A to B, C to D ... in debug information
1613 --with-build-config='NAME NAME2...'
1614 use config/NAME.mk build configuration
30b74385 1615 --with-build-time-tools=PATH
1c710c3c 1616 use given path to find target tools during the build
1c710c3c
DJ
1617
1618Some influential environment variables:
1619 CC C compiler command
1620 CFLAGS C compiler flags
1621 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1622 nonstandard directory <lib dir>
5213506e 1623 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1624 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1625 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1626 CXX C++ compiler command
1627 CXXFLAGS C++ compiler flags
ffedf511
RW
1628 build_configargs
1629 additional configure arguments for build directories
1630 host_configargs
1631 additional configure arguments for host directories
1632 target_configargs
1633 additional configure arguments for target directories
278a7a38
AO
1634 AR AR for the host
1635 AS AS for the host
1636 DLLTOOL DLLTOOL for the host
1637 LD LD for the host
1638 LIPO LIPO for the host
1639 NM NM for the host
1640 RANLIB RANLIB for the host
1641 STRIP STRIP for the host
1642 WINDRES WINDRES for the host
901119ae 1643 WINDMC WINDMC for the host
278a7a38
AO
1644 OBJCOPY OBJCOPY for the host
1645 OBJDUMP OBJDUMP for the host
e4a9a572 1646 OTOOL OTOOL for the host
e7a82751 1647 READELF READELF for the host
278a7a38
AO
1648 CC_FOR_TARGET
1649 CC for the target
1650 CXX_FOR_TARGET
1651 CXX for the target
1652 GCC_FOR_TARGET
1653 GCC for the target
278a7a38
AO
1654 GFORTRAN_FOR_TARGET
1655 GFORTRAN for the target
632e2a07
ILT
1656 GOC_FOR_TARGET
1657 GOC for the target
b4c522fa
IB
1658 GDC_FOR_TARGET
1659 GDC for the target
278a7a38
AO
1660 AR_FOR_TARGET
1661 AR for the target
1662 AS_FOR_TARGET
1663 AS for the target
1664 DLLTOOL_FOR_TARGET
1665 DLLTOOL for the target
1666 LD_FOR_TARGET
1667 LD for the target
1668 LIPO_FOR_TARGET
1669 LIPO for the target
1670 NM_FOR_TARGET
1671 NM for the target
9bccfdf5
AP
1672 OBJCOPY_FOR_TARGET
1673 OBJCOPY for the target
278a7a38
AO
1674 OBJDUMP_FOR_TARGET
1675 OBJDUMP for the target
e4a9a572
IS
1676 OTOOL_FOR_TARGET
1677 OTOOL for the target
278a7a38
AO
1678 RANLIB_FOR_TARGET
1679 RANLIB for the target
e7a82751
RM
1680 READELF_FOR_TARGET
1681 READELF for the target
278a7a38
AO
1682 STRIP_FOR_TARGET
1683 STRIP for the target
1684 WINDRES_FOR_TARGET
1685 WINDRES for the target
901119ae
KT
1686 WINDMC_FOR_TARGET
1687 WINDMC for the target
1c710c3c
DJ
1688
1689Use these variables to override the choices made by `configure' or to help
1690it to find libraries and programs with nonstandard names/locations.
1691
5213506e 1692Report bugs to the package provider.
1c710c3c 1693_ACEOF
5213506e 1694ac_status=$?
1c710c3c
DJ
1695fi
1696
1697if test "$ac_init_help" = "recursive"; then
1698 # If there are subdirs, report their specific --help.
1c710c3c 1699 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1700 test -d "$ac_dir" ||
1701 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1702 continue
1c710c3c
DJ
1703 ac_builddir=.
1704
5213506e
RW
1705case "$ac_dir" in
1706.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707*)
1708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1709 # A ".." for each directory in $ac_dir_suffix.
1710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1711 case $ac_top_builddir_sub in
1712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1714 esac ;;
1715esac
1716ac_abs_top_builddir=$ac_pwd
1717ac_abs_builddir=$ac_pwd$ac_dir_suffix
1718# for backward compatibility:
1719ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1720
1721case $srcdir in
5213506e 1722 .) # We are building in place.
1c710c3c 1723 ac_srcdir=.
5213506e
RW
1724 ac_top_srcdir=$ac_top_builddir_sub
1725 ac_abs_top_srcdir=$ac_pwd ;;
1726 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1727 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1728 ac_top_srcdir=$srcdir
1729 ac_abs_top_srcdir=$srcdir ;;
1730 *) # Relative name.
1731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1732 ac_top_srcdir=$ac_top_build_prefix$srcdir
1733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1734esac
5213506e
RW
1735ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736
1737 cd "$ac_dir" || { ac_status=$?; continue; }
1738 # Check for guested configure.
1739 if test -f "$ac_srcdir/configure.gnu"; then
1740 echo &&
1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742 elif test -f "$ac_srcdir/configure"; then
1743 echo &&
1744 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1745 else
5213506e
RW
1746 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 fi || ac_status=$?
1748 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1749 done
1750fi
1751
5213506e 1752test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1753if $ac_init_version; then
1754 cat <<\_ACEOF
5213506e 1755configure
22e05272 1756generated by GNU Autoconf 2.69
1c710c3c 1757
22e05272 1758Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1759This configure script is free software; the Free Software Foundation
1760gives unlimited permission to copy, distribute and modify it.
1761_ACEOF
5213506e 1762 exit
0b0dc272 1763fi
5213506e
RW
1764
1765## ------------------------ ##
1766## Autoconf initialization. ##
1767## ------------------------ ##
1768
1769# ac_fn_c_try_compile LINENO
1770# --------------------------
1771# Try to compile conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_compile ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1777case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1795 ac_retval=0
1796else
1797 $as_echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801fi
22e05272
JM
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
5213506e
RW
1804
1805} # ac_fn_c_try_compile
1806
1807# ac_fn_cxx_try_compile LINENO
1808# ----------------------------
1809# Try to compile conftest.$ac_ext, and return whether this succeeded.
1810ac_fn_cxx_try_compile ()
1811{
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext
1814 if { { ac_try="$ac_compile"
1815case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_compile") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_cxx_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest.$ac_objext; then :
1833 ac_retval=0
1834else
1835 $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1
1839fi
22e05272
JM
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
5213506e
RW
1842
1843} # ac_fn_cxx_try_compile
1844
0b21f5d3
EB
1845# ac_fn_cxx_try_link LINENO
1846# -------------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded.
1848ac_fn_cxx_try_link ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext conftest$ac_exeext
1852 if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>conftest.err
1860 ac_status=$?
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1865 fi
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_cxx_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest$ac_exeext && {
1871 test "$cross_compiling" = yes ||
22e05272 1872 test -x conftest$ac_exeext
0b21f5d3
EB
1873 }; then :
1874 ac_retval=0
1875else
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880fi
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
0b21f5d3
EB
1888
1889} # ac_fn_cxx_try_link
1890
5213506e
RW
1891# ac_fn_c_try_link LINENO
1892# -----------------------
1893# Try to link conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_c_try_link ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
22e05272 1918 test -x conftest$ac_exeext
5213506e
RW
1919 }; then :
1920 ac_retval=0
1921else
1922 $as_echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=1
1926fi
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
5213506e
RW
1934
1935} # ac_fn_c_try_link
1936cat >config.log <<_ACEOF
1c710c3c
DJ
1937This file contains any messages produced by compilers while
1938running configure, to aid debugging if configure makes a mistake.
1939
1940It was created by $as_me, which was
22e05272 1941generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1942
1943 $ $0 $@
1944
1945_ACEOF
5213506e 1946exec 5>>config.log
1c710c3c
DJ
1947{
1948cat <<_ASUNAME
1949## --------- ##
1950## Platform. ##
1951## --------- ##
1952
1953hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1954uname -m = `(uname -m) 2>/dev/null || echo unknown`
1955uname -r = `(uname -r) 2>/dev/null || echo unknown`
1956uname -s = `(uname -s) 2>/dev/null || echo unknown`
1957uname -v = `(uname -v) 2>/dev/null || echo unknown`
1958
1959/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1960/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1961
1962/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1963/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1964/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1965/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1966/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1967/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1968/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1969
1970_ASUNAME
1971
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
5213506e
RW
1977 $as_echo "PATH: $as_dir"
1978 done
1979IFS=$as_save_IFS
1c710c3c
DJ
1980
1981} >&5
1982
1983cat >&5 <<_ACEOF
1984
1985
1986## ----------- ##
1987## Core tests. ##
1988## ----------- ##
1989
1990_ACEOF
1991
1992
1993# Keep a trace of the command line.
1994# Strip out --no-create and --no-recursion so they do not pile up.
1995# Strip out --silent because we don't want to record it for future runs.
1996# Also quote any args containing shell meta-characters.
1997# Make two passes to allow for proper duplicate-argument suppression.
1998ac_configure_args=
1999ac_configure_args0=
2000ac_configure_args1=
1c710c3c
DJ
2001ac_must_keep_next=false
2002for ac_pass in 1 2
2003do
2004 for ac_arg
2005 do
2006 case $ac_arg in
2007 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2009 | -silent | --silent | --silen | --sile | --sil)
2010 continue ;;
5213506e
RW
2011 *\'*)
2012 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2013 esac
2014 case $ac_pass in
5213506e 2015 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2016 2)
5213506e 2017 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2018 if test $ac_must_keep_next = true; then
2019 ac_must_keep_next=false # Got value, back to normal.
2020 else
2021 case $ac_arg in
2022 *=* | --config-cache | -C | -disable-* | --disable-* \
2023 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2024 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2025 | -with-* | --with-* | -without-* | --without-* | --x)
2026 case "$ac_configure_args0 " in
2027 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2028 esac
2029 ;;
2030 -* ) ac_must_keep_next=true ;;
2031 esac
2032 fi
5213506e 2033 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2034 ;;
2035 esac
2036 done
2037done
5213506e
RW
2038{ ac_configure_args0=; unset ac_configure_args0;}
2039{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2040
2041# When interrupted or exit'd, cleanup temporary files, and complete
2042# config.log. We remove comments because anyway the quotes in there
2043# would cause problems or look ugly.
5213506e
RW
2044# WARNING: Use '\'' to represent an apostrophe within the trap.
2045# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2046trap 'exit_status=$?
2047 # Save into config.log some information that might help in debugging.
2048 {
2049 echo
2050
22e05272 2051 $as_echo "## ---------------- ##
1c710c3c 2052## Cache variables. ##
22e05272 2053## ---------------- ##"
1c710c3c
DJ
2054 echo
2055 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2056(
2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in #(
2060 *${as_nl}*)
2061 case $ac_var in #(
2062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2063$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064 esac
2065 case $ac_var in #(
2066 _ | IFS | as_nl) ;; #(
2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2068 *) { eval $ac_var=; unset $ac_var;} ;;
2069 esac ;;
2070 esac
2071 done
1c710c3c 2072 (set) 2>&1 |
5213506e
RW
2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2074 *${as_nl}ac_space=\ *)
1c710c3c 2075 sed -n \
5213506e
RW
2076 "s/'\''/'\''\\\\'\'''\''/g;
2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078 ;; #(
1c710c3c 2079 *)
5213506e 2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2081 ;;
5213506e
RW
2082 esac |
2083 sort
2084)
1c710c3c
DJ
2085 echo
2086
22e05272 2087 $as_echo "## ----------------- ##
1c710c3c 2088## Output variables. ##
22e05272 2089## ----------------- ##"
1c710c3c
DJ
2090 echo
2091 for ac_var in $ac_subst_vars
2092 do
5213506e
RW
2093 eval ac_val=\$$ac_var
2094 case $ac_val in
2095 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 esac
2097 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2098 done | sort
2099 echo
2100
2101 if test -n "$ac_subst_files"; then
22e05272 2102 $as_echo "## ------------------- ##
5213506e 2103## File substitutions. ##
22e05272 2104## ------------------- ##"
1c710c3c
DJ
2105 echo
2106 for ac_var in $ac_subst_files
2107 do
5213506e
RW
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2113 done | sort
2114 echo
2115 fi
2116
2117 if test -s confdefs.h; then
22e05272 2118 $as_echo "## ----------- ##
1c710c3c 2119## confdefs.h. ##
22e05272 2120## ----------- ##"
1c710c3c 2121 echo
5213506e 2122 cat confdefs.h
1c710c3c
DJ
2123 echo
2124 fi
2125 test "$ac_signal" != 0 &&
5213506e
RW
2126 $as_echo "$as_me: caught signal $ac_signal"
2127 $as_echo "$as_me: exit $exit_status"
1c710c3c 2128 } >&5
5213506e
RW
2129 rm -f core *.core core.conftest.* &&
2130 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2131 exit $exit_status
5213506e 2132' 0
1c710c3c 2133for ac_signal in 1 2 13 15; do
5213506e 2134 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2135done
2136ac_signal=0
2137
2138# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2139rm -f -r conftest* confdefs.h
2140
2141$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2142
2143# Predefined preprocessor variables.
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_NAME "$PACKAGE_NAME"
2147_ACEOF
2148
1c710c3c
DJ
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2151_ACEOF
2152
1c710c3c
DJ
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_VERSION "$PACKAGE_VERSION"
2155_ACEOF
0b0dc272 2156
1c710c3c
DJ
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_STRING "$PACKAGE_STRING"
2159_ACEOF
2160
1c710c3c
DJ
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2163_ACEOF
2164
5213506e
RW
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_URL "$PACKAGE_URL"
2167_ACEOF
2168
1c710c3c
DJ
2169
2170# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2171# Prefer an explicitly selected file to automatically selected ones.
2172ac_site_file1=NONE
2173ac_site_file2=NONE
2174if test -n "$CONFIG_SITE"; then
22e05272
JM
2175 # We do not want a PATH search for config.site.
2176 case $CONFIG_SITE in #((
2177 -*) ac_site_file1=./$CONFIG_SITE;;
2178 */*) ac_site_file1=$CONFIG_SITE;;
2179 *) ac_site_file1=./$CONFIG_SITE;;
2180 esac
5213506e
RW
2181elif test "x$prefix" != xNONE; then
2182 ac_site_file1=$prefix/share/config.site
2183 ac_site_file2=$prefix/etc/config.site
2184else
2185 ac_site_file1=$ac_default_prefix/share/config.site
2186 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2187fi
5213506e
RW
2188for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2189do
2190 test "x$ac_site_file" = xNONE && continue
22e05272 2191 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2193$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2194 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2195 . "$ac_site_file" \
2196 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198as_fn_error $? "failed to load site script $ac_site_file
2199See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2200 fi
2201done
2202
2203if test -r "$cache_file"; then
22e05272
JM
2204 # Some versions of bash will fail to source /dev/null (special files
2205 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2206 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2208$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2209 case $cache_file in
5213506e
RW
2210 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2211 *) . "./$cache_file";;
1c710c3c
DJ
2212 esac
2213 fi
671aa708 2214else
5213506e
RW
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2216$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2217 >$cache_file
2218fi
2219
2220# Check that the precious variables saved in the cache have kept the same
2221# value.
2222ac_cache_corrupted=false
5213506e 2223for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2225 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2226 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2227 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2228 case $ac_old_set,$ac_new_set in
2229 set,)
5213506e
RW
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2231$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2232 ac_cache_corrupted=: ;;
2233 ,set)
5213506e
RW
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2235$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2236 ac_cache_corrupted=: ;;
2237 ,);;
2238 *)
2239 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2240 # differences in whitespace do not lead to failure.
2241 ac_old_val_w=`echo x $ac_old_val`
2242 ac_new_val_w=`echo x $ac_new_val`
2243 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2245$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2246 ac_cache_corrupted=:
2247 else
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2249$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2250 eval $ac_var=\$ac_old_val
2251 fi
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2253$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2255$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2256 fi;;
2257 esac
2258 # Pass precious variables to config.status.
2259 if test "$ac_new_set" = set; then
2260 case $ac_new_val in
5213506e 2261 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2262 *) ac_arg=$ac_var=$ac_new_val ;;
2263 esac
2264 case " $ac_configure_args " in
2265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2266 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2267 esac
2268 fi
2269done
2270if $ac_cache_corrupted; then
5213506e
RW
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2274$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2275 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2276fi
5213506e
RW
2277## -------------------- ##
2278## Main body of script. ##
2279## -------------------- ##
671aa708 2280
2aeb72e9
DD
2281ac_ext=c
2282ac_cpp='$CPP $CPPFLAGS'
2283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285ac_compiler_gnu=$ac_cv_c_compiler_gnu
2286
1c710c3c
DJ
2287
2288
2289
1c710c3c
DJ
2290
2291
0115d4a3 2292
1c710c3c 2293
ad33ff57
RW
2294progname=$0
2295# if PWD already has a value, it is probably wrong.
2296if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2297
2298# Export original configure arguments for use by sub-configures.
2299# Quote arguments with shell meta charatcers.
2300TOPLEVEL_CONFIGURE_ARGUMENTS=
2301set -- "$progname" "$@"
2302for ac_arg
2303do
2304 case "$ac_arg" in
2305 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2306 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2307 # if the argument is of the form -foo=baz, quote the baz part only
2308 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2309 *) ;;
2310 esac
2311 # Add the quoted argument to the list.
2312 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2313done
2314if test "$silent" = yes; then
2315 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2316fi
2317# Remove the initial space we just introduced and, as these will be
2318# expanded by make, quote '$'.
2319TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2320
1c710c3c
DJ
2321
2322# Find the build, host, and target systems.
671aa708 2323ac_aux_dir=
5213506e 2324for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2325 if test -f "$ac_dir/install-sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/install-sh -c"
2328 break
2329 elif test -f "$ac_dir/install.sh"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/install.sh -c"
2332 break
2333 elif test -f "$ac_dir/shtool"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/shtool install -c"
2336 break
2337 fi
671aa708
NN
2338done
2339if test -z "$ac_aux_dir"; then
22e05272 2340 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2341fi
5213506e
RW
2342
2343# These three variables are undocumented and unsupported,
2344# and are intended to be withdrawn in a future Autoconf release.
2345# They can cause serious problems if a builder's source tree is in a directory
2346# whose full name contains unusual characters.
2347ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2348ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2349ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2350
671aa708 2351
1c710c3c 2352# Make sure we can run config.sub.
5213506e 2353$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2354 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2355
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2357$as_echo_n "checking build system type... " >&6; }
22e05272 2358if ${ac_cv_build+:} false; then :
5213506e
RW
2359 $as_echo_n "(cached) " >&6
2360else
2361 ac_build_alias=$build_alias
2362test "x$ac_build_alias" = x &&
2363 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2364test "x$ac_build_alias" = x &&
22e05272 2365 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2366ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2367 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2368
2369fi
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2371$as_echo "$ac_cv_build" >&6; }
2372case $ac_cv_build in
2373*-*-*) ;;
22e05272 2374*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2375esac
1c710c3c 2376build=$ac_cv_build
5213506e
RW
2377ac_save_IFS=$IFS; IFS='-'
2378set x $ac_cv_build
2379shift
2380build_cpu=$1
2381build_vendor=$2
2382shift; shift
2383# Remember, the first character of IFS is used to create $*,
2384# except with old shells:
2385build_os=$*
2386IFS=$ac_save_IFS
2387case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2388
671aa708 2389
1c710c3c
DJ
2390 case ${build_alias} in
2391 "") build_noncanonical=${build} ;;
2392 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2393esac
2394
2395
af71363e 2396
1c710c3c
DJ
2397 case ${host_alias} in
2398 "") host_noncanonical=${build_noncanonical} ;;
2399 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2400esac
2401
af71363e 2402
1c710c3c
DJ
2403
2404 case ${target_alias} in
2405 "") target_noncanonical=${host_noncanonical} ;;
2406 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2407esac
2408
af71363e 2409
1c710c3c
DJ
2410
2411
2412test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2413 test "$program_prefix$program_suffix$program_transform_name" = \
2414 NONENONEs,x,x, &&
1c710c3c 2415 program_transform_name=s,y,y,
af71363e 2416
5213506e
RW
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2418$as_echo_n "checking host system type... " >&6; }
22e05272 2419if ${ac_cv_host+:} false; then :
5213506e 2420 $as_echo_n "(cached) " >&6
af71363e 2421else
5213506e
RW
2422 if test "x$host_alias" = x; then
2423 ac_cv_host=$ac_cv_build
2424else
2425 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2427fi
1c710c3c 2428
af71363e 2429fi
5213506e
RW
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2431$as_echo "$ac_cv_host" >&6; }
2432case $ac_cv_host in
2433*-*-*) ;;
22e05272 2434*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2435esac
1c710c3c 2436host=$ac_cv_host
5213506e
RW
2437ac_save_IFS=$IFS; IFS='-'
2438set x $ac_cv_host
2439shift
2440host_cpu=$1
2441host_vendor=$2
2442shift; shift
2443# Remember, the first character of IFS is used to create $*,
2444# except with old shells:
2445host_os=$*
2446IFS=$ac_save_IFS
2447case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2448
2449
5213506e
RW
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2451$as_echo_n "checking target system type... " >&6; }
22e05272 2452if ${ac_cv_target+:} false; then :
5213506e 2453 $as_echo_n "(cached) " >&6
1c710c3c 2454else
5213506e
RW
2455 if test "x$target_alias" = x; then
2456 ac_cv_target=$ac_cv_host
2457else
2458 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2460fi
1c710c3c
DJ
2461
2462fi
5213506e
RW
2463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2464$as_echo "$ac_cv_target" >&6; }
2465case $ac_cv_target in
2466*-*-*) ;;
22e05272 2467*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2468esac
1c710c3c 2469target=$ac_cv_target
5213506e
RW
2470ac_save_IFS=$IFS; IFS='-'
2471set x $ac_cv_target
2472shift
2473target_cpu=$1
2474target_vendor=$2
2475shift; shift
2476# Remember, the first character of IFS is used to create $*,
2477# except with old shells:
2478target_os=$*
2479IFS=$ac_save_IFS
2480case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2481
2482
2483# The aliases save the names the user supplied, while $host etc.
2484# will get canonicalized.
2485test -n "$target_alias" &&
2486 test "$program_prefix$program_suffix$program_transform_name" = \
2487 NONENONEs,x,x, &&
2488 program_prefix=${target_alias}-
5213506e 2489
671aa708 2490test "$program_prefix" != NONE &&
5213506e 2491 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2492# Use a double $ so make ignores it.
2493test "$program_suffix" != NONE &&
5213506e
RW
2494 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2495# Double any \ or $.
1c710c3c 2496# By default was `s,x,x', remove it if useless.
5213506e
RW
2497ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2498program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2499
671aa708
NN
2500
2501
775956d0
NN
2502# Get 'install' or 'install-sh' and its variants.
2503# Find a good install program. We prefer a C program (faster),
2504# so one script is as good as another. But avoid the broken or
2505# incompatible versions:
2506# SysV /etc/install, /usr/sbin/install
2507# SunOS /usr/etc/install
2508# IRIX /sbin/install
2509# AIX /bin/install
1c710c3c 2510# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2511# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2512# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2513# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2514# OS/2's system install, which has a completely different semantic
775956d0 2515# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2516# Reject install programs that cannot install multiple files.
5213506e
RW
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2518$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2519if test -z "$INSTALL"; then
22e05272 2520if ${ac_cv_path_install+:} false; then :
5213506e 2521 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2522else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
5213506e
RW
2528 # Account for people who put trailing slashes in PATH elements.
2529case $as_dir/ in #((
2530 ./ | .// | /[cC]/* | \
1c710c3c 2531 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2532 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2533 /usr/ucb/* ) ;;
2534 *)
2535 # OSF1 and SCO ODT 3.0 have their own names for install.
2536 # Don't use installbsd from OSF since it installs stuff as root
2537 # by default.
2538 for ac_prog in ginstall scoinst install; do
2539 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2540 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2541 if test $ac_prog = install &&
1c710c3c 2542 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2543 # AIX install. It has an incompatible calling convention.
2544 :
1c710c3c
DJ
2545 elif test $ac_prog = install &&
2546 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547 # program-specific install script used by HP pwplus--don't use.
2548 :
775956d0 2549 else
38d24731
RW
2550 rm -rf conftest.one conftest.two conftest.dir
2551 echo one > conftest.one
2552 echo two > conftest.two
2553 mkdir conftest.dir
2554 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2555 test -s conftest.one && test -s conftest.two &&
2556 test -s conftest.dir/conftest.one &&
2557 test -s conftest.dir/conftest.two
2558 then
2559 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2560 break 3
2561 fi
775956d0
NN
2562 fi
2563 fi
2564 done
1c710c3c
DJ
2565 done
2566 ;;
2567esac
5213506e
RW
2568
2569 done
2570IFS=$as_save_IFS
1c710c3c 2571
38d24731 2572rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2573
2574fi
2575 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2576 INSTALL=$ac_cv_path_install
775956d0 2577 else
38d24731
RW
2578 # As a last resort, use the slow shell script. Don't cache a
2579 # value for INSTALL within a source directory, because that will
775956d0 2580 # break other packages using the cache if that directory is
38d24731 2581 # removed, or if the value is a relative name.
1c710c3c 2582 INSTALL=$ac_install_sh
775956d0
NN
2583 fi
2584fi
5213506e
RW
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2586$as_echo "$INSTALL" >&6; }
775956d0
NN
2587
2588# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2589# It thinks the first close brace ends the variable substitution.
2590test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2591
1c710c3c 2592test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2593
2594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2595
5213506e
RW
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2597$as_echo_n "checking whether ln works... " >&6; }
22e05272 2598if ${acx_cv_prog_LN+:} false; then :
5213506e 2599 $as_echo_n "(cached) " >&6
ad6717df
PB
2600else
2601 rm -f conftestdata_t
2602echo >conftestdata_f
2603if ln conftestdata_f conftestdata_t 2>/dev/null
2604then
2605 acx_cv_prog_LN=ln
2606else
2607 acx_cv_prog_LN=no
2608fi
2609rm -f conftestdata_f conftestdata_t
2610
2611fi
2612if test $acx_cv_prog_LN = no; then
2613 LN="cp"
5213506e
RW
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2615$as_echo "no, using $LN" >&6; }
ad6717df
PB
2616else
2617 LN="$acx_cv_prog_LN"
5213506e
RW
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619$as_echo "yes" >&6; }
ad6717df
PB
2620fi
2621
5213506e
RW
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2623$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2624LN_S=$as_ln_s
2625if test "$LN_S" = "ln -s"; then
5213506e
RW
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627$as_echo "yes" >&6; }
fb0103e5 2628else
5213506e
RW
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2630$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2631fi
2632
87264276
PB
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2634$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2635if ${ac_cv_path_SED+:} false; then :
87264276
PB
2636 $as_echo_n "(cached) " >&6
2637else
2638 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2639 for ac_i in 1 2 3 4 5 6 7; do
2640 ac_script="$ac_script$as_nl$ac_script"
2641 done
2642 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2643 { ac_script=; unset ac_script;}
2644 if test -z "$SED"; then
2645 ac_path_SED_found=false
2646 # Loop through the user's path and test for each of PROGNAME-LIST
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_prog in sed gsed; do
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2655 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2656# Check for GNU ac_path_SED and select it if it is found.
2657 # Check for GNU $ac_path_SED
2658case `"$ac_path_SED" --version 2>&1` in
2659*GNU*)
2660 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2661*)
2662 ac_count=0
2663 $as_echo_n 0123456789 >"conftest.in"
2664 while :
2665 do
2666 cat "conftest.in" "conftest.in" >"conftest.tmp"
2667 mv "conftest.tmp" "conftest.in"
2668 cp "conftest.in" "conftest.nl"
2669 $as_echo '' >> "conftest.nl"
2670 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2672 as_fn_arith $ac_count + 1 && ac_count=$as_val
2673 if test $ac_count -gt ${ac_path_SED_max-0}; then
2674 # Best one so far, save it but keep looking for a better one
2675 ac_cv_path_SED="$ac_path_SED"
2676 ac_path_SED_max=$ac_count
2677 fi
2678 # 10*(2^10) chars as input seems more than enough
2679 test $ac_count -gt 10 && break
2680 done
2681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2682esac
2683
2684 $ac_path_SED_found && break 3
2685 done
2686 done
2687 done
2688IFS=$as_save_IFS
2689 if test -z "$ac_cv_path_SED"; then
22e05272 2690 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2691 fi
2692else
2693 ac_cv_path_SED=$SED
2694fi
2695
2696fi
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2698$as_echo "$ac_cv_path_SED" >&6; }
2699 SED="$ac_cv_path_SED"
2700 rm -f conftest.sed
2701
2702for ac_prog in gawk mawk nawk awk
2703do
2704 # Extract the first word of "$ac_prog", so it can be a program name with args.
2705set dummy $ac_prog; ac_word=$2
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2708if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2709 $as_echo_n "(cached) " >&6
2710else
2711 if test -n "$AWK"; then
2712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2713else
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2721 ac_cv_prog_AWK="$ac_prog"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725done
2726 done
2727IFS=$as_save_IFS
2728
2729fi
2730fi
2731AWK=$ac_cv_prog_AWK
2732if test -n "$AWK"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2734$as_echo "$AWK" >&6; }
2735else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737$as_echo "no" >&6; }
2738fi
2739
2740
2741 test -n "$AWK" && break
2742done
2743
775956d0 2744
ee6a22df
L
2745srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2746
2747# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2748# a relative path.
2749if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2750 INSTALL="${srcpwd}/install-sh -c"
2751fi
2752
671aa708
NN
2753# Set srcdir to "." if that's what it is.
2754# This is important for multilib support.
2755pwd=`${PWDCMD-pwd}`
671aa708
NN
2756if test "${pwd}" = "${srcpwd}" ; then
2757 srcdir=.
79c06341
JL
2758fi
2759
671aa708 2760topsrcdir=$srcpwd
5d4a5ee6 2761
671aa708 2762extra_host_args=
afabd8e6 2763
671aa708
NN
2764### To add a new directory to the tree, first choose whether it is a target
2765### or a host dependent tool. Then put it into the appropriate list
2766### (library or tools, host or target), doing a dependency sort.
79c06341 2767
1c710c3c 2768# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2769# configdirs, or target_configdirs; see the serialization section below.
79c06341 2770
1c710c3c
DJ
2771# Dependency sorting is only needed when *configuration* must be done in
2772# a particular order. In all cases a dependency should be specified in
671aa708 2773# the Makefile, whether or not it's implicitly specified here.
79c06341 2774
671aa708
NN
2775# Double entries in build_configdirs, configdirs, or target_configdirs may
2776# cause circular dependencies and break everything horribly.
79c06341 2777
23f6b2f9
PB
2778# these library is used by various programs built for the build
2779# environment
2780#
929315a9 2781build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2782
2783# these tools are built for the build environment
85bfb75e 2784build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2785
671aa708 2786# these libraries are used by various programs built for the host environment
eae1a5d4 2787#f
de6abd85 2788host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
671aa708 2789
671aa708
NN
2790# these tools are built for the host environment
2791# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2792# know that we are building the simulator.
2793# binutils, gas and ld appear in that order because it makes sense to run
2794# "make check" in that particular order.
38e3d868 2795# If --enable-gold is used, "gold" may replace "ld".
f9d09df0 2796host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
671aa708 2797
671aa708
NN
2798# these libraries are built for the target environment, and are built after
2799# the host libraries and the host tools (which may be a cross compiler)
8499116a 2800# Note that libiberty is not a target library.
291f172e 2801target_libraries="target-libgcc \
eff02e4f 2802 target-libbacktrace \
671aa708
NN
2803 target-libgloss \
2804 target-newlib \
6d3b5aea 2805 target-libgomp \
5f520819 2806 target-liboffloadmic \
5fd1486c 2807 target-libhsail-rt \
48310492 2808 target-libatomic \
0a35513e 2809 target-libitm \
cb543528 2810 target-libstdc++-v3 \
f35db108 2811 target-libsanitizer \
2077db1b 2812 target-libvtv \
77008252 2813 target-libssp \
1ec601bf 2814 target-libquadmath \
6de9cd9a 2815 target-libgfortran \
012447ea 2816 target-libffi \
d9cdb878 2817 target-libobjc \
632e2a07 2818 target-libada \
b4c522fa 2819 target-libgo \
bb50312e
IB
2820 target-libphobos \
2821 target-zlib"
671aa708 2822
4dbda6f0
NN
2823# these tools are built using the target libraries, and are intended to
2824# run only in the target environment
671aa708 2825#
4dbda6f0 2826# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2827# list belongs in this list.
671aa708 2828#
85bfb75e 2829target_tools="target-rda"
79c06341 2830
671aa708 2831################################################################################
79c06341 2832
671aa708
NN
2833## All tools belong in one of the four categories, and are assigned above
2834## We assign ${configdirs} this way to remove all embedded newlines. This
2835## is important because configure will choke if they ever get through.
2836## ${configdirs} is directories we build using the host tools.
2837## ${target_configdirs} is directories we build using the target tools.
671aa708 2838configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2839target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2840build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2841
ac9e6043
RW
2842
2843
671aa708 2844################################################################################
79c06341 2845
671aa708 2846srcname="gnu development package"
79c06341 2847
671aa708
NN
2848# This gets set non-empty for some net releases of packages.
2849appdirs=""
79c06341 2850
671aa708
NN
2851# Define is_cross_compiler to save on calls to 'test'.
2852is_cross_compiler=
2853if test x"${host}" = x"${target}" ; then
2854 is_cross_compiler=no
79c06341 2855else
671aa708 2856 is_cross_compiler=yes
1c710c3c 2857fi
79c06341 2858
b4acb5ef 2859# Find the build and target subdir names.
8b87bb96 2860
2e9e6f68
DJ
2861# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2862# have matching libraries, they should use host libraries: Makefile.tpl
2863# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2864# However, they still use the build modules, because the corresponding
2865# host modules (e.g. bison) are only built for the host when bootstrap
2866# finishes. So:
2867# - build_subdir is where we find build modules, and never changes.
2868# - build_libsubdir is where we find build libraries, and can be overridden.
2869
2870# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2871build_subdir="build-${build_noncanonical}"
1c710c3c 2872
5213506e
RW
2873# Check whether --with-build-libsubdir was given.
2874if test "${with_build_libsubdir+set}" = set; then :
2875 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2876else
2877 build_libsubdir="$build_subdir"
5213506e
RW
2878fi
2879
215c351a
PB
2880# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2881if ( test $srcdir = . && test -d gcc ) \
2882 || test -d $srcdir/../host-${host_noncanonical}; then
2883 host_subdir="host-${host_noncanonical}"
2884else
2885 host_subdir=.
2886fi
8b87bb96
NN
2887# No prefix.
2888target_subdir=${target_noncanonical}
1c710c3c 2889
0db770bd
RW
2890# Be sure to cover against remnants of an in-tree build.
2891if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2892 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2893Use a pristine source tree when building in a separate tree" "$LINENO" 5
2894fi
79c06341 2895
671aa708
NN
2896# Skipdirs are removed silently.
2897skipdirs=
2898# Noconfigdirs are removed loudly.
2899noconfigdirs=""
79c06341 2900
671aa708
NN
2901use_gnu_ld=
2902# Make sure we don't let GNU ld be added if we didn't want it.
2903if test x$with_gnu_ld = xno ; then
2904 use_gnu_ld=no
5afab7ad 2905 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2906fi
2907
671aa708
NN
2908use_gnu_as=
2909# Make sure we don't let GNU as be added if we didn't want it.
2910if test x$with_gnu_as = xno ; then
2911 use_gnu_as=no
2912 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2913fi
2914
d7f09764 2915use_included_zlib=
a05c2c75
L
2916
2917# Check whether --with-system-zlib was given.
2918if test "${with_system_zlib+set}" = set; then :
2919 withval=$with_system_zlib;
2920fi
2921
d7f09764
DN
2922# Make sure we don't let ZLIB be added if we didn't want it.
2923if test x$with_system_zlib = xyes ; then
2924 use_included_zlib=no
2925 noconfigdirs="$noconfigdirs zlib"
2926fi
2927
1c710c3c 2928# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2929# it's not even worth trying to configure, much less build, that tool.
79c06341 2930
671aa708
NN
2931case ${with_x} in
2932 yes | "") ;; # the default value for this tree is that X11 is available
2933 no)
b4f96efe 2934 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2935 # We won't be able to build gdbtk without X.
1c710c3c 2936 enable_gdbtk=no
671aa708
NN
2937 ;;
2938 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2939esac
79c06341 2940
1bcce263 2941# Some are only suitable for cross toolchains.
671aa708
NN
2942# Remove these if host=target.
2943cross_only="target-libgloss target-newlib target-opcodes"
2944
2945case $is_cross_compiler in
2946 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2947esac
79c06341 2948
671aa708
NN
2949# If both --with-headers and --with-libs are specified, default to
2950# --without-newlib.
ee6a22df
L
2951if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2952 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2953 if test x"${with_newlib}" = x ; then
2954 with_newlib=no
2955 fi
79c06341
JL
2956fi
2957
671aa708
NN
2958# Recognize --with-newlib/--without-newlib.
2959case ${with_newlib} in
2960 no) skipdirs="${skipdirs} target-newlib" ;;
2961 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2962esac
79c06341 2963
85c64bbe
BS
2964# Check whether --enable-as-accelerator-for was given.
2965if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2966 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2967fi
2968
2969
2970# Check whether --enable-offload-targets was given.
2971if test "${enable_offload_targets+set}" = set; then :
2972 enableval=$enable_offload_targets;
2973 if test x"$enable_offload_targets" = x; then
22e05272 2974 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2975 fi
2976
2977else
2978 enable_offload_targets=
2979fi
2980
2981
21539e2e
MK
2982# Handle --enable-gold, --enable-ld.
2983# --disable-gold [--enable-ld]
2984# Build only ld. Default option.
9580395f
L
2985# --enable-gold [--enable-ld]
2986# Build both gold and ld. Install gold as "ld.gold", install ld
2987# as "ld.bfd" and "ld".
2988# --enable-gold=default [--enable-ld]
21539e2e
MK
2989# Build both gold and ld. Install gold as "ld.gold" and "ld",
2990# install ld as "ld.bfd".
2991# --enable-gold[=default] --disable-ld
2992# Build only gold, which is then installed as both "ld.gold" and "ld".
2993# --enable-gold --enable-ld=default
9580395f
L
2994# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2995# and ld.bfd).
21539e2e
MK
2996# In other words, ld is default
2997# --enable-gold=default --enable-ld=default
2998# Error.
2999
3000default_ld=
5213506e
RW
3001# Check whether --enable-gold was given.
3002if test "${enable_gold+set}" = set; then :
3003 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3004else
3005 ENABLE_GOLD=no
5213506e
RW
3006fi
3007
21539e2e
MK
3008case "${ENABLE_GOLD}" in
3009 yes|default)
38e3d868
RM
3010 # Check for ELF target.
3011 is_elf=no
3012 case "${target}" in
3013 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3014 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3015 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3016 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3017 case "${target}" in
3018 *-*-linux*aout* | *-*-linux*oldld*)
3019 ;;
3020 *)
3021 is_elf=yes
3022 ;;
3023 esac
3024 esac
3025
3026 if test "$is_elf" = "yes"; then
3027 # Check for target supported by gold.
5afab7ad 3028 case "${target}" in
7705dfd1 3029 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 3030 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
3031 configdirs="$configdirs gold"
3032 if test x${ENABLE_GOLD} = xdefault; then
3033 default_ld=gold
3034 fi
38e3d868 3035 ENABLE_GOLD=yes
5afab7ad
ILT
3036 ;;
3037 esac
38e3d868
RM
3038 fi
3039 ;;
3040 no)
3041 ;;
3042 *)
22e05272 3043 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3044 ;;
21539e2e
MK
3045esac
3046
3047# Check whether --enable-ld was given.
3048if test "${enable_ld+set}" = set; then :
3049 enableval=$enable_ld; ENABLE_LD=$enableval
3050else
3051 ENABLE_LD=yes
3052fi
3053
3054
3055case "${ENABLE_LD}" in
3056 default)
9580395f 3057 if test x${default_ld} != x; then
22e05272 3058 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3059 fi
3060 ;;
3061 yes)
3062 ;;
3063 no)
3064 if test x${ENABLE_GOLD} != xyes; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3066$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3067 fi
3068 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3069 ;;
3070 *)
22e05272 3071 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3072 ;;
3073esac
5afab7ad 3074
78edb32f
L
3075# PR gas/19109
3076# Decide the default method for compressing debug sections.
3077# Provide a configure time option to override our default.
3078# Check whether --enable-compressed_debug_sections was given.
3079if test "${enable_compressed_debug_sections+set}" = set; then :
3080 enableval=$enable_compressed_debug_sections;
3081 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3082 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3083 fi
3084
3085else
3086 enable_compressed_debug_sections=
3087fi
3088
3089
671aa708 3090# Configure extra directories which are host specific
79c06341 3091
671aa708
NN
3092case "${host}" in
3093 *-cygwin*)
3094 configdirs="$configdirs libtermcap" ;;
3095esac
79c06341 3096
4fab7234
HPN
3097# A target can indicate whether a language isn't supported for some reason.
3098# Only spaces may be used in this macro; not newlines or tabs.
3099unsupported_languages=
3100
1c710c3c 3101# Remove more programs from consideration, based on the host or
671aa708
NN
3102# target this usually means that a port of the program doesn't
3103# exist yet.
ec8d6ddc 3104
671aa708 3105case "${host}" in
111eeb6e 3106 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3107 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3108 ;;
671aa708 3109esac
ec8d6ddc 3110
6de9cd9a 3111
87e6d9dc
TB
3112# Check whether --enable-libquadmath was given.
3113if test "${enable_libquadmath+set}" = set; then :
3114 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3115else
3116 ENABLE_LIBQUADMATH=yes
3117fi
3118
3119if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3120 noconfigdirs="$noconfigdirs target-libquadmath"
3121fi
3122
3123
3124# Check whether --enable-libquadmath-support was given.
3125if test "${enable_libquadmath_support+set}" = set; then :
3126 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3127else
3128 ENABLE_LIBQUADMATH_SUPPORT=yes
3129fi
3130
3131enable_libquadmath_support=
3132if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3133 enable_libquadmath_support=no
3134fi
3135
3136
5213506e
RW
3137# Check whether --enable-libada was given.
3138if test "${enable_libada+set}" = set; then :
3139 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3140else
3141 ENABLE_LIBADA=yes
5213506e
RW
3142fi
3143
d9cdb878 3144if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3145 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3146fi
3147
5213506e
RW
3148# Check whether --enable-libssp was given.
3149if test "${enable_libssp+set}" = set; then :
3150 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3151else
3152 ENABLE_LIBSSP=yes
5213506e
RW
3153fi
3154
ef0087a7 3155
1873ec0c
L
3156# Check whether --enable-libstdcxx was given.
3157if test "${enable_libstdcxx+set}" = set; then :
3158 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3159else
3160 ENABLE_LIBSTDCXX=default
3161fi
3162
3163if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3165fi
3166
5f520819
KY
3167# If this is accelerator compiler and its target is intelmic we enable
3168# target liboffloadmic by default. If this is compiler with offloading
3169# for intelmic we enable host liboffloadmic by default. Otherwise
3170# liboffloadmic is disabled by default.
3171# Check whether --enable-liboffloadmic was given.
3172if test "${enable_liboffloadmic+set}" = set; then :
3173 enableval=$enable_liboffloadmic; case "$enableval" in
3174 no | host | target)
3175 enable_liboffloadmic=$enableval ;;
3176 *)
22e05272 3177 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3178esac
3179else
4b4f2e35 3180 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3181 case "${target}" in
3182 *-intelmic-* | *-intelmicemul-*)
3183 enable_liboffloadmic=target
3184 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3185 ;;
3186 *)
3187 enable_liboffloadmic=no
3188 ;;
3189 esac
3190else
3191 case "${enable_offload_targets}" in
3192 *-intelmic-* | *-intelmicemul-*)
3193 enable_liboffloadmic=host
3194 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3195 ;;
3196 *)
3197 enable_liboffloadmic=no
3198 ;;
3199 esac
3200fi
3201fi
3202
3203
3204
44a7d18d 3205# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3206if test x$enable_libgomp = x ; then
953ff289 3207 case "${target}" in
416ac4d4 3208 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3209 ;;
8c6d158a 3210 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3211 ;;
b24513a1 3212 *-*-solaris2* | *-*-hpux11*)
953ff289 3213 ;;
cac90078 3214 *-*-darwin* | *-*-aix*)
953ff289 3215 ;;
29b1533a 3216 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3217 ;;
953ff289
DN
3218 *)
3219 noconfigdirs="$noconfigdirs target-libgomp"
3220 ;;
3221 esac
27079765 3222fi
953ff289 3223
48310492
RH
3224# Disable libatomic on unsupported systems.
3225if test -d ${srcdir}/libatomic; then
3226 if test x$enable_libatomic = x; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3228$as_echo_n "checking for libatomic support... " >&6; }
3229 if (srcdir=${srcdir}/libatomic; \
3230 . ${srcdir}/configure.tgt; \
3231 test -n "$UNSUPPORTED")
3232 then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
3235 noconfigdirs="$noconfigdirs target-libatomic"
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238$as_echo "yes" >&6; }
3239 fi
3240 fi
3241fi
3242
5f520819
KY
3243# Disable liboffloadmic on unsupported systems.
3244if test -d ${srcdir}/liboffloadmic; then
3245 if test x$enable_liboffloadmic != xno; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3247$as_echo_n "checking for liboffloadmic support... " >&6; }
3248 if (srcdir=${srcdir}/liboffloadmic; \
3249 . ${srcdir}/configure.tgt; \
3250 test -n "$UNSUPPORTED")
3251 then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254 noconfigdirs="$noconfigdirs target-liboffloadmic"
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257$as_echo "yes" >&6; }
3258 fi
3259 fi
3260fi
3261
e948157d
RH
3262# Disable libitm on unsupported systems.
3263if test -d ${srcdir}/libitm; then
3264 if test x$enable_libitm = x; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3266$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3267 if (srcdir=${srcdir}/libitm; \
3268 . ${srcdir}/configure.tgt; \
3269 test -n "$UNSUPPORTED")
3270 then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3272$as_echo "no" >&6; }
e948157d
RH
3273 noconfigdirs="$noconfigdirs target-libitm"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3276$as_echo "yes" >&6; }
e948157d
RH
3277 fi
3278 fi
0a35513e
AH
3279fi
3280
93bf5390
RH
3281# Disable libsanitizer on unsupported systems.
3282if test -d ${srcdir}/libsanitizer; then
3283 if test x$enable_libsanitizer = x; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3285$as_echo_n "checking for libsanitizer support... " >&6; }
3286 if (srcdir=${srcdir}/libsanitizer; \
3287 . ${srcdir}/configure.tgt; \
3288 test -n "$UNSUPPORTED")
3289 then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292 noconfigdirs="$noconfigdirs target-libsanitizer"
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295$as_echo "yes" >&6; }
3296 fi
3297 fi
3298fi
3299
2077db1b
CT
3300# Disable libvtv on unsupported systems.
3301if test -d ${srcdir}/libvtv; then
3302 if test x$enable_libvtv = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3304$as_echo_n "checking for libvtv support... " >&6; }
3305 if (srcdir=${srcdir}/libvtv; \
3306 . ${srcdir}/configure.tgt; \
1e74b850 3307 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libvtv"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
3315 fi
3316 fi
3317fi
3318
5373cd33 3319
f6a24a94
MJ
3320# Disable libhsail-rt on unsupported systems.
3321if test -d ${srcdir}/libhsail-rt; then
3322 if test x$enable_libhsail_rt = x; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3324$as_echo_n "checking for libhsail-rt support... " >&6; }
3325 if (srcdir=${srcdir}/libhsail-rt; \
3326 . ${srcdir}/configure.tgt; \
3327 test -n "$UNSUPPORTED")
3328 then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331 unsupported_languages="$unsupported_languages brig"
3332 # This implicitly disables also target-libhsail-rt as it won't
3333 # get added to the build without BRIG FE.
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336$as_echo "yes" >&6; }
3337 fi
3338 fi
3339fi
5373cd33
IE
3340
3341
d91491e5
SE
3342# Disable libquadmath for some systems.
3343case "${target}" in
e7fae550
DE
3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3346 ;;
d91491e5
SE
3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-*-aix* | rs6000-*-aix*)
3350 noconfigdirs="$noconfigdirs target-libquadmath"
3351 ;;
3352esac
3353
1e9e0e23
JM
3354# Disable libssp for some systems.
3355case "${target}" in
3356 avr-*-*)
b318fb4b 3357 # No hosted I/O support.
1e9e0e23
JM
3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
91dfef96
JM
3360 bpf-*-*)
3361 noconfigdirs="$noconfigdirs target-libssp"
3362 ;;
1e9e0e23
JM
3363 powerpc-*-aix* | rs6000-*-aix*)
3364 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3365 ;;
8d2af3a2
DD
3366 pru-*-*)
3367 # No hosted I/O support.
3368 noconfigdirs="$noconfigdirs target-libssp"
3369 ;;
85b8555e 3370 rl78-*-*)
7cb62ef1
EB
3371 # libssp uses a misaligned load to trigger a fault, but the RL78
3372 # doesn't fault for those - instead, it gives a build-time error
3373 # for explicit misaligned loads.
85b8555e 3374 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3375 ;;
0969ec7d
EB
3376 visium-*-*)
3377 # No hosted I/O support.
3378 noconfigdirs="$noconfigdirs target-libssp"
3379 ;;
1e9e0e23
JM
3380esac
3381
1e9e0e23 3382# Disable libstdc++-v3 for some systems.
1873ec0c
L
3383# Allow user to override this if they pass --enable-libstdc++-v3
3384if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3385 case "${target}" in
3386 *-*-vxworks*)
3387 # VxWorks uses the Dinkumware C++ library.
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389 ;;
afa3d80e
TS
3390 amdgcn*-*-*)
3391 # Not ported/fails to build when using newlib.
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
1873ec0c
L
3394 arm*-wince-pe*)
3395 # the C++ libraries don't build on top of CE's C libraries
3396 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3397 ;;
3398 avr-*-*)
3399 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3400 ;;
91dfef96
JM
3401 bpf-*-*)
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403 ;;
fef939d6
JB
3404 ft32-*-*)
3405 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406 ;;
1873ec0c
L
3407 esac
3408fi
1e9e0e23 3409
91dfef96
JM
3410# Disable C++ on systems where it is known to not work.
3411# For testing, you can override this with --enable-languages=c++.
3412case ,${enable_languages}, in
3413 *,c++,*)
3414 ;;
3415 *)
3416 case "${target}" in
3417 bpf-*-*)
3418 unsupported_languages="$unsupported_languages c++"
3419 ;;
3420 esac
3421 ;;
3422esac
3423
3424# Disable Objc on systems where it is known to not work.
3425# For testing, you can override this with --enable-languages=objc.
3426case ,${enable_languages}, in
3427 *,objc,*)
3428 ;;
3429 *)
3430 case "${target}" in
3431 bpf-*-*)
3432 unsupported_languages="$unsupported_languages objc"
3433 ;;
3434 esac
3435 ;;
3436esac
3437
260eedb9
IB
3438# Disable D on systems where it is known to not work.
3439# For testing, you can override this with --enable-languages=d.
3440case ,${enable_languages}, in
3441 *,d,*)
3442 ;;
3443 *)
3444 case "${target}" in
4d024c32 3445 *-*-darwin*)
91dfef96
JM
3446 unsupported_languages="$unsupported_languages d"
3447 ;;
3448 bpf-*-*)
260eedb9
IB
3449 unsupported_languages="$unsupported_languages d"
3450 ;;
3451 esac
3452 ;;
3453esac
3454
3455# Disable libphobos on unsupported systems.
3456# For testing, you can override this with --enable-libphobos.
3457if test -d ${srcdir}/libphobos; then
3458 if test x$enable_libphobos = x; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3460$as_echo_n "checking for libphobos support... " >&6; }
3461 if (srcdir=${srcdir}/libphobos; \
3462 . ${srcdir}/configure.tgt; \
7d31d331 3463 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3464 then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466$as_echo "no" >&6; }
3467 noconfigdirs="$noconfigdirs target-libphobos"
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3470$as_echo "yes" >&6; }
3471 fi
3472 fi
3473fi
3474
1e9e0e23
JM
3475# Disable Fortran for some systems.
3476case "${target}" in
3477 mmix-*-*)
3478 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3479 unsupported_languages="$unsupported_languages fortran"
3480 ;;
91dfef96
JM
3481 bpf-*-*)
3482 unsupported_languages="$unsupported_languages fortran"
3483 ;;
1e9e0e23
JM
3484esac
3485
012447ea
JJ
3486# Disable libffi for some systems.
3487case "${target}" in
3488 powerpc-*-darwin*)
3489 ;;
3490 i[3456789]86-*-darwin*)
3491 ;;
3492 x86_64-*-darwin[912]*)
3493 ;;
3494 *-*-darwin*)
3495 noconfigdirs="$noconfigdirs target-libffi"
3496 ;;
3497 *-*-netware*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3499 ;;
3500 *-*-phoenix*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3502 ;;
3503 *-*-rtems*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3505 ;;
3506 *-*-tpf*)
3507 noconfigdirs="$noconfigdirs target-libffi"
3508 ;;
3509 *-*-uclinux*)
3510 noconfigdirs="$noconfigdirs target-libffi"
3511 ;;
3512 *-*-vxworks*)
3513 noconfigdirs="$noconfigdirs target-libffi"
3514 ;;
b20e7532
AT
3515 aarch64*-*-freebsd*)
3516 noconfigdirs="$noconfigdirs target-libffi"
3517 ;;
012447ea
JJ
3518 alpha*-*-*vms*)
3519 noconfigdirs="$noconfigdirs target-libffi"
3520 ;;
3521 arm*-*-freebsd*)
3522 noconfigdirs="$noconfigdirs target-libffi"
3523 ;;
3524 arm-wince-pe)
3525 noconfigdirs="$noconfigdirs target-libffi"
3526 ;;
3527 arm*-*-symbianelf*)
3528 noconfigdirs="$noconfigdirs target-libffi"
3529 ;;
91dfef96
JM
3530 bpf-*-*)
3531 noconfigdirs="$noconfigdirs target-libffi"
3532 ;;
012447ea
JJ
3533 cris-*-* | crisv32-*-*)
3534 case "${target}" in
3535 *-*-linux*)
3536 ;;
3537 *) # See PR46792 regarding target-libffi.
3538 noconfigdirs="$noconfigdirs target-libffi";;
3539 esac
3540 ;;
3541 hppa*64*-*-hpux*)
3542 noconfigdirs="$noconfigdirs target-libffi"
3543 ;;
3544 hppa*-hp-hpux11*)
3545 ;;
3546 hppa*-*-hpux*)
3547 noconfigdirs="$noconfigdirs target-libffi"
3548 ;;
3549 ia64*-*-*vms*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3551 ;;
3552 i[3456789]86-w64-mingw*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3554 ;;
3555 i[3456789]86-*-mingw*)
3556 noconfigdirs="$noconfigdirs target-libffi"
3557 ;;
3558 x86_64-*-mingw*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3560 ;;
3561 mmix-*-*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3563 ;;
3564 powerpc-*-aix*)
012447ea
JJ
3565 ;;
3566 rs6000-*-aix*)
012447ea
JJ
3567 ;;
3568 ft32-*-*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3570 ;;
3571 *-*-lynxos*)
3572 noconfigdirs="$noconfigdirs target-libffi"
3573 ;;
3574esac
3575
3576# Disable the go frontend on systems where it is known to not work. Please keep
3577# this in sync with contrib/config-list.mk.
3578case "${target}" in
91dfef96 3579*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3580 unsupported_languages="$unsupported_languages go"
3581 ;;
3582esac
3583
f9d09df0
TT
3584# Only allow gdbserver on some systems.
3585if test -d ${srcdir}/gdbserver; then
3586 if test x$enable_gdbserver = x; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3588$as_echo_n "checking for gdbserver support... " >&6; }
3589 if (srcdir=${srcdir}/gdbserver; \
3590 . ${srcdir}/configure.srv; \
3591 test -n "$UNSUPPORTED")
3592 then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594$as_echo "no" >&6; }
3595 noconfigdirs="$noconfigdirs gdbserver"
3596 else
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3598$as_echo "yes" >&6; }
3599 fi
3600 fi
3601fi
3602
cdbc9e92
ILT
3603# Disable libgo for some systems where it is known to not work.
3604# For testing, you can easily override this with --enable-libgo.
3605if test x$enable_libgo = x; then
3606 case "${target}" in
3607 *-*-darwin*)
3608 # PR 46986
3609 noconfigdirs="$noconfigdirs target-libgo"
3610 ;;
3611 *-*-cygwin* | *-*-mingw*)
3612 noconfigdirs="$noconfigdirs target-libgo"
3613 ;;
91dfef96
JM
3614 bpf-*-*)
3615 noconfigdirs="$noconfigdirs target-libgo"
3616 ;;
cdbc9e92
ILT
3617 esac
3618fi
3619
c03353e2
RIL
3620# Default libgloss CPU subdirectory.
3621libgloss_dir="$target_cpu"
6de9cd9a 3622
fbcf0dca
JM
3623case "${target}" in
3624 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3625 libgloss_dir=wince
3626 ;;
4dddfc74
YZ
3627 aarch64*-*-* )
3628 libgloss_dir=aarch64
3629 ;;
fbcf0dca
JM
3630 arm*-*-*)
3631 libgloss_dir=arm
3632 ;;
3633 cris-*-* | crisv32-*-*)
3634 libgloss_dir=cris
3635 ;;
3636 hppa*-*-*)
3637 libgloss_dir=pa
3638 ;;
3639 i[3456789]86-*-*)
3640 libgloss_dir=i386
3641 ;;
3642 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3643 libgloss_dir=m68hc11
3644 ;;
3645 m68*-*-* | fido-*-*)
3646 libgloss_dir=m68k
3647 ;;
3648 mips*-*-*)
3649 libgloss_dir=mips
3650 ;;
3651 powerpc*-*-*)
3652 libgloss_dir=rs6000
3653 ;;
8d2af3a2
DD
3654 pru-*-*)
3655 libgloss_dir=pru
3656 ;;
fbcf0dca
JM
3657 sparc*-*-*)
3658 libgloss_dir=sparc
3659 ;;
3660esac
3661
6a789d5e 3662# Disable newlib and libgloss for various target OSes.
671aa708 3663case "${target}" in
6a789d5e
JM
3664 alpha*-dec-osf*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 ;;
3667 i[3456789]86-*-linux*)
3668 # This section makes it possible to build newlib natively on linux.
3669 # If we are using a cross compiler then don't configure newlib.
3670 if test x${is_cross_compiler} != xno ; then
3671 noconfigdirs="$noconfigdirs target-newlib"
3672 fi
3673 noconfigdirs="$noconfigdirs target-libgloss"
3674 # If we are not using a cross compiler, do configure newlib.
3675 # Note however, that newlib will only be configured in this situation
3676 # if the --with-newlib option has been given, because otherwise
3677 # 'target-newlib' will appear in skipdirs.
3678 ;;
3679 i[3456789]86-*-rdos*)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681 ;;
3682 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 ;;
3685 sparc-*-sunos4*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 ;;
91dfef96
JM
3688 bpf-*-*)
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690 ;;
6a789d5e
JM
3691 *-*-aix*)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 ;;
3694 *-*-beos*)
3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696 ;;
671aa708 3697 *-*-chorusos)
0036370f 3698 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3699 ;;
6a789d5e
JM
3700 *-*-dragonfly*)
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 ;;
3703 *-*-freebsd*)
3704 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705 ;;
3706 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708 ;;
3709 *-*-lynxos*)
3710 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711 ;;
3712 *-*-mingw*)
3713 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714 ;;
3715 *-*-netbsd*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 ;;
3718 *-*-netware*)
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 ;;
3721 *-*-tpf*)
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 ;;
3724 *-*-uclinux*)
3725 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726 ;;
3727 *-*-vxworks*)
3728 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729 ;;
3730esac
3731
3732case "${target}" in
3733 *-*-chorusos)
3734 ;;
3be96231
TG
3735 aarch64-*-darwin*)
3736 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3737 noconfigdirs="$noconfigdirs sim target-rda"
3738 ;;
7431c1a1
AS
3739 amdgcn*-*-*)
3740 ;;
3be96231
TG
3741 arm-*-darwin*)
3742 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3743 noconfigdirs="$noconfigdirs sim target-rda"
3744 ;;
75eeae1a 3745 powerpc-*-darwin*)
e1514c3f 3746 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3747 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3748 ;;
354ebf88
RW
3749 i[3456789]86-*-darwin*)
3750 noconfigdirs="$noconfigdirs ld gprof"
3751 noconfigdirs="$noconfigdirs sim target-rda"
3752 ;;
3753 x86_64-*-darwin[912]*)
0db3a858
TG
3754 noconfigdirs="$noconfigdirs ld gas gprof"
3755 noconfigdirs="$noconfigdirs sim target-rda"
3756 ;;
42c1cd8a
AT
3757 *-*-darwin*)
3758 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3759 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3760 ;;
8c6d158a 3761 *-*-dragonfly*)
8c6d158a 3762 ;;
c3f84f61 3763 *-*-freebsd*)
6de9cd9a 3764 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
7cacf5a5 3765 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3766 && test -f /usr/local/include/gmp.h; then
3767 with_gmp=/usr/local
3768 fi
6de9cd9a 3769 ;;
ef4e7569
US
3770 *-*-kaos*)
3771 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3772 noconfigdirs="$noconfigdirs target-libgloss"
3773 ;;
671aa708 3774 *-*-netbsd*)
671aa708 3775 ;;
61fec9ff 3776 *-*-netware*)
671aa708 3777 ;;
fd6487af
JS
3778 *-*-phoenix*)
3779 noconfigdirs="$noconfigdirs target-libgloss"
3780 ;;
671aa708 3781 *-*-rtems*)
2909494b 3782 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3783 ;;
a8ba31f2
EC
3784 # The tpf target doesn't support gdb yet.
3785 *-*-tpf*)
6a789d5e 3786 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3787 ;;
5785c0ed 3788 *-*-uclinux*)
6a789d5e 3789 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3790 ;;
671aa708 3791 *-*-vxworks*)
671aa708
NN
3792 ;;
3793 alpha*-dec-osf*)
3794 # ld works, but does not support shared libraries.
671aa708 3795 # gas doesn't generate exception information.
6a789d5e 3796 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3797 ;;
3798 alpha*-*-*vms*)
2909494b 3799 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3800 ;;
671aa708
NN
3801 alpha*-*-*)
3802 # newlib is not 64 bit ready
2909494b 3803 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3804 ;;
91dfef96
JM
3805 bpf-*-*)
3806 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3807 ;;
671aa708 3808 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3809 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3810 ;;
2fd88f4f
AK
3811 arc*-*-*)
3812 noconfigdirs="$noconfigdirs sim"
3813 ;;
671aa708 3814 arm-*-pe*)
2909494b 3815 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3816 ;;
671aa708 3817 arm-*-riscix*)
0036370f 3818 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3819 ;;
b588ae30
GJL
3820 avr-*-*)
3821 if test x${with_avrlibc} != xno; then
3822 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3823 fi
3824 ;;
671aa708 3825 c4x-*-* | tic4x-*-*)
0036370f 3826 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3827 ;;
0036370f
JM
3828 tic54x-*-*)
3829 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3830 ;;
671aa708 3831 d10v-*-*)
0036370f 3832 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3833 ;;
3834 d30v-*-*)
0036370f 3835 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3836 ;;
3837 fr30-*-elf*)
2909494b 3838 noconfigdirs="$noconfigdirs gdb"
671aa708 3839 ;;
a05c2c75
L
3840 ft32-*-*)
3841 noconfigdirs="$noconfigdirs target-rda gprof"
3842 ;;
55f2d967 3843 moxie-*-*)
a05c2c75 3844 noconfigdirs="$noconfigdirs"
55f2d967 3845 ;;
671aa708 3846 h8300*-*-*)
2909494b 3847 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3848 ;;
3849 h8500-*-*)
0036370f 3850 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3851 ;;
ee6a22df 3852 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3853 ;;
a05c2c75
L
3854 hppa*64*-*-hpux*)
3855 noconfigdirs="$noconfigdirs gdb"
3856 ;;
3857 hppa*-*-hpux11*)
3858 noconfigdirs="$noconfigdirs gdb ld"
3859 ;;
4569f85e 3860 hppa*64*-*-linux*)
671aa708 3861 ;;
56f8587a 3862 hppa*-*-linux*)
3e732ba0 3863 ;;
671aa708 3864 hppa*-*-*elf* | \
671aa708
NN
3865 hppa*-*-lites* | \
3866 hppa*-*-openbsd* | \
3867 hppa*64*-*-*)
671aa708 3868 ;;
c03353e2 3869 hppa*-*-pro*)
c03353e2 3870 ;;
671aa708 3871 hppa*-*-*)
2909494b 3872 noconfigdirs="$noconfigdirs ld"
671aa708 3873 ;;
fb87ad5d 3874 i960-*-*)
0036370f 3875 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3876 ;;
671aa708
NN
3877 ia64*-*-elf*)
3878 # No gdb support yet.
1bcce263 3879 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3880 ;;
3881 ia64*-**-hpux*)
5a2931d1 3882 # No ld support yet.
a05c2c75 3883 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3884 ;;
52535a64 3885 ia64*-*-*vms*)
091fe9ca
TG
3886 # No ld support yet.
3887 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3888 ;;
ef4c4300 3889 i[3456789]86-w64-mingw*)
ef4c4300
KT
3890 ;;
3891 i[3456789]86-*-mingw*)
b91f0a41 3892 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3893 ;;
671aa708
NN
3894 *-*-cygwin*)
3895 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3896 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3897 # always build newlib if winsup directory is present.
b91f0a41 3898 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3899 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3900 elif test -d "$srcdir/newlib"; then
b91f0a41 3901 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3902 fi
1c710c3c 3903 ;;
f2a0e225 3904 i[3456789]86-*-pe)
ebb9f8b0 3905 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3906 ;;
f2a0e225 3907 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3908 # The linker does not yet know about weak symbols in COFF,
3909 # and is not configured to handle mixed ELF and COFF.
0036370f 3910 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3911 ;;
f2a0e225 3912 i[3456789]86-*-sco*)
0036370f 3913 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3914 ;;
fbdd5d87 3915 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3916 noconfigdirs="$noconfigdirs target-libgloss"
3917 ;;
f2a0e225 3918 i[3456789]86-*-sysv4*)
0036370f 3919 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3920 ;;
f2a0e225 3921 i[3456789]86-*-beos*)
6a789d5e 3922 noconfigdirs="$noconfigdirs gdb"
3aa83176 3923 ;;
d1f8db0c 3924 i[3456789]86-*-rdos*)
6a789d5e 3925 noconfigdirs="$noconfigdirs gdb"
c03353e2 3926 ;;
671aa708 3927 mmix-*-*)
2909494b 3928 noconfigdirs="$noconfigdirs gdb"
671aa708 3929 ;;
ab34901f 3930 mt-*-*)
79dd769c
AH
3931 noconfigdirs="$noconfigdirs sim"
3932 ;;
58b40a67
FT
3933 nfp-*-*)
3934 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3935 noconfigdirs="$noconfigdirs $target_libraries"
3936 ;;
e6cbe965
SC
3937 pdp11-*-*)
3938 noconfigdirs="$noconfigdirs gdb gprof"
3939 ;;
671aa708
NN
3940 powerpc-*-aix*)
3941 # copied from rs6000-*-* entry
6a789d5e 3942 noconfigdirs="$noconfigdirs gprof"
671aa708 3943 ;;
4569f85e 3944 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3945 target_configdirs="$target_configdirs target-winsup"
0036370f 3946 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3947 # always build newlib.
3948 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3949 ;;
3950 # This is temporary until we can link against shared libraries
3951 powerpcle-*-solaris*)
0036370f 3952 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3953 ;;
3954 powerpc-*-beos*)
6a789d5e 3955 noconfigdirs="$noconfigdirs gdb"
671aa708 3956 ;;
671aa708 3957 rs6000-*-lynxos*)
6a789d5e 3958 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3959 ;;
3960 rs6000-*-aix*)
6a789d5e 3961 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3962 ;;
3963 rs6000-*-*)
2909494b 3964 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3965 ;;
3966 m68k-apollo-*)
0036370f 3967 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3968 ;;
ca9fe997 3969 microblaze*)
2909494b 3970 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3971 ;;
d896cc4d 3972 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3973 if test x$with_newlib = xyes; then
3974 noconfigdirs="$noconfigdirs gprof"
3975 fi
d9dced13 3976 ;;
671aa708 3977 mips*-*-irix5*)
0036370f 3978 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3979 ;;
3980 mips*-*-irix6*)
2909494b 3981 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3982 ;;
671aa708 3983 mips*-*-bsd*)
bc98bcc4 3984 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3985 ;;
671aa708 3986 mips*-*-linux*)
671aa708 3987 ;;
bc98bcc4
JBG
3988 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3989 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3990 noconfigdirs="$noconfigdirs ld gas gprof"
3991 ;;
671aa708 3992 mips*-*-*)
2909494b 3993 noconfigdirs="$noconfigdirs gprof"
671aa708 3994 ;;
738f2522 3995 nvptx*-*-*)
738f2522
BS
3996 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3997 ;;
bc6d9014 3998 sh-*-*)
ea2002ba
CB
3999 case "${target}" in
4000 sh*-*-elf)
2909494b 4001 ;;
ea2002ba 4002 *)
2909494b 4003 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 4004 esac
671aa708 4005 ;;
671aa708 4006 sparc-*-sunos4*)
6a789d5e 4007 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4008 use_gnu_ld=no
4009 fi
4010 ;;
b42f0d7e 4011 tic6x-*-*)
0d557ff8 4012 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4013 ;;
341c653c 4014 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
4015 noconfigdirs="$noconfigdirs sim"
4016 ;;
671aa708 4017 v810-*-*)
0036370f 4018 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4019 ;;
4020 vax-*-*)
2909494b 4021 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4022 ;;
1fc1d82e
MR
4023 wasm32-*-*)
4024 noconfigdirs="$noconfigdirs ld"
4025 ;;
671aa708 4026esac
79c06341 4027
671aa708
NN
4028# If we aren't building newlib, then don't build libgloss, since libgloss
4029# depends upon some newlib header files.
4030case "${noconfigdirs}" in
4031 *target-libgloss*) ;;
4032 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4033esac
4034
671aa708 4035# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4036host_makefile_frag=/dev/null
4037if test -d ${srcdir}/config ; then
4038case "${host}" in
f2a0e225 4039 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4040 host_makefile_frag="config/mh-djgpp"
4041 ;;
4042 *-cygwin*)
2a79c47f 4043
5213506e
RW
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4045$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4046echo a >cygwin-cat-check
e25a8c82 4047if test `cat cygwin-cat-check` = a ; then
2a79c47f 4048 rm cygwin-cat-check
5213506e
RW
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4050$as_echo "yes" >&6; }
2a79c47f
NC
4051else
4052 rm cygwin-cat-check
5213506e
RW
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054$as_echo "no" >&6; }
22e05272 4055 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4056 Please either mount the build directory in binary mode or run the following
4057 commands before running any configure script:
4058set -o igncr
4059export SHELLOPTS
5213506e 4060 " "$LINENO" 5
2a79c47f
NC
4061fi
4062
671aa708
NN
4063 host_makefile_frag="config/mh-cygwin"
4064 ;;
c53a18d3 4065 *-mingw*)
1f5a6b84 4066 host_makefile_frag="config/mh-mingw"
95af8923 4067 ;;
cabb9d59 4068 alpha*-linux*)
13be44ed
UB
4069 host_makefile_frag="config/mh-alpha-linux"
4070 ;;
efd41714 4071 hppa*-hp-hpux10*)
efd41714 4072 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4073 ;;
111eeb6e 4074 hppa*-hp-hpux*)
efd41714
PB
4075 host_makefile_frag="config/mh-pa"
4076 ;;
4077 hppa*-*)
4078 host_makefile_frag="config/mh-pa"
4079 ;;
d8ed14ce
IS
4080 *-*-darwin*)
4081 host_makefile_frag="config/mh-darwin"
be8fff81 4082 ;;
d19bca38
PB
4083 powerpc-*-aix*)
4084 host_makefile_frag="config/mh-ppc-aix"
4085 ;;
4086 rs6000-*-aix*)
4087 host_makefile_frag="config/mh-ppc-aix"
4088 ;;
671aa708
NN
4089esac
4090fi
4091
55ffb5ed 4092if test "${build}" != "${host}" ; then
0999159b
PB
4093 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4094 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4095 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 4096 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 4097 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4098 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4099 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4100 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4101 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4102 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4103 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4104 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4105 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4106else
4107 AR_FOR_BUILD="\$(AR)"
4108 AS_FOR_BUILD="\$(AS)"
fb0103e5 4109 CC_FOR_BUILD="\$(CC)"
0999159b 4110 CXX_FOR_BUILD="\$(CXX)"
0999159b 4111 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4112 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4113 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4114 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4115 LD_FOR_BUILD="\$(LD)"
4116 NM_FOR_BUILD="\$(NM)"
4117 RANLIB_FOR_BUILD="\$(RANLIB)"
4118 WINDRES_FOR_BUILD="\$(WINDRES)"
4119 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4120fi
4121
4122ac_ext=c
1c710c3c
DJ
4123ac_cpp='$CPP $CPPFLAGS'
4124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127if test -n "$ac_tool_prefix"; then
4128 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4129set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4132if ${ac_cv_prog_CC+:} false; then :
5213506e 4133 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4134else
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4137else
4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
5213506e 4143 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4145 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4147 break 2
4148 fi
4149done
5213506e
RW
4150 done
4151IFS=$as_save_IFS
1c710c3c
DJ
4152
4153fi
4154fi
4155CC=$ac_cv_prog_CC
4156if test -n "$CC"; then
5213506e
RW
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4158$as_echo "$CC" >&6; }
1c710c3c 4159else
5213506e
RW
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161$as_echo "no" >&6; }
1c710c3c
DJ
4162fi
4163
5213506e 4164
1c710c3c
DJ
4165fi
4166if test -z "$ac_cv_prog_CC"; then
4167 ac_ct_CC=$CC
fb0103e5
RG
4168 # Extract the first word of "gcc", so it can be a program name with args.
4169set dummy gcc; ac_word=$2
5213506e
RW
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4172if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4173 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4174else
4175 if test -n "$ac_ct_CC"; then
4176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4177else
4178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
5213506e 4183 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4185 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4187 break 2
4188 fi
4189done
5213506e
RW
4190 done
4191IFS=$as_save_IFS
1c710c3c
DJ
4192
4193fi
4194fi
4195ac_ct_CC=$ac_cv_prog_ac_ct_CC
4196if test -n "$ac_ct_CC"; then
5213506e
RW
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4198$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4199else
5213506e
RW
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201$as_echo "no" >&6; }
1c710c3c
DJ
4202fi
4203
5213506e
RW
4204 if test "x$ac_ct_CC" = x; then
4205 CC=""
4206 else
4207 case $cross_compiling:$ac_tool_warned in
4208yes:)
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4211ac_tool_warned=yes ;;
4212esac
4213 CC=$ac_ct_CC
4214 fi
1c710c3c
DJ
4215else
4216 CC="$ac_cv_prog_CC"
4217fi
4218
4219if test -z "$CC"; then
5213506e
RW
4220 if test -n "$ac_tool_prefix"; then
4221 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4222set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4225if ${ac_cv_prog_CC+:} false; then :
5213506e 4226 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4227else
4228 if test -n "$CC"; then
4229 ac_cv_prog_CC="$CC" # Let the user override the test.
4230else
1c710c3c
DJ
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
5213506e 4236 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4238 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4240 break 2
4241 fi
4242done
5213506e
RW
4243 done
4244IFS=$as_save_IFS
1c710c3c 4245
0b0dc272 4246fi
0b0dc272 4247fi
1c710c3c 4248CC=$ac_cv_prog_CC
af71363e 4249if test -n "$CC"; then
5213506e
RW
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251$as_echo "$CC" >&6; }
2aeb72e9 4252else
5213506e
RW
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254$as_echo "no" >&6; }
2aeb72e9
DD
4255fi
4256
2aeb72e9 4257
5213506e 4258 fi
1c710c3c 4259fi
55ffb5ed
NN
4260if test -z "$CC"; then
4261 # Extract the first word of "cc", so it can be a program name with args.
4262set dummy cc; ac_word=$2
5213506e
RW
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4265if ${ac_cv_prog_CC+:} false; then :
5213506e 4266 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4267else
4268 if test -n "$CC"; then
4269 ac_cv_prog_CC="$CC" # Let the user override the test.
4270else
0b0dc272 4271 ac_prog_rejected=no
1c710c3c
DJ
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
5213506e 4277 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4279 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4280 ac_prog_rejected=yes
4281 continue
4282 fi
4283 ac_cv_prog_CC="cc"
5213506e 4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4285 break 2
4286 fi
4287done
5213506e
RW
4288 done
4289IFS=$as_save_IFS
1c710c3c 4290
55ffb5ed
NN
4291if test $ac_prog_rejected = yes; then
4292 # We found a bogon in the path, so make sure we never use it.
4293 set dummy $ac_cv_prog_CC
4294 shift
1c710c3c 4295 if test $# != 0; then
55ffb5ed
NN
4296 # We chose a different compiler from the bogus one.
4297 # However, it has the same basename, so the bogon will be chosen
4298 # first if we set CC to just the basename; use the full file name.
4299 shift
1c710c3c 4300 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4301 fi
4302fi
4303fi
4304fi
1c710c3c 4305CC=$ac_cv_prog_CC
55ffb5ed 4306if test -n "$CC"; then
5213506e
RW
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4308$as_echo "$CC" >&6; }
55ffb5ed 4309else
5213506e
RW
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311$as_echo "no" >&6; }
55ffb5ed
NN
4312fi
4313
5213506e 4314
1c710c3c
DJ
4315fi
4316if test -z "$CC"; then
4317 if test -n "$ac_tool_prefix"; then
5213506e 4318 for ac_prog in cl.exe
1c710c3c
DJ
4319 do
4320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4324if ${ac_cv_prog_CC+:} false; then :
5213506e 4325 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4326else
4327 if test -n "$CC"; then
4328 ac_cv_prog_CC="$CC" # Let the user override the test.
4329else
1c710c3c
DJ
4330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331for as_dir in $PATH
4332do
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
5213506e 4335 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4337 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4339 break 2
4340 fi
4341done
5213506e
RW
4342 done
4343IFS=$as_save_IFS
1c710c3c 4344
55ffb5ed
NN
4345fi
4346fi
1c710c3c 4347CC=$ac_cv_prog_CC
55ffb5ed 4348if test -n "$CC"; then
5213506e
RW
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4350$as_echo "$CC" >&6; }
a4b9e93e 4351else
5213506e
RW
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353$as_echo "no" >&6; }
fb0103e5 4354fi
af71363e 4355
5213506e 4356
1c710c3c
DJ
4357 test -n "$CC" && break
4358 done
af71363e 4359fi
1c710c3c
DJ
4360if test -z "$CC"; then
4361 ac_ct_CC=$CC
5213506e 4362 for ac_prog in cl.exe
1c710c3c
DJ
4363do
4364 # Extract the first word of "$ac_prog", so it can be a program name with args.
4365set dummy $ac_prog; ac_word=$2
5213506e
RW
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4368if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4369 $as_echo_n "(cached) " >&6
0b0dc272 4370else
1c710c3c
DJ
4371 if test -n "$ac_ct_CC"; then
4372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4373else
1c710c3c
DJ
4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
5213506e 4379 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4381 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4383 break 2
4384 fi
4385done
5213506e
RW
4386 done
4387IFS=$as_save_IFS
1c710c3c 4388
af71363e
AS
4389fi
4390fi
1c710c3c
DJ
4391ac_ct_CC=$ac_cv_prog_ac_ct_CC
4392if test -n "$ac_ct_CC"; then
5213506e
RW
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4394$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4395else
5213506e
RW
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397$as_echo "no" >&6; }
af71363e 4398fi
0b0dc272 4399
5213506e 4400
1c710c3c
DJ
4401 test -n "$ac_ct_CC" && break
4402done
4403
5213506e
RW
4404 if test "x$ac_ct_CC" = x; then
4405 CC=""
4406 else
4407 case $cross_compiling:$ac_tool_warned in
4408yes:)
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4411ac_tool_warned=yes ;;
4412esac
4413 CC=$ac_ct_CC
4414 fi
1c710c3c
DJ
4415fi
4416
4417fi
4418
4419
5213506e
RW
4420test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4422as_fn_error $? "no acceptable C compiler found in \$PATH
4423See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4424
4425# Provide some information about the compiler.
5213506e
RW
4426$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4427set X $ac_compile
4428ac_compiler=$2
4429for ac_option in --version -v -V -qversion; do
4430 { { ac_try="$ac_compiler $ac_option >&5"
4431case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4434esac
4435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436$as_echo "$ac_try_echo"; } >&5
4437 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4438 ac_status=$?
5213506e
RW
4439 if test -s conftest.err; then
4440 sed '10a\
4441... rest of stderr output deleted ...
4442 10q' conftest.err >conftest.er1
4443 cat conftest.er1 >&5
5213506e 4444 fi
22e05272 4445 rm -f conftest.er1 conftest.err
5213506e
RW
4446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447 test $ac_status = 0; }
4448done
1c710c3c 4449
5213506e 4450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4451/* end confdefs.h. */
4452
4453int
4454main ()
4455{
4456
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461ac_clean_files_save=$ac_clean_files
22e05272 4462ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4463# Try to create an executable without -o first, disregard a.out.
4464# It will help us diagnose broken compilers, and finding out an intuition
4465# of exeext.
22e05272
JM
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4467$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4468ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4469
4470# The possible output files:
4471ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4472
4473ac_rmfiles=
4474for ac_file in $ac_files
4475do
4476 case $ac_file in
4477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4478 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4479 esac
4480done
4481rm -f $ac_rmfiles
4482
4483if { { ac_try="$ac_link_default"
4484case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487esac
4488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489$as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link_default") 2>&5
1c710c3c 4491 ac_status=$?
5213506e
RW
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }; then :
4494 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4495# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4496# in a Makefile. We should not override ac_cv_exeext if it was cached,
4497# so that the user can short-circuit this test for compilers unknown to
4498# Autoconf.
4499for ac_file in $ac_files ''
1c710c3c
DJ
4500do
4501 test -f "$ac_file" || continue
4502 case $ac_file in
5213506e 4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4504 ;;
4505 [ab].out )
4506 # We found the default executable, but exeext='' is most
4507 # certainly right.
4508 break;;
4509 *.* )
5213506e
RW
4510 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4511 then :; else
4512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4513 fi
4514 # We set ac_cv_exeext here because the later test for it is not
4515 # safe: cross compilers may not add the suffix if given an `-o'
4516 # argument, so we may need to know it at that point already.
4517 # Even if this section looks crufty: it has the advantage of
4518 # actually working.
1c710c3c
DJ
4519 break;;
4520 * )
4521 break;;
4522 esac
4523done
5213506e
RW
4524test "$ac_cv_exeext" = no && ac_cv_exeext=
4525
1c710c3c 4526else
5213506e
RW
4527 ac_file=''
4528fi
5213506e 4529if test -z "$ac_file"; then :
22e05272
JM
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531$as_echo "no" >&6; }
4532$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
5213506e
RW
4535{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4537as_fn_error 77 "C compiler cannot create executables
4538See \`config.log' for more details" "$LINENO" 5; }
4539else
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4541$as_echo "yes" >&6; }
1c710c3c 4542fi
22e05272
JM
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4544$as_echo_n "checking for C compiler default output file name... " >&6; }
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4546$as_echo "$ac_file" >&6; }
1c710c3c 4547ac_exeext=$ac_cv_exeext
1c710c3c 4548
22e05272 4549rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4550ac_clean_files=$ac_clean_files_save
5213506e
RW
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4552$as_echo_n "checking for suffix of executables... " >&6; }
4553if { { ac_try="$ac_link"
4554case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
4558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559$as_echo "$ac_try_echo"; } >&5
4560 (eval "$ac_link") 2>&5
1c710c3c 4561 ac_status=$?
5213506e
RW
4562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563 test $ac_status = 0; }; then :
1c710c3c
DJ
4564 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4565# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4566# work properly (i.e., refer to `conftest.exe'), while it won't with
4567# `rm'.
4568for ac_file in conftest.exe conftest conftest.*; do
4569 test -f "$ac_file" || continue
4570 case $ac_file in
5213506e 4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4573 break;;
4574 * ) break;;
4575 esac
4576done
af71363e 4577else
5213506e
RW
4578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4580as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4581See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4582fi
22e05272 4583rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4585$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4586
4587rm -f conftest.$ac_ext
4588EXEEXT=$ac_cv_exeext
4589ac_exeext=$EXEEXT
22e05272
JM
4590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591/* end confdefs.h. */
4592#include <stdio.h>
4593int
4594main ()
4595{
4596FILE *f = fopen ("conftest.out", "w");
4597 return ferror (f) || fclose (f) != 0;
4598
4599 ;
4600 return 0;
4601}
4602_ACEOF
4603ac_clean_files="$ac_clean_files conftest.out"
4604# Check that the compiler produces executables we can run. If not, either
4605# the compiler is broken, or we cross compile.
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4607$as_echo_n "checking whether we are cross compiling... " >&6; }
4608if test "$cross_compiling" != yes; then
4609 { { ac_try="$ac_link"
4610case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613esac
4614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615$as_echo "$ac_try_echo"; } >&5
4616 (eval "$ac_link") 2>&5
4617 ac_status=$?
4618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619 test $ac_status = 0; }
4620 if { ac_try='./conftest$ac_cv_exeext'
4621 { { case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624esac
4625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626$as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_try") 2>&5
4628 ac_status=$?
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }; }; then
4631 cross_compiling=no
4632 else
4633 if test "$cross_compiling" = maybe; then
4634 cross_compiling=yes
4635 else
4636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4638as_fn_error $? "cannot run C compiled programs.
4639If you meant to cross compile, use \`--host'.
4640See \`config.log' for more details" "$LINENO" 5; }
4641 fi
4642 fi
4643fi
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4645$as_echo "$cross_compiling" >&6; }
4646
4647rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4648ac_clean_files=$ac_clean_files_save
5213506e
RW
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4650$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4651if ${ac_cv_objext+:} false; then :
5213506e 4652 $as_echo_n "(cached) " >&6
1c710c3c 4653else
5213506e 4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4655/* end confdefs.h. */
4656
4657int
4658main ()
4659{
4660
4661 ;
4662 return 0;
4663}
4664_ACEOF
4665rm -f conftest.o conftest.obj
5213506e
RW
4666if { { ac_try="$ac_compile"
4667case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670esac
4671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4672$as_echo "$ac_try_echo"; } >&5
4673 (eval "$ac_compile") 2>&5
1c710c3c 4674 ac_status=$?
5213506e
RW
4675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4676 test $ac_status = 0; }; then :
4677 for ac_file in conftest.o conftest.obj conftest.*; do
4678 test -f "$ac_file" || continue;
1c710c3c 4679 case $ac_file in
5213506e 4680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4682 break;;
4683 esac
4684done
4685else
5213506e 4686 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4687sed 's/^/| /' conftest.$ac_ext >&5
4688
5213506e
RW
4689{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4691as_fn_error $? "cannot compute suffix of object files: cannot compile
4692See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4693fi
1c710c3c
DJ
4694rm -f conftest.$ac_cv_objext conftest.$ac_ext
4695fi
5213506e
RW
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4697$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4698OBJEXT=$ac_cv_objext
4699ac_objext=$OBJEXT
5213506e
RW
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4701$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4702if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4703 $as_echo_n "(cached) " >&6
1c710c3c 4704else
5213506e 4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4706/* end confdefs.h. */
4707
4708int
4709main ()
4710{
4711#ifndef __GNUC__
4712 choke me
4713#endif
4714
4715 ;
4716 return 0;
4717}
4718_ACEOF
5213506e 4719if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4720 ac_compiler_gnu=yes
4721else
5213506e 4722 ac_compiler_gnu=no
1c710c3c 4723fi
5213506e 4724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4725ac_cv_c_compiler_gnu=$ac_compiler_gnu
4726
4727fi
5213506e
RW
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4729$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4730if test $ac_compiler_gnu = yes; then
4731 GCC=yes
4732else
4733 GCC=
4734fi
1c710c3c
DJ
4735ac_test_CFLAGS=${CFLAGS+set}
4736ac_save_CFLAGS=$CFLAGS
5213506e
RW
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4738$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4739if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4740 $as_echo_n "(cached) " >&6
4741else
4742 ac_save_c_werror_flag=$ac_c_werror_flag
4743 ac_c_werror_flag=yes
4744 ac_cv_prog_cc_g=no
4745 CFLAGS="-g"
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4747/* end confdefs.h. */
4748
4749int
4750main ()
4751{
4752
4753 ;
4754 return 0;
4755}
4756_ACEOF
5213506e 4757if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4758 ac_cv_prog_cc_g=yes
4759else
5213506e
RW
4760 CFLAGS=""
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762/* end confdefs.h. */
4763
4764int
4765main ()
4766{
4767
4768 ;
4769 return 0;
4770}
4771_ACEOF
4772if ac_fn_c_try_compile "$LINENO"; then :
4773
4774else
4775 ac_c_werror_flag=$ac_save_c_werror_flag
4776 CFLAGS="-g"
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h. */
af71363e 4779
5213506e
RW
4780int
4781main ()
4782{
4783
4784 ;
4785 return 0;
4786}
4787_ACEOF
4788if ac_fn_c_try_compile "$LINENO"; then :
4789 ac_cv_prog_cc_g=yes
4790fi
4791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4792fi
5213506e 4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4794fi
5213506e
RW
4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 ac_c_werror_flag=$ac_save_c_werror_flag
4797fi
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4799$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4800if test "$ac_test_CFLAGS" = set; then
1c710c3c 4801 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4802elif test $ac_cv_prog_cc_g = yes; then
4803 if test "$GCC" = yes; then
4804 CFLAGS="-g -O2"
4805 else
4806 CFLAGS="-g"
4807 fi
4808else
4809 if test "$GCC" = yes; then
4810 CFLAGS="-O2"
4811 else
4812 CFLAGS=
4813 fi
4814fi
5213506e
RW
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4816$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4817if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4818 $as_echo_n "(cached) " >&6
1c710c3c 4819else
5213506e 4820 ac_cv_prog_cc_c89=no
1c710c3c 4821ac_save_CC=$CC
5213506e 4822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4823/* end confdefs.h. */
4824#include <stdarg.h>
4825#include <stdio.h>
22e05272 4826struct stat;
1c710c3c
DJ
4827/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4828struct buf { int x; };
4829FILE * (*rcsopen) (struct buf *, struct stat *, int);
4830static char *e (p, i)
4831 char **p;
4832 int i;
4833{
4834 return p[i];
4835}
4836static char *f (char * (*g) (char **, int), char **p, ...)
4837{
4838 char *s;
4839 va_list v;
4840 va_start (v,p);
4841 s = g (p, va_arg (v,int));
4842 va_end (v);
4843 return s;
4844}
4845
4846/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4847 function prototypes and stuff, but not '\xHH' hex character constants.
4848 These don't provoke an error unfortunately, instead are silently treated
5213506e 4849 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4851 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4852 that's true only with -std. */
1c710c3c
DJ
4853int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4854
5213506e
RW
4855/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4856 inside strings and character constants. */
4857#define FOO(x) 'x'
4858int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4859
1c710c3c
DJ
4860int test (int i, double x);
4861struct s1 {int (*f) (int a);};
4862struct s2 {int (*f) (double a);};
4863int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4864int argc;
4865char **argv;
4866int
4867main ()
4868{
4869return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4870 ;
4871 return 0;
4872}
4873_ACEOF
5213506e
RW
4874for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4875 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4876do
4877 CC="$ac_save_CC $ac_arg"
5213506e
RW
4878 if ac_fn_c_try_compile "$LINENO"; then :
4879 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4880fi
5213506e
RW
4881rm -f core conftest.err conftest.$ac_objext
4882 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4883done
5213506e 4884rm -f conftest.$ac_ext
1c710c3c
DJ
4885CC=$ac_save_CC
4886
4887fi
5213506e
RW
4888# AC_CACHE_VAL
4889case "x$ac_cv_prog_cc_c89" in
4890 x)
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4892$as_echo "none needed" >&6; } ;;
4893 xno)
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4895$as_echo "unsupported" >&6; } ;;
1c710c3c 4896 *)
5213506e
RW
4897 CC="$CC $ac_cv_prog_cc_c89"
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4899$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4900esac
5213506e 4901if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4902
2aeb72e9
DD
4903fi
4904
2aeb72e9
DD
4905ac_ext=c
4906ac_cpp='$CPP $CPPFLAGS'
4907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910
5213506e 4911ac_ext=cpp
2aeb72e9
DD
4912ac_cpp='$CXXCPP $CPPFLAGS'
4913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4916if test -z "$CXX"; then
4917 if test -n "$CCC"; then
4918 CXX=$CCC
4919 else
4920 if test -n "$ac_tool_prefix"; then
4921 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4922 do
4923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4924set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4927if ${ac_cv_prog_CXX+:} false; then :
5213506e 4928 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4929else
4930 if test -n "$CXX"; then
4931 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4932else
4933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
5213506e 4938 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 4940 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4942 break 2
4943 fi
4944done
5213506e
RW
4945 done
4946IFS=$as_save_IFS
55ffb5ed 4947
c3a86da9
DJ
4948fi
4949fi
4950CXX=$ac_cv_prog_CXX
4951if test -n "$CXX"; then
5213506e
RW
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4953$as_echo "$CXX" >&6; }
c3a86da9 4954else
5213506e
RW
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956$as_echo "no" >&6; }
c3a86da9
DJ
4957fi
4958
5213506e 4959
c3a86da9
DJ
4960 test -n "$CXX" && break
4961 done
4962fi
4963if test -z "$CXX"; then
4964 ac_ct_CXX=$CXX
5213506e 4965 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4966do
4967 # Extract the first word of "$ac_prog", so it can be a program name with args.
4968set dummy $ac_prog; ac_word=$2
5213506e
RW
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4971if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 4972 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4973else
4974 if test -n "$ac_ct_CXX"; then
4975 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
5213506e 4982 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 4984 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4986 break 2
4987 fi
4988done
5213506e
RW
4989 done
4990IFS=$as_save_IFS
c3a86da9
DJ
4991
4992fi
4993fi
4994ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4995if test -n "$ac_ct_CXX"; then
5213506e
RW
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4997$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4998else
5213506e
RW
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000$as_echo "no" >&6; }
c3a86da9
DJ
5001fi
5002
5213506e 5003
c3a86da9
DJ
5004 test -n "$ac_ct_CXX" && break
5005done
c3a86da9 5006
5213506e
RW
5007 if test "x$ac_ct_CXX" = x; then
5008 CXX="g++"
5009 else
5010 case $cross_compiling:$ac_tool_warned in
5011yes:)
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014ac_tool_warned=yes ;;
5015esac
5016 CXX=$ac_ct_CXX
5017 fi
c3a86da9
DJ
5018fi
5019
5213506e
RW
5020 fi
5021fi
c3a86da9 5022# Provide some information about the compiler.
5213506e
RW
5023$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5024set X $ac_compile
5025ac_compiler=$2
5026for ac_option in --version -v -V -qversion; do
5027 { { ac_try="$ac_compiler $ac_option >&5"
5028case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031esac
5032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5033$as_echo "$ac_try_echo"; } >&5
5034 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5035 ac_status=$?
5213506e
RW
5036 if test -s conftest.err; then
5037 sed '10a\
5038... rest of stderr output deleted ...
5039 10q' conftest.err >conftest.er1
5040 cat conftest.er1 >&5
5213506e 5041 fi
22e05272 5042 rm -f conftest.er1 conftest.err
5213506e
RW
5043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; }
5045done
c3a86da9 5046
5213506e
RW
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5048$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5049if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5050 $as_echo_n "(cached) " >&6
c3a86da9 5051else
5213506e 5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5053/* end confdefs.h. */
5054
5055int
5056main ()
5057{
5058#ifndef __GNUC__
5059 choke me
5060#endif
5061
5062 ;
5063 return 0;
5064}
5065_ACEOF
5213506e 5066if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5067 ac_compiler_gnu=yes
5068else
5213506e 5069 ac_compiler_gnu=no
c3a86da9 5070fi
5213506e 5071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5072ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5073
5074fi
5213506e
RW
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5076$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5077if test $ac_compiler_gnu = yes; then
5078 GXX=yes
5079else
5080 GXX=
5081fi
c3a86da9
DJ
5082ac_test_CXXFLAGS=${CXXFLAGS+set}
5083ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5085$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5086if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5087 $as_echo_n "(cached) " >&6
5088else
5089 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5090 ac_cxx_werror_flag=yes
5091 ac_cv_prog_cxx_g=no
5092 CXXFLAGS="-g"
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5094/* end confdefs.h. */
5095
5096int
5097main ()
5098{
5099
5100 ;
5101 return 0;
5102}
5103_ACEOF
5213506e 5104if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5105 ac_cv_prog_cxx_g=yes
5106else
5213506e
RW
5107 CXXFLAGS=""
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5109/* end confdefs.h. */
5213506e 5110
c3a86da9
DJ
5111int
5112main ()
5113{
5213506e 5114
c3a86da9
DJ
5115 ;
5116 return 0;
5117}
5118_ACEOF
5213506e 5119if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5120
5213506e
RW
5121else
5122 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5123 CXXFLAGS="-g"
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5125/* end confdefs.h. */
5213506e 5126
c3a86da9
DJ
5127int
5128main ()
5129{
5213506e 5130
c3a86da9
DJ
5131 ;
5132 return 0;
5133}
5134_ACEOF
5213506e
RW
5135if ac_fn_cxx_try_compile "$LINENO"; then :
5136 ac_cv_prog_cxx_g=yes
11a67599 5137fi
5213506e
RW
5138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139fi
5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141fi
5142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5146$as_echo "$ac_cv_prog_cxx_g" >&6; }
5147if test "$ac_test_CXXFLAGS" = set; then
5148 CXXFLAGS=$ac_save_CXXFLAGS
5149elif test $ac_cv_prog_cxx_g = yes; then
5150 if test "$GXX" = yes; then
5151 CXXFLAGS="-g -O2"
5152 else
5153 CXXFLAGS="-g"
5154 fi
5155else
5156 if test "$GXX" = yes; then
5157 CXXFLAGS="-O2"
5158 else
5159 CXXFLAGS=
5160 fi
c3a86da9 5161fi
c3a86da9
DJ
5162ac_ext=c
5163ac_cpp='$CPP $CPPFLAGS'
5164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167
5168
5169# We must set the default linker to the linker used by gcc for the correct
5170# operation of libtool. If LD is not defined and we are using gcc, try to
5171# set the LD default to the ld used by gcc.
5172if test -z "$LD"; then
5173 if test "$GCC" = yes; then
5174 case $build in
5175 *-*-mingw*)
5176 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5177 *)
5178 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5179 esac
5180 case $gcc_prog_ld in
5181 # Accept absolute paths.
5182 [\\/]* | [A-Za-z]:[\\/]*)
5183 LD="$gcc_prog_ld" ;;
5184 esac
5185 fi
23f6b2f9
PB
5186fi
5187
0b21f5d3
EB
5188# Check whether -static-libstdc++ -static-libgcc is supported.
5189have_static_libs=no
5190if test "$GCC" = yes; then
5191 saved_LDFLAGS="$LDFLAGS"
5192
5193 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5195$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5196 ac_ext=cpp
5197ac_cpp='$CXXCPP $CPPFLAGS'
5198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5201
5202
5203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h. */
0d6414b2
EB
5205
5206#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5207#error -static-libstdc++ not implemented
5208#endif
0b21f5d3
EB
5209int main() {}
5210_ACEOF
5211if ac_fn_cxx_try_link "$LINENO"; then :
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5213$as_echo "yes" >&6; }; have_static_libs=yes
5214else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216$as_echo "no" >&6; }
5217fi
5218rm -f core conftest.err conftest.$ac_objext \
5219 conftest$ac_exeext conftest.$ac_ext
5220 ac_ext=c
5221ac_cpp='$CPP $CPPFLAGS'
5222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224ac_compiler_gnu=$ac_cv_c_compiler_gnu
5225
5226
5227 LDFLAGS="$saved_LDFLAGS"
5228fi
5229
23f6b2f9
PB
5230
5231
55ffb5ed 5232
1c710c3c
DJ
5233if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5235set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5238if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5239 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5240else
5241 if test -n "$GNATBIND"; then
5242 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5243else
1c710c3c
DJ
5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5213506e 5249 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5251 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5253 break 2
5254 fi
5255done
5213506e
RW
5256 done
5257IFS=$as_save_IFS
1c710c3c 5258
55ffb5ed
NN
5259fi
5260fi
1c710c3c 5261GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5262if test -n "$GNATBIND"; then
5213506e
RW
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5264$as_echo "$GNATBIND" >&6; }
55ffb5ed 5265else
5213506e
RW
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267$as_echo "no" >&6; }
55ffb5ed
NN
5268fi
5269
5213506e 5270
1c710c3c 5271fi
55ffb5ed 5272if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5273 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5274 # Extract the first word of "gnatbind", so it can be a program name with args.
5275set dummy gnatbind; ac_word=$2
5213506e
RW
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5278if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5279 $as_echo_n "(cached) " >&6
55ffb5ed 5280else
1c710c3c
DJ
5281 if test -n "$ac_ct_GNATBIND"; then
5282 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5283else
1c710c3c
DJ
5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5213506e 5289 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5291 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5293 break 2
5294 fi
5295done
5213506e
RW
5296 done
5297IFS=$as_save_IFS
1c710c3c 5298
55ffb5ed
NN
5299fi
5300fi
1c710c3c
DJ
5301ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5302if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5304$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5305else
5213506e
RW
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307$as_echo "no" >&6; }
55ffb5ed
NN
5308fi
5309
5213506e
RW
5310 if test "x$ac_ct_GNATBIND" = x; then
5311 GNATBIND="no"
5312 else
5313 case $cross_compiling:$ac_tool_warned in
5314yes:)
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5317ac_tool_warned=yes ;;
5318esac
5319 GNATBIND=$ac_ct_GNATBIND
5320 fi
55ffb5ed 5321else
1c710c3c 5322 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5323fi
5324
1c710c3c
DJ
5325if test -n "$ac_tool_prefix"; then
5326 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5327set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5330if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5331 $as_echo_n "(cached) " >&6
5305be7e
RG
5332else
5333 if test -n "$GNATMAKE"; then
5334 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5335else
1c710c3c
DJ
5336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5213506e 5341 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5343 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5345 break 2
5346 fi
5347done
5213506e
RW
5348 done
5349IFS=$as_save_IFS
1c710c3c 5350
5305be7e
RG
5351fi
5352fi
1c710c3c 5353GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5354if test -n "$GNATMAKE"; then
5213506e
RW
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5356$as_echo "$GNATMAKE" >&6; }
5305be7e 5357else
5213506e
RW
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359$as_echo "no" >&6; }
5305be7e
RG
5360fi
5361
5213506e 5362
1c710c3c 5363fi
5305be7e 5364if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5365 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5366 # Extract the first word of "gnatmake", so it can be a program name with args.
5367set dummy gnatmake; ac_word=$2
5213506e
RW
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5370if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5371 $as_echo_n "(cached) " >&6
5305be7e 5372else
1c710c3c
DJ
5373 if test -n "$ac_ct_GNATMAKE"; then
5374 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5375else
1c710c3c
DJ
5376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377for as_dir in $PATH
5378do
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5213506e 5381 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5383 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5385 break 2
5386 fi
5387done
5213506e
RW
5388 done
5389IFS=$as_save_IFS
1c710c3c 5390
5305be7e
RG
5391fi
5392fi
1c710c3c
DJ
5393ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5394if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5396$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5397else
5213506e
RW
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399$as_echo "no" >&6; }
5305be7e
RG
5400fi
5401
5213506e
RW
5402 if test "x$ac_ct_GNATMAKE" = x; then
5403 GNATMAKE="no"
5404 else
5405 case $cross_compiling:$ac_tool_warned in
5406yes:)
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5409ac_tool_warned=yes ;;
5410esac
5411 GNATMAKE=$ac_ct_GNATMAKE
5412 fi
5305be7e 5413else
1c710c3c 5414 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5415fi
5416
5213506e
RW
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5418$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5419if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5420 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5421else
5422 cat >conftest.adb <<EOF
5423procedure conftest is begin null; end conftest;
5424EOF
5425acx_cv_cc_gcc_supports_ada=no
5426# There is a bug in old released versions of GCC which causes the
5427# driver to exit successfully when the appropriate language module
5428# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5429# Therefore we must check for the error message as well as an
5430# unsuccessful exit.
1db673ca
RO
5431# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5432# given a .adb file, but produce no object file. So we must check
5433# if an object file was really produced to guard against this.
55ffb5ed 5434errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5435if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5436 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5437fi
5438rm -f conftest.*
5439fi
5213506e
RW
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5441$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5442
7cb62ef1 5443if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5444 have_gnat=yes
5445else
5446 have_gnat=no
5447fi
5448
5213506e
RW
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5450$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5451if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5452 $as_echo_n "(cached) " >&6
a76494aa
PB
5453else
5454 echo abfoo >t1
5455 echo cdfoo >t2
b55e6680 5456 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5457 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5458 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5459 :
5460 else
5461 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5462 fi
5463 fi
a76494aa
PB
5464 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5465 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5466 :
a76494aa
PB
5467 else
5468 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5469 fi
5470 fi
5471 rm t1 t2
5472
5473fi
5213506e
RW
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5475$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5476do_compare="$gcc_cv_prog_cmp_skip"
5477
5478
55ffb5ed 5479
ff3ac0f4
ILT
5480# Check whether --enable-bootstrap was given.
5481if test "${enable_bootstrap+set}" = set; then :
5482 enableval=$enable_bootstrap;
5483else
5484 enable_bootstrap=default
5485fi
5486
5487
5488# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5489if test -r $srcdir/gcc/configure; then
5490 have_compiler=yes
5491else
5492 have_compiler=no
5493fi
ff3ac0f4
ILT
5494
5495case "$have_compiler:$host:$target:$enable_bootstrap" in
5496 *:*:*:no) ;;
5497
5498 # Default behavior. Enable bootstrap if we have a compiler
5499 # and we are in a native configuration.
5500 yes:$build:$build:default)
5501 enable_bootstrap=yes ;;
5502
5503 *:*:*:default)
5504 enable_bootstrap=no ;;
5505
5506 # We have a compiler and we are in a native configuration, bootstrap is ok
5507 yes:$build:$build:yes)
5508 ;;
5509
5510 # Other configurations, but we have a compiler. Assume the user knows
5511 # what he's doing.
5512 yes:*:*:yes)
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5514$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5515 ;;
5516
5517 # No compiler: if they passed --enable-bootstrap explicitly, fail
5518 no:*:*:yes)
22e05272 5519 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5520
5521 # Fail if wrong command line
5522 *)
22e05272 5523 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5524 ;;
5525esac
5526
46070488
JM
5527# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5528# C++98 compiler can still start the bootstrap.
5529if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5530 CXX="$CXX -std=gnu++98"
46070488
JM
5531fi
5532
592c90ff
KG
5533# Used for setting $lt_cv_objdir
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5535$as_echo_n "checking for objdir... " >&6; }
22e05272 5536if ${lt_cv_objdir+:} false; then :
592c90ff
KG
5537 $as_echo_n "(cached) " >&6
5538else
5539 rm -f .libs 2>/dev/null
5540mkdir .libs 2>/dev/null
5541if test -d .libs; then
5542 lt_cv_objdir=.libs
5543else
5544 # MS-DOS does not allow filenames that begin with a dot.
5545 lt_cv_objdir=_libs
5546fi
5547rmdir .libs 2>/dev/null
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5550$as_echo "$lt_cv_objdir" >&6; }
5551objdir=$lt_cv_objdir
5552
5553
5554
5555
5556
5557cat >>confdefs.h <<_ACEOF
5558#define LT_OBJDIR "$lt_cv_objdir/"
5559_ACEOF
5560
5561
5562
acd26225 5563# Check for GMP, MPFR and MPC
3a5729ea 5564gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5565gmpinc=
e69bf64b 5566have_gmp=no
acd26225
KG
5567
5568# Specify a location for mpc
5569# check for this first so it ends up on the link line before mpfr.
5570
5213506e
RW
5571# Check whether --with-mpc was given.
5572if test "${with_mpc+set}" = set; then :
5573 withval=$with_mpc;
5574fi
acd26225 5575
acd26225 5576
9965e3cd 5577# Check whether --with-mpc-include was given.
5213506e
RW
5578if test "${with_mpc_include+set}" = set; then :
5579 withval=$with_mpc_include;
5580fi
acd26225 5581
acd26225 5582
9965e3cd 5583# Check whether --with-mpc-lib was given.
5213506e
RW
5584if test "${with_mpc_lib+set}" = set; then :
5585 withval=$with_mpc_lib;
5586fi
acd26225 5587
acd26225
KG
5588
5589if test "x$with_mpc" != x; then
3a5729ea
KG
5590 gmplibs="-L$with_mpc/lib $gmplibs"
5591 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5592fi
5593if test "x$with_mpc_include" != x; then
3a5729ea 5594 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5595fi
5596if test "x$with_mpc_lib" != x; then
3a5729ea 5597 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5598fi
5599if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5600 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5601 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5602 # Do not test the mpc version. Assume that it is sufficient, since
5603 # it is in the source tree, and the library has not been built yet
5604 # but it would be included on the link line in the version check below
5605 # hence making the test fail.
3a5729ea 5606 have_gmp=yes
acd26225 5607fi
e69bf64b 5608
bebf829d
PB
5609# Specify a location for mpfr
5610# check for this first so it ends up on the link line before gmp.
1c710c3c 5611
5213506e
RW
5612# Check whether --with-mpfr-dir was given.
5613if test "${with_mpfr_dir+set}" = set; then :
22e05272 5614 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
5615Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5616fi
5617
bebf829d
PB
5618
5619
5213506e
RW
5620# Check whether --with-mpfr was given.
5621if test "${with_mpfr+set}" = set; then :
5622 withval=$with_mpfr;
5623fi
1c710c3c 5624
bebf829d 5625
9965e3cd 5626# Check whether --with-mpfr-include was given.
5213506e
RW
5627if test "${with_mpfr_include+set}" = set; then :
5628 withval=$with_mpfr_include;
5629fi
1c710c3c 5630
8a877c9c 5631
9965e3cd 5632# Check whether --with-mpfr-lib was given.
5213506e
RW
5633if test "${with_mpfr_lib+set}" = set; then :
5634 withval=$with_mpfr_lib;
5635fi
8a877c9c 5636
bebf829d
PB
5637
5638if test "x$with_mpfr" != x; then
5639 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5640 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5641fi
8a877c9c 5642if test "x$with_mpfr_include" != x; then
3a5729ea 5643 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5644fi
5645if test "x$with_mpfr_lib" != x; then
5646 gmplibs="-L$with_mpfr_lib $gmplibs"
5647fi
e69bf64b 5648if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5649 # MPFR v3.1.0 moved the sources into a src sub-directory.
5650 if ! test -d ${srcdir}/mpfr/src; then
22e05272 5651 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 5652 fi
00f35794
BE
5653 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5654 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5655 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5656 # Do not test the mpfr version. Assume that it is sufficient, since
5657 # it is in the source tree, and the library has not been built yet
5658 # but it would be included on the link line in the version check below
5659 # hence making the test fail.
5660 have_gmp=yes
5661fi
bebf829d 5662
6de9cd9a 5663# Specify a location for gmp
1c710c3c 5664
5213506e
RW
5665# Check whether --with-gmp-dir was given.
5666if test "${with_gmp_dir+set}" = set; then :
22e05272 5667 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
5668Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5669fi
5670
6de9cd9a 5671
6de9cd9a 5672
5213506e
RW
5673# Check whether --with-gmp was given.
5674if test "${with_gmp+set}" = set; then :
5675 withval=$with_gmp;
5676fi
1c710c3c 5677
6de9cd9a 5678
9965e3cd 5679# Check whether --with-gmp-include was given.
5213506e
RW
5680if test "${with_gmp_include+set}" = set; then :
5681 withval=$with_gmp_include;
5682fi
1c710c3c 5683
8a877c9c 5684
9965e3cd 5685# Check whether --with-gmp-lib was given.
5213506e
RW
5686if test "${with_gmp_lib+set}" = set; then :
5687 withval=$with_gmp_lib;
5688fi
8a877c9c
KG
5689
5690
6de9cd9a 5691
bebf829d
PB
5692if test "x$with_gmp" != x; then
5693 gmplibs="-L$with_gmp/lib $gmplibs"
5694 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5695fi
8a877c9c
KG
5696if test "x$with_gmp_include" != x; then
5697 gmpinc="-I$with_gmp_include $gmpinc"
5698fi
5699if test "x$with_gmp_lib" != x; then
5700 gmplibs="-L$with_gmp_lib $gmplibs"
5701fi
e69bf64b 5702if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5703 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5704 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5705 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5706 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5707 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5708 # Do not test the gmp version. Assume that it is sufficient, since
5709 # it is in the source tree, and the library has not been built yet
5710 # but it would be included on the link line in the version check below
5711 # hence making the test fail.
5712 have_gmp=yes
5713fi
6de9cd9a 5714
d943d7c4 5715if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5716 have_gmp=yes
5717 saved_CFLAGS="$CFLAGS"
5718 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5719 # Check for the recommended and required versions of GMP.
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5721$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5722
5723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5724/* end confdefs.h. */
5725#include "gmp.h"
5726int
5727main ()
5728{
5729
5730 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5731 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5732 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5733 choke me
5734 #endif
5735
5736 ;
5737 return 0;
5738}
5739_ACEOF
5740if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5742/* end confdefs.h. */
362c6d2f 5743#include <gmp.h>
1c710c3c
DJ
5744int
5745main ()
5746{
6de9cd9a 5747
362c6d2f
KG
5748 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5749 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5750 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5751 choke me
5752 #endif
1c710c3c
DJ
5753
5754 ;
5755 return 0;
5756}
5757_ACEOF
5213506e
RW
5758if ac_fn_c_try_compile "$LINENO"; then :
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5760$as_echo "yes" >&6; }
362c6d2f
KG
5761else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5763$as_echo "buggy but acceptable" >&6; }
5764fi
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5766else
5213506e
RW
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5769fi
5213506e 5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5771
acd26225 5772 # If we have GMP, check the MPFR version.
e69bf64b 5773 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5774 # Check for the recommended and required versions of MPFR.
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5776$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5778/* end confdefs.h. */
70ec446f 5779#include <gmp.h>
e69bf64b 5780 #include <mpfr.h>
1c710c3c
DJ
5781int
5782main ()
5783{
e48d66a9 5784
8be34204 5785 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
5786 choke me
5787 #endif
1c710c3c
DJ
5788
5789 ;
5790 return 0;
5791}
5792_ACEOF
5213506e
RW
5793if ac_fn_c_try_compile "$LINENO"; then :
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5795/* end confdefs.h. */
a3993f33 5796#include <gmp.h>
e69bf64b 5797 #include <mpfr.h>
1c710c3c
DJ
5798int
5799main ()
5800{
a3993f33 5801
8be34204 5802 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
5803 choke me
5804 #endif
acd26225
KG
5805
5806 ;
5807 return 0;
5808}
5809_ACEOF
5213506e
RW
5810if ac_fn_c_try_compile "$LINENO"; then :
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5812$as_echo "yes" >&6; }
acd26225 5813else
5213506e
RW
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5815$as_echo "buggy but acceptable" >&6; }
acd26225 5816fi
5213506e 5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5818else
5213506e
RW
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820$as_echo "no" >&6; }; have_gmp=no
acd26225 5821fi
5213506e 5822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5823 fi
5824
5825 # Check for the MPC header version.
3a5729ea 5826 if test x"$have_gmp" = xyes ; then
362c6d2f 5827 # Check for the recommended and required versions of MPC.
5213506e
RW
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5829$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5831/* end confdefs.h. */
5832#include <mpc.h>
5833int
5834main ()
5835{
5836
362c6d2f
KG
5837 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5838 choke me
5839 #endif
5840
5841 ;
5842 return 0;
5843}
5844_ACEOF
5845if ac_fn_c_try_compile "$LINENO"; then :
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847/* end confdefs.h. */
5848#include <mpc.h>
5849int
5850main ()
5851{
5852
5853 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5854 choke me
5855 #endif
5856
5857 ;
5858 return 0;
5859}
5860_ACEOF
5213506e
RW
5861if ac_fn_c_try_compile "$LINENO"; then :
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5863$as_echo "yes" >&6; }
362c6d2f
KG
5864else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5866$as_echo "buggy but acceptable" >&6; }
5867fi
5868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5869else
5213506e 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5871$as_echo "no" >&6; }; have_gmp=no
acd26225 5872fi
5213506e 5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5874 fi
5875
5876 # Now check the MPFR library.
5877 if test x"$have_gmp" = xyes; then
5878 saved_LIBS="$LIBS"
5879 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5881$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5883/* end confdefs.h. */
3a5729ea 5884#include <mpc.h>
acd26225
KG
5885int
5886main ()
5887{
5888
5889 mpfr_t n;
5890 mpfr_t x;
3a5729ea 5891 mpc_t c;
acd26225
KG
5892 int t;
5893 mpfr_init (n);
5894 mpfr_init (x);
90ca6847
TB
5895 mpfr_atan2 (n, n, x, MPFR_RNDN);
5896 mpfr_erfc (n, x, MPFR_RNDN);
5897 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
5898 mpfr_clear(n);
5899 mpfr_clear(x);
5900 mpc_init2 (c, 53);
5901 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5902 mpc_cosh (c, c, MPC_RNDNN);
5903 mpc_pow (c, c, c, MPC_RNDNN);
5904 mpc_acosh (c, c, MPC_RNDNN);
5905 mpc_clear (c);
1c710c3c
DJ
5906
5907 ;
5908 return 0;
5909}
5910_ACEOF
5213506e
RW
5911if ac_fn_c_try_link "$LINENO"; then :
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5913$as_echo "yes" >&6; }
1c710c3c 5914else
5213506e
RW
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5917fi
5213506e
RW
5918rm -f core conftest.err conftest.$ac_objext \
5919 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5920 LIBS="$saved_LIBS"
5921 fi
5922
e69bf64b 5923 CFLAGS="$saved_CFLAGS"
6de9cd9a 5924
362c6d2f
KG
5925# The library versions listed in the error message below should match
5926# the HARD-minimums enforced above.
e69bf64b 5927 if test x$have_gmp != xyes; then
8be34204 5928 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
5929Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5930their locations. Source code for these libraries can be found at
5931their respective hosting sites as well as at
aeebd94c 5932https://gcc.gnu.org/pub/gcc/infrastructure/. See also
3a5729ea
KG
5933http://gcc.gnu.org/install/prerequisites.html for additional info. If
5934you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5935make sure that you have installed both the libraries and the header
5936files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5937 fi
70ec446f
KG
5938fi
5939
acd26225
KG
5940# Flags needed for both GMP, MPFR and/or MPC.
5941
5942
6de9cd9a
DN
5943
5944
5945
9e3eba15 5946
0ff2d841 5947
0b21f5d3 5948# Libraries to use for stage1 or when not bootstrapping.
00020c16 5949
0b21f5d3
EB
5950# Check whether --with-stage1-libs was given.
5951if test "${with_stage1_libs+set}" = set; then :
5952 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5953 stage1_libs=
00020c16 5954 else
0b21f5d3 5955 stage1_libs=$withval
00020c16
ILT
5956 fi
5957else
5dc85f7e 5958 stage1_libs=
5213506e
RW
5959fi
5960
00020c16
ILT
5961
5962
aac9103b
TT
5963# Whether or not to use -static-libstdc++ and -static-libgcc. The
5964# default is yes if gcc is being built; no otherwise. The reason for
5965# this default is that gdb is sometimes linked against GNU Source
5966# Highlight, which is a shared library that uses C++ exceptions. In
5967# this case, -static-libstdc++ will cause crashes.
5968
5969# Check whether --with-static-standard-libraries was given.
5970if test "${with_static_standard_libraries+set}" = set; then :
5971 withval=$with_static_standard_libraries;
5972else
5973 with_static_standard_libraries=auto
5974fi
5975
5976if test "$with_static_standard_libraries" = auto; then
5977 with_static_standard_libraries=$have_compiler
5978fi
5979
0b21f5d3 5980# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5981
0b21f5d3
EB
5982# Check whether --with-stage1-ldflags was given.
5983if test "${with_stage1_ldflags+set}" = set; then :
5984 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5985 stage1_ldflags=
00020c16 5986 else
0b21f5d3 5987 stage1_ldflags=$withval
00020c16
ILT
5988 fi
5989else
0b21f5d3
EB
5990 stage1_ldflags=
5991 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5992 # if supported. But if the user explicitly specified the libraries to use,
5993 # trust that they are doing what they want.
aac9103b
TT
5994 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5995 -a "$have_static_libs" = yes; then
0b21f5d3
EB
5996 stage1_ldflags="-static-libstdc++ -static-libgcc"
5997 fi
5213506e
RW
5998fi
5999
00020c16
ILT
6000
6001
5dc85f7e 6002# Libraries to use for stage2 and later builds.
00020c16 6003
5213506e
RW
6004# Check whether --with-boot-libs was given.
6005if test "${with_boot_libs+set}" = set; then :
6006 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
6007 poststage1_libs=
6008 else
6009 poststage1_libs=$withval
6010 fi
6011else
5dc85f7e 6012 poststage1_libs=
5213506e
RW
6013fi
6014
00020c16
ILT
6015
6016
ed2eaa9f
ILT
6017# Linker flags to use for stage2 and later builds.
6018
6019# Check whether --with-boot-ldflags was given.
6020if test "${with_boot_ldflags+set}" = set; then :
6021 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6022 poststage1_ldflags=
6023 else
6024 poststage1_ldflags=$withval
6025 fi
6026else
6027 poststage1_ldflags=
bec93d73
ILT
6028 # In stages 2 and 3, default to linking libstdc++ and libgcc
6029 # statically. But if the user explicitly specified the libraries to
6030 # use, trust that they are doing what they want.
6031 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
6032 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6033 fi
6034fi
6035
6036
6037
e357a5e0 6038# GCC GRAPHITE dependency isl.
4a9bb2aa 6039# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
6040
6041
33ad93b9
RG
6042# Check whether --with-isl was given.
6043if test "${with_isl+set}" = set; then :
6044 withval=$with_isl;
5213506e 6045fi
f8bf9252 6046
f8bf9252 6047
eae1a5d4 6048# Treat --without-isl as a request to disable
625afa23 6049# GRAPHITE support and skip all following checks.
eae1a5d4 6050if test "x$with_isl" != "xno"; then
e357a5e0 6051 # Check for isl
625afa23
RG
6052
6053
33ad93b9
RG
6054# Check whether --with-isl-include was given.
6055if test "${with_isl_include+set}" = set; then :
6056 withval=$with_isl_include;
5213506e
RW
6057fi
6058
f8bf9252 6059
33ad93b9
RG
6060# Check whether --with-isl-lib was given.
6061if test "${with_isl_lib+set}" = set; then :
6062 withval=$with_isl_lib;
5213506e 6063fi
f8bf9252 6064
f8bf9252 6065
33ad93b9
RG
6066 # Check whether --enable-isl-version-check was given.
6067if test "${enable_isl_version_check+set}" = set; then :
6068 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6069else
6070 ENABLE_ISL_CHECK=yes
7d32a440
SP
6071fi
6072
6073
33ad93b9
RG
6074 # Initialize isllibs and islinc.
6075 case $with_isl in
6076 no)
6077 isllibs=
6078 islinc=
6079 ;;
6080 "" | yes)
6081 ;;
6082 *)
6083 isllibs="-L$with_isl/lib"
6084 islinc="-I$with_isl/include"
6085 ;;
6086 esac
6087 if test "x${with_isl_include}" != x ; then
6088 islinc="-I$with_isl_include"
6089 fi
6090 if test "x${with_isl_lib}" != x; then
6091 isllibs="-L$with_isl_lib"
6092 fi
6093 if test "x${islinc}" = x && test "x${isllibs}" = x \
6094 && test -d ${srcdir}/isl; then
6095 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6096 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6097 ENABLE_ISL_CHECK=no
560d18d3
AK
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6099$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 6100 fi
7d32a440 6101
eae1a5d4
RG
6102 isllibs="${isllibs} -lisl"
6103
7d32a440 6104
7d32a440 6105
9847828b
RB
6106 if test "${ENABLE_ISL_CHECK}" = yes ; then
6107 _isl_saved_CFLAGS=$CFLAGS
6108 _isl_saved_LDFLAGS=$LDFLAGS
6109 _isl_saved_LIBS=$LIBS
6110
6111 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
6112 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6113 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 6114
f877b3ad
RB
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6116$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 6118/* end confdefs.h. */
f877b3ad 6119#include <isl/schedule.h>
622dbadf
BC
6120int
6121main ()
6122{
f877b3ad 6123isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
6124 ;
6125 return 0;
6126}
6127_ACEOF
6128if ac_fn_c_try_link "$LINENO"; then :
9847828b 6129 gcc_cv_isl=yes
622dbadf
BC
6130else
6131 gcc_cv_isl=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext \
6134 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6136$as_echo "$gcc_cv_isl" >&6; }
6137
560d18d3 6138 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6140$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
6141 fi
6142
9847828b
RB
6143 CFLAGS=$_isl_saved_CFLAGS
6144 LDFLAGS=$_isl_saved_LDFLAGS
6145 LIBS=$_isl_saved_LIBS
6146 fi
6147
6148
f8bf9252 6149
f8bf9252 6150
33ad93b9
RG
6151
6152
33ad93b9
RG
6153 if test "x${with_isl}" = xno; then
6154 graphite_requested=no
6155 elif test "x${with_isl}" != x \
6156 || test "x${with_isl_include}" != x \
6157 || test "x${with_isl_lib}" != x ; then
6158 graphite_requested=yes
6159 else
6160 graphite_requested=no
7d32a440 6161 fi
d789184e 6162
d789184e
SP
6163
6164
33ad93b9
RG
6165 if test "${gcc_cv_isl}" = no ; then
6166 isllibs=
6167 islinc=
6168 fi
6169
6170 if test "${graphite_requested}" = yes \
6171 && test "x${isllibs}" = x \
6172 && test "x${islinc}" = x ; then
f8bf9252 6173
22e05272 6174 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6175 fi
f8bf9252 6176
d32ef397 6177
d32ef397
AS
6178fi
6179
e357a5e0 6180# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6181if test "x$with_isl" = xno ||
625afa23 6182 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6183 noconfigdirs="$noconfigdirs isl"
625afa23 6184 islinc=
32d024bf
RG
6185fi
6186
625afa23
RG
6187
6188
6189
d7f09764
DN
6190# Check for LTO support.
6191# Check whether --enable-lto was given.
6192if test "${enable_lto+set}" = set; then :
6193 enableval=$enable_lto; enable_lto=$enableval
6194else
6195 enable_lto=yes; default_enable_lto=yes
6196fi
6197
6198
7413962d 6199
9a02962b
DK
6200
6201
6202target_elf=no
6203case $target in
6204 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6205 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 6206 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 6207 nvptx-*-none)
9a02962b
DK
6208 target_elf=no
6209 ;;
6210 *)
6211 target_elf=yes
6212 ;;
6213esac
6214
6215if test $target_elf = yes; then :
48215350
DK
6216 # ELF platforms build the lto-plugin always.
6217 build_lto_plugin=yes
9a02962b 6218
9a02962b
DK
6219else
6220 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6221 case $target in
deeba76a 6222 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6223 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6224 *) enable_lto=no ;;
6225 esac
9a02962b 6226 else
db50fe7d
IS
6227 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6228 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6229 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6230 # warn during gcc/ subconfigure; unless you're bootstrapping with
6231 # -flto it won't be needed until after installation anyway.
6232 case $target in
9e530bcd 6233 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 6234 *) if test x"$enable_lto" = x"yes"; then
22e05272 6235 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
6236 fi
6237 ;;
6238 esac
6239 fi
1cd0b716 6240 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6241 # Build it unless LTO was explicitly disabled.
1cd0b716 6242 case $target in
48215350 6243 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6244 *) ;;
6245 esac
48215350 6246
9a02962b
DK
6247fi
6248
d7f09764 6249
45b3824d
TS
6250# Check whether --enable-linker-plugin-configure-flags was given.
6251if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6252 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6253else
6254 extra_linker_plugin_configure_flags=
6255fi
6256
6257
6258# Check whether --enable-linker-plugin-flags was given.
6259if test "${enable_linker_plugin_flags+set}" = set; then :
6260 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6261else
6262 extra_linker_plugin_flags=
6263fi
6264
6265
6266
cdfee50a
NS
6267# Enable --enable-host-shared.
6268# Checked early to determine whether jit is an 'all' language
6269# Check whether --enable-host-shared was given.
6270if test "${enable_host_shared+set}" = set; then :
6271 enableval=$enable_host_shared; host_shared=$enableval
6272else
6273 host_shared=no
6274fi
6275
6276
f8bf9252 6277
0823efed 6278# By default, C and C++ are the only stage 1 languages.
e1888513 6279stage1_languages=,c,
2805b53a 6280
00020c16 6281# Target libraries that we bootstrap.
ad1e5170 6282bootstrap_target_libs=,target-libgcc,
00020c16 6283
55ffb5ed
NN
6284# Figure out what language subdirectories are present.
6285# Look if the user specified --enable-languages="..."; if not, use
6286# the environment variable $LANGUAGES if defined. $LANGUAGES might
6287# go away some day.
6288# NB: embedded tabs in this IF block -- do not untabify
6289if test -d ${srcdir}/gcc; then
6290 if test x"${enable_languages+set}" != xset; then
6291 if test x"${LANGUAGES+set}" = xset; then
6292 enable_languages="${LANGUAGES}"
6b1786aa 6293 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 6294 else
cdfee50a 6295 enable_languages=default
55ffb5ed
NN
6296 fi
6297 else
6298 if test x"${enable_languages}" = x ||
6299 test x"${enable_languages}" = xyes;
6300 then
6b1786aa 6301 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6302 exit 1
6303 fi
6304 fi
6305 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6306
7f26dfa3
FXC
6307 # 'f95' is the old name for the 'fortran' language. We issue a warning
6308 # and make the substitution.
6309 case ,${enable_languages}, in
6310 *,f95,*)
6b1786aa 6311 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6312 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6313 ;;
6314 esac
6315
0823efed
DN
6316 # If bootstrapping, C++ must be enabled.
6317 case ",$enable_languages,:$enable_bootstrap" in
6318 *,c++,*:*) ;;
6319 *:yes)
ff3ac0f4
ILT
6320 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6321 enable_languages="${enable_languages},c++"
6322 else
22e05272 6323 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6324 fi
6325 ;;
6326 esac
6327
55ffb5ed
NN
6328 # First scan to see if an enabled language requires some other language.
6329 # We assume that a given config-lang.in will list all the language
6330 # front ends it requires, even if some are required indirectly.
6331 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6332 case ${lang_frag} in
6333 ..) ;;
6334 # The odd quoting in the next line works around
6335 # an apparent bug in bash 1.12 on linux.
6336 ${srcdir}/gcc/[*]/config-lang.in) ;;
6337 *)
69ecd18f
ILT
6338 # From the config-lang.in, get $language, $lang_requires, and
6339 # $lang_requires_boot_languages.
55ffb5ed
NN
6340 language=
6341 lang_requires=
69ecd18f 6342 lang_requires_boot_languages=
d4360477
NS
6343 # set srcdir during sourcing lang_frag to the gcc dir.
6344 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6345 # polutes this shell
6346 saved_srcdir=${srcdir}
6347 srcdir=${srcdir}/gcc . ${lang_frag}
6348 srcdir=${saved_srcdir}
69ecd18f 6349 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6350 case ,${enable_languages}, in
6351 *,$other,*) ;;
cdfee50a 6352 *,default,*) ;;
55ffb5ed
NN
6353 *,all,*) ;;
6354 *,$language,*)
6355 echo " \`$other' language required by \`$language'; enabling" 1>&2
6356 enable_languages="${enable_languages},${other}"
6357 ;;
6358 esac
6359 done
69ecd18f
ILT
6360 for other in ${lang_requires_boot_languages} ; do
6361 if test "$other" != "c"; then
6362 case ,${enable_stage1_languages}, in
6363 *,$other,*) ;;
cdfee50a 6364 *,default,*) ;;
69ecd18f
ILT
6365 *,all,*) ;;
6366 *)
6367 case ,${enable_languages}, in
6368 *,$language,*)
6369 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6370 enable_stage1_languages="$enable_stage1_languages,${other}"
6371 ;;
6372 esac
6373 ;;
6374 esac
6375 fi
6376 done
55ffb5ed
NN
6377 ;;
6378 esac
6379 done
6380
e1888513 6381 new_enable_languages=,c,
d7f09764
DN
6382
6383 # If LTO is enabled, add the LTO front end.
d7f09764 6384 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6385 case ,${enable_languages}, in
6386 *,lto,*) ;;
6387 *) enable_languages="${enable_languages},lto" ;;
6388 esac
1cd0b716 6389 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6390 configdirs="$configdirs lto-plugin"
d7f09764
DN
6391 fi
6392 fi
6393
426c1eb0
TS
6394 # If we're building an offloading compiler, add the LTO front end.
6395 if test x"$enable_as_accelerator_for" != x ; then
6396 case ,${enable_languages}, in
6397 *,lto,*) ;;
6398 *) enable_languages="${enable_languages},lto" ;;
6399 esac
6400 fi
6401
cdfee50a 6402 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6403 potential_languages=,c,
55ffb5ed 6404
4da3b0f8
ILT
6405 enabled_target_libs=
6406 disabled_target_libs=
6407
55ffb5ed
NN
6408 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6409 case ${lang_frag} in
6410 ..) ;;
6411 # The odd quoting in the next line works around
6412 # an apparent bug in bash 1.12 on linux.
6413 ${srcdir}/gcc/[*]/config-lang.in) ;;
6414 *)
1c710c3c 6415 # From the config-lang.in, get $language, $target_libs,
2805b53a 6416 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6417 language=
6418 target_libs=
6419 lang_dirs=
1546bb64 6420 subdir_requires=
e1888513
PB
6421 boot_language=no
6422 build_by_default=yes
d4360477
NS
6423 # set srcdir during sourcing. See above about save & restore
6424 saved_srcdir=${srcdir}
6425 srcdir=${srcdir}/gcc . ${lang_frag}
6426 srcdir=${saved_srcdir}
e1888513
PB
6427 if test x${language} = x; then
6428 echo "${lang_frag} doesn't set \$language." 1>&2
6429 exit 1
6430 fi
6431
78767fd9 6432 if test "$language" = "c++"; then
0823efed 6433 boot_language=yes
00020c16
ILT
6434 fi
6435
178f875a 6436 add_this_lang=no
cdfee50a
NS
6437 # C is always enabled, so no need to add it again
6438 if test "$language" != "c"; then
6439 case ,${enable_languages}, in
6440 *,${language},*)
6441 # Language was explicitly selected; include it
d4a10d0a 6442 add_this_lang=yes
cdfee50a
NS
6443 ;;
6444 *,all,*)
6445 # All languages are enabled
6446 add_this_lang=all
6447 ;;
6448 *,default,*)
6449 # 'default' was selected, select it if it is a default language
178f875a 6450 add_this_lang=${build_by_default}
cdfee50a
NS
6451 ;;
6452 esac
6453 fi
6de9cd9a 6454
1546bb64 6455 # Disable languages that need other directories if these aren't available.
95695ad3 6456 for i in $subdir_requires; do
b6348cb3 6457 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
6458 case ${add_this_lang} in
6459 yes)
1546bb64 6460 # Specifically requested language; tell them.
22e05272 6461 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 6462 ;;
cdfee50a
NS
6463 all)
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6465$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6466 add_this_lang=unsupported
6467 ;;
1546bb64
PB
6468 *)
6469 # Silently disable.
e1888513 6470 add_this_lang=unsupported
1546bb64
PB
6471 ;;
6472 esac
6473 done
6474
e1888513 6475 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
6476 case ${add_this_lang}:${language}:${have_gnat} in
6477 yes:ada:no)
e1888513 6478 # Specifically requested language; tell them.
22e05272 6479 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 6480 ;;
cdfee50a
NS
6481 all:ada:no)
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6483$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6484 add_this_lang=unsupported
6485 ;;
e1888513
PB
6486 *:ada:no)
6487 # Silently disable.
6488 add_this_lang=unsupported
6489 ;;
6490 esac
6491
cdfee50a
NS
6492 # Disable jit if -enable-host-shared not specified
6493 case ${add_this_lang}:${language}:${host_shared} in
6494 yes:jit:no)
6495 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 6496 as_fn_error $? "
cdfee50a
NS
6497Enabling language \"jit\" requires --enable-host-shared.
6498
6499--enable-host-shared typically slows the rest of the compiler down by
6500a few %, so you must explicitly enable it.
6501
6502If you want to build both the jit and the regular compiler, it is often
6503best to do this via two separate configure/builds, in separate
6504directories, to avoid imposing the performance cost of
6505--enable-host-shared on the regular compiler." "$LINENO" 5
6506 ;;
6507 all:jit:no)
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6509$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6510 add_this_lang=unsupported
6511 ;;
6512 *:jit:no)
6513 # Silently disable.
6514 add_this_lang=unsupported
6515 ;;
6516 esac
6517
6518 # Disable a language that is unsupported by the target.
6519 case "${add_this_lang}: $unsupported_languages " in
6520 no:*) ;;
6521 unsupported:*) ;;
6522 *:*" $language "*)
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6524$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 6525 add_this_lang=unsupported
4fab7234
HPN
6526 ;;
6527 esac
6528
6de9cd9a 6529 case $add_this_lang in
e1888513 6530 unsupported)
55ffb5ed 6531 # Remove language-dependent dirs.
4da3b0f8
ILT
6532 disabled_target_libs="$disabled_target_libs $target_libs"
6533 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6534 ;;
e1888513
PB
6535 no)
6536 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6537 disabled_target_libs="$disabled_target_libs $target_libs"
6538 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6539 potential_languages="${potential_languages}${language},"
6540 ;;
cdfee50a 6541 all|yes)
e1888513
PB
6542 new_enable_languages="${new_enable_languages}${language},"
6543 potential_languages="${potential_languages}${language},"
2805b53a 6544 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6545 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6546 case "${boot_language}:,$enable_stage1_languages," in
6547 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6548 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6549 case ",$stage1_languages," in
6550 *,$language,* | ,yes, | ,all,) ;;
6551 *) stage1_languages="${stage1_languages}${language}," ;;
6552 esac
00020c16
ILT
6553 # We need to bootstrap any supporting libraries.
6554 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6555 ;;
6556 esac
6557 ;;
55ffb5ed
NN
6558 esac
6559 ;;
6560 esac
6561 done
6562
4da3b0f8
ILT
6563 # Add target libraries which are only needed for disabled languages
6564 # to noconfigdirs.
6565 if test -n "$disabled_target_libs"; then
6566 for dir in $disabled_target_libs; do
6567 case " $enabled_target_libs " in
6568 *" ${dir} "*) ;;
6569 *) noconfigdirs="$noconfigdirs $dir" ;;
6570 esac
6571 done
6572 fi
6573
5213506e
RW
6574 # Check whether --enable-stage1-languages was given.
6575if test "${enable_stage1_languages+set}" = set; then :
6576 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6577 ,no,|,,)
6578 # Set it to something that will have no effect in the loop below
6579 enable_stage1_languages=c ;;
6580 ,yes,)
6581 enable_stage1_languages=`echo $new_enable_languages | \
6582 sed -e "s/^,//" -e "s/,$//" ` ;;
6583 *,all,*)
6584 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6585 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6586 esac
6587
6588 # Add "good" languages from enable_stage1_languages to stage1_languages,
6589 # while "bad" languages go in missing_languages. Leave no duplicates.
6590 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6591 case $potential_languages in
6592 *,$i,*)
6593 case $stage1_languages in
6594 *,$i,*) ;;
6595 *) stage1_languages="$stage1_languages$i," ;;
6596 esac ;;
6597 *)
6598 case $missing_languages in
6599 *,$i,*) ;;
6600 *) missing_languages="$missing_languages$i," ;;
6601 esac ;;
6602 esac
6603 done
5213506e
RW
6604fi
6605
e1888513
PB
6606
6607 # Remove leading/trailing commas that were added for simplicity
6608 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6609 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6610 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6611 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6612
55ffb5ed 6613 if test "x$missing_languages" != x; then
22e05272 6614 as_fn_error $? "
0cf085e4 6615The following requested languages could not be built: ${missing_languages}
5213506e 6616Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6617 fi
55ffb5ed
NN
6618 if test "x$new_enable_languages" != "x$enable_languages"; then
6619 echo The following languages will be built: ${new_enable_languages}
e1888513 6620 enable_languages="$new_enable_languages"
55ffb5ed 6621 fi
e1888513 6622
1c710c3c 6623
b2eaac4a 6624 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6625fi
6626
27079765
AH
6627# Handle --disable-<component> generically.
6628for dir in $configdirs $build_configdirs $target_configdirs ; do
6629 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6630 varname=`echo $dirname | sed -e s/+/_/g`
6631 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6632 noconfigdirs="$noconfigdirs $dir"
6633 fi
6634done
6635
43c40f3e
RO
6636# Check for Boehm's garbage collector
6637# Check whether --enable-objc-gc was given.
6638if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
6639 enableval=$enable_objc_gc;
6640fi
6641
6642
6643# Check whether --with-target-bdw-gc was given.
6644if test "${with_target_bdw_gc+set}" = set; then :
6645 withval=$with_target_bdw_gc;
6646fi
6647
6648
6649# Check whether --with-target-bdw-gc-include was given.
6650if test "${with_target_bdw_gc_include+set}" = set; then :
6651 withval=$with_target_bdw_gc_include;
6652fi
6653
6654
6655# Check whether --with-target-bdw-gc-lib was given.
6656if test "${with_target_bdw_gc_lib+set}" = set; then :
6657 withval=$with_target_bdw_gc_lib;
6658fi
6659
6660
6661case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6663$as_echo_n "checking for bdw garbage collector... " >&6; }
6664 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6666$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
6667 else
6668 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 6669 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 6670 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 6671 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
6672 else
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6674$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6675 fi
6676 fi
43c40f3e
RO
6677esac
6678
5e9d6aa4 6679# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6680case ,${enable_languages}, in
1007a55c 6681 *,c++,*)
5e9d6aa4 6682 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
6683 case "${noconfigdirs}" in
6684 *target-libstdc++-v3*)
5e9d6aa4 6685 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
6686 ;;
6687 *) ;;
6688 esac
6689 ;;
99776ebd 6690 *)
5e9d6aa4 6691 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6692 ;;
6693esac
6694
ee6a22df
L
6695# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6696# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6697# If we have the source for $noconfigdirs entries, add them to $notsupp.
6698
6699notsupp=""
6700for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6701 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6702 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6703 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6704 if test -r $srcdir/$dirname/configure ; then
6705 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6706 true
6707 else
6708 notsupp="$notsupp $dir"
6709 fi
6710 fi
6711 fi
ee6a22df
L
6712 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6713 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6714 if test -r $srcdir/$dirname/configure ; then
6715 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6716 true
6717 else
6718 notsupp="$notsupp $dir"
6719 fi
6720 fi
6721 fi
55ffb5ed
NN
6722 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6723 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6724 if test -r $srcdir/$dirname/configure ; then
6725 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6726 true
6727 else
6728 notsupp="$notsupp $dir"
6729 fi
6730 fi
6731 fi
6732done
6733
55ffb5ed
NN
6734# Quietly strip out all directories which aren't configurable in this tree.
6735# This relies on all configurable subdirectories being autoconfiscated, which
6736# is now the case.
23f6b2f9
PB
6737build_configdirs_all="$build_configdirs"
6738build_configdirs=
6739for i in ${build_configdirs_all} ; do
1c710c3c 6740 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6741 if test -f ${srcdir}/$j/configure ; then
6742 build_configdirs="${build_configdirs} $i"
6743 fi
6744done
6745
55ffb5ed
NN
6746configdirs_all="$configdirs"
6747configdirs=
6748for i in ${configdirs_all} ; do
6749 if test -f ${srcdir}/$i/configure ; then
6750 configdirs="${configdirs} $i"
6751 fi
6752done
23f6b2f9 6753
55ffb5ed
NN
6754target_configdirs_all="$target_configdirs"
6755target_configdirs=
6756for i in ${target_configdirs_all} ; do
1c710c3c 6757 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6758 if test -f ${srcdir}/$j/configure ; then
6759 target_configdirs="${target_configdirs} $i"
6760 fi
6761done
6762
45b3824d
TS
6763# libiberty-linker-plugin is special: it doesn't have its own source directory,
6764# so we have to add it after the preceding checks.
6765if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6766then
6767 case " $configdirs " in
6768 *" libiberty "*)
6769 # If we can build libiberty, we can also build libiberty-linker-plugin.
6770 configdirs="$configdirs libiberty-linker-plugin"
6771 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6772 --with-libiberty=../libiberty-linker-plugin";;
6773 *)
22e05272 6774 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
6775 esac
6776fi
6777
fca38047
TS
6778# Sometimes we have special requirements for the host libiberty.
6779extra_host_libiberty_configure_flags=
1c01ebf6 6780extra_host_zlib_configure_flags=
fca38047
TS
6781case " $configdirs " in
6782 *" lto-plugin "* | *" libcc1 "*)
6783 # When these are to be built as shared libraries, the same applies to
6784 # libiberty.
6785 extra_host_libiberty_configure_flags=--enable-shared
6786 ;;
1c01ebf6
L
6787 *" bfd "*)
6788 # When bfd is to be built as a shared library, the same applies to
6789 # zlib.
6790 if test "$enable_shared" = "yes"; then
6791 extra_host_zlib_configure_flags=--enable-host-shared
6792 fi
6793 ;;
fca38047
TS
6794esac
6795
6796
1c01ebf6 6797
55ffb5ed
NN
6798# Produce a warning message for the subdirs we can't configure.
6799# This isn't especially interesting in the Cygnus tree, but in the individual
6800# FSF releases, it's important to let people know when their machine isn't
6801# supported by the one or two programs in a package.
6802
6803if test -n "${notsupp}" && test -z "${norecursion}" ; then
6804 # If $appdirs is non-empty, at least one of those directories must still
6805 # be configured, or we error out. (E.g., if the gas release supports a
6806 # specified target in some subdirs but not the gas subdir, we shouldn't
6807 # pretend that all is well.)
6808 if test -n "$appdirs" ; then
6809 for dir in $appdirs ; do
6810 if test -r $dir/Makefile.in ; then
6811 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6812 appdirs=""
6813 break
6814 fi
23f6b2f9 6815 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6816 appdirs=""
6817 break
6818 fi
6819 fi
6820 done
6821 if test -n "$appdirs" ; then
6822 echo "*** This configuration is not supported by this package." 1>&2
6823 exit 1
6824 fi
6825 fi
6826 # Okay, some application will build, or we don't care to check. Still
6827 # notify of subdirs not getting built.
6828 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6829 echo " ${notsupp}" 1>&2
6830 echo " (Any other directories should still work fine.)" 1>&2
6831fi
6832
6833case "$host" in
6834 *msdosdjgpp*)
6835 enable_gdbtk=no ;;
6836esac
6837
c3a86da9
DJ
6838# To find our prefix, in gcc_cv_tool_prefix.
6839
6840# The user is always right.
6841if test "${PATH_SEPARATOR+set}" != set; then
6842 echo "#! /bin/sh" >conf$$.sh
6843 echo "exit 0" >>conf$$.sh
6844 chmod +x conf$$.sh
6845 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6846 PATH_SEPARATOR=';'
6847 else
6848 PATH_SEPARATOR=:
6849 fi
6850 rm -f conf$$.sh
6851fi
6852
6853
3c36aa6b
JJ
6854 get_gcc_base_ver="cat"
6855
6856# Check whether --with-gcc-major-version-only was given.
6857if test "${with_gcc_major_version_only+set}" = set; then :
6858 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 6859 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
6860 fi
6861
6862fi
6863
6864
6865
6866
6867
c3a86da9
DJ
6868
6869if test "x$exec_prefix" = xNONE; then
6870 if test "x$prefix" = xNONE; then
6871 gcc_cv_tool_prefix=$ac_default_prefix
6872 else
6873 gcc_cv_tool_prefix=$prefix
6874 fi
6875else
6876 gcc_cv_tool_prefix=$exec_prefix
6877fi
6878
6879# If there is no compiler in the tree, use the PATH only. In any
6880# case, if there is no compiler in the tree nobody should use
6881# AS_FOR_TARGET and LD_FOR_TARGET.
6882if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
6883 if test x$with_gcc_major_version_only = xyes ; then
6884 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6885 else
6886 gcc_version=`cat $srcdir/gcc/BASE-VER`
6887 fi
c3a86da9
DJ
6888 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6889 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6890 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6891 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6892 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6893 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6894else
6895 gcc_cv_tool_dirs=
6896fi
6897
6898if test x$build = x$target && test -n "$md_exec_prefix"; then
6899 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6900fi
6901
6902
6903
55ffb5ed
NN
6904copy_dirs=
6905
1c710c3c 6906
5213506e
RW
6907# Check whether --with-build-sysroot was given.
6908if test "${with_build_sysroot+set}" = set; then :
6909 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6910 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6911 fi
6912else
6913 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6914fi
526635cb
MM
6915
6916
c8aea42c 6917
5213506e
RW
6918
6919# Check whether --with-debug-prefix-map was given.
6920if test "${with_debug_prefix_map+set}" = set; then :
6921 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6922 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6923 for debug_map in $withval; do
6924 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6925 done
6926 fi
6927else
6928 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6929fi
6930
c8aea42c
PB
6931
6932
1c8bd6a3
PB
6933# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6934# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6935# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6936# We want to ensure that TARGET libraries (which we know are built with
6937# gcc) are built with "-O2 -g", so include those options when setting
6938# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6939if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6940 if test "x${is_cross_compiler}" = xyes; then
6941 CFLAGS_FOR_TARGET="-g -O2"
6942 else
6943 CFLAGS_FOR_TARGET=$CFLAGS
6944 case " $CFLAGS " in
6945 *" -O2 "*) ;;
6946 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6947 esac
6948 case " $CFLAGS " in
6949 *" -g "* | *" -g3 "*) ;;
6950 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6951 esac
6952 fi
1c8bd6a3
PB
6953fi
6954
6955
6956if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6957 if test "x${is_cross_compiler}" = xyes; then
6958 CXXFLAGS_FOR_TARGET="-g -O2"
6959 else
6960 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6961 case " $CXXFLAGS " in
6962 *" -O2 "*) ;;
6963 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6964 esac
6965 case " $CXXFLAGS " in
6966 *" -g "* | *" -g3 "*) ;;
6967 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6968 esac
6969 fi
1c8bd6a3
PB
6970fi
6971
6972
6f57bdf6
DK
6973
6974
55ffb5ed
NN
6975# Handle --with-headers=XXX. If the value is not "yes", the contents of
6976# the named directory are copied to $(tooldir)/sys-include.
6977if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6978 if test x${is_cross_compiler} = xno ; then
6979 echo 1>&2 '***' --with-headers is only supported when cross compiling
6980 exit 1
6981 fi
6982 if test x"${with_headers}" != xyes ; then
c3a86da9 6983 x=${gcc_cv_tool_prefix}
1c710c3c 6984 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6985 fi
6986fi
6987
6988# Handle --with-libs=XXX. If the value is not "yes", the contents of
6989# the name directories are copied to $(tooldir)/lib. Multiple directories
6990# are permitted.
6991if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6992 if test x${is_cross_compiler} = xno ; then
6993 echo 1>&2 '***' --with-libs is only supported when cross compiling
6994 exit 1
6995 fi
6996 if test x"${with_libs}" != xyes ; then
6997 # Copy the libraries in reverse order, so that files in the first named
6998 # library override files in subsequent libraries.
c3a86da9 6999 x=${gcc_cv_tool_prefix}
55ffb5ed 7000 for l in ${with_libs}; do
1c710c3c 7001 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
7002 done
7003 fi
7004fi
7005
d7f09764 7006# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
7007#
7008# This is done by determining whether or not the appropriate directory
7009# is available, and by checking whether or not specific configurations
7010# have requested that this magic not happen.
1c710c3c
DJ
7011#
7012# The command line options always override the explicit settings in
6b1786aa 7013# configure.ac, and the settings in configure.ac override this magic.
e8b05380 7014#
1c710c3c 7015# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 7016# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
7017# --without-gnu-ld options for the configure script. Similarly, if
7018# the default is to use the included zlib and you don't want to do that,
7019# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
7020
7021if test x${use_gnu_as} = x &&
7022 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7023 with_gnu_as=yes
7024 extra_host_args="$extra_host_args --with-gnu-as"
7025fi
7026
7027if test x${use_gnu_ld} = x &&
5afab7ad 7028 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
7029 with_gnu_ld=yes
7030 extra_host_args="$extra_host_args --with-gnu-ld"
7031fi
7032
d7f09764
DN
7033if test x${use_included_zlib} = x &&
7034 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7035 :
7036else
7037 with_system_zlib=yes
7038 extra_host_args="$extra_host_args --with-system-zlib"
7039fi
7040
e8b05380
PB
7041# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7042# can detect this case.
7043
7044if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7045 with_newlib=yes
7046 extra_host_args="$extra_host_args --with-newlib"
7047fi
7048
55ffb5ed
NN
7049# Handle ${copy_dirs}
7050set fnord ${copy_dirs}
7051shift
7052while test $# != 0 ; do
7053 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7054 :
7055 else
7056 echo Copying $1 to $2
7057
7058 # Use the install script to create the directory and all required
7059 # parent directories.
7060 if test -d $2 ; then
7061 :
7062 else
7063 echo >config.temp
7064 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7065 fi
7066
7067 # Copy the directory, assuming we have tar.
7068 # FIXME: Should we use B in the second tar? Not all systems support it.
7069 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7070
7071 # It is the responsibility of the user to correctly adjust all
7072 # symlinks. If somebody can figure out how to handle them correctly
7073 # here, feel free to add the code.
7074
7075 echo $1 > $2/COPIED
7076 fi
7077 shift; shift
7078done
7079
e8b05380
PB
7080# Determine a target-dependent exec_prefix that the installed
7081# gcc will search in. Keep this list sorted by triplet, with
7082# the *-*-osname triplets last.
7083md_exec_prefix=
7084case "${target}" in
30b74385 7085 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
7086 md_exec_prefix=/dev/env/DJDIR/bin
7087 ;;
e8b05380 7088 *-*-hpux* | \
e8b05380 7089 *-*-nto-qnx* | \
6de66370 7090 *-*-solaris2*)
e8b05380
PB
7091 md_exec_prefix=/usr/ccs/bin
7092 ;;
7093esac
7094
671aa708
NN
7095extra_arflags_for_target=
7096extra_nmflags_for_target=
7097extra_ranlibflags_for_target=
7098target_makefile_frag=/dev/null
7099case "${target}" in
58e24147
AM
7100 spu-*-*)
7101 target_makefile_frag="config/mt-spu"
7102 ;;
d896cc4d 7103 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
7104 target_makefile_frag="config/mt-sde"
7105 ;;
1ec3b87b
RS
7106 mipsisa*-*-elfoabi*)
7107 target_makefile_frag="config/mt-mips-elfoabi"
7108 ;;
08d0963a
RS
7109 mips*-*-*linux* | mips*-*-gnu*)
7110 target_makefile_frag="config/mt-mips-gnu"
7111 ;;
707f1839
SL
7112 nios2-*-elf*)
7113 target_makefile_frag="config/mt-nios2-elf"
7114 ;;
76052545
EB
7115 *-*-linux-android*)
7116 target_makefile_frag="config/mt-android"
7117 ;;
416ac4d4 7118 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 7119 target_makefile_frag="config/mt-gnu"
671aa708
NN
7120 ;;
7121 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 7122 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
7123 # commands to handle both 32-bit and 64-bit objects. These flags are
7124 # harmless if we're using GNU nm or ar.
7125 extra_arflags_for_target=" -X32_64"
7126 extra_nmflags_for_target=" -B -X32_64"
7127 ;;
671aa708
NN
7128esac
7129
7130alphaieee_frag=/dev/null
7131case $target in
7132 alpha*-*-*)
7133 # This just makes sure to use the -mieee option to build target libs.
7134 # This should probably be set individually by each library.
7135 alphaieee_frag="config/mt-alphaieee"
7136 ;;
7137esac
7138
7139# If --enable-target-optspace always use -Os instead of -O2 to build
7140# the target libraries, similarly if it is not specified, use -Os
7141# on selected platforms.
7142ospace_frag=/dev/null
7143case "${enable_target_optspace}:${target}" in
7144 yes:*)
7145 ospace_frag="config/mt-ospace"
7146 ;;
7147 :d30v-*)
7148 ospace_frag="config/mt-d30v"
7149 ;;
d9063947 7150 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
7151 ospace_frag="config/mt-ospace"
7152 ;;
7153 no:* | :*)
7154 ;;
7155 *)
7156 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7157 ;;
7158esac
7159
671aa708
NN
7160# Some systems (e.g., one of the i386-aix systems the gas testers are
7161# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7162tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7163build_tooldir=${tooldir}
7164
671aa708
NN
7165# Create a .gdbinit file which runs the one in srcdir
7166# and tells GDB to look there for source files.
7167
7168if test -r ${srcdir}/.gdbinit ; then
7169 case ${srcdir} in
7170 .) ;;
7171 *) cat > ./.gdbinit <<EOF
7172# ${NO_EDIT}
7173dir ${srcdir}
7174dir .
7175source ${srcdir}/.gdbinit
7176EOF
7177 ;;
7178 esac
7179fi
7180
671aa708
NN
7181# Make sure that the compiler is able to generate an executable. If it
7182# can't, we are probably in trouble. We don't care whether we can run the
7183# executable--we might be using a cross compiler--we only care whether it
7184# can be created. At this point the main configure script has set CC.
7185we_are_ok=no
7186echo "int main () { return 0; }" > conftest.c
7187${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7188if test $? = 0 ; then
7189 if test -s conftest || test -s conftest.exe ; then
7190 we_are_ok=yes
7191 fi
1c710c3c 7192fi
671aa708
NN
7193case $we_are_ok in
7194 no)
7195 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7196 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7197 rm -f conftest*
7198 exit 1
7199 ;;
7200esac
7201rm -f conftest*
7202
d89f0ad6 7203# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7204case "${host}" in
7205 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7206 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7207 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7208 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7209esac
7210
d89f0ad6
AL
7211# On systems where the dynamic library environment variable is PATH,
7212# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7213# built executables to PATH.
7214if test "$RPATH_ENVVAR" = PATH; then
7215 GCC_SHLIB_SUBDIR=/shlib
7216else
7217 GCC_SHLIB_SUBDIR=
7218fi
7219
beeda1d9
JJ
7220# Adjust the toplevel makefile according to whether bootstrap was selected.
7221case $enable_bootstrap in
7222 yes)
7223 bootstrap_suffix=bootstrap
7224 BUILD_CONFIG=bootstrap-debug
7225 ;;
7226 no)
7227 bootstrap_suffix=no-bootstrap
7228 BUILD_CONFIG=
7229 ;;
7230esac
7231
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7233$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7234
7235
7236# Check whether --with-build-config was given.
7237if test "${with_build_config+set}" = set; then :
7238 withval=$with_build_config; case $with_build_config in
7239 yes) with_build_config= ;;
7240 no) with_build_config= BUILD_CONFIG= ;;
7241 esac
7242fi
7243
7244
7245if test "x${with_build_config}" != x; then
7246 BUILD_CONFIG=$with_build_config
7247else
7248 case $BUILD_CONFIG in
7249 bootstrap-debug)
7250 if echo "int f (void) { return 0; }" > conftest.c &&
7251 ${CC} -c conftest.c &&
7252 mv conftest.o conftest.o.g0 &&
7253 ${CC} -c -g conftest.c &&
7254 mv conftest.o conftest.o.g &&
7255 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7256 :
7257 else
7258 BUILD_CONFIG=
7259 fi
7260 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7261 ;;
7262 esac
7263fi
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7265$as_echo "$BUILD_CONFIG" >&6; }
7266
7267
7268# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7270$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7271# Check whether --enable-vtable-verify was given.
7272if test "${enable_vtable_verify+set}" = set; then :
7273 enableval=$enable_vtable_verify; case "$enableval" in
7274 yes) enable_vtable_verify=yes ;;
7275 no) enable_vtable_verify=no ;;
7276 *) enable_vtable_verify=no;;
7277 esac
7278else
7279 enable_vtable_verify=no
7280fi
7281
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7283$as_echo "$enable_vtable_verify" >&6; }
7284
671aa708
NN
7285# Record target_configdirs and the configure arguments for target and
7286# build configuration in Makefile.
7287target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7288build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7289bootstrap_fixincludes=no
671aa708 7290
ad1e5170
JR
7291# If we are building libgomp, bootstrap it.
7292if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7293 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7294fi
7295
beeda1d9
JJ
7296# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7297# or bootstrap-ubsan, bootstrap it.
7298if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7299 case "$BUILD_CONFIG" in
7300 *bootstrap-asan* | *bootstrap-ubsan* )
7301 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7302 bootstrap_fixincludes=yes
beeda1d9
JJ
7303 ;;
7304 esac
ac8701fe
L
7305fi
7306
beeda1d9
JJ
7307# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7308if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7309 test "$enable_vtable_verify" != no; then
2077db1b
CT
7310 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7311fi
7312
671aa708
NN
7313# Determine whether gdb needs tk/tcl or not.
7314# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7315# and in that case we want gdb to be built without tk. Ugh!
7316# In fact I believe gdb is the *only* package directly dependent on tk,
7317# so we should be able to put the 'maybe's in unconditionally and
7318# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7319# 100% sure that that's safe though.
e914a571 7320
b4f96efe 7321gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7322case "$enable_gdbtk" in
7323 no)
7324 GDB_TK="" ;;
e914a571
AC
7325 yes)
7326 GDB_TK="${gdb_tk}" ;;
671aa708 7327 *)
e914a571
AC
7328 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7329 # distro. Eventually someone will fix this and move Insight, nee
7330 # gdbtk to a separate directory.
7331 if test -d ${srcdir}/gdb/gdbtk ; then
7332 GDB_TK="${gdb_tk}"
7333 else
7334 GDB_TK=""
7335 fi
7336 ;;
671aa708 7337esac
ef9db8d5
DJ
7338CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7339INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7340
f9d09df0
TT
7341# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7342# else does, only include them if one of these is built. The Makefile
7343# provides the ordering, so it's enough here to add to the list.
7344case " ${configdirs} " in
7345 *\ gdb\ *)
7346 configdirs="${configdirs} gnulib gdbsupport"
7347 ;;
7348 *\ gdbserver\ *)
7349 configdirs="${configdirs} gnulib gdbsupport"
7350 ;;
7351esac
98e5be21 7352
60975492 7353# Strip out unwanted targets.
8b87bb96
NN
7354
7355# While at that, we remove Makefiles if we were started for recursive
7356# configuration, so that the top-level Makefile reconfigures them,
7357# like we used to do when configure itself was recursive.
8b87bb96 7358
3e54529c
RW
7359# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7360# but now we're fixing up the Makefile ourselves with the additional
7361# commands passed to AC_CONFIG_FILES. Use separate variables
7362# extrasub-{build,host,target} not because there is any reason to split
7363# the substitutions up that way, but only to remain below the limit of
7364# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
7365
7366# Do not nest @if/@endif or @unless/@endunless pairs, because
7367# configure will not warn you at all.
8b87bb96 7368
79cd2b23
RW
7369case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7370 yes:yes:*\ gold\ *:*,c++,*) ;;
7371 yes:yes:*\ gold\ *:*)
22e05272 7372 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
7373 ;;
7374esac
7375
3e54529c 7376extrasub_build=
23f6b2f9 7377for module in ${build_configdirs} ; do
5607edfd
PB
7378 if test -z "${no_recursion}" \
7379 && test -f ${build_subdir}/${module}/Makefile; then
7380 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7381 rm -f ${build_subdir}/${module}/Makefile
7382 fi
3e54529c 7383 extrasub_build="$extrasub_build
5607edfd
PB
7384/^@if build-$module\$/d
7385/^@endif build-$module\$/d
da34ca3f 7386/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 7387/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
7388/^@endif build-$module-$bootstrap_suffix\$/d
7389/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 7390done
3e54529c 7391extrasub_host=
5607edfd 7392for module in ${configdirs} ; do
a6fbc1e2 7393 if test -z "${no_recursion}"; then
f063a9ed 7394 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7395 if test -f ${file}; then
7396 echo 1>&2 "*** removing ${file} to force reconfigure"
7397 rm -f ${file}
7398 fi
7399 done
5607edfd 7400 fi
9e1c8fc1
JJ
7401 case ${module},${bootstrap_fixincludes} in
7402 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7403 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7404 esac
3e54529c 7405 extrasub_host="$extrasub_host
5607edfd
PB
7406/^@if $module\$/d
7407/^@endif $module\$/d
da34ca3f 7408/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 7409/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
7410/^@endif $module-$host_bootstrap_suffix\$/d
7411/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 7412done
3e54529c 7413extrasub_target=
5607edfd
PB
7414for module in ${target_configdirs} ; do
7415 if test -z "${no_recursion}" \
7416 && test -f ${target_subdir}/${module}/Makefile; then
7417 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7418 rm -f ${target_subdir}/${module}/Makefile
7419 fi
00020c16
ILT
7420
7421 # We only bootstrap target libraries listed in bootstrap_target_libs.
7422 case $bootstrap_target_libs in
7423 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7424 *) target_bootstrap_suffix=no-bootstrap ;;
7425 esac
7426
3e54529c 7427 extrasub_target="$extrasub_target
5607edfd
PB
7428/^@if target-$module\$/d
7429/^@endif target-$module\$/d
da34ca3f 7430/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 7431/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
7432/^@endif target-$module-$target_bootstrap_suffix\$/d
7433/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7434done
7435
3e54529c
RW
7436# Do the final fixup along with target modules.
7437extrasub_target="$extrasub_target
da34ca3f
AO
7438/^@if /,/^@endif /d
7439/^@unless /d
7440/^@endunless /d"
671aa708
NN
7441
7442# Create the serialization dependencies. This uses a temporary file.
7443
5213506e
RW
7444# Check whether --enable-serial-configure was given.
7445if test "${enable_serial_configure+set}" = set; then :
7446 enableval=$enable_serial_configure;
7447fi
ade82b16
AO
7448
7449
bf1d3e81
NN
7450case ${enable_serial_configure} in
7451 yes)
7452 enable_serial_build_configure=yes
7453 enable_serial_host_configure=yes
7454 enable_serial_target_configure=yes
7455 ;;
7456esac
7457
671aa708
NN
7458# These force 'configure's to be done one at a time, to avoid problems
7459# with contention over a shared config.cache.
7460rm -f serdep.tmp
ade82b16 7461echo '# serdep.tmp' > serdep.tmp
671aa708 7462olditem=
bf1d3e81 7463test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7464for item in ${build_configdirs} ; do
7465 case ${olditem} in
7466 "") ;;
ade82b16 7467 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7468 esac
7469 olditem=${item}
7470done
7471olditem=
bf1d3e81 7472test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7473for item in ${configdirs} ; do
7474 case ${olditem} in
7475 "") ;;
ade82b16 7476 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7477 esac
7478 olditem=${item}
7479done
7480olditem=
bf1d3e81 7481test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7482for item in ${target_configdirs} ; do
7483 case ${olditem} in
7484 "") ;;
ade82b16 7485 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7486 esac
7487 olditem=${item}
7488done
7489serialization_dependencies=serdep.tmp
7490
7491
ade82b16 7492# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7493# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7494# might not want to pass down to subconfigures. The exception being
7495# --cache-file=/dev/null, which is used to turn off the use of cache
7496# files altogether, and which should be passed on to subconfigures.
7497# Also strip program-prefix, program-suffix, and program-transform-name,
7498# so that we can pass down a consistent program-transform-name.
1c710c3c 7499baseargs=
29a63921 7500tbaseargs=
1c710c3c
DJ
7501keep_next=no
7502skip_next=no
7503eval "set -- $ac_configure_args"
44bfc3ac
DJ
7504for ac_arg
7505do
1c710c3c
DJ
7506 if test X"$skip_next" = X"yes"; then
7507 skip_next=no
7508 continue
7509 fi
7510 if test X"$keep_next" = X"yes"; then
7511 case $ac_arg in
7512 *\'*)
7513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7514 esac
7515 baseargs="$baseargs '$ac_arg'"
29a63921 7516 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7517 keep_next=no
7518 continue
7519 fi
7520
7521 # Handle separated arguments. Based on the logic generated by
7522 # autoconf 2.59.
7523 case $ac_arg in
7524 *=* | --config-cache | -C | -disable-* | --disable-* \
7525 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7526 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7527 | -with-* | --with-* | -without-* | --without-* | --x)
7528 separate_arg=no
7529 ;;
7530 -*)
7531 separate_arg=yes
7532 ;;
7533 *)
7534 separate_arg=no
7535 ;;
7536 esac
7537
29a63921
AO
7538 skip_targ=no
7539 case $ac_arg in
7540
7541 --with-* | --without-*)
7542 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7543
7544 case $libopt in
7545 *[-_]include)
7546 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7547 ;;
7548 *[-_]lib)
7549 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7550 ;;
7551 *)
7552 lib=$libopt
7553 ;;
7554 esac
7555
7556
7557 case $lib in
4a9bb2aa 7558 mpc | mpfr | gmp | isl)
29a63921
AO
7559 # If we're processing --with-$lib, --with-$lib-include or
7560 # --with-$lib-lib, for one of the libs above, and target is
7561 # different from host, don't pass the current argument to any
7562 # target library's configure.
7563 if test x$is_cross_compiler = xyes; then
7564 skip_targ=yes
7565 fi
7566 ;;
7567 esac
7568 ;;
7569 esac
7570
1c710c3c 7571 case "$ac_arg" in
f1a036e4
NC
7572 --cache-file=/dev/null | \
7573 -cache-file=/dev/null )
7574 # Handled here to avoid the test to skip args below.
7575 baseargs="$baseargs '$ac_arg'"
29a63921 7576 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7577 # Assert: $separate_arg should always be no.
7578 keep_next=$separate_arg
7579 ;;
1c710c3c
DJ
7580 --no*)
7581 continue
7582 ;;
7583 --c* | \
7584 --sr* | \
7585 --ho* | \
7586 --bu* | \
7587 --t* | \
7588 --program-* | \
7589 -cache_file* | \
7590 -srcdir* | \
7591 -host* | \
7592 -build* | \
7593 -target* | \
7594 -program-prefix* | \
7595 -program-suffix* | \
7596 -program-transform-name* )
7597 skip_next=$separate_arg
7598 continue
7599 ;;
7600 -*)
7601 # An option. Add it.
7602 case $ac_arg in
7603 *\'*)
7604 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7605 esac
7606 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7607 if test X"$skip_targ" = Xno; then
7608 tbaseargs="$tbaseargs '$ac_arg'"
7609 fi
1c710c3c
DJ
7610 keep_next=$separate_arg
7611 ;;
7612 *)
7613 # Either a variable assignment, or a nonopt (triplet). Don't
7614 # pass it down; let the Makefile handle this.
7615 continue
7616 ;;
7617 esac
7618done
7619# Remove the initial space we just introduced and, as these will be
7620# expanded by make, quote '$'.
7621baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7622
43bb47c2
DJ
7623# Add in --program-transform-name, after --program-prefix and
7624# --program-suffix have been applied to it. Autoconf has already
7625# doubled dollar signs and backslashes in program_transform_name; we want
7626# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7627# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7628# Also, because we want to override the logic in subdir configure scripts to
7629# choose program_transform_name, replace any s,x,x, with s,y,y,.
7630sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7631${program_transform_name}
7632EOF_SED
7633gcc_transform_name=`cat conftestsed.out`
7634rm -f conftestsed.out
7635baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7636tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7637if test "$silent" = yes; then
7638 baseargs="$baseargs --silent"
29a63921 7639 tbaseargs="$tbaseargs --silent"
d9acb717 7640fi
0115d4a3 7641baseargs="$baseargs --disable-option-checking"
29a63921 7642tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7643
ffedf511
RW
7644# Record and document user additions to sub configure arguments.
7645
7646
7647
7648
671aa708
NN
7649# For the build-side libraries, we just need to pretend we're native,
7650# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7651# desired. We can't even use the same cache file for all build-side
7652# libraries, as they're compiled differently; some with C, some with
7653# C++ or with different feature-enabling options.
7654build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7655
7656# For host modules, accept cache file option, or specification as blank.
7657case "${cache_file}" in
7658"") # empty
7659 cache_file_option="" ;;
7660/* | [A-Za-z]:[\\/]* ) # absolute path
7661 cache_file_option="--cache-file=${cache_file}" ;;
7662*) # relative path
7663 cache_file_option="--cache-file=../${cache_file}" ;;
7664esac
7665
09438bde
NN
7666# Host dirs don't like to share a cache file either, horribly enough.
7667# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7668host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7669
29a63921 7670target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7671
7672# Passing a --with-cross-host argument lets the target libraries know
7673# whether they are being built with a cross-compiler or being built
7674# native. However, it would be better to use other mechanisms to make the
7675# sorts of decisions they want to make on this basis. Please consider
7676# this option to be deprecated. FIXME.
7677if test x${is_cross_compiler} = xyes ; then
1c710c3c 7678 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7679fi
7680
79e0604d
FXC
7681# Special user-friendly check for native x86_64-linux build, if
7682# multilib is not explicitly enabled.
7683case "$target:$have_compiler:$host:$target:$enable_multilib" in
7684 x86_64-*linux*:yes:$build:$build:)
e640447c 7685 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7686 dev64=no
7687 echo "int main () { return 0; }" > conftest.c
7688 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7689 if test $? = 0 ; then
7690 if test -s conftest || test -s conftest.exe ; then
7691 dev64=yes
7692 fi
7693 fi
7694 rm -f conftest*
7695 if test x${dev64} != xyes ; then
22e05272 7696 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
79e0604d
FXC
7697 fi
7698 ;;
7699esac
7700
dc683a3f
RW
7701# Default to --enable-multilib.
7702if test x${enable_multilib} = x ; then
671aa708 7703 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7704fi
671aa708
NN
7705
7706# Pass --with-newlib if appropriate. Note that target_configdirs has
7707# changed from the earlier setting of with_newlib.
7708if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7709 target_configargs="--with-newlib ${target_configargs}"
7710fi
7711
6b9eb62c
NN
7712# Different target subdirs use different values of certain variables
7713# (notably CXX). Worse, multilibs use *lots* of different values.
7714# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7715# it doesn't automatically accept command-line overrides of them.
7716# This means it's not safe for target subdirs to share a cache file,
7717# which is disgusting, but there you have it. Hopefully this can be
7718# fixed in future. It's still worthwhile to use a cache file for each
7719# directory. I think.
7720
bebcd931
MS
7721# Pass the appropriate --build, --host, --target and --cache-file arguments.
7722# We need to pass --target, as newer autoconf's requires consistency
7723# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7724target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7725
671aa708
NN
7726FLAGS_FOR_TARGET=
7727case " $target_configdirs " in
7728 *" newlib "*)
7729 case " $target_configargs " in
7730 *" --with-newlib "*)
7731 case "$target" in
5d571eaa 7732 *-cygwin*)
443e6238 7733 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7734 ;;
671aa708
NN
7735 esac
7736
7737 # If we're not building GCC, don't discard standard headers.
7738 if test -d ${srcdir}/gcc; then
7739 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7740
7741 if test "${build}" != "${host}"; then
7742 # On Canadian crosses, CC_FOR_TARGET will have already been set
7743 # by `configure', so we won't have an opportunity to add -Bgcc/
7744 # to it. This is right: we don't want to search that directory
7745 # for binaries, but we want the header files in there, so add
7746 # them explicitly.
0463992b 7747 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7748
7749 # Someone might think of using the pre-installed headers on
7750 # Canadian crosses, in case the installed compiler is not fully
7751 # compatible with the compiler being built. In this case, it
7752 # would be better to flag an error than risking having
7753 # incompatible object files being constructed. We can't
7754 # guarantee that an error will be flagged, but let's hope the
7755 # compiler will do it, when presented with incompatible header
7756 # files.
7757 fi
7758 fi
7759
7760 case "${target}-${is_cross_compiler}" in
f2a0e225 7761 i[3456789]86-*-linux*-no)
671aa708
NN
7762 # Here host == target, so we don't need to build gcc,
7763 # so we don't want to discard standard headers.
7764 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7765 ;;
7766 *)
7767 # If we're building newlib, use its generic headers last, but search
7768 # for any libc-related directories first (so make it the last -B
7769 # switch).
7770 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7771
7772 # If we're building libgloss, find the startup file, simulator library
7773 # and linker script.
7774 case " $target_configdirs " in
7775 *" libgloss "*)
7776 # Look for startup file, simulator library and maybe linker script.
7777 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7778 # Look for libnosys.a in case the target needs it.
7779 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7780 # Most targets have the linker script in the source directory.
7781 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7782 ;;
7783 esac
671aa708
NN
7784 ;;
7785 esac
7786 ;;
7787 esac
7788 ;;
7789esac
5d571eaa 7790
b91f0a41 7791case "$target" in
5d571eaa
OS
7792 x86_64-*mingw* | *-w64-mingw*)
7793 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7794 # however, use a symlink named 'mingw' in ${prefix} .
7795 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7796 ;;
7797 *-mingw*)
7798 # MinGW can't be handled as Cygwin above since it does not use newlib.
7799 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'
7800 ;;
b91f0a41 7801esac
671aa708 7802
6691a79e
ME
7803# Allow the user to override the flags for
7804# our build compiler if desired.
f019adc1
MF
7805if test x"${build}" = x"${host}" ; then
7806 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7807 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7808 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7809fi
6691a79e 7810
671aa708
NN
7811# On Canadian crosses, we'll be searching the right directories for
7812# the previously-installed cross compiler, so don't bother to add
7813# flags for directories within the install tree of the compiler
7814# being built; programs in there won't even run.
7815if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7816 # Search for pre-installed headers if nothing else fits.
9124bc53 7817 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7818fi
7819
7820if test "x${use_gnu_ld}" = x &&
7821 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7822 # Arrange for us to find uninstalled linker scripts.
215c351a 7823 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7824fi
7825
e88a2c09
DD
7826# Search for other target-specific linker scripts and such.
7827case "${target}" in
3e19841a
PB
7828 mep*)
7829 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7830 ;;
e88a2c09
DD
7831esac
7832
671aa708 7833# Makefile fragments.
7b61653a
PE
7834for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7835do
7836 eval fragval=\$$frag
7837 if test $fragval != /dev/null; then
7838 eval $frag=${srcdir}/$fragval
7839 fi
7840done
671aa708
NN
7841
7842
7843
7844
7845
7846# Miscellanea: directories, flags, etc.
7847
7848
7849
7850
7851
7852
7853
d89f0ad6 7854
23f6b2f9 7855# Build module lists & subconfigure args.
671aa708
NN
7856
7857
7858
2abefe3d
PB
7859# Host module lists & subconfigure args.
7860
7861
7862
aae29963 7863
2abefe3d
PB
7864# Target module lists & subconfigure args.
7865
7866
7867
7868# Build tools.
7869
7870
7871
0999159b
PB
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
b4c522fa 7885
2abefe3d
PB
7886# Generate default definitions for YACC, M4, LEX and other programs that run
7887# on the build machine. These are used if the Makefile can't locate these
7888# programs in objdir.
7889MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7890
7891for ac_prog in 'bison -y' byacc yacc
7892do
1c710c3c 7893 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7894set dummy $ac_prog; ac_word=$2
5213506e
RW
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7897if ${ac_cv_prog_YACC+:} false; then :
5213506e 7898 $as_echo_n "(cached) " >&6
2abefe3d
PB
7899else
7900 if test -n "$YACC"; then
7901 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7902else
1c710c3c
DJ
7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904for as_dir in $PATH
7905do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
5213506e 7908 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7910 ac_cv_prog_YACC="$ac_prog"
5213506e 7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7912 break 2
7913 fi
7914done
5213506e
RW
7915 done
7916IFS=$as_save_IFS
1c710c3c 7917
2abefe3d
PB
7918fi
7919fi
1c710c3c 7920YACC=$ac_cv_prog_YACC
2abefe3d 7921if test -n "$YACC"; then
5213506e
RW
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7923$as_echo "$YACC" >&6; }
2abefe3d 7924else
5213506e
RW
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926$as_echo "no" >&6; }
2abefe3d
PB
7927fi
7928
5213506e 7929
1c710c3c 7930 test -n "$YACC" && break
2abefe3d
PB
7931done
7932test -n "$YACC" || YACC="$MISSING bison -y"
7933
7934case " $build_configdirs " in
7935 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7936esac
7937
7938for ac_prog in bison
7939do
1c710c3c 7940 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7941set dummy $ac_prog; ac_word=$2
5213506e
RW
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7944if ${ac_cv_prog_BISON+:} false; then :
5213506e 7945 $as_echo_n "(cached) " >&6
2abefe3d
PB
7946else
7947 if test -n "$BISON"; then
7948 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7949else
1c710c3c
DJ
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
5213506e 7955 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7957 ac_cv_prog_BISON="$ac_prog"
5213506e 7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7959 break 2
7960 fi
7961done
5213506e
RW
7962 done
7963IFS=$as_save_IFS
1c710c3c 7964
2abefe3d
PB
7965fi
7966fi
1c710c3c 7967BISON=$ac_cv_prog_BISON
2abefe3d 7968if test -n "$BISON"; then
5213506e
RW
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7970$as_echo "$BISON" >&6; }
2abefe3d 7971else
5213506e
RW
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973$as_echo "no" >&6; }
2abefe3d
PB
7974fi
7975
5213506e 7976
1c710c3c 7977 test -n "$BISON" && break
2abefe3d
PB
7978done
7979test -n "$BISON" || BISON="$MISSING bison"
7980
7981case " $build_configdirs " in
7982 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7983esac
7984
7985for ac_prog in gm4 gnum4 m4
7986do
1c710c3c 7987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7988set dummy $ac_prog; ac_word=$2
5213506e
RW
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7991if ${ac_cv_prog_M4+:} false; then :
5213506e 7992 $as_echo_n "(cached) " >&6
2abefe3d
PB
7993else
7994 if test -n "$M4"; then
7995 ac_cv_prog_M4="$M4" # Let the user override the test.
7996else
1c710c3c
DJ
7997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998for as_dir in $PATH
7999do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
5213506e 8002 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8004 ac_cv_prog_M4="$ac_prog"
5213506e 8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8006 break 2
8007 fi
8008done
5213506e
RW
8009 done
8010IFS=$as_save_IFS
1c710c3c 8011
2abefe3d
PB
8012fi
8013fi
1c710c3c 8014M4=$ac_cv_prog_M4
2abefe3d 8015if test -n "$M4"; then
5213506e
RW
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8017$as_echo "$M4" >&6; }
2abefe3d 8018else
5213506e
RW
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020$as_echo "no" >&6; }
2abefe3d
PB
8021fi
8022
5213506e 8023
1c710c3c 8024 test -n "$M4" && break
2abefe3d
PB
8025done
8026test -n "$M4" || M4="$MISSING m4"
8027
8028case " $build_configdirs " in
8029 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8030esac
8031
8032for ac_prog in flex lex
8033do
1c710c3c 8034 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8035set dummy $ac_prog; ac_word=$2
5213506e
RW
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8038if ${ac_cv_prog_LEX+:} false; then :
5213506e 8039 $as_echo_n "(cached) " >&6
2abefe3d
PB
8040else
8041 if test -n "$LEX"; then
8042 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8043else
1c710c3c
DJ
8044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045for as_dir in $PATH
8046do
8047 IFS=$as_save_IFS
8048 test -z "$as_dir" && as_dir=.
5213506e 8049 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8051 ac_cv_prog_LEX="$ac_prog"
5213506e 8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8053 break 2
8054 fi
8055done
5213506e
RW
8056 done
8057IFS=$as_save_IFS
1c710c3c 8058
2abefe3d
PB
8059fi
8060fi
1c710c3c 8061LEX=$ac_cv_prog_LEX
2abefe3d 8062if test -n "$LEX"; then
5213506e
RW
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8064$as_echo "$LEX" >&6; }
2abefe3d 8065else
5213506e
RW
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067$as_echo "no" >&6; }
2abefe3d
PB
8068fi
8069
5213506e 8070
1c710c3c 8071 test -n "$LEX" && break
2abefe3d
PB
8072done
8073test -n "$LEX" || LEX="$MISSING flex"
8074
8075case " $build_configdirs " in
8076 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8077 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8078esac
8079
8080for ac_prog in flex
8081do
1c710c3c 8082 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8083set dummy $ac_prog; ac_word=$2
5213506e
RW
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8085$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8086if ${ac_cv_prog_FLEX+:} false; then :
5213506e 8087 $as_echo_n "(cached) " >&6
2abefe3d
PB
8088else
8089 if test -n "$FLEX"; then
8090 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8091else
1c710c3c
DJ
8092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093for as_dir in $PATH
8094do
8095 IFS=$as_save_IFS
8096 test -z "$as_dir" && as_dir=.
5213506e 8097 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8099 ac_cv_prog_FLEX="$ac_prog"
5213506e 8100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8101 break 2
8102 fi
8103done
5213506e
RW
8104 done
8105IFS=$as_save_IFS
1c710c3c 8106
2abefe3d
PB
8107fi
8108fi
1c710c3c 8109FLEX=$ac_cv_prog_FLEX
2abefe3d 8110if test -n "$FLEX"; then
5213506e
RW
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8112$as_echo "$FLEX" >&6; }
2abefe3d 8113else
5213506e
RW
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115$as_echo "no" >&6; }
2abefe3d
PB
8116fi
8117
5213506e 8118
1c710c3c 8119 test -n "$FLEX" && break
2abefe3d
PB
8120done
8121test -n "$FLEX" || FLEX="$MISSING flex"
8122
8123case " $build_configdirs " in
8124 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8125esac
8126
8127for ac_prog in makeinfo
8128do
1c710c3c 8129 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8130set dummy $ac_prog; ac_word=$2
5213506e
RW
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8133if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 8134 $as_echo_n "(cached) " >&6
2abefe3d
PB
8135else
8136 if test -n "$MAKEINFO"; then
8137 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8138else
1c710c3c
DJ
8139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140for as_dir in $PATH
8141do
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
5213506e 8144 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8146 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8148 break 2
8149 fi
8150done
5213506e
RW
8151 done
8152IFS=$as_save_IFS
1c710c3c 8153
2abefe3d
PB
8154fi
8155fi
1c710c3c 8156MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 8157if test -n "$MAKEINFO"; then
5213506e
RW
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8159$as_echo "$MAKEINFO" >&6; }
2abefe3d 8160else
5213506e
RW
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162$as_echo "no" >&6; }
2abefe3d
PB
8163fi
8164
5213506e 8165
1c710c3c 8166 test -n "$MAKEINFO" && break
2abefe3d
PB
8167done
8168test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8169
8170case " $build_configdirs " in
8171 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8172 *)
8173
d18ff35a 8174 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
8175 # higher, else we use the "missing" dummy.
8176 if ${MAKEINFO} --version \
d18ff35a 8177 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8178 :
8179 else
8180 MAKEINFO="$MISSING makeinfo"
8181 fi
8182 ;;
8183
8184esac
671aa708 8185
2abefe3d 8186# FIXME: expect and dejagnu may become build tools?
671aa708 8187
2abefe3d
PB
8188for ac_prog in expect
8189do
1c710c3c 8190 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8191set dummy $ac_prog; ac_word=$2
5213506e
RW
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8194if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 8195 $as_echo_n "(cached) " >&6
2abefe3d
PB
8196else
8197 if test -n "$EXPECT"; then
8198 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8199else
1c710c3c
DJ
8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201for as_dir in $PATH
8202do
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
5213506e 8205 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8207 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8209 break 2
8210 fi
8211done
5213506e
RW
8212 done
8213IFS=$as_save_IFS
1c710c3c 8214
2abefe3d
PB
8215fi
8216fi
1c710c3c 8217EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8218if test -n "$EXPECT"; then
5213506e
RW
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8220$as_echo "$EXPECT" >&6; }
2abefe3d 8221else
5213506e
RW
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223$as_echo "no" >&6; }
2abefe3d 8224fi
671aa708 8225
5213506e 8226
1c710c3c 8227 test -n "$EXPECT" && break
2abefe3d
PB
8228done
8229test -n "$EXPECT" || EXPECT="expect"
671aa708 8230
2abefe3d
PB
8231case " $configdirs " in
8232 *" expect "*)
8233 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8234 ;;
8235esac
671aa708 8236
2abefe3d
PB
8237for ac_prog in runtest
8238do
1c710c3c 8239 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8240set dummy $ac_prog; ac_word=$2
5213506e
RW
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8243if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 8244 $as_echo_n "(cached) " >&6
2abefe3d
PB
8245else
8246 if test -n "$RUNTEST"; then
8247 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8248else
1c710c3c
DJ
8249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250for as_dir in $PATH
8251do
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
5213506e 8254 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8256 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8258 break 2
8259 fi
8260done
5213506e
RW
8261 done
8262IFS=$as_save_IFS
1c710c3c 8263
2abefe3d
PB
8264fi
8265fi
1c710c3c 8266RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8267if test -n "$RUNTEST"; then
5213506e
RW
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8269$as_echo "$RUNTEST" >&6; }
2abefe3d 8270else
5213506e
RW
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272$as_echo "no" >&6; }
2abefe3d 8273fi
671aa708 8274
5213506e 8275
1c710c3c 8276 test -n "$RUNTEST" && break
2abefe3d
PB
8277done
8278test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8279
2abefe3d
PB
8280case " $configdirs " in
8281 *" dejagnu "*)
c394e891 8282 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8283 ;;
8284esac
671aa708
NN
8285
8286
671aa708 8287# Host tools.
ca9f4b81
AO
8288ncn_tool_prefix=
8289test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8290ncn_target_tool_prefix=
8291test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8292
278a7a38
AO
8293
8294
8295if test -n "$AR"; then
8296 ac_cv_prog_AR=$AR
8297elif test -n "$ac_cv_prog_AR"; then
8298 AR=$ac_cv_prog_AR
8299fi
8300
8301if test -n "$ac_cv_prog_AR"; then
8302 for ncn_progname in ar; do
8303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8304set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8307if ${ac_cv_prog_AR+:} false; then :
5213506e 8308 $as_echo_n "(cached) " >&6
278a7a38
AO
8309else
8310 if test -n "$AR"; then
8311 ac_cv_prog_AR="$AR" # Let the user override the test.
8312else
8313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314for as_dir in $PATH
8315do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
5213506e 8318 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8320 ac_cv_prog_AR="${ncn_progname}"
5213506e 8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8322 break 2
8323 fi
8324done
5213506e
RW
8325 done
8326IFS=$as_save_IFS
278a7a38
AO
8327
8328fi
8329fi
8330AR=$ac_cv_prog_AR
8331if test -n "$AR"; then
5213506e
RW
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8333$as_echo "$AR" >&6; }
278a7a38 8334else
5213506e
RW
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336$as_echo "no" >&6; }
278a7a38
AO
8337fi
8338
5213506e 8339
278a7a38
AO
8340 done
8341fi
8342
8343for ncn_progname in ar; do
2693c0b0
PB
8344 if test -n "$ncn_tool_prefix"; then
8345 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8346set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8349if ${ac_cv_prog_AR+:} false; then :
5213506e 8350 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8351else
8352 if test -n "$AR"; then
8353 ac_cv_prog_AR="$AR" # Let the user override the test.
8354else
1c710c3c
DJ
8355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356for as_dir in $PATH
8357do
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
5213506e 8360 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8362 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8364 break 2
8365 fi
8366done
5213506e
RW
8367 done
8368IFS=$as_save_IFS
1c710c3c 8369
ca9f4b81
AO
8370fi
8371fi
1c710c3c 8372AR=$ac_cv_prog_AR
ca9f4b81 8373if test -n "$AR"; then
5213506e
RW
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8375$as_echo "$AR" >&6; }
ca9f4b81 8376else
5213506e
RW
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378$as_echo "no" >&6; }
ca9f4b81
AO
8379fi
8380
5213506e 8381
2693c0b0
PB
8382 fi
8383 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8384 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8385set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8388if ${ac_cv_prog_AR+:} false; then :
5213506e 8389 $as_echo_n "(cached) " >&6
ca9f4b81 8390else
2693c0b0 8391 if test -n "$AR"; then
af71363e
AS
8392 ac_cv_prog_AR="$AR" # Let the user override the test.
8393else
1c710c3c
DJ
8394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395for as_dir in $PATH
8396do
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
5213506e 8399 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8401 ac_cv_prog_AR="${ncn_progname}"
5213506e 8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8403 break 2
8404 fi
8405done
5213506e
RW
8406 done
8407IFS=$as_save_IFS
1c710c3c 8408
ca9f4b81
AO
8409fi
8410fi
1c710c3c 8411AR=$ac_cv_prog_AR
2693c0b0 8412if test -n "$AR"; then
5213506e
RW
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8414$as_echo "$AR" >&6; }
ca9f4b81 8415else
5213506e
RW
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417$as_echo "no" >&6; }
ca9f4b81 8418fi
1c710c3c 8419
5213506e 8420
2693c0b0
PB
8421 fi
8422 test -n "$ac_cv_prog_AR" && break
8423done
8424
8425if test -z "$ac_cv_prog_AR" ; then
8426 set dummy ar
8427 if test $build = $host ; then
8428 AR="$2"
ca9f4b81 8429 else
2693c0b0 8430 AR="${ncn_tool_prefix}$2"
ca9f4b81 8431 fi
ca9f4b81
AO
8432fi
8433
278a7a38
AO
8434
8435
8436if test -n "$AS"; then
8437 ac_cv_prog_AS=$AS
8438elif test -n "$ac_cv_prog_AS"; then
8439 AS=$ac_cv_prog_AS
8440fi
8441
8442if test -n "$ac_cv_prog_AS"; then
8443 for ncn_progname in as; do
8444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8445set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8448if ${ac_cv_prog_AS+:} false; then :
5213506e 8449 $as_echo_n "(cached) " >&6
278a7a38
AO
8450else
8451 if test -n "$AS"; then
8452 ac_cv_prog_AS="$AS" # Let the user override the test.
8453else
8454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455for as_dir in $PATH
8456do
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
5213506e 8459 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8461 ac_cv_prog_AS="${ncn_progname}"
5213506e 8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8463 break 2
8464 fi
8465done
5213506e
RW
8466 done
8467IFS=$as_save_IFS
278a7a38
AO
8468
8469fi
8470fi
8471AS=$ac_cv_prog_AS
8472if test -n "$AS"; then
5213506e
RW
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8474$as_echo "$AS" >&6; }
278a7a38 8475else
5213506e
RW
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477$as_echo "no" >&6; }
278a7a38
AO
8478fi
8479
5213506e 8480
278a7a38
AO
8481 done
8482fi
8483
8484for ncn_progname in as; do
2693c0b0
PB
8485 if test -n "$ncn_tool_prefix"; then
8486 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8487set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8490if ${ac_cv_prog_AS+:} false; then :
5213506e 8491 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8492else
8493 if test -n "$AS"; then
8494 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8495else
1c710c3c
DJ
8496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497for as_dir in $PATH
8498do
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
5213506e 8501 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8503 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8505 break 2
8506 fi
8507done
5213506e
RW
8508 done
8509IFS=$as_save_IFS
1c710c3c 8510
ca9f4b81
AO
8511fi
8512fi
1c710c3c 8513AS=$ac_cv_prog_AS
ca9f4b81 8514if test -n "$AS"; then
5213506e
RW
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8516$as_echo "$AS" >&6; }
ca9f4b81 8517else
5213506e
RW
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519$as_echo "no" >&6; }
ca9f4b81
AO
8520fi
8521
5213506e 8522
2693c0b0
PB
8523 fi
8524 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8526set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8529if ${ac_cv_prog_AS+:} false; then :
5213506e 8530 $as_echo_n "(cached) " >&6
ca9f4b81 8531else
2693c0b0
PB
8532 if test -n "$AS"; then
8533 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8534else
1c710c3c
DJ
8535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536for as_dir in $PATH
8537do
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
5213506e 8540 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8542 ac_cv_prog_AS="${ncn_progname}"
5213506e 8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8544 break 2
8545 fi
8546done
5213506e
RW
8547 done
8548IFS=$as_save_IFS
1c710c3c 8549
ca9f4b81
AO
8550fi
8551fi
1c710c3c 8552AS=$ac_cv_prog_AS
2693c0b0 8553if test -n "$AS"; then
5213506e
RW
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8555$as_echo "$AS" >&6; }
ca9f4b81 8556else
5213506e
RW
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558$as_echo "no" >&6; }
ca9f4b81 8559fi
1c710c3c 8560
5213506e 8561
2693c0b0
PB
8562 fi
8563 test -n "$ac_cv_prog_AS" && break
8564done
8565
8566if test -z "$ac_cv_prog_AS" ; then
8567 set dummy as
8568 if test $build = $host ; then
8569 AS="$2"
ca9f4b81 8570 else
2693c0b0 8571 AS="${ncn_tool_prefix}$2"
ca9f4b81 8572 fi
ca9f4b81
AO
8573fi
8574
278a7a38
AO
8575
8576
8577if test -n "$DLLTOOL"; then
8578 ac_cv_prog_DLLTOOL=$DLLTOOL
8579elif test -n "$ac_cv_prog_DLLTOOL"; then
8580 DLLTOOL=$ac_cv_prog_DLLTOOL
8581fi
8582
8583if test -n "$ac_cv_prog_DLLTOOL"; then
8584 for ncn_progname in dlltool; do
8585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8586set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8589if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8590 $as_echo_n "(cached) " >&6
278a7a38
AO
8591else
8592 if test -n "$DLLTOOL"; then
8593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8594else
8595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596for as_dir in $PATH
8597do
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
5213506e 8600 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8602 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8604 break 2
8605 fi
8606done
5213506e
RW
8607 done
8608IFS=$as_save_IFS
278a7a38
AO
8609
8610fi
8611fi
8612DLLTOOL=$ac_cv_prog_DLLTOOL
8613if test -n "$DLLTOOL"; then
5213506e
RW
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8615$as_echo "$DLLTOOL" >&6; }
278a7a38 8616else
5213506e
RW
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
278a7a38
AO
8619fi
8620
5213506e 8621
278a7a38
AO
8622 done
8623fi
8624
8625for ncn_progname in dlltool; do
2693c0b0
PB
8626 if test -n "$ncn_tool_prefix"; then
8627 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8628set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8631if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8632 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8633else
8634 if test -n "$DLLTOOL"; then
8635 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8636else
1c710c3c
DJ
8637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638for as_dir in $PATH
8639do
8640 IFS=$as_save_IFS
8641 test -z "$as_dir" && as_dir=.
5213506e 8642 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8644 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8646 break 2
8647 fi
8648done
5213506e
RW
8649 done
8650IFS=$as_save_IFS
1c710c3c 8651
ca9f4b81
AO
8652fi
8653fi
1c710c3c 8654DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8655if test -n "$DLLTOOL"; then
5213506e
RW
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8657$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8658else
5213506e
RW
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660$as_echo "no" >&6; }
ca9f4b81
AO
8661fi
8662
5213506e 8663
2693c0b0
PB
8664 fi
8665 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8667set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8670if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 8671 $as_echo_n "(cached) " >&6
ca9f4b81 8672else
2693c0b0
PB
8673 if test -n "$DLLTOOL"; then
8674 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8675else
1c710c3c
DJ
8676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677for as_dir in $PATH
8678do
8679 IFS=$as_save_IFS
8680 test -z "$as_dir" && as_dir=.
5213506e 8681 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8683 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8685 break 2
8686 fi
8687done
5213506e
RW
8688 done
8689IFS=$as_save_IFS
1c710c3c 8690
ca9f4b81
AO
8691fi
8692fi
1c710c3c 8693DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8694if test -n "$DLLTOOL"; then
5213506e
RW
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8696$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8697else
5213506e
RW
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699$as_echo "no" >&6; }
ca9f4b81 8700fi
1c710c3c 8701
5213506e 8702
2693c0b0
PB
8703 fi
8704 test -n "$ac_cv_prog_DLLTOOL" && break
8705done
8706
8707if test -z "$ac_cv_prog_DLLTOOL" ; then
8708 set dummy dlltool
8709 if test $build = $host ; then
8710 DLLTOOL="$2"
ca9f4b81 8711 else
2693c0b0 8712 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8713 fi
ca9f4b81
AO
8714fi
8715
278a7a38
AO
8716
8717
8718if test -n "$LD"; then
8719 ac_cv_prog_LD=$LD
8720elif test -n "$ac_cv_prog_LD"; then
8721 LD=$ac_cv_prog_LD
8722fi
8723
8724if test -n "$ac_cv_prog_LD"; then
8725 for ncn_progname in ld; do
8726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8727set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8730if ${ac_cv_prog_LD+:} false; then :
5213506e 8731 $as_echo_n "(cached) " >&6
278a7a38
AO
8732else
8733 if test -n "$LD"; then
8734 ac_cv_prog_LD="$LD" # Let the user override the test.
8735else
8736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
5213506e 8741 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8743 ac_cv_prog_LD="${ncn_progname}"
5213506e 8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8745 break 2
8746 fi
8747done
5213506e
RW
8748 done
8749IFS=$as_save_IFS
278a7a38
AO
8750
8751fi
8752fi
8753LD=$ac_cv_prog_LD
8754if test -n "$LD"; then
5213506e
RW
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8756$as_echo "$LD" >&6; }
278a7a38 8757else
5213506e
RW
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759$as_echo "no" >&6; }
278a7a38
AO
8760fi
8761
5213506e 8762
278a7a38
AO
8763 done
8764fi
8765
8766for ncn_progname in ld; do
2693c0b0
PB
8767 if test -n "$ncn_tool_prefix"; then
8768 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8769set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8772if ${ac_cv_prog_LD+:} false; then :
5213506e 8773 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8774else
8775 if test -n "$LD"; then
8776 ac_cv_prog_LD="$LD" # Let the user override the test.
8777else
1c710c3c
DJ
8778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779for as_dir in $PATH
8780do
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
5213506e 8783 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8785 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8787 break 2
8788 fi
8789done
5213506e
RW
8790 done
8791IFS=$as_save_IFS
1c710c3c 8792
ca9f4b81
AO
8793fi
8794fi
1c710c3c 8795LD=$ac_cv_prog_LD
ca9f4b81 8796if test -n "$LD"; then
5213506e
RW
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8798$as_echo "$LD" >&6; }
ca9f4b81 8799else
5213506e
RW
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801$as_echo "no" >&6; }
ca9f4b81
AO
8802fi
8803
5213506e 8804
2693c0b0
PB
8805 fi
8806 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8808set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8811if ${ac_cv_prog_LD+:} false; then :
5213506e 8812 $as_echo_n "(cached) " >&6
ca9f4b81 8813else
2693c0b0
PB
8814 if test -n "$LD"; then
8815 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8816else
1c710c3c
DJ
8817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818for as_dir in $PATH
8819do
8820 IFS=$as_save_IFS
8821 test -z "$as_dir" && as_dir=.
5213506e 8822 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8824 ac_cv_prog_LD="${ncn_progname}"
5213506e 8825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8826 break 2
8827 fi
8828done
5213506e
RW
8829 done
8830IFS=$as_save_IFS
1c710c3c 8831
ca9f4b81
AO
8832fi
8833fi
1c710c3c 8834LD=$ac_cv_prog_LD
2693c0b0 8835if test -n "$LD"; then
5213506e
RW
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8837$as_echo "$LD" >&6; }
ca9f4b81 8838else
5213506e
RW
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
ca9f4b81 8841fi
1c710c3c 8842
5213506e 8843
2693c0b0
PB
8844 fi
8845 test -n "$ac_cv_prog_LD" && break
8846done
8847
8848if test -z "$ac_cv_prog_LD" ; then
8849 set dummy ld
8850 if test $build = $host ; then
8851 LD="$2"
ca9f4b81 8852 else
2693c0b0 8853 LD="${ncn_tool_prefix}$2"
ca9f4b81 8854 fi
ca9f4b81
AO
8855fi
8856
278a7a38
AO
8857
8858
8859if test -n "$LIPO"; then
8860 ac_cv_prog_LIPO=$LIPO
8861elif test -n "$ac_cv_prog_LIPO"; then
8862 LIPO=$ac_cv_prog_LIPO
8863fi
8864
8865if test -n "$ac_cv_prog_LIPO"; then
8866 for ncn_progname in lipo; do
8867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8868set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8871if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8872 $as_echo_n "(cached) " >&6
278a7a38
AO
8873else
8874 if test -n "$LIPO"; then
8875 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8876else
8877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878for as_dir in $PATH
8879do
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
5213506e 8882 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8884 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8886 break 2
8887 fi
8888done
5213506e
RW
8889 done
8890IFS=$as_save_IFS
278a7a38
AO
8891
8892fi
8893fi
8894LIPO=$ac_cv_prog_LIPO
8895if test -n "$LIPO"; then
5213506e
RW
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8897$as_echo "$LIPO" >&6; }
278a7a38 8898else
5213506e
RW
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900$as_echo "no" >&6; }
278a7a38
AO
8901fi
8902
5213506e 8903
278a7a38
AO
8904 done
8905fi
8906
8907for ncn_progname in lipo; do
2abefe3d
PB
8908 if test -n "$ncn_tool_prefix"; then
8909 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8910set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8912$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8913if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8914 $as_echo_n "(cached) " >&6
2abefe3d
PB
8915else
8916 if test -n "$LIPO"; then
8917 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8918else
1c710c3c
DJ
8919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920for as_dir in $PATH
8921do
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
5213506e 8924 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8926 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8928 break 2
8929 fi
8930done
5213506e
RW
8931 done
8932IFS=$as_save_IFS
1c710c3c 8933
2abefe3d
PB
8934fi
8935fi
1c710c3c 8936LIPO=$ac_cv_prog_LIPO
2abefe3d 8937if test -n "$LIPO"; then
5213506e
RW
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8939$as_echo "$LIPO" >&6; }
2abefe3d 8940else
5213506e
RW
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942$as_echo "no" >&6; }
2abefe3d
PB
8943fi
8944
5213506e 8945
2abefe3d
PB
8946 fi
8947 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8949set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8951$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8952if ${ac_cv_prog_LIPO+:} false; then :
5213506e 8953 $as_echo_n "(cached) " >&6
2abefe3d
PB
8954else
8955 if test -n "$LIPO"; then
8956 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8957else
1c710c3c
DJ
8958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8959for as_dir in $PATH
8960do
8961 IFS=$as_save_IFS
8962 test -z "$as_dir" && as_dir=.
5213506e 8963 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8965 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8967 break 2
8968 fi
8969done
5213506e
RW
8970 done
8971IFS=$as_save_IFS
1c710c3c 8972
2abefe3d
PB
8973fi
8974fi
1c710c3c 8975LIPO=$ac_cv_prog_LIPO
2abefe3d 8976if test -n "$LIPO"; then
5213506e
RW
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8978$as_echo "$LIPO" >&6; }
2abefe3d 8979else
5213506e
RW
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8981$as_echo "no" >&6; }
2abefe3d 8982fi
1c710c3c 8983
5213506e 8984
2abefe3d
PB
8985 fi
8986 test -n "$ac_cv_prog_LIPO" && break
8987done
8988
8989if test -z "$ac_cv_prog_LIPO" ; then
8990 set dummy lipo
8991 if test $build = $host ; then
8992 LIPO="$2"
8993 else
8994 LIPO="${ncn_tool_prefix}$2"
8995 fi
8996fi
8997
278a7a38
AO
8998
8999
9000if test -n "$NM"; then
9001 ac_cv_prog_NM=$NM
9002elif test -n "$ac_cv_prog_NM"; then
9003 NM=$ac_cv_prog_NM
9004fi
9005
9006if test -n "$ac_cv_prog_NM"; then
9007 for ncn_progname in nm; do
9008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9009set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9012if ${ac_cv_prog_NM+:} false; then :
5213506e 9013 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9014else
9015 if test -n "$NM"; then
9016 ac_cv_prog_NM="$NM" # Let the user override the test.
9017else
1c710c3c
DJ
9018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019for as_dir in $PATH
9020do
9021 IFS=$as_save_IFS
9022 test -z "$as_dir" && as_dir=.
5213506e 9023 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9025 ac_cv_prog_NM="${ncn_progname}"
5213506e 9026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9027 break 2
9028 fi
9029done
5213506e
RW
9030 done
9031IFS=$as_save_IFS
1c710c3c 9032
ca9f4b81
AO
9033fi
9034fi
1c710c3c 9035NM=$ac_cv_prog_NM
ca9f4b81 9036if test -n "$NM"; then
5213506e
RW
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9038$as_echo "$NM" >&6; }
ca9f4b81 9039else
5213506e
RW
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041$as_echo "no" >&6; }
ca9f4b81
AO
9042fi
9043
5213506e 9044
278a7a38
AO
9045 done
9046fi
9047
9048for ncn_progname in nm; do
9049 if test -n "$ncn_tool_prefix"; then
9050 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9051set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9053$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9054if ${ac_cv_prog_NM+:} false; then :
5213506e 9055 $as_echo_n "(cached) " >&6
ca9f4b81 9056else
2693c0b0
PB
9057 if test -n "$NM"; then
9058 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 9059else
1c710c3c
DJ
9060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061for as_dir in $PATH
9062do
9063 IFS=$as_save_IFS
9064 test -z "$as_dir" && as_dir=.
5213506e 9065 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9067 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 9068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9069 break 2
9070 fi
9071done
5213506e
RW
9072 done
9073IFS=$as_save_IFS
1c710c3c 9074
ca9f4b81
AO
9075fi
9076fi
1c710c3c 9077NM=$ac_cv_prog_NM
2693c0b0 9078if test -n "$NM"; then
5213506e
RW
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9080$as_echo "$NM" >&6; }
ca9f4b81 9081else
5213506e
RW
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9083$as_echo "no" >&6; }
ca9f4b81 9084fi
1c710c3c 9085
5213506e 9086
2693c0b0 9087 fi
278a7a38
AO
9088 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9090set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9093if ${ac_cv_prog_NM+:} false; then :
5213506e 9094 $as_echo_n "(cached) " >&6
278a7a38
AO
9095else
9096 if test -n "$NM"; then
9097 ac_cv_prog_NM="$NM" # Let the user override the test.
9098else
9099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100for as_dir in $PATH
9101do
9102 IFS=$as_save_IFS
9103 test -z "$as_dir" && as_dir=.
5213506e 9104 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9106 ac_cv_prog_NM="${ncn_progname}"
5213506e 9107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9108 break 2
9109 fi
9110done
5213506e
RW
9111 done
9112IFS=$as_save_IFS
278a7a38
AO
9113
9114fi
9115fi
9116NM=$ac_cv_prog_NM
9117if test -n "$NM"; then
5213506e
RW
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9119$as_echo "$NM" >&6; }
278a7a38 9120else
5213506e
RW
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122$as_echo "no" >&6; }
278a7a38
AO
9123fi
9124
5213506e 9125
278a7a38
AO
9126 fi
9127 test -n "$ac_cv_prog_NM" && break
9128done
9129
9130if test -z "$ac_cv_prog_NM" ; then
9131 set dummy nm
9132 if test $build = $host ; then
9133 NM="$2"
9134 else
9135 NM="${ncn_tool_prefix}$2"
9136 fi
9137fi
9138
9139
9140
9141if test -n "$RANLIB"; then
9142 ac_cv_prog_RANLIB=$RANLIB
9143elif test -n "$ac_cv_prog_RANLIB"; then
9144 RANLIB=$ac_cv_prog_RANLIB
9145fi
9146
9147if test -n "$ac_cv_prog_RANLIB"; then
9148 for ncn_progname in ranlib; do
9149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9150set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9153if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9154 $as_echo_n "(cached) " >&6
278a7a38
AO
9155else
9156 if test -n "$RANLIB"; then
9157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9158else
9159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160for as_dir in $PATH
9161do
9162 IFS=$as_save_IFS
9163 test -z "$as_dir" && as_dir=.
5213506e 9164 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9166 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9168 break 2
9169 fi
9170done
5213506e
RW
9171 done
9172IFS=$as_save_IFS
278a7a38
AO
9173
9174fi
9175fi
9176RANLIB=$ac_cv_prog_RANLIB
9177if test -n "$RANLIB"; then
5213506e
RW
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9179$as_echo "$RANLIB" >&6; }
278a7a38 9180else
5213506e
RW
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182$as_echo "no" >&6; }
278a7a38
AO
9183fi
9184
5213506e 9185
278a7a38
AO
9186 done
9187fi
ca9f4b81 9188
278a7a38 9189for ncn_progname in ranlib; do
2693c0b0
PB
9190 if test -n "$ncn_tool_prefix"; then
9191 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9192set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9194$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9195if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9196 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9197else
9198 if test -n "$RANLIB"; then
9199 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9200else
1c710c3c
DJ
9201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202for as_dir in $PATH
9203do
9204 IFS=$as_save_IFS
9205 test -z "$as_dir" && as_dir=.
5213506e 9206 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9208 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9210 break 2
9211 fi
9212done
5213506e
RW
9213 done
9214IFS=$as_save_IFS
1c710c3c 9215
ca9f4b81
AO
9216fi
9217fi
1c710c3c 9218RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9219if test -n "$RANLIB"; then
5213506e
RW
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9221$as_echo "$RANLIB" >&6; }
ca9f4b81 9222else
5213506e
RW
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224$as_echo "no" >&6; }
ca9f4b81
AO
9225fi
9226
5213506e 9227
2693c0b0
PB
9228 fi
9229 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9231set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9233$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9234if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9235 $as_echo_n "(cached) " >&6
ca9f4b81 9236else
2693c0b0
PB
9237 if test -n "$RANLIB"; then
9238 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9239else
1c710c3c
DJ
9240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241for as_dir in $PATH
9242do
9243 IFS=$as_save_IFS
9244 test -z "$as_dir" && as_dir=.
5213506e 9245 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9247 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9249 break 2
9250 fi
9251done
5213506e
RW
9252 done
9253IFS=$as_save_IFS
1c710c3c 9254
ca9f4b81
AO
9255fi
9256fi
1c710c3c 9257RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9258if test -n "$RANLIB"; then
5213506e
RW
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9260$as_echo "$RANLIB" >&6; }
ca9f4b81 9261else
5213506e
RW
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263$as_echo "no" >&6; }
ca9f4b81 9264fi
1c710c3c 9265
5213506e 9266
ca9f4b81 9267 fi
2693c0b0
PB
9268 test -n "$ac_cv_prog_RANLIB" && break
9269done
9270
9271if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9272 RANLIB="true"
ca9f4b81
AO
9273fi
9274
278a7a38
AO
9275
9276
9277if test -n "$STRIP"; then
9278 ac_cv_prog_STRIP=$STRIP
9279elif test -n "$ac_cv_prog_STRIP"; then
9280 STRIP=$ac_cv_prog_STRIP
9281fi
9282
9283if test -n "$ac_cv_prog_STRIP"; then
9284 for ncn_progname in strip; do
9285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9286set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9289if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9290 $as_echo_n "(cached) " >&6
278a7a38
AO
9291else
9292 if test -n "$STRIP"; then
9293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9294else
9295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296for as_dir in $PATH
9297do
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
5213506e 9300 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9302 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9304 break 2
9305 fi
9306done
5213506e
RW
9307 done
9308IFS=$as_save_IFS
278a7a38
AO
9309
9310fi
9311fi
9312STRIP=$ac_cv_prog_STRIP
9313if test -n "$STRIP"; then
5213506e
RW
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9315$as_echo "$STRIP" >&6; }
278a7a38 9316else
5213506e
RW
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318$as_echo "no" >&6; }
278a7a38
AO
9319fi
9320
5213506e 9321
278a7a38
AO
9322 done
9323fi
9324
9325for ncn_progname in strip; do
2abefe3d
PB
9326 if test -n "$ncn_tool_prefix"; then
9327 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9328set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9330$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9331if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9332 $as_echo_n "(cached) " >&6
2abefe3d
PB
9333else
9334 if test -n "$STRIP"; then
9335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9336else
1c710c3c
DJ
9337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9338for as_dir in $PATH
9339do
9340 IFS=$as_save_IFS
9341 test -z "$as_dir" && as_dir=.
5213506e 9342 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9344 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9346 break 2
9347 fi
9348done
5213506e
RW
9349 done
9350IFS=$as_save_IFS
1c710c3c 9351
2abefe3d
PB
9352fi
9353fi
1c710c3c 9354STRIP=$ac_cv_prog_STRIP
2abefe3d 9355if test -n "$STRIP"; then
5213506e
RW
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9357$as_echo "$STRIP" >&6; }
2abefe3d 9358else
5213506e
RW
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360$as_echo "no" >&6; }
2abefe3d
PB
9361fi
9362
5213506e 9363
2abefe3d
PB
9364 fi
9365 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9367set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9369$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9370if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9371 $as_echo_n "(cached) " >&6
2abefe3d
PB
9372else
9373 if test -n "$STRIP"; then
9374 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9375else
1c710c3c
DJ
9376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9377for as_dir in $PATH
9378do
9379 IFS=$as_save_IFS
9380 test -z "$as_dir" && as_dir=.
5213506e 9381 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9383 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9385 break 2
9386 fi
9387done
5213506e
RW
9388 done
9389IFS=$as_save_IFS
1c710c3c 9390
2abefe3d
PB
9391fi
9392fi
1c710c3c 9393STRIP=$ac_cv_prog_STRIP
2abefe3d 9394if test -n "$STRIP"; then
5213506e
RW
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9396$as_echo "$STRIP" >&6; }
2abefe3d 9397else
5213506e
RW
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9399$as_echo "no" >&6; }
2abefe3d 9400fi
1c710c3c 9401
5213506e 9402
2abefe3d
PB
9403 fi
9404 test -n "$ac_cv_prog_STRIP" && break
9405done
9406
9407if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9408 STRIP="true"
2abefe3d
PB
9409fi
9410
278a7a38
AO
9411
9412
9413if test -n "$WINDRES"; then
9414 ac_cv_prog_WINDRES=$WINDRES
9415elif test -n "$ac_cv_prog_WINDRES"; then
9416 WINDRES=$ac_cv_prog_WINDRES
9417fi
9418
9419if test -n "$ac_cv_prog_WINDRES"; then
9420 for ncn_progname in windres; do
9421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9422set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9425if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9426 $as_echo_n "(cached) " >&6
278a7a38
AO
9427else
9428 if test -n "$WINDRES"; then
9429 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9430else
9431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432for as_dir in $PATH
9433do
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
5213506e 9436 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9438 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9440 break 2
9441 fi
9442done
5213506e
RW
9443 done
9444IFS=$as_save_IFS
278a7a38
AO
9445
9446fi
9447fi
9448WINDRES=$ac_cv_prog_WINDRES
9449if test -n "$WINDRES"; then
5213506e
RW
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9451$as_echo "$WINDRES" >&6; }
278a7a38 9452else
5213506e
RW
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454$as_echo "no" >&6; }
278a7a38
AO
9455fi
9456
5213506e 9457
278a7a38
AO
9458 done
9459fi
9460
9461for ncn_progname in windres; do
2693c0b0
PB
9462 if test -n "$ncn_tool_prefix"; then
9463 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9464set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9466$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9467if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9468 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9469else
9470 if test -n "$WINDRES"; then
9471 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9472else
1c710c3c
DJ
9473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474for as_dir in $PATH
9475do
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
5213506e 9478 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9480 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9482 break 2
9483 fi
9484done
5213506e
RW
9485 done
9486IFS=$as_save_IFS
1c710c3c 9487
ca9f4b81
AO
9488fi
9489fi
1c710c3c 9490WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9491if test -n "$WINDRES"; then
5213506e
RW
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9493$as_echo "$WINDRES" >&6; }
ca9f4b81 9494else
5213506e
RW
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9496$as_echo "no" >&6; }
ca9f4b81
AO
9497fi
9498
5213506e 9499
2693c0b0
PB
9500 fi
9501 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9503set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9506if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 9507 $as_echo_n "(cached) " >&6
ca9f4b81 9508else
2693c0b0
PB
9509 if test -n "$WINDRES"; then
9510 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9511else
1c710c3c
DJ
9512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513for as_dir in $PATH
9514do
9515 IFS=$as_save_IFS
9516 test -z "$as_dir" && as_dir=.
5213506e 9517 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9519 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9521 break 2
9522 fi
9523done
5213506e
RW
9524 done
9525IFS=$as_save_IFS
1c710c3c 9526
ca9f4b81
AO
9527fi
9528fi
1c710c3c 9529WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9530if test -n "$WINDRES"; then
5213506e
RW
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9532$as_echo "$WINDRES" >&6; }
ca9f4b81 9533else
5213506e
RW
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535$as_echo "no" >&6; }
ca9f4b81 9536fi
1c710c3c 9537
5213506e 9538
2693c0b0
PB
9539 fi
9540 test -n "$ac_cv_prog_WINDRES" && break
9541done
9542
9543if test -z "$ac_cv_prog_WINDRES" ; then
9544 set dummy windres
9545 if test $build = $host ; then
9546 WINDRES="$2"
ca9f4b81 9547 else
2693c0b0 9548 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9549 fi
ca9f4b81
AO
9550fi
9551
278a7a38
AO
9552
9553
901119ae
KT
9554if test -n "$WINDMC"; then
9555 ac_cv_prog_WINDMC=$WINDMC
9556elif test -n "$ac_cv_prog_WINDMC"; then
9557 WINDMC=$ac_cv_prog_WINDMC
9558fi
9559
9560if test -n "$ac_cv_prog_WINDMC"; then
9561 for ncn_progname in windmc; do
9562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9563set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9565$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9566if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9567 $as_echo_n "(cached) " >&6
901119ae
KT
9568else
9569 if test -n "$WINDMC"; then
9570 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9571else
9572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573for as_dir in $PATH
9574do
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
5213506e 9577 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9579 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9581 break 2
9582 fi
9583done
5213506e
RW
9584 done
9585IFS=$as_save_IFS
901119ae
KT
9586
9587fi
9588fi
9589WINDMC=$ac_cv_prog_WINDMC
9590if test -n "$WINDMC"; then
5213506e
RW
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9592$as_echo "$WINDMC" >&6; }
901119ae 9593else
5213506e
RW
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595$as_echo "no" >&6; }
901119ae
KT
9596fi
9597
5213506e 9598
901119ae
KT
9599 done
9600fi
9601
9602for ncn_progname in windmc; do
9603 if test -n "$ncn_tool_prefix"; then
9604 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9605set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9608if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9609 $as_echo_n "(cached) " >&6
901119ae
KT
9610else
9611 if test -n "$WINDMC"; then
9612 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9613else
9614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615for as_dir in $PATH
9616do
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
5213506e 9619 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9621 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9623 break 2
9624 fi
9625done
5213506e
RW
9626 done
9627IFS=$as_save_IFS
901119ae
KT
9628
9629fi
9630fi
9631WINDMC=$ac_cv_prog_WINDMC
9632if test -n "$WINDMC"; then
5213506e
RW
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9634$as_echo "$WINDMC" >&6; }
901119ae 9635else
5213506e
RW
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637$as_echo "no" >&6; }
901119ae
KT
9638fi
9639
5213506e 9640
901119ae
KT
9641 fi
9642 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9644set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9647if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 9648 $as_echo_n "(cached) " >&6
901119ae
KT
9649else
9650 if test -n "$WINDMC"; then
9651 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9652else
9653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654for as_dir in $PATH
9655do
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
5213506e 9658 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 9660 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9662 break 2
9663 fi
9664done
5213506e
RW
9665 done
9666IFS=$as_save_IFS
901119ae
KT
9667
9668fi
9669fi
9670WINDMC=$ac_cv_prog_WINDMC
9671if test -n "$WINDMC"; then
5213506e
RW
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9673$as_echo "$WINDMC" >&6; }
901119ae 9674else
5213506e
RW
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676$as_echo "no" >&6; }
901119ae
KT
9677fi
9678
5213506e 9679
901119ae
KT
9680 fi
9681 test -n "$ac_cv_prog_WINDMC" && break
9682done
9683
9684if test -z "$ac_cv_prog_WINDMC" ; then
9685 set dummy windmc
9686 if test $build = $host ; then
9687 WINDMC="$2"
9688 else
9689 WINDMC="${ncn_tool_prefix}$2"
9690 fi
9691fi
9692
9693
9694
278a7a38
AO
9695if test -n "$OBJCOPY"; then
9696 ac_cv_prog_OBJCOPY=$OBJCOPY
9697elif test -n "$ac_cv_prog_OBJCOPY"; then
9698 OBJCOPY=$ac_cv_prog_OBJCOPY
9699fi
9700
9701if test -n "$ac_cv_prog_OBJCOPY"; then
9702 for ncn_progname in objcopy; do
9703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9704set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9706$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9707if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9708 $as_echo_n "(cached) " >&6
278a7a38
AO
9709else
9710 if test -n "$OBJCOPY"; then
9711 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9712else
9713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714for as_dir in $PATH
9715do
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
5213506e 9718 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9720 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9722 break 2
9723 fi
9724done
5213506e
RW
9725 done
9726IFS=$as_save_IFS
278a7a38
AO
9727
9728fi
9729fi
9730OBJCOPY=$ac_cv_prog_OBJCOPY
9731if test -n "$OBJCOPY"; then
5213506e
RW
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9733$as_echo "$OBJCOPY" >&6; }
278a7a38 9734else
5213506e
RW
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736$as_echo "no" >&6; }
278a7a38
AO
9737fi
9738
5213506e 9739
278a7a38
AO
9740 done
9741fi
9742
9743for ncn_progname in objcopy; do
2693c0b0
PB
9744 if test -n "$ncn_tool_prefix"; then
9745 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9746set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9748$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9749if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9750 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9751else
9752 if test -n "$OBJCOPY"; then
9753 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9754else
1c710c3c
DJ
9755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9756for as_dir in $PATH
9757do
9758 IFS=$as_save_IFS
9759 test -z "$as_dir" && as_dir=.
5213506e 9760 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9762 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9764 break 2
9765 fi
9766done
5213506e
RW
9767 done
9768IFS=$as_save_IFS
1c710c3c 9769
ca9f4b81
AO
9770fi
9771fi
1c710c3c 9772OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9773if test -n "$OBJCOPY"; then
5213506e
RW
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9775$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9776else
5213506e
RW
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9778$as_echo "no" >&6; }
ca9f4b81
AO
9779fi
9780
5213506e 9781
2693c0b0
PB
9782 fi
9783 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9785set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9787$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9788if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9789 $as_echo_n "(cached) " >&6
ca9f4b81 9790else
2693c0b0
PB
9791 if test -n "$OBJCOPY"; then
9792 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9793else
1c710c3c
DJ
9794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795for as_dir in $PATH
9796do
9797 IFS=$as_save_IFS
9798 test -z "$as_dir" && as_dir=.
5213506e 9799 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9801 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9803 break 2
9804 fi
9805done
5213506e
RW
9806 done
9807IFS=$as_save_IFS
1c710c3c 9808
ca9f4b81
AO
9809fi
9810fi
1c710c3c 9811OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9812if test -n "$OBJCOPY"; then
5213506e
RW
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9814$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9815else
5213506e
RW
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9817$as_echo "no" >&6; }
ca9f4b81 9818fi
1c710c3c 9819
5213506e 9820
2693c0b0
PB
9821 fi
9822 test -n "$ac_cv_prog_OBJCOPY" && break
9823done
9824
9825if test -z "$ac_cv_prog_OBJCOPY" ; then
9826 set dummy objcopy
9827 if test $build = $host ; then
9828 OBJCOPY="$2"
ca9f4b81 9829 else
2693c0b0 9830 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9831 fi
ca9f4b81
AO
9832fi
9833
278a7a38
AO
9834
9835
9836if test -n "$OBJDUMP"; then
9837 ac_cv_prog_OBJDUMP=$OBJDUMP
9838elif test -n "$ac_cv_prog_OBJDUMP"; then
9839 OBJDUMP=$ac_cv_prog_OBJDUMP
9840fi
9841
9842if test -n "$ac_cv_prog_OBJDUMP"; then
9843 for ncn_progname in objdump; do
9844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9845set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9848if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9849 $as_echo_n "(cached) " >&6
278a7a38
AO
9850else
9851 if test -n "$OBJDUMP"; then
9852 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9853else
9854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855for as_dir in $PATH
9856do
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
5213506e 9859 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9861 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9863 break 2
9864 fi
9865done
5213506e
RW
9866 done
9867IFS=$as_save_IFS
278a7a38
AO
9868
9869fi
9870fi
9871OBJDUMP=$ac_cv_prog_OBJDUMP
9872if test -n "$OBJDUMP"; then
5213506e
RW
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9874$as_echo "$OBJDUMP" >&6; }
278a7a38 9875else
5213506e
RW
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877$as_echo "no" >&6; }
278a7a38
AO
9878fi
9879
5213506e 9880
278a7a38
AO
9881 done
9882fi
9883
9884for ncn_progname in objdump; do
2693c0b0
PB
9885 if test -n "$ncn_tool_prefix"; then
9886 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9887set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9890if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9891 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9892else
9893 if test -n "$OBJDUMP"; then
9894 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9895else
1c710c3c
DJ
9896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897for as_dir in $PATH
9898do
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
5213506e 9901 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9903 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9905 break 2
9906 fi
9907done
5213506e
RW
9908 done
9909IFS=$as_save_IFS
1c710c3c 9910
ca9f4b81
AO
9911fi
9912fi
1c710c3c 9913OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9914if test -n "$OBJDUMP"; then
5213506e
RW
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9916$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9917else
5213506e
RW
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919$as_echo "no" >&6; }
ca9f4b81
AO
9920fi
9921
5213506e 9922
2693c0b0
PB
9923 fi
9924 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9926set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9929if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 9930 $as_echo_n "(cached) " >&6
ca9f4b81 9931else
2693c0b0
PB
9932 if test -n "$OBJDUMP"; then
9933 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9934else
1c710c3c
DJ
9935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936for as_dir in $PATH
9937do
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
5213506e 9940 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9942 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9944 break 2
9945 fi
9946done
5213506e
RW
9947 done
9948IFS=$as_save_IFS
1c710c3c 9949
ca9f4b81
AO
9950fi
9951fi
1c710c3c 9952OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9953if test -n "$OBJDUMP"; then
5213506e
RW
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9955$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9956else
5213506e
RW
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958$as_echo "no" >&6; }
ca9f4b81 9959fi
1c710c3c 9960
5213506e 9961
2693c0b0
PB
9962 fi
9963 test -n "$ac_cv_prog_OBJDUMP" && break
9964done
9965
9966if test -z "$ac_cv_prog_OBJDUMP" ; then
9967 set dummy objdump
9968 if test $build = $host ; then
9969 OBJDUMP="$2"
ca9f4b81 9970 else
2693c0b0 9971 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9972 fi
ca9f4b81
AO
9973fi
9974
671aa708
NN
9975
9976
e4a9a572
IS
9977if test -n "$OTOOL"; then
9978 ac_cv_prog_OTOOL=$OTOOL
9979elif test -n "$ac_cv_prog_OTOOL"; then
9980 OTOOL=$ac_cv_prog_OTOOL
9981fi
9982
9983if test -n "$ac_cv_prog_OTOOL"; then
9984 for ncn_progname in otool; do
9985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9986set dummy ${ncn_progname}; ac_word=$2
9987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988$as_echo_n "checking for $ac_word... " >&6; }
9989if ${ac_cv_prog_OTOOL+:} false; then :
9990 $as_echo_n "(cached) " >&6
9991else
9992 if test -n "$OTOOL"; then
9993 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9994else
9995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996for as_dir in $PATH
9997do
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10002 ac_cv_prog_OTOOL="${ncn_progname}"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 break 2
10005 fi
10006done
10007 done
10008IFS=$as_save_IFS
10009
10010fi
10011fi
10012OTOOL=$ac_cv_prog_OTOOL
10013if test -n "$OTOOL"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10015$as_echo "$OTOOL" >&6; }
10016else
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018$as_echo "no" >&6; }
10019fi
10020
10021
10022 done
10023fi
10024
10025for ncn_progname in otool; do
10026 if test -n "$ncn_tool_prefix"; then
10027 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10028set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030$as_echo_n "checking for $ac_word... " >&6; }
10031if ${ac_cv_prog_OTOOL+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033else
10034 if test -n "$OTOOL"; then
10035 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10036else
10037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038for as_dir in $PATH
10039do
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10044 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 break 2
10047 fi
10048done
10049 done
10050IFS=$as_save_IFS
10051
10052fi
10053fi
10054OTOOL=$ac_cv_prog_OTOOL
10055if test -n "$OTOOL"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10057$as_echo "$OTOOL" >&6; }
10058else
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060$as_echo "no" >&6; }
10061fi
10062
10063
10064 fi
10065 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
10066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10067set dummy ${ncn_progname}; ac_word=$2
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10069$as_echo_n "checking for $ac_word... " >&6; }
10070if ${ac_cv_prog_OTOOL+:} false; then :
10071 $as_echo_n "(cached) " >&6
10072else
10073 if test -n "$OTOOL"; then
10074 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10075else
10076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077for as_dir in $PATH
10078do
10079 IFS=$as_save_IFS
10080 test -z "$as_dir" && as_dir=.
10081 for ac_exec_ext in '' $ac_executable_extensions; do
10082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10083 ac_cv_prog_OTOOL="${ncn_progname}"
10084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 break 2
10086 fi
10087done
10088 done
10089IFS=$as_save_IFS
10090
10091fi
10092fi
10093OTOOL=$ac_cv_prog_OTOOL
10094if test -n "$OTOOL"; then
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10096$as_echo "$OTOOL" >&6; }
10097else
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10099$as_echo "no" >&6; }
10100fi
10101
10102
10103 fi
10104 test -n "$ac_cv_prog_OTOOL" && break
10105done
10106
10107if test -z "$ac_cv_prog_OTOOL" ; then
10108 set dummy otool
10109 if test $build = $host ; then
10110 OTOOL="$2"
10111 else
10112 OTOOL="${ncn_tool_prefix}$2"
10113 fi
10114fi
10115
10116
10117
e7a82751
RM
10118if test -n "$READELF"; then
10119 ac_cv_prog_READELF=$READELF
10120elif test -n "$ac_cv_prog_READELF"; then
10121 READELF=$ac_cv_prog_READELF
10122fi
10123
10124if test -n "$ac_cv_prog_READELF"; then
10125 for ncn_progname in readelf; do
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; }
22e05272 10130if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10131 $as_echo_n "(cached) " >&6
10132else
10133 if test -n "$READELF"; then
10134 ac_cv_prog_READELF="$READELF" # 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
22e05272 10142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10143 ac_cv_prog_READELF="${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
10153READELF=$ac_cv_prog_READELF
10154if test -n "$READELF"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10156$as_echo "$READELF" >&6; }
10157else
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159$as_echo "no" >&6; }
10160fi
10161
10162
10163 done
10164fi
10165
10166for ncn_progname in readelf; do
10167 if test -n "$ncn_tool_prefix"; then
10168 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10169set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10172if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10173 $as_echo_n "(cached) " >&6
10174else
10175 if test -n "$READELF"; then
10176 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10177else
10178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179for as_dir in $PATH
10180do
10181 IFS=$as_save_IFS
10182 test -z "$as_dir" && as_dir=.
10183 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10185 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 break 2
10188 fi
10189done
10190 done
10191IFS=$as_save_IFS
10192
10193fi
10194fi
10195READELF=$ac_cv_prog_READELF
10196if test -n "$READELF"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10198$as_echo "$READELF" >&6; }
10199else
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201$as_echo "no" >&6; }
10202fi
10203
10204
10205 fi
10206 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10208set dummy ${ncn_progname}; ac_word=$2
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10211if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10212 $as_echo_n "(cached) " >&6
10213else
10214 if test -n "$READELF"; then
10215 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10216else
10217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218for as_dir in $PATH
10219do
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10224 ac_cv_prog_READELF="${ncn_progname}"
10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10227 fi
10228done
10229 done
10230IFS=$as_save_IFS
10231
10232fi
10233fi
10234READELF=$ac_cv_prog_READELF
10235if test -n "$READELF"; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10237$as_echo "$READELF" >&6; }
10238else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240$as_echo "no" >&6; }
10241fi
10242
10243
10244 fi
10245 test -n "$ac_cv_prog_READELF" && break
10246done
10247
10248if test -z "$ac_cv_prog_READELF" ; then
10249 set dummy readelf
10250 if test $build = $host ; then
10251 READELF="$2"
10252 else
10253 READELF="${ncn_tool_prefix}$2"
10254 fi
10255fi
10256
10257
10258
671aa708
NN
10259
10260
10261
2abefe3d 10262# Target tools.
1c710c3c 10263
5213506e
RW
10264# Check whether --with-build-time-tools was given.
10265if test "${with_build_time_tools+set}" = set; then :
10266 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
10267 x/*) ;;
10268 *)
10269 with_build_time_tools=
5213506e
RW
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10271$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
10272 ;;
10273 esac
ca9f4b81 10274else
e8b05380 10275 with_build_time_tools=
5213506e
RW
10276fi
10277
ca9f4b81 10278
278a7a38
AO
10279
10280
10281if test -n "$CC_FOR_TARGET"; then
10282 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10283elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10284 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10285fi
10286
10287if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10288 for ncn_progname in cc gcc; do
10289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10290set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10293if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10294 $as_echo_n "(cached) " >&6
278a7a38
AO
10295else
10296 if test -n "$CC_FOR_TARGET"; then
10297 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10298else
10299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300for as_dir in $PATH
10301do
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
5213506e 10304 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10306 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10308 break 2
10309 fi
10310done
5213506e
RW
10311 done
10312IFS=$as_save_IFS
278a7a38
AO
10313
10314fi
10315fi
10316CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10317if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10319$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10320else
5213506e
RW
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322$as_echo "no" >&6; }
278a7a38
AO
10323fi
10324
5213506e 10325
278a7a38
AO
10326 done
10327fi
10328
10329if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10330 for ncn_progname in cc gcc; do
5213506e
RW
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10332$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10333 if test -x $with_build_time_tools/${ncn_progname}; then
10334 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10336$as_echo "yes" >&6; }
72a7ab82 10337 break
e8b05380 10338 else
5213506e
RW
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340$as_echo "no" >&6; }
72a7ab82
AP
10341 fi
10342 done
4de997d1
PB
10343fi
10344
e8b05380
PB
10345if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10346 for ncn_progname in cc gcc; do
10347 if test -n "$ncn_target_tool_prefix"; then
10348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10349set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10352if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10353 $as_echo_n "(cached) " >&6
4de997d1
PB
10354else
10355 if test -n "$CC_FOR_TARGET"; then
10356 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10357else
1c710c3c
DJ
10358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359for as_dir in $PATH
10360do
10361 IFS=$as_save_IFS
10362 test -z "$as_dir" && as_dir=.
5213506e 10363 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10365 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10367 break 2
10368 fi
10369done
5213506e
RW
10370 done
10371IFS=$as_save_IFS
1c710c3c 10372
4de997d1
PB
10373fi
10374fi
1c710c3c 10375CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10376if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10378$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10379else
5213506e
RW
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381$as_echo "no" >&6; }
4de997d1
PB
10382fi
10383
5213506e 10384
e8b05380
PB
10385 fi
10386 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10388set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10391if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10392 $as_echo_n "(cached) " >&6
4de997d1 10393else
2693c0b0
PB
10394 if test -n "$CC_FOR_TARGET"; then
10395 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10396else
1c710c3c
DJ
10397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398for as_dir in $PATH
10399do
10400 IFS=$as_save_IFS
10401 test -z "$as_dir" && as_dir=.
5213506e 10402 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10404 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10406 break 2
10407 fi
10408done
5213506e
RW
10409 done
10410IFS=$as_save_IFS
1c710c3c 10411
4de997d1
PB
10412fi
10413fi
1c710c3c 10414CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10415if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10417$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10418else
5213506e
RW
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420$as_echo "no" >&6; }
4de997d1 10421fi
1c710c3c 10422
5213506e 10423
e8b05380
PB
10424 fi
10425 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10426 done
10427fi
1c710c3c 10428
2693c0b0
PB
10429if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10430 set dummy cc gcc
10431 if test $build = $target ; then
10432 CC_FOR_TARGET="$2"
4de997d1 10433 else
2693c0b0 10434 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10435 fi
1c00b503
PB
10436else
10437 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10438fi
10439
278a7a38
AO
10440
10441
10442if test -n "$CXX_FOR_TARGET"; then
10443 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10444elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10445 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10446fi
10447
10448if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10449 for ncn_progname in c++ g++ cxx gxx; do
10450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10451set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10454if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10455 $as_echo_n "(cached) " >&6
278a7a38
AO
10456else
10457 if test -n "$CXX_FOR_TARGET"; then
10458 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10459else
10460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461for as_dir in $PATH
10462do
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
5213506e 10465 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10467 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10469 break 2
10470 fi
10471done
5213506e
RW
10472 done
10473IFS=$as_save_IFS
278a7a38
AO
10474
10475fi
10476fi
10477CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10478if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10480$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10481else
5213506e
RW
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483$as_echo "no" >&6; }
278a7a38
AO
10484fi
10485
5213506e 10486
278a7a38
AO
10487 done
10488fi
10489
10490if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10491 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10493$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10494 if test -x $with_build_time_tools/${ncn_progname}; then
10495 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10497$as_echo "yes" >&6; }
e8b05380
PB
10498 break
10499 else
5213506e
RW
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501$as_echo "no" >&6; }
e8b05380
PB
10502 fi
10503 done
10504fi
10505
10506if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10507 for ncn_progname in c++ g++ cxx gxx; do
10508 if test -n "$ncn_target_tool_prefix"; then
10509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10510set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10513if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10514 $as_echo_n "(cached) " >&6
4de997d1
PB
10515else
10516 if test -n "$CXX_FOR_TARGET"; then
10517 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10518else
1c710c3c
DJ
10519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520for as_dir in $PATH
10521do
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
5213506e 10524 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10526 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10528 break 2
10529 fi
10530done
5213506e
RW
10531 done
10532IFS=$as_save_IFS
1c710c3c 10533
4de997d1
PB
10534fi
10535fi
1c710c3c 10536CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10537if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10539$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10540else
5213506e
RW
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542$as_echo "no" >&6; }
4de997d1
PB
10543fi
10544
5213506e 10545
e8b05380
PB
10546 fi
10547 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10549set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10552if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10553 $as_echo_n "(cached) " >&6
4de997d1 10554else
2693c0b0
PB
10555 if test -n "$CXX_FOR_TARGET"; then
10556 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10557else
1c710c3c
DJ
10558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559for as_dir in $PATH
10560do
10561 IFS=$as_save_IFS
10562 test -z "$as_dir" && as_dir=.
5213506e 10563 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10565 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10567 break 2
10568 fi
10569done
5213506e
RW
10570 done
10571IFS=$as_save_IFS
1c710c3c 10572
4de997d1
PB
10573fi
10574fi
1c710c3c 10575CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10576if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10578$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10579else
5213506e
RW
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581$as_echo "no" >&6; }
4de997d1 10582fi
1c710c3c 10583
5213506e 10584
e8b05380
PB
10585 fi
10586 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10587 done
10588fi
1c710c3c 10589
2693c0b0
PB
10590if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10591 set dummy c++ g++ cxx gxx
10592 if test $build = $target ; then
10593 CXX_FOR_TARGET="$2"
4de997d1 10594 else
2693c0b0 10595 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10596 fi
1c00b503
PB
10597else
10598 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10599fi
10600
278a7a38
AO
10601
10602
10603if test -n "$GCC_FOR_TARGET"; then
10604 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10605elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10606 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10607fi
10608
10609if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10610 for ncn_progname in gcc; do
10611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10612set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10614$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10615if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10616 $as_echo_n "(cached) " >&6
278a7a38
AO
10617else
10618 if test -n "$GCC_FOR_TARGET"; then
10619 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10620else
10621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622for as_dir in $PATH
10623do
10624 IFS=$as_save_IFS
10625 test -z "$as_dir" && as_dir=.
5213506e 10626 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10628 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10630 break 2
10631 fi
10632done
5213506e
RW
10633 done
10634IFS=$as_save_IFS
278a7a38
AO
10635
10636fi
10637fi
10638GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10639if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10641$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10642else
5213506e
RW
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10644$as_echo "no" >&6; }
278a7a38
AO
10645fi
10646
5213506e 10647
278a7a38
AO
10648 done
10649fi
10650
10651if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10652 for ncn_progname in gcc; do
5213506e
RW
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10654$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10655 if test -x $with_build_time_tools/${ncn_progname}; then
10656 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10658$as_echo "yes" >&6; }
e8b05380
PB
10659 break
10660 else
5213506e
RW
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662$as_echo "no" >&6; }
e8b05380
PB
10663 fi
10664 done
10665fi
10666
10667if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10668 for ncn_progname in gcc; do
10669 if test -n "$ncn_target_tool_prefix"; then
10670 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10671set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10674if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10675 $as_echo_n "(cached) " >&6
ca9f4b81 10676else
e8b05380
PB
10677 if test -n "$GCC_FOR_TARGET"; then
10678 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10679else
1c710c3c
DJ
10680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681for as_dir in $PATH
10682do
10683 IFS=$as_save_IFS
10684 test -z "$as_dir" && as_dir=.
5213506e 10685 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10687 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10689 break 2
10690 fi
10691done
5213506e
RW
10692 done
10693IFS=$as_save_IFS
1c710c3c 10694
ca9f4b81
AO
10695fi
10696fi
1c710c3c 10697GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10698if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10700$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10701else
5213506e
RW
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703$as_echo "no" >&6; }
ca9f4b81
AO
10704fi
10705
5213506e 10706
e8b05380
PB
10707 fi
10708 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10710set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10713if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10714 $as_echo_n "(cached) " >&6
ca9f4b81 10715else
e8b05380
PB
10716 if test -n "$GCC_FOR_TARGET"; then
10717 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10718else
1c710c3c
DJ
10719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720for as_dir in $PATH
10721do
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
5213506e 10724 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10726 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10728 break 2
10729 fi
10730done
5213506e
RW
10731 done
10732IFS=$as_save_IFS
1c710c3c 10733
ca9f4b81
AO
10734fi
10735fi
1c710c3c 10736GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10737if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10739$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10740else
5213506e
RW
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742$as_echo "no" >&6; }
ca9f4b81 10743fi
1c710c3c 10744
5213506e 10745
e8b05380
PB
10746 fi
10747 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10748 done
10749fi
1c710c3c 10750
e8b05380
PB
10751if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10752 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10753else
10754 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10755fi
10756
278a7a38
AO
10757
10758
278a7a38
AO
10759if test -n "$GFORTRAN_FOR_TARGET"; then
10760 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10761elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10762 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10763fi
10764
278a7a38
AO
10765if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10766 for ncn_progname in gfortran; do
10767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10768set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10770$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10771if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10772 $as_echo_n "(cached) " >&6
e8b05380 10773else
278a7a38
AO
10774 if test -n "$GFORTRAN_FOR_TARGET"; then
10775 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10776else
1c710c3c
DJ
10777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
5213506e 10782 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10784 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10786 break 2
10787 fi
10788done
5213506e
RW
10789 done
10790IFS=$as_save_IFS
1c710c3c 10791
e8b05380
PB
10792fi
10793fi
278a7a38
AO
10794GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10795if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10797$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10798else
5213506e
RW
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800$as_echo "no" >&6; }
e8b05380 10801fi
1c710c3c 10802
5213506e 10803
e8b05380
PB
10804 done
10805fi
1c710c3c 10806
278a7a38 10807if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10808 for ncn_progname in gfortran; do
5213506e
RW
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10810$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10811 if test -x $with_build_time_tools/${ncn_progname}; then
10812 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10814$as_echo "yes" >&6; }
e8b05380
PB
10815 break
10816 else
5213506e
RW
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818$as_echo "no" >&6; }
e8b05380
PB
10819 fi
10820 done
10821fi
10822
10823if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10824 for ncn_progname in gfortran; do
10825 if test -n "$ncn_target_tool_prefix"; then
10826 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10827set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10830if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10831 $as_echo_n "(cached) " >&6
e8b05380
PB
10832else
10833 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10834 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10835else
10836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837for as_dir in $PATH
10838do
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
5213506e 10841 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10843 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10845 break 2
10846 fi
10847done
5213506e
RW
10848 done
10849IFS=$as_save_IFS
1c710c3c 10850
e8b05380
PB
10851fi
10852fi
1c710c3c 10853GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10854if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10856$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10857else
5213506e
RW
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859$as_echo "no" >&6; }
e8b05380
PB
10860fi
10861
5213506e 10862
e8b05380
PB
10863 fi
10864 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10866set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10868$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10869if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10870 $as_echo_n "(cached) " >&6
e8b05380
PB
10871else
10872 if test -n "$GFORTRAN_FOR_TARGET"; then
10873 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10874else
1c710c3c
DJ
10875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876for as_dir in $PATH
10877do
10878 IFS=$as_save_IFS
10879 test -z "$as_dir" && as_dir=.
5213506e 10880 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10882 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10884 break 2
10885 fi
10886done
5213506e
RW
10887 done
10888IFS=$as_save_IFS
1c710c3c 10889
e8b05380
PB
10890fi
10891fi
1c710c3c 10892GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10893if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10895$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10896else
5213506e
RW
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898$as_echo "no" >&6; }
e8b05380 10899fi
1c710c3c 10900
5213506e 10901
e8b05380
PB
10902 fi
10903 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10904 done
10905fi
1c710c3c 10906
e8b05380
PB
10907if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10908 set dummy gfortran
2693c0b0 10909 if test $build = $target ; then
e8b05380 10910 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10911 else
e8b05380
PB
10912 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10913 fi
1c00b503
PB
10914else
10915 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10916fi
10917
10918
10919
632e2a07
ILT
10920if test -n "$GOC_FOR_TARGET"; then
10921 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10922elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10923 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10924fi
10925
10926if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10927 for ncn_progname in gccgo; do
10928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10929set dummy ${ncn_progname}; ac_word=$2
10930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10932if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10933 $as_echo_n "(cached) " >&6
10934else
10935 if test -n "$GOC_FOR_TARGET"; then
10936 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10937else
10938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939for as_dir in $PATH
10940do
10941 IFS=$as_save_IFS
10942 test -z "$as_dir" && as_dir=.
10943 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
10945 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 break 2
10948 fi
10949done
10950 done
10951IFS=$as_save_IFS
10952
10953fi
10954fi
10955GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10956if test -n "$GOC_FOR_TARGET"; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10958$as_echo "$GOC_FOR_TARGET" >&6; }
10959else
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961$as_echo "no" >&6; }
10962fi
10963
10964
10965 done
10966fi
10967
10968if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10969 for ncn_progname in gccgo; do
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10971$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10972 if test -x $with_build_time_tools/${ncn_progname}; then
10973 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10975$as_echo "yes" >&6; }
10976 break
10977 else
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979$as_echo "no" >&6; }
10980 fi
10981 done
10982fi
10983
10984if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10985 for ncn_progname in gccgo; do
10986 if test -n "$ncn_target_tool_prefix"; then
10987 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10988set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10991if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
10992 $as_echo_n "(cached) " >&6
10993else
10994 if test -n "$GOC_FOR_TARGET"; then
10995 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10996else
10997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998for as_dir in $PATH
10999do
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
11004 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11006 break 2
11007 fi
11008done
11009 done
11010IFS=$as_save_IFS
11011
11012fi
11013fi
11014GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11015if test -n "$GOC_FOR_TARGET"; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11017$as_echo "$GOC_FOR_TARGET" >&6; }
11018else
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020$as_echo "no" >&6; }
11021fi
11022
11023
11024 fi
11025 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11027set dummy ${ncn_progname}; ac_word=$2
11028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11030if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
11031 $as_echo_n "(cached) " >&6
11032else
11033 if test -n "$GOC_FOR_TARGET"; then
11034 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11035else
11036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037for as_dir in $PATH
11038do
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
11043 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11046 fi
11047done
11048 done
11049IFS=$as_save_IFS
11050
11051fi
11052fi
11053GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11054if test -n "$GOC_FOR_TARGET"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11056$as_echo "$GOC_FOR_TARGET" >&6; }
11057else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059$as_echo "no" >&6; }
11060fi
11061
11062
11063 fi
11064 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11065 done
11066fi
11067
11068if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11069 set dummy gccgo
11070 if test $build = $target ; then
11071 GOC_FOR_TARGET="$2"
11072 else
11073 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11074 fi
11075else
11076 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11077fi
11078
11079
11080
b4c522fa
IB
11081if test -n "$GDC_FOR_TARGET"; then
11082 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
11083elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11084 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11085fi
11086
11087if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11088 for ncn_progname in gdc; do
11089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11090set dummy ${ncn_progname}; ac_word=$2
11091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11093if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11094 $as_echo_n "(cached) " >&6
11095else
11096 if test -n "$GDC_FOR_TARGET"; then
11097 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11098else
11099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100for as_dir in $PATH
11101do
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11106 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11109 fi
11110done
11111 done
11112IFS=$as_save_IFS
11113
11114fi
11115fi
11116GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11117if test -n "$GDC_FOR_TARGET"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11119$as_echo "$GDC_FOR_TARGET" >&6; }
11120else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122$as_echo "no" >&6; }
11123fi
11124
11125
11126 done
11127fi
11128
11129if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11130 for ncn_progname in gdc; do
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11132$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11133 if test -x $with_build_time_tools/${ncn_progname}; then
11134 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11136$as_echo "yes" >&6; }
11137 break
11138 else
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140$as_echo "no" >&6; }
11141 fi
11142 done
11143fi
11144
11145if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11146 for ncn_progname in gdc; do
11147 if test -n "$ncn_target_tool_prefix"; then
11148 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11149set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11152if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11153 $as_echo_n "(cached) " >&6
11154else
11155 if test -n "$GDC_FOR_TARGET"; then
11156 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11157else
11158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159for as_dir in $PATH
11160do
11161 IFS=$as_save_IFS
11162 test -z "$as_dir" && as_dir=.
11163 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11165 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167 break 2
11168 fi
11169done
11170 done
11171IFS=$as_save_IFS
11172
11173fi
11174fi
11175GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11176if test -n "$GDC_FOR_TARGET"; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11178$as_echo "$GDC_FOR_TARGET" >&6; }
11179else
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181$as_echo "no" >&6; }
11182fi
11183
11184
11185 fi
11186 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11188set dummy ${ncn_progname}; ac_word=$2
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11191if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11192 $as_echo_n "(cached) " >&6
11193else
11194 if test -n "$GDC_FOR_TARGET"; then
11195 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11196else
11197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198for as_dir in $PATH
11199do
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11204 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11207 fi
11208done
11209 done
11210IFS=$as_save_IFS
11211
11212fi
11213fi
11214GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11215if test -n "$GDC_FOR_TARGET"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11217$as_echo "$GDC_FOR_TARGET" >&6; }
11218else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220$as_echo "no" >&6; }
11221fi
11222
11223
11224 fi
11225 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11226 done
11227fi
11228
11229if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11230 set dummy gdc
11231 if test $build = $target ; then
11232 GDC_FOR_TARGET="$2"
11233 else
11234 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11235 fi
11236else
11237 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11238fi
11239
11240
11241
e8b05380
PB
11242cat > conftest.c << \EOF
11243#ifdef __GNUC__
11244 gcc_yay;
11245#endif
11246EOF
11247if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11248 have_gcc_for_target=yes
11249else
11250 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11251 have_gcc_for_target=no
11252fi
11253rm conftest.c
11254
11255
11256
11257
11258if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11259 if test -n "$with_build_time_tools"; then
5213506e
RW
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11261$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11262 if test -x $with_build_time_tools/ar; then
11263 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11264 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11266$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 11267 else
5213506e
RW
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
d1f8db0c 11270 fi
e8b05380
PB
11271 elif test $build != $host && test $have_gcc_for_target = yes; then
11272 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
11273 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11274 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
11275 fi
11276fi
3e19841a 11277if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11278 # Extract the first word of "ar", so it can be a program name with args.
11279set dummy ar; ac_word=$2
5213506e
RW
11280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11282if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 11283 $as_echo_n "(cached) " >&6
e8b05380 11284else
1c710c3c
DJ
11285 case $AR_FOR_TARGET in
11286 [\\/]* | ?:[\\/]*)
e8b05380
PB
11287 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11288 ;;
e8b05380 11289 *)
1c710c3c
DJ
11290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291for as_dir in $gcc_cv_tool_dirs
11292do
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
5213506e 11295 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11297 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11299 break 2
11300 fi
11301done
5213506e
RW
11302 done
11303IFS=$as_save_IFS
1c710c3c 11304
e8b05380
PB
11305 ;;
11306esac
11307fi
1c710c3c 11308AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 11309if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11311$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11312else
5213506e
RW
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314$as_echo "no" >&6; }
4de997d1
PB
11315fi
11316
5213506e 11317
e8b05380
PB
11318fi
11319if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
11320
11321
11322if test -n "$AR_FOR_TARGET"; then
11323 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11324elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11325 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11326fi
11327
11328if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11329 for ncn_progname in ar; do
11330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11331set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11333$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11334if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11335 $as_echo_n "(cached) " >&6
278a7a38
AO
11336else
11337 if test -n "$AR_FOR_TARGET"; then
11338 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11339else
11340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341for as_dir in $PATH
11342do
11343 IFS=$as_save_IFS
11344 test -z "$as_dir" && as_dir=.
5213506e 11345 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11347 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11349 break 2
11350 fi
11351done
5213506e
RW
11352 done
11353IFS=$as_save_IFS
278a7a38
AO
11354
11355fi
11356fi
11357AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11358if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11360$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11361else
5213506e
RW
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363$as_echo "no" >&6; }
278a7a38
AO
11364fi
11365
5213506e 11366
278a7a38
AO
11367 done
11368fi
11369
11370if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11371 for ncn_progname in ar; do
5213506e
RW
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11373$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11374 if test -x $with_build_time_tools/${ncn_progname}; then
11375 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11377$as_echo "yes" >&6; }
e8b05380
PB
11378 break
11379 else
5213506e
RW
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381$as_echo "no" >&6; }
e8b05380
PB
11382 fi
11383 done
11384fi
11385
11386if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11387 for ncn_progname in ar; do
11388 if test -n "$ncn_target_tool_prefix"; then
11389 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11390set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11393if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11394 $as_echo_n "(cached) " >&6
4de997d1 11395else
e8b05380
PB
11396 if test -n "$AR_FOR_TARGET"; then
11397 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11398else
1c710c3c
DJ
11399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400for as_dir in $PATH
11401do
11402 IFS=$as_save_IFS
11403 test -z "$as_dir" && as_dir=.
5213506e 11404 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11406 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11408 break 2
11409 fi
11410done
5213506e
RW
11411 done
11412IFS=$as_save_IFS
1c710c3c 11413
4de997d1
PB
11414fi
11415fi
1c710c3c 11416AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11417if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11419$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11420else
5213506e
RW
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422$as_echo "no" >&6; }
4de997d1
PB
11423fi
11424
5213506e 11425
e8b05380
PB
11426 fi
11427 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11429set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11431$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11432if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11433 $as_echo_n "(cached) " >&6
e8b05380
PB
11434else
11435 if test -n "$AR_FOR_TARGET"; then
11436 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11437else
1c710c3c
DJ
11438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439for as_dir in $PATH
11440do
11441 IFS=$as_save_IFS
11442 test -z "$as_dir" && as_dir=.
5213506e 11443 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11445 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11447 break 2
11448 fi
11449done
5213506e
RW
11450 done
11451IFS=$as_save_IFS
1c710c3c 11452
e8b05380
PB
11453fi
11454fi
1c710c3c 11455AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11456if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11458$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11459else
5213506e
RW
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461$as_echo "no" >&6; }
e8b05380 11462fi
1c710c3c 11463
5213506e 11464
e8b05380
PB
11465 fi
11466 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11467 done
11468fi
1c710c3c 11469
e8b05380
PB
11470if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11471 set dummy ar
11472 if test $build = $target ; then
11473 AR_FOR_TARGET="$2"
11474 else
11475 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11476 fi
1c00b503
PB
11477else
11478 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11479fi
11480
d1f8db0c
PB
11481else
11482 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11483fi
11484
11485
11486
11487
11488if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11489 if test -n "$with_build_time_tools"; then
5213506e
RW
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11491$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11492 if test -x $with_build_time_tools/as; then
11493 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11494 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11496$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11497 else
5213506e
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
d1f8db0c 11500 fi
e8b05380
PB
11501 elif test $build != $host && test $have_gcc_for_target = yes; then
11502 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11503 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11504 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11505 fi
11506fi
3e19841a 11507if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11508 # Extract the first word of "as", so it can be a program name with args.
11509set dummy as; ac_word=$2
5213506e
RW
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11512if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 11513 $as_echo_n "(cached) " >&6
e8b05380 11514else
1c710c3c
DJ
11515 case $AS_FOR_TARGET in
11516 [\\/]* | ?:[\\/]*)
e8b05380
PB
11517 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11518 ;;
e8b05380 11519 *)
1c710c3c
DJ
11520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521for as_dir in $gcc_cv_tool_dirs
11522do
11523 IFS=$as_save_IFS
11524 test -z "$as_dir" && as_dir=.
5213506e 11525 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11527 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11529 break 2
11530 fi
11531done
5213506e
RW
11532 done
11533IFS=$as_save_IFS
1c710c3c 11534
e8b05380
PB
11535 ;;
11536esac
11537fi
1c710c3c 11538AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11539if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11541$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11542else
5213506e
RW
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544$as_echo "no" >&6; }
e8b05380
PB
11545fi
11546
5213506e 11547
e8b05380
PB
11548fi
11549if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11550
11551
11552if test -n "$AS_FOR_TARGET"; then
11553 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11554elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11555 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11556fi
11557
11558if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11559 for ncn_progname in as; do
11560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11561set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11563$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11564if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11565 $as_echo_n "(cached) " >&6
278a7a38
AO
11566else
11567 if test -n "$AS_FOR_TARGET"; then
11568 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11569else
11570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571for as_dir in $PATH
11572do
11573 IFS=$as_save_IFS
11574 test -z "$as_dir" && as_dir=.
5213506e 11575 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11577 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11579 break 2
11580 fi
11581done
5213506e
RW
11582 done
11583IFS=$as_save_IFS
278a7a38
AO
11584
11585fi
11586fi
11587AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11588if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11590$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11591else
5213506e
RW
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593$as_echo "no" >&6; }
278a7a38
AO
11594fi
11595
5213506e 11596
278a7a38
AO
11597 done
11598fi
11599
11600if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11601 for ncn_progname in as; do
5213506e
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11603$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11604 if test -x $with_build_time_tools/${ncn_progname}; then
11605 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11607$as_echo "yes" >&6; }
e8b05380
PB
11608 break
11609 else
5213506e
RW
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611$as_echo "no" >&6; }
e8b05380
PB
11612 fi
11613 done
11614fi
11615
11616if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11617 for ncn_progname in as; do
11618 if test -n "$ncn_target_tool_prefix"; then
11619 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11620set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11622$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11623if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11624 $as_echo_n "(cached) " >&6
e8b05380
PB
11625else
11626 if test -n "$AS_FOR_TARGET"; then
11627 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11628else
1c710c3c
DJ
11629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630for as_dir in $PATH
11631do
11632 IFS=$as_save_IFS
11633 test -z "$as_dir" && as_dir=.
5213506e 11634 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11636 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11638 break 2
11639 fi
11640done
5213506e
RW
11641 done
11642IFS=$as_save_IFS
1c710c3c 11643
e8b05380
PB
11644fi
11645fi
1c710c3c 11646AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11647if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11649$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11650else
5213506e
RW
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652$as_echo "no" >&6; }
e8b05380
PB
11653fi
11654
5213506e 11655
e8b05380
PB
11656 fi
11657 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11659set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11661$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11662if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11663 $as_echo_n "(cached) " >&6
4de997d1 11664else
e8b05380
PB
11665 if test -n "$AS_FOR_TARGET"; then
11666 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11667else
1c710c3c
DJ
11668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11669for as_dir in $PATH
11670do
11671 IFS=$as_save_IFS
11672 test -z "$as_dir" && as_dir=.
5213506e 11673 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11675 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11677 break 2
11678 fi
11679done
5213506e
RW
11680 done
11681IFS=$as_save_IFS
1c710c3c 11682
4de997d1
PB
11683fi
11684fi
1c710c3c 11685AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11686if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11688$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11689else
5213506e
RW
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691$as_echo "no" >&6; }
4de997d1 11692fi
1c710c3c 11693
5213506e 11694
e8b05380
PB
11695 fi
11696 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11697 done
11698fi
1c710c3c 11699
e8b05380
PB
11700if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11701 set dummy as
11702 if test $build = $target ; then
11703 AS_FOR_TARGET="$2"
11704 else
11705 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11706 fi
1c00b503
PB
11707else
11708 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11709fi
2693c0b0 11710
d1f8db0c
PB
11711else
11712 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11713fi
11714
e8b05380
PB
11715
11716
11717
11718if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11719 if test -n "$with_build_time_tools"; then
5213506e
RW
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11721$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11722 if test -x $with_build_time_tools/dlltool; then
11723 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11724 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11726$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11727 else
5213506e
RW
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729$as_echo "no" >&6; }
d1f8db0c 11730 fi
e8b05380
PB
11731 elif test $build != $host && test $have_gcc_for_target = yes; then
11732 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11733 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11734 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11735 fi
11736fi
3e19841a 11737if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11738 # Extract the first word of "dlltool", so it can be a program name with args.
11739set dummy dlltool; ac_word=$2
5213506e
RW
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11742if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11743 $as_echo_n "(cached) " >&6
4de997d1 11744else
1c710c3c
DJ
11745 case $DLLTOOL_FOR_TARGET in
11746 [\\/]* | ?:[\\/]*)
e8b05380
PB
11747 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11748 ;;
e8b05380 11749 *)
1c710c3c
DJ
11750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751for as_dir in $gcc_cv_tool_dirs
11752do
11753 IFS=$as_save_IFS
11754 test -z "$as_dir" && as_dir=.
5213506e 11755 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11757 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11759 break 2
11760 fi
11761done
5213506e
RW
11762 done
11763IFS=$as_save_IFS
1c710c3c 11764
e8b05380
PB
11765 ;;
11766esac
4de997d1 11767fi
1c710c3c 11768DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11769if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11771$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11772else
5213506e
RW
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
4de997d1
PB
11775fi
11776
5213506e 11777
e8b05380
PB
11778fi
11779if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11780
11781
11782if test -n "$DLLTOOL_FOR_TARGET"; then
11783 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11784elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11785 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11786fi
11787
11788if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11789 for ncn_progname in dlltool; do
11790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11791set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11794if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11795 $as_echo_n "(cached) " >&6
278a7a38
AO
11796else
11797 if test -n "$DLLTOOL_FOR_TARGET"; then
11798 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11799else
11800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801for as_dir in $PATH
11802do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
5213506e 11805 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11807 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11809 break 2
11810 fi
11811done
5213506e
RW
11812 done
11813IFS=$as_save_IFS
278a7a38
AO
11814
11815fi
11816fi
11817DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11818if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11820$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11821else
5213506e
RW
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823$as_echo "no" >&6; }
278a7a38
AO
11824fi
11825
5213506e 11826
278a7a38
AO
11827 done
11828fi
11829
11830if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11831 for ncn_progname in dlltool; do
5213506e
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11833$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11834 if test -x $with_build_time_tools/${ncn_progname}; then
11835 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837$as_echo "yes" >&6; }
e8b05380
PB
11838 break
11839 else
5213506e
RW
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841$as_echo "no" >&6; }
e8b05380
PB
11842 fi
11843 done
11844fi
11845
11846if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11847 for ncn_progname in dlltool; do
11848 if test -n "$ncn_target_tool_prefix"; then
11849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11850set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11853if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11854 $as_echo_n "(cached) " >&6
4de997d1 11855else
e8b05380
PB
11856 if test -n "$DLLTOOL_FOR_TARGET"; then
11857 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11858else
1c710c3c
DJ
11859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860for as_dir in $PATH
11861do
11862 IFS=$as_save_IFS
11863 test -z "$as_dir" && as_dir=.
5213506e 11864 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11866 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11868 break 2
11869 fi
11870done
5213506e
RW
11871 done
11872IFS=$as_save_IFS
1c710c3c 11873
4de997d1
PB
11874fi
11875fi
1c710c3c 11876DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11877if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11879$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11880else
5213506e
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882$as_echo "no" >&6; }
4de997d1 11883fi
4de997d1 11884
5213506e 11885
e8b05380
PB
11886 fi
11887 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11889set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11892if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11893 $as_echo_n "(cached) " >&6
4de997d1 11894else
e8b05380
PB
11895 if test -n "$DLLTOOL_FOR_TARGET"; then
11896 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11897else
1c710c3c
DJ
11898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899for as_dir in $PATH
11900do
11901 IFS=$as_save_IFS
11902 test -z "$as_dir" && as_dir=.
5213506e 11903 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11905 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11907 break 2
11908 fi
11909done
5213506e
RW
11910 done
11911IFS=$as_save_IFS
1c710c3c 11912
4de997d1
PB
11913fi
11914fi
1c710c3c 11915DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11916if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11918$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11919else
5213506e
RW
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921$as_echo "no" >&6; }
4de997d1 11922fi
1c710c3c 11923
5213506e 11924
e8b05380
PB
11925 fi
11926 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11927 done
11928fi
1c710c3c 11929
e8b05380
PB
11930if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11931 set dummy dlltool
11932 if test $build = $target ; then
11933 DLLTOOL_FOR_TARGET="$2"
11934 else
11935 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11936 fi
1c00b503
PB
11937else
11938 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11939fi
11940
d1f8db0c
PB
11941else
11942 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11943fi
11944
4de997d1 11945
e8b05380
PB
11946
11947
11948if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11949 if test -n "$with_build_time_tools"; then
5213506e
RW
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11951$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11952 if test -x $with_build_time_tools/ld; then
11953 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11954 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11956$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11957 else
5213506e
RW
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
d1f8db0c 11960 fi
e8b05380
PB
11961 elif test $build != $host && test $have_gcc_for_target = yes; then
11962 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11963 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11964 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11965 fi
e8b05380 11966fi
3e19841a 11967if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11968 # Extract the first word of "ld", so it can be a program name with args.
11969set dummy ld; ac_word=$2
5213506e
RW
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11972if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 11973 $as_echo_n "(cached) " >&6
4de997d1 11974else
1c710c3c
DJ
11975 case $LD_FOR_TARGET in
11976 [\\/]* | ?:[\\/]*)
e8b05380
PB
11977 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11978 ;;
e8b05380 11979 *)
1c710c3c
DJ
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981for as_dir in $gcc_cv_tool_dirs
11982do
11983 IFS=$as_save_IFS
11984 test -z "$as_dir" && as_dir=.
5213506e 11985 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11987 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11989 break 2
11990 fi
11991done
5213506e
RW
11992 done
11993IFS=$as_save_IFS
1c710c3c 11994
e8b05380
PB
11995 ;;
11996esac
4de997d1 11997fi
1c710c3c 11998LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11999if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12001$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 12002else
5213506e
RW
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004$as_echo "no" >&6; }
4de997d1 12005fi
2693c0b0 12006
5213506e 12007
e8b05380
PB
12008fi
12009if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
12010
12011
12012if test -n "$LD_FOR_TARGET"; then
12013 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12014elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12015 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12016fi
12017
12018if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12019 for ncn_progname in ld; do
12020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12021set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12024if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12025 $as_echo_n "(cached) " >&6
278a7a38
AO
12026else
12027 if test -n "$LD_FOR_TARGET"; then
12028 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12029else
12030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031for as_dir in $PATH
12032do
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
5213506e 12035 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12037 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12039 break 2
12040 fi
12041done
5213506e
RW
12042 done
12043IFS=$as_save_IFS
278a7a38
AO
12044
12045fi
12046fi
12047LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12048if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12050$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 12051else
5213506e
RW
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053$as_echo "no" >&6; }
278a7a38
AO
12054fi
12055
5213506e 12056
278a7a38
AO
12057 done
12058fi
12059
12060if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12061 for ncn_progname in ld; do
5213506e
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12063$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12064 if test -x $with_build_time_tools/${ncn_progname}; then
12065 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12067$as_echo "yes" >&6; }
e8b05380
PB
12068 break
12069 else
5213506e
RW
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071$as_echo "no" >&6; }
e8b05380
PB
12072 fi
12073 done
ca9f4b81
AO
12074fi
12075
e8b05380
PB
12076if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12077 for ncn_progname in ld; do
12078 if test -n "$ncn_target_tool_prefix"; then
12079 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12080set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12082$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12083if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12084 $as_echo_n "(cached) " >&6
ca9f4b81 12085else
4de997d1
PB
12086 if test -n "$LD_FOR_TARGET"; then
12087 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 12088else
1c710c3c
DJ
12089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090for as_dir in $PATH
12091do
12092 IFS=$as_save_IFS
12093 test -z "$as_dir" && as_dir=.
5213506e 12094 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12096 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12098 break 2
12099 fi
12100done
5213506e
RW
12101 done
12102IFS=$as_save_IFS
1c710c3c 12103
ca9f4b81
AO
12104fi
12105fi
1c710c3c 12106LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 12107if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12109$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 12110else
5213506e
RW
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112$as_echo "no" >&6; }
ca9f4b81
AO
12113fi
12114
5213506e 12115
e8b05380
PB
12116 fi
12117 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12119set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12121$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12122if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12123 $as_echo_n "(cached) " >&6
ca9f4b81 12124else
2693c0b0
PB
12125 if test -n "$LD_FOR_TARGET"; then
12126 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 12127else
1c710c3c
DJ
12128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129for as_dir in $PATH
12130do
12131 IFS=$as_save_IFS
12132 test -z "$as_dir" && as_dir=.
5213506e 12133 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12135 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 12136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12137 break 2
12138 fi
12139done
5213506e
RW
12140 done
12141IFS=$as_save_IFS
1c710c3c 12142
ca9f4b81
AO
12143fi
12144fi
1c710c3c 12145LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 12146if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12148$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 12149else
5213506e
RW
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151$as_echo "no" >&6; }
ca9f4b81 12152fi
1c710c3c 12153
5213506e 12154
e8b05380
PB
12155 fi
12156 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12157 done
12158fi
1c710c3c 12159
2693c0b0
PB
12160if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12161 set dummy ld
12162 if test $build = $target ; then
12163 LD_FOR_TARGET="$2"
ca9f4b81 12164 else
2693c0b0 12165 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12166 fi
1c00b503
PB
12167else
12168 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
12169fi
12170
d1f8db0c
PB
12171else
12172 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
12173fi
12174
12175
12176
12177
12178if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12179 if test -n "$with_build_time_tools"; then
5213506e
RW
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12181$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12182 if test -x $with_build_time_tools/lipo; then
12183 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12184 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12186$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 12187 else
5213506e
RW
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189$as_echo "no" >&6; }
d1f8db0c 12190 fi
e8b05380
PB
12191 elif test $build != $host && test $have_gcc_for_target = yes; then
12192 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
12193 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12194 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
12195 fi
12196fi
278a7a38
AO
12197if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12198 # Extract the first word of "lipo", so it can be a program name with args.
12199set dummy lipo; ac_word=$2
5213506e
RW
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12201$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12202if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 12203 $as_echo_n "(cached) " >&6
278a7a38
AO
12204else
12205 case $LIPO_FOR_TARGET in
12206 [\\/]* | ?:[\\/]*)
12207 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12208 ;;
12209 *)
12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211for as_dir in $gcc_cv_tool_dirs
12212do
12213 IFS=$as_save_IFS
12214 test -z "$as_dir" && as_dir=.
5213506e 12215 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12217 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12219 break 2
12220 fi
12221done
5213506e
RW
12222 done
12223IFS=$as_save_IFS
278a7a38
AO
12224
12225 ;;
12226esac
12227fi
12228LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 12229if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12231$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 12232else
5213506e
RW
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234$as_echo "no" >&6; }
278a7a38
AO
12235fi
12236
5213506e 12237
278a7a38
AO
12238fi
12239if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12240
12241
12242if test -n "$LIPO_FOR_TARGET"; then
12243 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12244elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12245 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12246fi
12247
12248if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12249 for ncn_progname in lipo; do
12250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12251set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12253$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12254if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12255 $as_echo_n "(cached) " >&6
e8b05380 12256else
278a7a38
AO
12257 if test -n "$LIPO_FOR_TARGET"; then
12258 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12259else
12260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261for as_dir in $PATH
1c710c3c
DJ
12262do
12263 IFS=$as_save_IFS
12264 test -z "$as_dir" && as_dir=.
5213506e 12265 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12267 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12269 break 2
12270 fi
12271done
5213506e
RW
12272 done
12273IFS=$as_save_IFS
1c710c3c 12274
e8b05380 12275fi
278a7a38
AO
12276fi
12277LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 12278if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12280$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 12281else
5213506e
RW
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283$as_echo "no" >&6; }
e8b05380
PB
12284fi
12285
5213506e 12286
278a7a38 12287 done
e8b05380 12288fi
278a7a38
AO
12289
12290if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12291 for ncn_progname in lipo; do
5213506e
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12293$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12294 if test -x $with_build_time_tools/${ncn_progname}; then
12295 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12297$as_echo "yes" >&6; }
e8b05380
PB
12298 break
12299 else
5213506e
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301$as_echo "no" >&6; }
e8b05380
PB
12302 fi
12303 done
12304fi
12305
12306if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12307 for ncn_progname in lipo; do
12308 if test -n "$ncn_target_tool_prefix"; then
12309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12310set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12312$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12313if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12314 $as_echo_n "(cached) " >&6
040b1c5a
GK
12315else
12316 if test -n "$LIPO_FOR_TARGET"; then
12317 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12318else
1c710c3c
DJ
12319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320for as_dir in $PATH
12321do
12322 IFS=$as_save_IFS
12323 test -z "$as_dir" && as_dir=.
5213506e 12324 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12326 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12328 break 2
12329 fi
12330done
5213506e
RW
12331 done
12332IFS=$as_save_IFS
1c710c3c 12333
040b1c5a
GK
12334fi
12335fi
1c710c3c 12336LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12337if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12339$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12340else
5213506e
RW
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342$as_echo "no" >&6; }
040b1c5a
GK
12343fi
12344
5213506e 12345
e8b05380
PB
12346 fi
12347 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12349set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12351$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12352if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12353 $as_echo_n "(cached) " >&6
040b1c5a
GK
12354else
12355 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12356 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12357else
1c710c3c
DJ
12358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359for as_dir in $PATH
12360do
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
5213506e 12363 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12365 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12367 break 2
12368 fi
12369done
5213506e
RW
12370 done
12371IFS=$as_save_IFS
1c710c3c 12372
040b1c5a
GK
12373fi
12374fi
1c710c3c 12375LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12376if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12378$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12379else
5213506e
RW
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381$as_echo "no" >&6; }
040b1c5a 12382fi
1c710c3c 12383
5213506e 12384
e8b05380
PB
12385 fi
12386 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12387 done
12388fi
1c710c3c 12389
040b1c5a
GK
12390if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12391 set dummy lipo
12392 if test $build = $target ; then
12393 LIPO_FOR_TARGET="$2"
12394 else
12395 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12396 fi
1c00b503
PB
12397else
12398 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12399fi
12400
d1f8db0c
PB
12401else
12402 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12403fi
12404
12405
12406
12407
12408if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12409 if test -n "$with_build_time_tools"; then
5213506e
RW
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12411$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12412 if test -x $with_build_time_tools/nm; then
12413 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12414 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12416$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12417 else
5213506e
RW
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419$as_echo "no" >&6; }
d1f8db0c 12420 fi
e8b05380
PB
12421 elif test $build != $host && test $have_gcc_for_target = yes; then
12422 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12423 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12424 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12425 fi
12426fi
3e19841a 12427if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12428 # Extract the first word of "nm", so it can be a program name with args.
12429set dummy nm; ac_word=$2
5213506e
RW
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12432if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 12433 $as_echo_n "(cached) " >&6
e8b05380 12434else
1c710c3c
DJ
12435 case $NM_FOR_TARGET in
12436 [\\/]* | ?:[\\/]*)
e8b05380
PB
12437 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12438 ;;
e8b05380 12439 *)
1c710c3c
DJ
12440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441for as_dir in $gcc_cv_tool_dirs
12442do
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
5213506e 12445 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12447 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12449 break 2
12450 fi
12451done
5213506e
RW
12452 done
12453IFS=$as_save_IFS
1c710c3c 12454
e8b05380
PB
12455 ;;
12456esac
12457fi
1c710c3c 12458NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12459if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12461$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12462else
5213506e
RW
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464$as_echo "no" >&6; }
e8b05380
PB
12465fi
12466
5213506e 12467
e8b05380
PB
12468fi
12469if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12470
12471
12472if test -n "$NM_FOR_TARGET"; then
12473 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12474elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12475 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12476fi
12477
12478if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12479 for ncn_progname in nm; do
12480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12481set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12484if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12485 $as_echo_n "(cached) " >&6
278a7a38
AO
12486else
12487 if test -n "$NM_FOR_TARGET"; then
12488 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12489else
12490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491for as_dir in $PATH
12492do
12493 IFS=$as_save_IFS
12494 test -z "$as_dir" && as_dir=.
5213506e 12495 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12497 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12499 break 2
12500 fi
12501done
5213506e
RW
12502 done
12503IFS=$as_save_IFS
278a7a38
AO
12504
12505fi
12506fi
12507NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12508if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12510$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12511else
5213506e
RW
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513$as_echo "no" >&6; }
278a7a38
AO
12514fi
12515
5213506e 12516
278a7a38
AO
12517 done
12518fi
12519
12520if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12521 for ncn_progname in nm; do
5213506e
RW
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12523$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12524 if test -x $with_build_time_tools/${ncn_progname}; then
12525 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12527$as_echo "yes" >&6; }
e8b05380
PB
12528 break
12529 else
5213506e
RW
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531$as_echo "no" >&6; }
e8b05380
PB
12532 fi
12533 done
12534fi
12535
12536if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12537 for ncn_progname in nm; do
12538 if test -n "$ncn_target_tool_prefix"; then
12539 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12540set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12543if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12544 $as_echo_n "(cached) " >&6
ca9f4b81 12545else
4de997d1
PB
12546 if test -n "$NM_FOR_TARGET"; then
12547 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12548else
1c710c3c
DJ
12549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550for as_dir in $PATH
12551do
12552 IFS=$as_save_IFS
12553 test -z "$as_dir" && as_dir=.
5213506e 12554 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12556 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12558 break 2
12559 fi
12560done
5213506e
RW
12561 done
12562IFS=$as_save_IFS
1c710c3c 12563
ca9f4b81
AO
12564fi
12565fi
1c710c3c 12566NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12567if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12569$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12570else
5213506e
RW
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572$as_echo "no" >&6; }
ca9f4b81
AO
12573fi
12574
5213506e 12575
e8b05380
PB
12576 fi
12577 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12579set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12582if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12583 $as_echo_n "(cached) " >&6
ca9f4b81 12584else
2693c0b0
PB
12585 if test -n "$NM_FOR_TARGET"; then
12586 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12587else
1c710c3c
DJ
12588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589for as_dir in $PATH
12590do
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
5213506e 12593 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12595 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12597 break 2
12598 fi
12599done
5213506e
RW
12600 done
12601IFS=$as_save_IFS
1c710c3c 12602
ca9f4b81
AO
12603fi
12604fi
1c710c3c 12605NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12606if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12608$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12609else
5213506e
RW
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611$as_echo "no" >&6; }
ca9f4b81 12612fi
1c710c3c 12613
5213506e 12614
e8b05380
PB
12615 fi
12616 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12617 done
12618fi
1c710c3c 12619
2693c0b0
PB
12620if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12621 set dummy nm
12622 if test $build = $target ; then
12623 NM_FOR_TARGET="$2"
ca9f4b81 12624 else
2693c0b0 12625 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12626 fi
1c00b503
PB
12627else
12628 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12629fi
12630
d1f8db0c
PB
12631else
12632 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12633fi
12634
12635
12636
12637
9bccfdf5
AP
12638if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12639 if test -n "$with_build_time_tools"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12641$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12642 if test -x $with_build_time_tools/objcopy; then
12643 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12644 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12646$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649$as_echo "no" >&6; }
12650 fi
12651 elif test $build != $host && test $have_gcc_for_target = yes; then
12652 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12653 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12654 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12655 fi
12656fi
12657if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12658 # Extract the first word of "objcopy", so it can be a program name with args.
12659set dummy objcopy; ac_word=$2
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12662if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12663 $as_echo_n "(cached) " >&6
12664else
12665 case $OBJCOPY_FOR_TARGET in
12666 [\\/]* | ?:[\\/]*)
12667 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12668 ;;
12669 *)
12670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671for as_dir in $gcc_cv_tool_dirs
12672do
12673 IFS=$as_save_IFS
12674 test -z "$as_dir" && as_dir=.
12675 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12677 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12679 break 2
12680 fi
12681done
12682 done
12683IFS=$as_save_IFS
12684
12685 ;;
12686esac
12687fi
12688OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12689if test -n "$OBJCOPY_FOR_TARGET"; then
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12691$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12692else
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694$as_echo "no" >&6; }
12695fi
12696
12697
12698fi
12699if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12700
12701
12702if test -n "$OBJCOPY_FOR_TARGET"; then
12703 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12704elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12705 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12706fi
12707
12708if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12709 for ncn_progname in objcopy; do
12710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12711set dummy ${ncn_progname}; ac_word=$2
12712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12713$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12714if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12715 $as_echo_n "(cached) " >&6
12716else
12717 if test -n "$OBJCOPY_FOR_TARGET"; then
12718 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12719else
12720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12721for as_dir in $PATH
12722do
12723 IFS=$as_save_IFS
12724 test -z "$as_dir" && as_dir=.
12725 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12727 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12729 break 2
12730 fi
12731done
12732 done
12733IFS=$as_save_IFS
12734
12735fi
12736fi
12737OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12738if test -n "$OBJCOPY_FOR_TARGET"; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12740$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12741else
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743$as_echo "no" >&6; }
12744fi
12745
12746
12747 done
12748fi
12749
12750if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12751 for ncn_progname in objcopy; do
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12753$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12754 if test -x $with_build_time_tools/${ncn_progname}; then
12755 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12757$as_echo "yes" >&6; }
12758 break
12759 else
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761$as_echo "no" >&6; }
12762 fi
12763 done
12764fi
12765
12766if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12767 for ncn_progname in objcopy; do
12768 if test -n "$ncn_target_tool_prefix"; then
12769 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12770set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12773if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12774 $as_echo_n "(cached) " >&6
12775else
12776 if test -n "$OBJCOPY_FOR_TARGET"; then
12777 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12778else
12779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780for as_dir in $PATH
12781do
12782 IFS=$as_save_IFS
12783 test -z "$as_dir" && as_dir=.
12784 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12786 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12788 break 2
12789 fi
12790done
12791 done
12792IFS=$as_save_IFS
12793
12794fi
12795fi
12796OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12797if test -n "$OBJCOPY_FOR_TARGET"; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12799$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12800else
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802$as_echo "no" >&6; }
12803fi
12804
12805
12806 fi
12807 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12809set dummy ${ncn_progname}; ac_word=$2
12810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12811$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12812if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
12813 $as_echo_n "(cached) " >&6
12814else
12815 if test -n "$OBJCOPY_FOR_TARGET"; then
12816 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12817else
12818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819for as_dir in $PATH
12820do
12821 IFS=$as_save_IFS
12822 test -z "$as_dir" && as_dir=.
12823 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
12825 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12827 break 2
12828 fi
12829done
12830 done
12831IFS=$as_save_IFS
12832
12833fi
12834fi
12835OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12836if test -n "$OBJCOPY_FOR_TARGET"; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12838$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12839else
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841$as_echo "no" >&6; }
12842fi
12843
12844
12845 fi
12846 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12847 done
12848fi
12849
12850if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12851 set dummy objcopy
12852 if test $build = $target ; then
12853 OBJCOPY_FOR_TARGET="$2"
12854 else
12855 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12856 fi
12857else
12858 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12859fi
12860
12861else
12862 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12863fi
12864
12865
12866
12867
e8b05380
PB
12868if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12869 if test -n "$with_build_time_tools"; then
5213506e
RW
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12871$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12872 if test -x $with_build_time_tools/objdump; then
12873 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12874 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12876$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12877 else
5213506e
RW
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879$as_echo "no" >&6; }
d1f8db0c 12880 fi
e8b05380
PB
12881 elif test $build != $host && test $have_gcc_for_target = yes; then
12882 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12883 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12884 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12885 fi
12886fi
3e19841a 12887if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12888 # Extract the first word of "objdump", so it can be a program name with args.
12889set dummy objdump; ac_word=$2
5213506e
RW
12890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12892if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12893 $as_echo_n "(cached) " >&6
e8b05380 12894else
1c710c3c
DJ
12895 case $OBJDUMP_FOR_TARGET in
12896 [\\/]* | ?:[\\/]*)
e8b05380
PB
12897 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12898 ;;
e8b05380 12899 *)
1c710c3c
DJ
12900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901for as_dir in $gcc_cv_tool_dirs
12902do
12903 IFS=$as_save_IFS
12904 test -z "$as_dir" && as_dir=.
5213506e 12905 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12907 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12909 break 2
12910 fi
12911done
5213506e
RW
12912 done
12913IFS=$as_save_IFS
1c710c3c 12914
e8b05380
PB
12915 ;;
12916esac
12917fi
1c710c3c 12918OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12919if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12921$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12922else
5213506e
RW
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924$as_echo "no" >&6; }
e8b05380
PB
12925fi
12926
5213506e 12927
e8b05380
PB
12928fi
12929if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12930
12931
12932if test -n "$OBJDUMP_FOR_TARGET"; then
12933 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12934elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12935 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12936fi
12937
12938if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12939 for ncn_progname in objdump; do
12940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12941set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12944if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 12945 $as_echo_n "(cached) " >&6
278a7a38
AO
12946else
12947 if test -n "$OBJDUMP_FOR_TARGET"; then
12948 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12949else
12950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951for as_dir in $PATH
12952do
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
5213506e 12955 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12957 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12959 break 2
12960 fi
12961done
5213506e
RW
12962 done
12963IFS=$as_save_IFS
278a7a38
AO
12964
12965fi
12966fi
12967OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12968if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12970$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12971else
5213506e
RW
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973$as_echo "no" >&6; }
278a7a38
AO
12974fi
12975
5213506e 12976
278a7a38
AO
12977 done
12978fi
12979
12980if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12981 for ncn_progname in objdump; do
5213506e
RW
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12983$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12984 if test -x $with_build_time_tools/${ncn_progname}; then
12985 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12987$as_echo "yes" >&6; }
e8b05380
PB
12988 break
12989 else
5213506e
RW
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991$as_echo "no" >&6; }
e8b05380
PB
12992 fi
12993 done
12994fi
12995
12996if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12997 for ncn_progname in objdump; do
12998 if test -n "$ncn_target_tool_prefix"; then
12999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13000set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13003if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 13004 $as_echo_n "(cached) " >&6
d739199a
DJ
13005else
13006 if test -n "$OBJDUMP_FOR_TARGET"; then
13007 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13008else
1c710c3c
DJ
13009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010for as_dir in $PATH
13011do
13012 IFS=$as_save_IFS
13013 test -z "$as_dir" && as_dir=.
5213506e 13014 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13016 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13018 break 2
13019 fi
13020done
5213506e
RW
13021 done
13022IFS=$as_save_IFS
1c710c3c 13023
d739199a
DJ
13024fi
13025fi
1c710c3c 13026OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 13027if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13029$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 13030else
5213506e
RW
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032$as_echo "no" >&6; }
d739199a
DJ
13033fi
13034
5213506e 13035
e8b05380
PB
13036 fi
13037 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 13039set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13042if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 13043 $as_echo_n "(cached) " >&6
d739199a
DJ
13044else
13045 if test -n "$OBJDUMP_FOR_TARGET"; then
13046 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13047else
1c710c3c
DJ
13048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049for as_dir in $PATH
13050do
13051 IFS=$as_save_IFS
13052 test -z "$as_dir" && as_dir=.
5213506e 13053 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13055 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 13056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13057 break 2
13058 fi
13059done
5213506e
RW
13060 done
13061IFS=$as_save_IFS
1c710c3c 13062
d739199a
DJ
13063fi
13064fi
1c710c3c 13065OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 13066if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13068$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 13069else
5213506e
RW
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071$as_echo "no" >&6; }
d739199a 13072fi
1c710c3c 13073
5213506e 13074
e8b05380
PB
13075 fi
13076 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13077 done
13078fi
1c710c3c 13079
d739199a
DJ
13080if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13081 set dummy objdump
13082 if test $build = $target ; then
13083 OBJDUMP_FOR_TARGET="$2"
13084 else
13085 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13086 fi
1c00b503
PB
13087else
13088 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
13089fi
13090
d1f8db0c
PB
13091else
13092 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
13093fi
13094
13095
13096
13097
e4a9a572
IS
13098if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13099 if test -n "$with_build_time_tools"; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
13101$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
13102 if test -x $with_build_time_tools/otool; then
13103 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
13104 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
13106$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
13107 else
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109$as_echo "no" >&6; }
13110 fi
13111 elif test $build != $host && test $have_gcc_for_target = yes; then
13112 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
13113 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
13114 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13115 fi
13116fi
13117if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13118 # Extract the first word of "otool", so it can be a program name with args.
13119set dummy otool; ac_word=$2
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121$as_echo_n "checking for $ac_word... " >&6; }
13122if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13123 $as_echo_n "(cached) " >&6
13124else
13125 case $OTOOL_FOR_TARGET in
13126 [\\/]* | ?:[\\/]*)
13127 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13128 ;;
13129 *)
13130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131for as_dir in $gcc_cv_tool_dirs
13132do
13133 IFS=$as_save_IFS
13134 test -z "$as_dir" && as_dir=.
13135 for ac_exec_ext in '' $ac_executable_extensions; do
13136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13137 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13139 break 2
13140 fi
13141done
13142 done
13143IFS=$as_save_IFS
13144
13145 ;;
13146esac
13147fi
13148OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13149if test -n "$OTOOL_FOR_TARGET"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13151$as_echo "$OTOOL_FOR_TARGET" >&6; }
13152else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154$as_echo "no" >&6; }
13155fi
13156
13157
13158fi
13159if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13160
13161
13162if test -n "$OTOOL_FOR_TARGET"; then
13163 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13164elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13165 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13166fi
13167
13168if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13169 for ncn_progname in otool; do
13170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13171set dummy ${ncn_progname}; ac_word=$2
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173$as_echo_n "checking for $ac_word... " >&6; }
13174if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13175 $as_echo_n "(cached) " >&6
13176else
13177 if test -n "$OTOOL_FOR_TARGET"; then
13178 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13179else
13180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181for as_dir in $PATH
13182do
13183 IFS=$as_save_IFS
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13187 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189 break 2
13190 fi
13191done
13192 done
13193IFS=$as_save_IFS
13194
13195fi
13196fi
13197OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13198if test -n "$OTOOL_FOR_TARGET"; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13200$as_echo "$OTOOL_FOR_TARGET" >&6; }
13201else
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203$as_echo "no" >&6; }
13204fi
13205
13206
13207 done
13208fi
13209
13210if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13211 for ncn_progname in otool; do
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13213$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13214 if test -x $with_build_time_tools/${ncn_progname}; then
13215 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13217$as_echo "yes" >&6; }
13218 break
13219 else
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221$as_echo "no" >&6; }
13222 fi
13223 done
13224fi
13225
13226if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13227 for ncn_progname in otool; do
13228 if test -n "$ncn_target_tool_prefix"; then
13229 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13230set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232$as_echo_n "checking for $ac_word... " >&6; }
13233if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13234 $as_echo_n "(cached) " >&6
13235else
13236 if test -n "$OTOOL_FOR_TARGET"; then
13237 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13238else
13239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240for as_dir in $PATH
13241do
13242 IFS=$as_save_IFS
13243 test -z "$as_dir" && as_dir=.
13244 for ac_exec_ext in '' $ac_executable_extensions; do
13245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13246 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13248 break 2
13249 fi
13250done
13251 done
13252IFS=$as_save_IFS
13253
13254fi
13255fi
13256OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13257if test -n "$OTOOL_FOR_TARGET"; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13259$as_echo "$OTOOL_FOR_TARGET" >&6; }
13260else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262$as_echo "no" >&6; }
13263fi
13264
13265
13266 fi
13267 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13269set dummy ${ncn_progname}; ac_word=$2
13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271$as_echo_n "checking for $ac_word... " >&6; }
13272if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274else
13275 if test -n "$OTOOL_FOR_TARGET"; then
13276 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13277else
13278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279for as_dir in $PATH
13280do
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13285 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13288 fi
13289done
13290 done
13291IFS=$as_save_IFS
13292
13293fi
13294fi
13295OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13296if test -n "$OTOOL_FOR_TARGET"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13298$as_echo "$OTOOL_FOR_TARGET" >&6; }
13299else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301$as_echo "no" >&6; }
13302fi
13303
13304
13305 fi
13306 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13307 done
13308fi
13309
13310if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13311 set dummy otool
13312 if test $build = $target ; then
13313 OTOOL_FOR_TARGET="$2"
13314 else
13315 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13316 fi
13317else
13318 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13319fi
13320
13321else
13322 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13323fi
13324
13325
13326
13327
e8b05380
PB
13328if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13329 if test -n "$with_build_time_tools"; then
5213506e
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13331$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13332 if test -x $with_build_time_tools/ranlib; then
13333 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13334 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13336$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 13337 else
5213506e
RW
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13339$as_echo "no" >&6; }
d1f8db0c 13340 fi
e8b05380
PB
13341 elif test $build != $host && test $have_gcc_for_target = yes; then
13342 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
13343 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13344 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
13345 fi
13346fi
3e19841a 13347if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13348 # Extract the first word of "ranlib", so it can be a program name with args.
13349set dummy ranlib; ac_word=$2
5213506e
RW
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13352if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 13353 $as_echo_n "(cached) " >&6
e8b05380 13354else
1c710c3c
DJ
13355 case $RANLIB_FOR_TARGET in
13356 [\\/]* | ?:[\\/]*)
e8b05380
PB
13357 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13358 ;;
e8b05380 13359 *)
1c710c3c
DJ
13360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361for as_dir in $gcc_cv_tool_dirs
13362do
13363 IFS=$as_save_IFS
13364 test -z "$as_dir" && as_dir=.
5213506e 13365 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13367 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13369 break 2
13370 fi
13371done
5213506e
RW
13372 done
13373IFS=$as_save_IFS
1c710c3c 13374
e8b05380
PB
13375 ;;
13376esac
13377fi
1c710c3c 13378RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 13379if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13381$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 13382else
5213506e
RW
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384$as_echo "no" >&6; }
e8b05380
PB
13385fi
13386
5213506e 13387
e8b05380
PB
13388fi
13389if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
13390
13391
13392if test -n "$RANLIB_FOR_TARGET"; then
13393 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13394elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13395 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13396fi
13397
13398if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13399 for ncn_progname in ranlib; do
13400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13401set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13403$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13404if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13405 $as_echo_n "(cached) " >&6
278a7a38
AO
13406else
13407 if test -n "$RANLIB_FOR_TARGET"; then
13408 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13409else
13410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411for as_dir in $PATH
13412do
13413 IFS=$as_save_IFS
13414 test -z "$as_dir" && as_dir=.
5213506e 13415 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13417 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13419 break 2
13420 fi
13421done
5213506e
RW
13422 done
13423IFS=$as_save_IFS
278a7a38
AO
13424
13425fi
13426fi
13427RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13428if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13430$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 13431else
5213506e
RW
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433$as_echo "no" >&6; }
278a7a38
AO
13434fi
13435
5213506e 13436
278a7a38
AO
13437 done
13438fi
13439
13440if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13441 for ncn_progname in ranlib; do
5213506e
RW
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13443$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13444 if test -x $with_build_time_tools/${ncn_progname}; then
13445 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13447$as_echo "yes" >&6; }
e8b05380
PB
13448 break
13449 else
5213506e
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451$as_echo "no" >&6; }
e8b05380
PB
13452 fi
13453 done
13454fi
13455
13456if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13457 for ncn_progname in ranlib; do
13458 if test -n "$ncn_target_tool_prefix"; then
13459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 13460set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13462$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13463if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13464 $as_echo_n "(cached) " >&6
ca9f4b81 13465else
4de997d1
PB
13466 if test -n "$RANLIB_FOR_TARGET"; then
13467 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13468else
1c710c3c
DJ
13469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13470for as_dir in $PATH
13471do
13472 IFS=$as_save_IFS
13473 test -z "$as_dir" && as_dir=.
5213506e 13474 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13476 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13478 break 2
13479 fi
13480done
5213506e
RW
13481 done
13482IFS=$as_save_IFS
1c710c3c 13483
ca9f4b81
AO
13484fi
13485fi
1c710c3c 13486RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 13487if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13489$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13490else
5213506e
RW
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492$as_echo "no" >&6; }
ca9f4b81
AO
13493fi
13494
5213506e 13495
e8b05380
PB
13496 fi
13497 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13499set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13501$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13502if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13503 $as_echo_n "(cached) " >&6
ca9f4b81 13504else
2693c0b0
PB
13505 if test -n "$RANLIB_FOR_TARGET"; then
13506 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13507else
1c710c3c
DJ
13508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509for as_dir in $PATH
13510do
13511 IFS=$as_save_IFS
13512 test -z "$as_dir" && as_dir=.
5213506e 13513 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13515 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13517 break 2
13518 fi
13519done
5213506e
RW
13520 done
13521IFS=$as_save_IFS
1c710c3c 13522
ca9f4b81
AO
13523fi
13524fi
1c710c3c 13525RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 13526if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13528$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13529else
5213506e
RW
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531$as_echo "no" >&6; }
ca9f4b81 13532fi
1c710c3c 13533
5213506e 13534
e8b05380
PB
13535 fi
13536 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13537 done
13538fi
1c710c3c 13539
e8b05380
PB
13540if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13541 set dummy ranlib
13542 if test $build = $target ; then
13543 RANLIB_FOR_TARGET="$2"
13544 else
13545 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13546 fi
1c00b503
PB
13547else
13548 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 13549fi
2693c0b0 13550
d1f8db0c
PB
13551else
13552 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
13553fi
13554
e8b05380
PB
13555
13556
13557
e7a82751
RM
13558if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13559 if test -n "$with_build_time_tools"; then
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13561$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13562 if test -x $with_build_time_tools/readelf; then
13563 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13564 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13566$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13567 else
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569$as_echo "no" >&6; }
13570 fi
13571 elif test $build != $host && test $have_gcc_for_target = yes; then
13572 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13573 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13574 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13575 fi
13576fi
13577if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13578 # Extract the first word of "readelf", so it can be a program name with args.
13579set dummy readelf; ac_word=$2
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13582if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13583 $as_echo_n "(cached) " >&6
13584else
13585 case $READELF_FOR_TARGET in
13586 [\\/]* | ?:[\\/]*)
13587 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13588 ;;
13589 *)
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591for as_dir in $gcc_cv_tool_dirs
13592do
13593 IFS=$as_save_IFS
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13597 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 break 2
13600 fi
13601done
13602 done
13603IFS=$as_save_IFS
13604
13605 ;;
13606esac
13607fi
13608READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13609if test -n "$READELF_FOR_TARGET"; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13611$as_echo "$READELF_FOR_TARGET" >&6; }
13612else
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614$as_echo "no" >&6; }
13615fi
13616
13617
13618fi
13619if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13620
13621
13622if test -n "$READELF_FOR_TARGET"; then
13623 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13624elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13625 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13626fi
13627
13628if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13629 for ncn_progname in readelf; do
13630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13631set dummy ${ncn_progname}; ac_word=$2
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13633$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13634if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13635 $as_echo_n "(cached) " >&6
13636else
13637 if test -n "$READELF_FOR_TARGET"; then
13638 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13639else
13640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641for as_dir in $PATH
13642do
13643 IFS=$as_save_IFS
13644 test -z "$as_dir" && as_dir=.
13645 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13647 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13649 break 2
13650 fi
13651done
13652 done
13653IFS=$as_save_IFS
13654
13655fi
13656fi
13657READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13658if test -n "$READELF_FOR_TARGET"; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13660$as_echo "$READELF_FOR_TARGET" >&6; }
13661else
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663$as_echo "no" >&6; }
13664fi
13665
13666
13667 done
13668fi
13669
13670if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13671 for ncn_progname in readelf; do
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13673$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13674 if test -x $with_build_time_tools/${ncn_progname}; then
13675 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13677$as_echo "yes" >&6; }
13678 break
13679 else
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681$as_echo "no" >&6; }
13682 fi
13683 done
13684fi
13685
13686if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13687 for ncn_progname in readelf; do
13688 if test -n "$ncn_target_tool_prefix"; then
13689 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13690set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13692$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13693if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13694 $as_echo_n "(cached) " >&6
13695else
13696 if test -n "$READELF_FOR_TARGET"; then
13697 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13698else
13699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700for as_dir in $PATH
13701do
13702 IFS=$as_save_IFS
13703 test -z "$as_dir" && as_dir=.
13704 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13706 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13708 break 2
13709 fi
13710done
13711 done
13712IFS=$as_save_IFS
13713
13714fi
13715fi
13716READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13717if test -n "$READELF_FOR_TARGET"; then
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13719$as_echo "$READELF_FOR_TARGET" >&6; }
13720else
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722$as_echo "no" >&6; }
13723fi
13724
13725
13726 fi
13727 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13729set dummy ${ncn_progname}; ac_word=$2
13730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13731$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13732if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13733 $as_echo_n "(cached) " >&6
13734else
13735 if test -n "$READELF_FOR_TARGET"; then
13736 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13737else
13738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739for as_dir in $PATH
13740do
13741 IFS=$as_save_IFS
13742 test -z "$as_dir" && as_dir=.
13743 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13745 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13747 break 2
13748 fi
13749done
13750 done
13751IFS=$as_save_IFS
13752
13753fi
13754fi
13755READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13756if test -n "$READELF_FOR_TARGET"; then
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13758$as_echo "$READELF_FOR_TARGET" >&6; }
13759else
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13761$as_echo "no" >&6; }
13762fi
13763
13764
13765 fi
13766 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13767 done
13768fi
13769
13770if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13771 set dummy readelf
13772 if test $build = $target ; then
13773 READELF_FOR_TARGET="$2"
13774 else
13775 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13776 fi
13777else
13778 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13779fi
13780
13781else
13782 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13783fi
13784
13785
13786
13787
e8b05380
PB
13788if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13789 if test -n "$with_build_time_tools"; then
5213506e
RW
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13791$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13792 if test -x $with_build_time_tools/strip; then
13793 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13794 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13796$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13797 else
5213506e
RW
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799$as_echo "no" >&6; }
d1f8db0c 13800 fi
e8b05380
PB
13801 elif test $build != $host && test $have_gcc_for_target = yes; then
13802 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13803 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13804 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13805 fi
13806fi
3e19841a 13807if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13808 # Extract the first word of "strip", so it can be a program name with args.
13809set dummy strip; ac_word=$2
5213506e
RW
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13811$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13812if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 13813 $as_echo_n "(cached) " >&6
e8b05380 13814else
1c710c3c
DJ
13815 case $STRIP_FOR_TARGET in
13816 [\\/]* | ?:[\\/]*)
e8b05380
PB
13817 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13818 ;;
e8b05380 13819 *)
1c710c3c
DJ
13820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13821for as_dir in $gcc_cv_tool_dirs
13822do
13823 IFS=$as_save_IFS
13824 test -z "$as_dir" && as_dir=.
5213506e 13825 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13827 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13829 break 2
13830 fi
13831done
5213506e
RW
13832 done
13833IFS=$as_save_IFS
1c710c3c 13834
e8b05380
PB
13835 ;;
13836esac
13837fi
1c710c3c 13838STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13839if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13841$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13842else
5213506e
RW
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844$as_echo "no" >&6; }
e8b05380
PB
13845fi
13846
5213506e 13847
e8b05380
PB
13848fi
13849if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13850
13851
13852if test -n "$STRIP_FOR_TARGET"; then
13853 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13854elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13855 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13856fi
13857
13858if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13859 for ncn_progname in strip; do
13860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13861set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13863$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13864if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13865 $as_echo_n "(cached) " >&6
278a7a38
AO
13866else
13867 if test -n "$STRIP_FOR_TARGET"; then
13868 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13869else
13870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871for as_dir in $PATH
13872do
13873 IFS=$as_save_IFS
13874 test -z "$as_dir" && as_dir=.
5213506e 13875 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13877 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13879 break 2
13880 fi
13881done
5213506e
RW
13882 done
13883IFS=$as_save_IFS
278a7a38
AO
13884
13885fi
13886fi
13887STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13888if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13890$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13891else
5213506e
RW
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893$as_echo "no" >&6; }
278a7a38
AO
13894fi
13895
5213506e 13896
278a7a38
AO
13897 done
13898fi
13899
13900if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13901 for ncn_progname in strip; do
5213506e
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13903$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13904 if test -x $with_build_time_tools/${ncn_progname}; then
13905 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13907$as_echo "yes" >&6; }
e8b05380
PB
13908 break
13909 else
5213506e
RW
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911$as_echo "no" >&6; }
e8b05380
PB
13912 fi
13913 done
13914fi
13915
13916if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13917 for ncn_progname in strip; do
13918 if test -n "$ncn_target_tool_prefix"; then
13919 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13920set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13922$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13923if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13924 $as_echo_n "(cached) " >&6
af71363e
AS
13925else
13926 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13927 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13928else
13929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930for as_dir in $PATH
13931do
13932 IFS=$as_save_IFS
13933 test -z "$as_dir" && as_dir=.
5213506e 13934 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13936 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13938 break 2
13939 fi
13940done
5213506e
RW
13941 done
13942IFS=$as_save_IFS
1c710c3c 13943
040b1c5a
GK
13944fi
13945fi
1c710c3c 13946STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13947if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13949$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13950else
5213506e
RW
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952$as_echo "no" >&6; }
040b1c5a
GK
13953fi
13954
5213506e 13955
e8b05380
PB
13956 fi
13957 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13959set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13961$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13962if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 13963 $as_echo_n "(cached) " >&6
040b1c5a
GK
13964else
13965 if test -n "$STRIP_FOR_TARGET"; then
13966 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13967else
1c710c3c
DJ
13968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13969for as_dir in $PATH
13970do
13971 IFS=$as_save_IFS
13972 test -z "$as_dir" && as_dir=.
5213506e 13973 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13975 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13977 break 2
13978 fi
13979done
5213506e
RW
13980 done
13981IFS=$as_save_IFS
1c710c3c 13982
040b1c5a
GK
13983fi
13984fi
1c710c3c 13985STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13986if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13988$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13989else
5213506e
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13991$as_echo "no" >&6; }
040b1c5a 13992fi
1c710c3c 13993
5213506e 13994
e8b05380
PB
13995 fi
13996 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13997 done
13998fi
1c710c3c 13999
040b1c5a
GK
14000if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
14001 set dummy strip
14002 if test $build = $target ; then
14003 STRIP_FOR_TARGET="$2"
14004 else
14005 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
14006 fi
1c00b503
PB
14007else
14008 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
14009fi
14010
d1f8db0c
PB
14011else
14012 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
14013fi
14014
14015
14016
14017
14018if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
14019 if test -n "$with_build_time_tools"; then
5213506e
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
14021$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14022 if test -x $with_build_time_tools/windres; then
14023 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
14024 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
14026$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 14027 else
5213506e
RW
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14029$as_echo "no" >&6; }
d1f8db0c 14030 fi
e8b05380
PB
14031 elif test $build != $host && test $have_gcc_for_target = yes; then
14032 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
14033 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
14034 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
14035 fi
14036fi
3e19841a 14037if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14038 # Extract the first word of "windres", so it can be a program name with args.
14039set dummy windres; ac_word=$2
5213506e
RW
14040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14041$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14042if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 14043 $as_echo_n "(cached) " >&6
e8b05380 14044else
1c710c3c
DJ
14045 case $WINDRES_FOR_TARGET in
14046 [\\/]* | ?:[\\/]*)
e8b05380
PB
14047 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
14048 ;;
e8b05380 14049 *)
1c710c3c
DJ
14050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051for as_dir in $gcc_cv_tool_dirs
14052do
14053 IFS=$as_save_IFS
14054 test -z "$as_dir" && as_dir=.
5213506e 14055 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14057 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14059 break 2
14060 fi
14061done
5213506e
RW
14062 done
14063IFS=$as_save_IFS
1c710c3c 14064
e8b05380
PB
14065 ;;
14066esac
14067fi
1c710c3c 14068WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 14069if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14071$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 14072else
5213506e
RW
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14074$as_echo "no" >&6; }
e8b05380
PB
14075fi
14076
5213506e 14077
e8b05380
PB
14078fi
14079if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
14080
14081
14082if test -n "$WINDRES_FOR_TARGET"; then
14083 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14084elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14085 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14086fi
14087
14088if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14089 for ncn_progname in windres; do
14090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14091set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14093$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14094if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14095 $as_echo_n "(cached) " >&6
278a7a38
AO
14096else
14097 if test -n "$WINDRES_FOR_TARGET"; then
14098 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14099else
14100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101for as_dir in $PATH
14102do
14103 IFS=$as_save_IFS
14104 test -z "$as_dir" && as_dir=.
5213506e 14105 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14107 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 14108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14109 break 2
14110 fi
14111done
5213506e
RW
14112 done
14113IFS=$as_save_IFS
278a7a38
AO
14114
14115fi
14116fi
14117WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14118if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14120$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 14121else
5213506e
RW
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14123$as_echo "no" >&6; }
278a7a38
AO
14124fi
14125
5213506e 14126
278a7a38
AO
14127 done
14128fi
14129
14130if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14131 for ncn_progname in windres; do
5213506e
RW
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14133$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14134 if test -x $with_build_time_tools/${ncn_progname}; then
14135 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14137$as_echo "yes" >&6; }
e8b05380
PB
14138 break
14139 else
5213506e
RW
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14141$as_echo "no" >&6; }
e8b05380
PB
14142 fi
14143 done
14144fi
14145
14146if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14147 for ncn_progname in windres; do
14148 if test -n "$ncn_target_tool_prefix"; then
14149 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14150set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14152$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14153if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14154 $as_echo_n "(cached) " >&6
ca9f4b81 14155else
4de997d1
PB
14156 if test -n "$WINDRES_FOR_TARGET"; then
14157 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14158else
1c710c3c
DJ
14159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14160for as_dir in $PATH
14161do
14162 IFS=$as_save_IFS
14163 test -z "$as_dir" && as_dir=.
5213506e 14164 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14166 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14168 break 2
14169 fi
14170done
5213506e
RW
14171 done
14172IFS=$as_save_IFS
1c710c3c 14173
ca9f4b81
AO
14174fi
14175fi
1c710c3c 14176WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 14177if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14179$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14180else
5213506e
RW
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14182$as_echo "no" >&6; }
ca9f4b81
AO
14183fi
14184
5213506e 14185
e8b05380
PB
14186 fi
14187 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14189set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14191$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14192if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14193 $as_echo_n "(cached) " >&6
ca9f4b81 14194else
2693c0b0
PB
14195 if test -n "$WINDRES_FOR_TARGET"; then
14196 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14197else
1c710c3c
DJ
14198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14199for as_dir in $PATH
14200do
14201 IFS=$as_save_IFS
14202 test -z "$as_dir" && as_dir=.
5213506e 14203 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14205 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 14206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14207 break 2
14208 fi
14209done
5213506e
RW
14210 done
14211IFS=$as_save_IFS
1c710c3c 14212
ca9f4b81
AO
14213fi
14214fi
1c710c3c 14215WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 14216if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14218$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14219else
5213506e
RW
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221$as_echo "no" >&6; }
ca9f4b81 14222fi
1c710c3c 14223
5213506e 14224
e8b05380
PB
14225 fi
14226 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14227 done
14228fi
1c710c3c 14229
2693c0b0
PB
14230if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14231 set dummy windres
14232 if test $build = $target ; then
14233 WINDRES_FOR_TARGET="$2"
ca9f4b81 14234 else
2693c0b0 14235 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14236 fi
1c00b503
PB
14237else
14238 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
14239fi
14240
d1f8db0c
PB
14241else
14242 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
14243fi
14244
4977bab6 14245
901119ae
KT
14246
14247
14248if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14249 if test -n "$with_build_time_tools"; then
5213506e
RW
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14251$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
14252 if test -x $with_build_time_tools/windmc; then
14253 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14254 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14256$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 14257 else
5213506e
RW
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259$as_echo "no" >&6; }
901119ae
KT
14260 fi
14261 elif test $build != $host && test $have_gcc_for_target = yes; then
14262 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
14263 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14264 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
14265 fi
14266fi
14267if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14268 # Extract the first word of "windmc", so it can be a program name with args.
14269set dummy windmc; ac_word=$2
5213506e
RW
14270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14271$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14272if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 14273 $as_echo_n "(cached) " >&6
901119ae
KT
14274else
14275 case $WINDMC_FOR_TARGET in
14276 [\\/]* | ?:[\\/]*)
14277 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14278 ;;
14279 *)
14280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281for as_dir in $gcc_cv_tool_dirs
14282do
14283 IFS=$as_save_IFS
14284 test -z "$as_dir" && as_dir=.
5213506e 14285 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14287 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14289 break 2
14290 fi
14291done
5213506e
RW
14292 done
14293IFS=$as_save_IFS
901119ae
KT
14294
14295 ;;
14296esac
14297fi
14298WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 14299if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14301$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14302else
5213506e
RW
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304$as_echo "no" >&6; }
901119ae
KT
14305fi
14306
5213506e 14307
901119ae
KT
14308fi
14309if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14310
14311
14312if test -n "$WINDMC_FOR_TARGET"; then
14313 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14314elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14315 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14316fi
14317
14318if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14319 for ncn_progname in windmc; do
14320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14321set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14323$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14324if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14325 $as_echo_n "(cached) " >&6
901119ae
KT
14326else
14327 if test -n "$WINDMC_FOR_TARGET"; then
14328 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14329else
14330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14331for as_dir in $PATH
14332do
14333 IFS=$as_save_IFS
14334 test -z "$as_dir" && as_dir=.
5213506e 14335 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14337 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14339 break 2
14340 fi
14341done
5213506e
RW
14342 done
14343IFS=$as_save_IFS
901119ae
KT
14344
14345fi
14346fi
14347WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14348if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14350$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14351else
5213506e
RW
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14353$as_echo "no" >&6; }
901119ae
KT
14354fi
14355
5213506e 14356
901119ae
KT
14357 done
14358fi
14359
14360if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14361 for ncn_progname in windmc; do
5213506e
RW
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14363$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
14364 if test -x $with_build_time_tools/${ncn_progname}; then
14365 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14367$as_echo "yes" >&6; }
901119ae
KT
14368 break
14369 else
5213506e
RW
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371$as_echo "no" >&6; }
901119ae
KT
14372 fi
14373 done
14374fi
14375
14376if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14377 for ncn_progname in windmc; do
14378 if test -n "$ncn_target_tool_prefix"; then
14379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14380set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14382$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14383if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14384 $as_echo_n "(cached) " >&6
901119ae
KT
14385else
14386 if test -n "$WINDMC_FOR_TARGET"; then
14387 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14388else
14389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14390for as_dir in $PATH
14391do
14392 IFS=$as_save_IFS
14393 test -z "$as_dir" && as_dir=.
5213506e 14394 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14396 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14398 break 2
14399 fi
14400done
5213506e
RW
14401 done
14402IFS=$as_save_IFS
901119ae
KT
14403
14404fi
14405fi
14406WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14407if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14409$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14410else
5213506e
RW
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412$as_echo "no" >&6; }
901119ae
KT
14413fi
14414
5213506e 14415
901119ae
KT
14416 fi
14417 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14419set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14421$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14422if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14423 $as_echo_n "(cached) " >&6
901119ae
KT
14424else
14425 if test -n "$WINDMC_FOR_TARGET"; then
14426 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14427else
14428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14429for as_dir in $PATH
14430do
14431 IFS=$as_save_IFS
14432 test -z "$as_dir" && as_dir=.
5213506e 14433 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14435 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14437 break 2
14438 fi
14439done
5213506e
RW
14440 done
14441IFS=$as_save_IFS
901119ae
KT
14442
14443fi
14444fi
14445WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14446if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14448$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14449else
5213506e
RW
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14451$as_echo "no" >&6; }
901119ae
KT
14452fi
14453
5213506e 14454
901119ae
KT
14455 fi
14456 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14457 done
14458fi
14459
14460if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14461 set dummy windmc
14462 if test $build = $target ; then
14463 WINDMC_FOR_TARGET="$2"
14464 else
14465 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14466 fi
1c00b503
PB
14467else
14468 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
14469fi
14470
14471else
14472 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14473fi
14474
14475
2abefe3d
PB
14476RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14477
5213506e
RW
14478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14479$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 14480if test "x${build}" != "x${host}" ; then
e8b05380
PB
14481 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14482 # We already found the complete path
172e41aa 14483 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14485$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14486 else
14487 # Canadian cross, just use what we found
5213506e
RW
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14489$as_echo "pre-installed" >&6; }
e8b05380 14490 fi
2abefe3d
PB
14491else
14492 ok=yes
14493 case " ${configdirs} " in
14494 *" binutils "*) ;;
14495 *) ok=no ;;
14496 esac
1c710c3c 14497
2abefe3d
PB
14498 if test $ok = yes; then
14499 # An in-tree tool is available and we can use it
14500 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14502$as_echo "just compiled" >&6; }
e8b05380
PB
14503 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14504 # We already found the complete path
172e41aa 14505 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14507$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14508 elif test "x$target" = "x$host"; then
14509 # We can use an host tool
14510 AR_FOR_TARGET='$(AR)'
5213506e
RW
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14512$as_echo "host tool" >&6; }
2abefe3d
PB
14513 else
14514 # We need a cross tool
5213506e
RW
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14516$as_echo "pre-installed" >&6; }
2abefe3d
PB
14517 fi
14518fi
0b0dc272 14519
5213506e
RW
14520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14521$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 14522if test "x${build}" != "x${host}" ; then
e8b05380
PB
14523 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14524 # We already found the complete path
172e41aa 14525 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14527$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14528 else
14529 # Canadian cross, just use what we found
5213506e
RW
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14531$as_echo "pre-installed" >&6; }
e8b05380 14532 fi
2abefe3d
PB
14533else
14534 ok=yes
14535 case " ${configdirs} " in
14536 *" gas "*) ;;
14537 *) ok=no ;;
14538 esac
1c710c3c 14539
2abefe3d
PB
14540 if test $ok = yes; then
14541 # An in-tree tool is available and we can use it
14542 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14544$as_echo "just compiled" >&6; }
e8b05380
PB
14545 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14546 # We already found the complete path
172e41aa 14547 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14549$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14550 elif test "x$target" = "x$host"; then
14551 # We can use an host tool
14552 AS_FOR_TARGET='$(AS)'
5213506e
RW
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14554$as_echo "host tool" >&6; }
2abefe3d
PB
14555 else
14556 # We need a cross tool
5213506e
RW
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14558$as_echo "pre-installed" >&6; }
2abefe3d
PB
14559 fi
14560fi
0b0dc272 14561
5213506e
RW
14562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14563$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 14564if test "x${build}" != "x${host}" ; then
e8b05380
PB
14565 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14566 # We already found the complete path
172e41aa 14567 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14569$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14570 else
14571 # Canadian cross, just use what we found
5213506e
RW
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14573$as_echo "pre-installed" >&6; }
e8b05380 14574 fi
2abefe3d
PB
14575else
14576 ok=yes
14577 case " ${configdirs} " in
14578 *" gcc "*) ;;
14579 *) ok=no ;;
14580 esac
1c710c3c 14581
2abefe3d
PB
14582 if test $ok = yes; then
14583 # An in-tree tool is available and we can use it
14584 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14586$as_echo "just compiled" >&6; }
e8b05380
PB
14587 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14588 # We already found the complete path
172e41aa 14589 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14591$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14592 elif test "x$target" = "x$host"; then
14593 # We can use an host tool
14594 CC_FOR_TARGET='$(CC)'
5213506e
RW
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14596$as_echo "host tool" >&6; }
2abefe3d
PB
14597 else
14598 # We need a cross tool
5213506e
RW
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14600$as_echo "pre-installed" >&6; }
2abefe3d
PB
14601 fi
14602fi
0b0dc272 14603
5213506e
RW
14604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14605$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 14606if test "x${build}" != "x${host}" ; then
e8b05380
PB
14607 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14608 # We already found the complete path
172e41aa 14609 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14611$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14612 else
14613 # Canadian cross, just use what we found
5213506e
RW
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14615$as_echo "pre-installed" >&6; }
e8b05380 14616 fi
2abefe3d
PB
14617else
14618 ok=yes
14619 case " ${configdirs} " in
14620 *" gcc "*) ;;
14621 *) ok=no ;;
14622 esac
14623 case ,${enable_languages}, in
14624 *,c++,*) ;;
14625 *) ok=no ;;
14626 esac
14627 if test $ok = yes; then
14628 # An in-tree tool is available and we can use it
2077db1b 14629 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'
5213506e
RW
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14631$as_echo "just compiled" >&6; }
e8b05380
PB
14632 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14633 # We already found the complete path
172e41aa 14634 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14636$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14637 elif test "x$target" = "x$host"; then
14638 # We can use an host tool
14639 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14641$as_echo "host tool" >&6; }
2abefe3d
PB
14642 else
14643 # We need a cross tool
5213506e
RW
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14645$as_echo "pre-installed" >&6; }
2abefe3d
PB
14646 fi
14647fi
0b0dc272 14648
5213506e
RW
14649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14650$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 14651if test "x${build}" != "x${host}" ; then
e8b05380
PB
14652 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14653 # We already found the complete path
172e41aa 14654 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14656$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14657 else
14658 # Canadian cross, just use what we found
5213506e
RW
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14660$as_echo "pre-installed" >&6; }
e8b05380 14661 fi
2abefe3d
PB
14662else
14663 ok=yes
14664 case " ${configdirs} " in
14665 *" gcc "*) ;;
14666 *) ok=no ;;
14667 esac
14668 case ,${enable_languages}, in
14669 *,c++,*) ;;
14670 *) ok=no ;;
14671 esac
14672 if test $ok = yes; then
14673 # An in-tree tool is available and we can use it
2077db1b 14674 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'
5213506e
RW
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14676$as_echo "just compiled" >&6; }
e8b05380
PB
14677 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14678 # We already found the complete path
172e41aa 14679 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14681$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14682 elif test "x$target" = "x$host"; then
14683 # We can use an host tool
14684 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14686$as_echo "host tool" >&6; }
2abefe3d
PB
14687 else
14688 # We need a cross tool
5213506e
RW
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14690$as_echo "pre-installed" >&6; }
2abefe3d
PB
14691 fi
14692fi
0b0dc272 14693
5213506e
RW
14694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14695$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 14696if test "x${build}" != "x${host}" ; then
e8b05380
PB
14697 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14698 # We already found the complete path
172e41aa 14699 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14701$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14702 else
14703 # Canadian cross, just use what we found
5213506e
RW
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14705$as_echo "pre-installed" >&6; }
e8b05380 14706 fi
2abefe3d
PB
14707else
14708 ok=yes
14709 case " ${configdirs} " in
14710 *" binutils "*) ;;
14711 *) ok=no ;;
14712 esac
1c710c3c 14713
2abefe3d
PB
14714 if test $ok = yes; then
14715 # An in-tree tool is available and we can use it
14716 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14718$as_echo "just compiled" >&6; }
e8b05380
PB
14719 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14720 # We already found the complete path
172e41aa 14721 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14723$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14724 elif test "x$target" = "x$host"; then
14725 # We can use an host tool
14726 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14728$as_echo "host tool" >&6; }
2abefe3d
PB
14729 else
14730 # We need a cross tool
5213506e
RW
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14732$as_echo "pre-installed" >&6; }
2abefe3d
PB
14733 fi
14734fi
0b0dc272 14735
5213506e
RW
14736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14737$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 14738if test "x${build}" != "x${host}" ; then
e8b05380
PB
14739 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14740 # We already found the complete path
172e41aa 14741 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14743$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14744 else
14745 # Canadian cross, just use what we found
5213506e
RW
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14747$as_echo "pre-installed" >&6; }
e8b05380 14748 fi
2abefe3d
PB
14749else
14750 ok=yes
14751 case " ${configdirs} " in
14752 *" gcc "*) ;;
14753 *) ok=no ;;
14754 esac
1c710c3c 14755
2abefe3d
PB
14756 if test $ok = yes; then
14757 # An in-tree tool is available and we can use it
14758 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14760$as_echo "just compiled" >&6; }
e8b05380
PB
14761 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14762 # We already found the complete path
172e41aa 14763 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14765$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14766 elif test "x$target" = "x$host"; then
14767 # We can use an host tool
14768 GCC_FOR_TARGET='$()'
5213506e
RW
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14770$as_echo "host tool" >&6; }
2abefe3d
PB
14771 else
14772 # We need a cross tool
5213506e
RW
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14774$as_echo "pre-installed" >&6; }
2abefe3d
PB
14775 fi
14776fi
0b0dc272 14777
5213506e
RW
14778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14779$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14780if test "x${build}" != "x${host}" ; then
e8b05380
PB
14781 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14782 # We already found the complete path
172e41aa 14783 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14785$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14786 else
14787 # Canadian cross, just use what we found
5213506e
RW
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14789$as_echo "pre-installed" >&6; }
e8b05380 14790 fi
2abefe3d
PB
14791else
14792 ok=yes
14793 case " ${configdirs} " in
14794 *" gcc "*) ;;
14795 *) ok=no ;;
14796 esac
14797 case ,${enable_languages}, in
14798 *,fortran,*) ;;
14799 *) ok=no ;;
14800 esac
14801 if test $ok = yes; then
14802 # An in-tree tool is available and we can use it
14803 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14805$as_echo "just compiled" >&6; }
e8b05380
PB
14806 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14807 # We already found the complete path
172e41aa 14808 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14810$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14811 elif test "x$target" = "x$host"; then
14812 # We can use an host tool
14813 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14815$as_echo "host tool" >&6; }
2abefe3d
PB
14816 else
14817 # We need a cross tool
5213506e
RW
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14819$as_echo "pre-installed" >&6; }
2abefe3d
PB
14820 fi
14821fi
0b0dc272 14822
632e2a07
ILT
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14824$as_echo_n "checking where to find the target gccgo... " >&6; }
14825if test "x${build}" != "x${host}" ; then
14826 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14827 # We already found the complete path
14828 ac_dir=`dirname $GOC_FOR_TARGET`
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14830$as_echo "pre-installed in $ac_dir" >&6; }
14831 else
14832 # Canadian cross, just use what we found
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14834$as_echo "pre-installed" >&6; }
14835 fi
14836else
14837 ok=yes
14838 case " ${configdirs} " in
14839 *" gcc "*) ;;
14840 *) ok=no ;;
14841 esac
14842 case ,${enable_languages}, in
14843 *,go,*) ;;
14844 *) ok=no ;;
14845 esac
14846 if test $ok = yes; then
14847 # An in-tree tool is available and we can use it
14848 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14850$as_echo "just compiled" >&6; }
14851 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14852 # We already found the complete path
14853 ac_dir=`dirname $GOC_FOR_TARGET`
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14855$as_echo "pre-installed in $ac_dir" >&6; }
14856 elif test "x$target" = "x$host"; then
14857 # We can use an host tool
14858 GOC_FOR_TARGET='$(GOC)'
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14860$as_echo "host tool" >&6; }
14861 else
14862 # We need a cross tool
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14864$as_echo "pre-installed" >&6; }
14865 fi
14866fi
14867
b4c522fa
IB
14868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14869$as_echo_n "checking where to find the target gdc... " >&6; }
14870if test "x${build}" != "x${host}" ; then
14871 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14872 # We already found the complete path
14873 ac_dir=`dirname $GDC_FOR_TARGET`
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14875$as_echo "pre-installed in $ac_dir" >&6; }
14876 else
14877 # Canadian cross, just use what we found
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14879$as_echo "pre-installed" >&6; }
14880 fi
14881else
14882 ok=yes
14883 case " ${configdirs} " in
14884 *" gcc "*) ;;
14885 *) ok=no ;;
14886 esac
14887 case ,${enable_languages}, in
14888 *,d,*) ;;
14889 *) ok=no ;;
14890 esac
14891 if test $ok = yes; then
14892 # An in-tree tool is available and we can use it
14893 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14895$as_echo "just compiled" >&6; }
14896 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14897 # We already found the complete path
14898 ac_dir=`dirname $GDC_FOR_TARGET`
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14900$as_echo "pre-installed in $ac_dir" >&6; }
14901 elif test "x$target" = "x$host"; then
14902 # We can use an host tool
14903 GDC_FOR_TARGET='$(GDC)'
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14905$as_echo "host tool" >&6; }
14906 else
14907 # We need a cross tool
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14909$as_echo "pre-installed" >&6; }
14910 fi
14911fi
14912
5213506e
RW
14913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14914$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14915if test "x${build}" != "x${host}" ; then
e8b05380
PB
14916 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14917 # We already found the complete path
172e41aa 14918 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14920$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14921 else
14922 # Canadian cross, just use what we found
5213506e
RW
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14924$as_echo "pre-installed" >&6; }
e8b05380 14925 fi
2abefe3d
PB
14926else
14927 ok=yes
14928 case " ${configdirs} " in
14929 *" ld "*) ;;
14930 *) ok=no ;;
14931 esac
1c710c3c 14932
2abefe3d
PB
14933 if test $ok = yes; then
14934 # An in-tree tool is available and we can use it
14935 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14937$as_echo "just compiled" >&6; }
e8b05380
PB
14938 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14939 # We already found the complete path
172e41aa 14940 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14942$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14943 elif test "x$target" = "x$host"; then
14944 # We can use an host tool
14945 LD_FOR_TARGET='$(LD)'
5213506e
RW
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14947$as_echo "host tool" >&6; }
2abefe3d
PB
14948 else
14949 # We need a cross tool
5213506e
RW
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14951$as_echo "pre-installed" >&6; }
2abefe3d
PB
14952 fi
14953fi
0b0dc272 14954
5213506e
RW
14955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14956$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14957if test "x${build}" != "x${host}" ; then
e8b05380
PB
14958 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14959 # We already found the complete path
172e41aa 14960 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14962$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14963 else
14964 # Canadian cross, just use what we found
5213506e
RW
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14966$as_echo "pre-installed" >&6; }
e8b05380 14967 fi
2abefe3d 14968else
e8b05380
PB
14969 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14970 # We already found the complete path
172e41aa 14971 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14973$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14974 elif test "x$target" = "x$host"; then
2abefe3d
PB
14975 # We can use an host tool
14976 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14978$as_echo "host tool" >&6; }
2abefe3d
PB
14979 else
14980 # We need a cross tool
5213506e
RW
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14982$as_echo "pre-installed" >&6; }
2abefe3d
PB
14983 fi
14984fi
0b0dc272 14985
5213506e
RW
14986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14987$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14988if test "x${build}" != "x${host}" ; then
e8b05380
PB
14989 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14990 # We already found the complete path
172e41aa 14991 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14993$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14994 else
14995 # Canadian cross, just use what we found
5213506e
RW
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14997$as_echo "pre-installed" >&6; }
e8b05380 14998 fi
2abefe3d
PB
14999else
15000 ok=yes
15001 case " ${configdirs} " in
15002 *" binutils "*) ;;
15003 *) ok=no ;;
15004 esac
1c710c3c 15005
2abefe3d
PB
15006 if test $ok = yes; then
15007 # An in-tree tool is available and we can use it
15008 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15010$as_echo "just compiled" >&6; }
e8b05380
PB
15011 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
15012 # We already found the complete path
172e41aa 15013 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15015$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15016 elif test "x$target" = "x$host"; then
15017 # We can use an host tool
15018 NM_FOR_TARGET='$(NM)'
5213506e
RW
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15020$as_echo "host tool" >&6; }
2abefe3d
PB
15021 else
15022 # We need a cross tool
5213506e
RW
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15024$as_echo "pre-installed" >&6; }
2abefe3d
PB
15025 fi
15026fi
0b0dc272 15027
9bccfdf5
AP
15028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
15029$as_echo_n "checking where to find the target objcopy... " >&6; }
15030if test "x${build}" != "x${host}" ; then
15031 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15032 # We already found the complete path
15033 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15035$as_echo "pre-installed in $ac_dir" >&6; }
15036 else
15037 # Canadian cross, just use what we found
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15039$as_echo "pre-installed" >&6; }
15040 fi
15041else
15042 ok=yes
15043 case " ${configdirs} " in
15044 *" binutils "*) ;;
15045 *) ok=no ;;
15046 esac
15047
15048 if test $ok = yes; then
15049 # An in-tree tool is available and we can use it
15050 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15052$as_echo "just compiled" >&6; }
15053 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15054 # We already found the complete path
15055 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15057$as_echo "pre-installed in $ac_dir" >&6; }
15058 elif test "x$target" = "x$host"; then
15059 # We can use an host tool
ec8fd1c0 15060 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15062$as_echo "host tool" >&6; }
15063 else
15064 # We need a cross tool
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15066$as_echo "pre-installed" >&6; }
15067 fi
15068fi
15069
5213506e
RW
15070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
15071$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 15072if test "x${build}" != "x${host}" ; then
e8b05380
PB
15073 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15074 # We already found the complete path
172e41aa 15075 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15077$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15078 else
15079 # Canadian cross, just use what we found
5213506e
RW
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15081$as_echo "pre-installed" >&6; }
e8b05380 15082 fi
2abefe3d
PB
15083else
15084 ok=yes
15085 case " ${configdirs} " in
15086 *" binutils "*) ;;
15087 *) ok=no ;;
15088 esac
1c710c3c 15089
2abefe3d
PB
15090 if test $ok = yes; then
15091 # An in-tree tool is available and we can use it
15092 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15094$as_echo "just compiled" >&6; }
e8b05380
PB
15095 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15096 # We already found the complete path
172e41aa 15097 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15099$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15100 elif test "x$target" = "x$host"; then
15101 # We can use an host tool
15102 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15104$as_echo "host tool" >&6; }
2abefe3d
PB
15105 else
15106 # We need a cross tool
5213506e
RW
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15108$as_echo "pre-installed" >&6; }
2abefe3d
PB
15109 fi
15110fi
0b0dc272 15111
e4a9a572
IS
15112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
15113$as_echo_n "checking where to find the target otool... " >&6; }
15114if test "x${build}" != "x${host}" ; then
15115 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15116 # We already found the complete path
15117 ac_dir=`dirname $OTOOL_FOR_TARGET`
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15119$as_echo "pre-installed in $ac_dir" >&6; }
15120 else
15121 # Canadian cross, just use what we found
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15123$as_echo "pre-installed" >&6; }
15124 fi
15125else
15126 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15127 # We already found the complete path
15128 ac_dir=`dirname $OTOOL_FOR_TARGET`
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15130$as_echo "pre-installed in $ac_dir" >&6; }
15131 elif test "x$target" = "x$host"; then
15132 # We can use an host tool
15133 OTOOL_FOR_TARGET='$(OTOOL)'
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15135$as_echo "host tool" >&6; }
15136 else
15137 # We need a cross tool
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15139$as_echo "pre-installed" >&6; }
15140 fi
15141fi
15142
5213506e
RW
15143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15144$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 15145if test "x${build}" != "x${host}" ; then
e8b05380
PB
15146 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15147 # We already found the complete path
172e41aa 15148 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15150$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15151 else
15152 # Canadian cross, just use what we found
5213506e
RW
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15154$as_echo "pre-installed" >&6; }
e8b05380 15155 fi
2abefe3d
PB
15156else
15157 ok=yes
15158 case " ${configdirs} " in
15159 *" binutils "*) ;;
15160 *) ok=no ;;
15161 esac
1c710c3c 15162
2abefe3d
PB
15163 if test $ok = yes; then
15164 # An in-tree tool is available and we can use it
15165 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15167$as_echo "just compiled" >&6; }
e8b05380
PB
15168 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15169 # We already found the complete path
172e41aa 15170 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15172$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15173 elif test "x$target" = "x$host"; then
15174 # We can use an host tool
15175 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15177$as_echo "host tool" >&6; }
2abefe3d
PB
15178 else
15179 # We need a cross tool
5213506e
RW
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15181$as_echo "pre-installed" >&6; }
2abefe3d
PB
15182 fi
15183fi
0b0dc272 15184
e7a82751
RM
15185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15186$as_echo_n "checking where to find the target readelf... " >&6; }
15187if test "x${build}" != "x${host}" ; then
15188 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15189 # We already found the complete path
15190 ac_dir=`dirname $READELF_FOR_TARGET`
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15192$as_echo "pre-installed in $ac_dir" >&6; }
15193 else
15194 # Canadian cross, just use what we found
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15196$as_echo "pre-installed" >&6; }
15197 fi
15198else
15199 ok=yes
15200 case " ${configdirs} " in
15201 *" binutils "*) ;;
15202 *) ok=no ;;
15203 esac
15204
15205 if test $ok = yes; then
15206 # An in-tree tool is available and we can use it
15207 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15209$as_echo "just compiled" >&6; }
15210 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15211 # We already found the complete path
15212 ac_dir=`dirname $READELF_FOR_TARGET`
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15214$as_echo "pre-installed in $ac_dir" >&6; }
15215 elif test "x$target" = "x$host"; then
15216 # We can use an host tool
15217 READELF_FOR_TARGET='$(READELF)'
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15219$as_echo "host tool" >&6; }
15220 else
15221 # We need a cross tool
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15223$as_echo "pre-installed" >&6; }
15224 fi
15225fi
15226
5213506e
RW
15227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15228$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 15229if test "x${build}" != "x${host}" ; then
e8b05380
PB
15230 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15231 # We already found the complete path
172e41aa 15232 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15234$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15235 else
15236 # Canadian cross, just use what we found
5213506e
RW
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15238$as_echo "pre-installed" >&6; }
e8b05380 15239 fi
2abefe3d
PB
15240else
15241 ok=yes
15242 case " ${configdirs} " in
15243 *" binutils "*) ;;
15244 *) ok=no ;;
15245 esac
1c710c3c 15246
2abefe3d
PB
15247 if test $ok = yes; then
15248 # An in-tree tool is available and we can use it
455c8f48 15249 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15251$as_echo "just compiled" >&6; }
e8b05380
PB
15252 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15253 # We already found the complete path
172e41aa 15254 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15256$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15257 elif test "x$target" = "x$host"; then
15258 # We can use an host tool
15259 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15261$as_echo "host tool" >&6; }
2abefe3d
PB
15262 else
15263 # We need a cross tool
5213506e
RW
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15265$as_echo "pre-installed" >&6; }
2abefe3d
PB
15266 fi
15267fi
0b0dc272 15268
5213506e
RW
15269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15270$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 15271if test "x${build}" != "x${host}" ; then
e8b05380
PB
15272 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15273 # We already found the complete path
172e41aa 15274 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15276$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15277 else
15278 # Canadian cross, just use what we found
5213506e
RW
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15280$as_echo "pre-installed" >&6; }
e8b05380 15281 fi
2abefe3d
PB
15282else
15283 ok=yes
15284 case " ${configdirs} " in
15285 *" binutils "*) ;;
15286 *) ok=no ;;
15287 esac
1c710c3c 15288
2abefe3d
PB
15289 if test $ok = yes; then
15290 # An in-tree tool is available and we can use it
15291 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15293$as_echo "just compiled" >&6; }
e8b05380
PB
15294 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15295 # We already found the complete path
172e41aa 15296 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15298$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15299 elif test "x$target" = "x$host"; then
15300 # We can use an host tool
15301 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15303$as_echo "host tool" >&6; }
2abefe3d
PB
15304 else
15305 # We need a cross tool
5213506e
RW
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15307$as_echo "pre-installed" >&6; }
2abefe3d 15308 fi
671aa708 15309fi
be912515 15310
5213506e
RW
15311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15312$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
15313if test "x${build}" != "x${host}" ; then
15314 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15315 # We already found the complete path
15316 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15318$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15319 else
15320 # Canadian cross, just use what we found
5213506e
RW
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15322$as_echo "pre-installed" >&6; }
901119ae
KT
15323 fi
15324else
15325 ok=yes
15326 case " ${configdirs} " in
15327 *" binutils "*) ;;
15328 *) ok=no ;;
15329 esac
15330
15331 if test $ok = yes; then
15332 # An in-tree tool is available and we can use it
15333 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15335$as_echo "just compiled" >&6; }
901119ae
KT
15336 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15337 # We already found the complete path
15338 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15340$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15341 elif test "x$target" = "x$host"; then
15342 # We can use an host tool
15343 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15345$as_echo "host tool" >&6; }
901119ae
KT
15346 else
15347 # We need a cross tool
5213506e
RW
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15349$as_echo "pre-installed" >&6; }
901119ae
KT
15350 fi
15351fi
15352
be912515
NN
15353
15354
2abefe3d 15355
0b0dc272 15356
671aa708
NN
15357# Certain tools may need extra flags.
15358AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15359RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15360NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15361
2abefe3d
PB
15362# When building target libraries, except in a Canadian cross, we use
15363# the same toolchain as the compiler we just built.
15364COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15365COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15366COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15367if test $host = $build; then
15368 case " $configdirs " in
15369 *" gcc "*)
15370 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15371 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15372 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15373 ;;
15374 esac
15375fi
15376
15377
15378
15379
15380
5213506e
RW
15381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15382$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15383# Check whether --enable-maintainer-mode was given.
15384if test "${enable_maintainer_mode+set}" = set; then :
15385 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
15386else
15387 USE_MAINTAINER_MODE=no
5213506e
RW
15388fi
15389
15390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15391$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
15392
15393
15394if test "$USE_MAINTAINER_MODE" = yes; then
15395 MAINTAINER_MODE_TRUE=
15396 MAINTAINER_MODE_FALSE='#'
15397else
15398 MAINTAINER_MODE_TRUE='#'
15399 MAINTAINER_MODE_FALSE=
1c710c3c 15400fi
ee03dc5e
AO
15401MAINT=$MAINTAINER_MODE_TRUE
15402
2805b53a
NN
15403# ---------------------
15404# GCC bootstrap support
15405# ---------------------
15406
15407# Stage specific cflags for build.
15408stage1_cflags="-g"
15409case $build in
15410 vax-*-*)
15411 case ${GCC} in
15412 yes) stage1_cflags="-g -Wa,-J" ;;
15413 *) stage1_cflags="-g -J" ;;
15414 esac ;;
2805b53a
NN
15415esac
15416
0b50988a 15417
2805b53a 15418
8efea775 15419# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
15420# Check whether --enable-stage1-checking was given.
15421if test "${enable_stage1_checking+set}" = set; then :
15422 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 15423else
e643dc23 15424 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
15425 # For --disable-checking or implicit --enable-checking=release, avoid
15426 # setting --enable-checking=gc in the default stage1 checking for LTO
15427 # bootstraps. See PR62077.
c10b5ea0
JJ
15428 case $BUILD_CONFIG in
15429 *lto*)
7db11a5a
JJ
15430 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15431 *)
15432 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 15433 esac
7db11a5a
JJ
15434 if test "x$enable_checking" = x && \
15435 test -d ${srcdir}/gcc && \
15436 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 15437 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 15438 fi
8efea775 15439else
e643dc23 15440 stage1_checking=--enable-checking=$enable_checking,types
8efea775 15441fi
5213506e 15442fi
8efea775
PB
15443
15444
2aeb72e9 15445
5213506e
RW
15446# Enable -Werror in bootstrap stage2 and later.
15447# Check whether --enable-werror was given.
15448if test "${enable_werror+set}" = set; then :
15449 enableval=$enable_werror;
09a9c095
NN
15450case ${enable_werror} in
15451 yes) stage2_werror_flag="--enable-werror-always" ;;
15452 *) stage2_werror_flag="" ;;
2805b53a
NN
15453esac
15454
afd88efc
ML
15455else
15456
01c712cb
ML
15457if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15458 case $BUILD_CONFIG in
15459 bootstrap-debug)
15460 stage2_werror_flag="--enable-werror-always" ;;
15461 "")
15462 stage2_werror_flag="--enable-werror-always" ;;
15463 esac
15464fi
15465
afd88efc
ML
15466fi
15467
15468
01c712cb 15469
2805b53a 15470
f2689b09
SE
15471# Specify what files to not compare during bootstrap.
15472
15473compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15474case "$target" in
15475 hppa*64*-*-hpux*) ;;
4f943869
MK
15476 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
15477 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
15478esac
15479
15480
5213506e
RW
15481ac_config_files="$ac_config_files Makefile"
15482
1c710c3c 15483cat >confcache <<\_ACEOF
671aa708
NN
15484# This file is a shell script that caches the results of configure
15485# tests run on this system so they can be shared between configure
1c710c3c
DJ
15486# scripts and configure runs, see configure's option --config-cache.
15487# It is not useful on other systems. If it contains results you don't
15488# want to keep, you may remove or edit it.
671aa708 15489#
1c710c3c
DJ
15490# config.status only pays attention to the cache file if you give it
15491# the --recheck option to rerun configure.
671aa708 15492#
1c710c3c
DJ
15493# `ac_cv_env_foo' variables (set or unset) will be overridden when
15494# loading this file, other *unset* `ac_cv_foo' will be assigned the
15495# following values.
15496
15497_ACEOF
15498
671aa708
NN
15499# The following way of writing the cache mishandles newlines in values,
15500# but we know of no workaround that is simple, portable, and efficient.
5213506e 15501# So, we kill variables containing newlines.
671aa708
NN
15502# Ultrix sh set writes to stderr and can't be redirected directly,
15503# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
15504(
15505 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15506 eval ac_val=\$$ac_var
15507 case $ac_val in #(
15508 *${as_nl}*)
15509 case $ac_var in #(
15510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15511$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15512 esac
15513 case $ac_var in #(
15514 _ | IFS | as_nl) ;; #(
15515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15516 *) { eval $ac_var=; unset $ac_var;} ;;
15517 esac ;;
15518 esac
15519 done
15520
1c710c3c 15521 (set) 2>&1 |
5213506e
RW
15522 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15523 *${as_nl}ac_space=\ *)
15524 # `set' does not quote correctly, so add quotes: double-quote
15525 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
15526 sed -n \
15527 "s/'/'\\\\''/g;
15528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 15529 ;; #(
1c710c3c
DJ
15530 *)
15531 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 15532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 15533 ;;
5213506e
RW
15534 esac |
15535 sort
15536) |
1c710c3c 15537 sed '
5213506e 15538 /^ac_cv_env_/b end
1c710c3c 15539 t clear
5213506e 15540 :clear
1c710c3c
DJ
15541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15542 t end
5213506e
RW
15543 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15544 :end' >>confcache
15545if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15546 if test -w "$cache_file"; then
22e05272 15547 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15549$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15550 if test ! -f "$cache_file" || test -h "$cache_file"; then
15551 cat confcache >"$cache_file"
15552 else
15553 case $cache_file in #(
15554 */* | ?:*)
15555 mv -f confcache "$cache_file"$$ &&
15556 mv -f "$cache_file"$$ "$cache_file" ;; #(
15557 *)
15558 mv -f confcache "$cache_file" ;;
15559 esac
15560 fi
15561 fi
671aa708 15562 else
5213506e
RW
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15564$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 15565 fi
4977bab6 15566fi
671aa708 15567rm -f confcache
79c06341 15568
671aa708
NN
15569test "x$prefix" = xNONE && prefix=$ac_default_prefix
15570# Let make expand exec_prefix.
15571test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 15572
671aa708
NN
15573# Transform confdefs.h into DEFS.
15574# Protect against shell expansion while executing Makefile rules.
15575# Protect against Makefile macro expansion.
1c710c3c
DJ
15576#
15577# If the first sed substitution is executed (which looks for macros that
5213506e 15578# take arguments), then branch to the quote section. Otherwise,
1c710c3c 15579# look for a macro that doesn't take arguments.
5213506e
RW
15580ac_script='
15581:mline
15582/\\$/{
15583 N
15584 s,\\\n,,
15585 b mline
15586}
1c710c3c 15587t clear
5213506e
RW
15588:clear
15589s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15590t quote
5213506e 15591s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15592t quote
5213506e
RW
15593b any
15594:quote
15595s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15596s/\[/\\&/g
15597s/\]/\\&/g
15598s/\$/$$/g
15599H
15600:any
15601${
15602 g
15603 s/^\n//
15604 s/\n/ /g
15605 p
15606}
15607'
15608DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
15609
15610
15611ac_libobjs=
15612ac_ltlibobjs=
22e05272 15613U=
1c710c3c
DJ
15614for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15615 # 1. Remove the extension, and $U if already installed.
5213506e
RW
15616 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15617 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15618 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15619 # will be set to the directory where LIBOBJS objects are built.
15620 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15621 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
15622done
15623LIBOBJS=$ac_libobjs
fb0103e5 15624
1c710c3c 15625LTLIBOBJS=$ac_ltlibobjs
0b0dc272 15626
af71363e 15627
1c710c3c 15628
22e05272 15629: "${CONFIG_STATUS=./config.status}"
5213506e 15630ac_write_fail=0
1c710c3c
DJ
15631ac_clean_files_save=$ac_clean_files
15632ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15633{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15634$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15635as_write_fail=0
15636cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
15637#! $SHELL
15638# Generated by $as_me.
671aa708 15639# Run this file to recreate the current configuration.
671aa708 15640# Compiler output produced by configure, useful for debugging
1c710c3c 15641# configure, is in config.log if it exists.
0b0dc272 15642
1c710c3c
DJ
15643debug=false
15644ac_cs_recheck=false
15645ac_cs_silent=false
1c710c3c 15646
5213506e
RW
15647SHELL=\${CONFIG_SHELL-$SHELL}
15648export SHELL
15649_ASEOF
15650cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15651## -------------------- ##
15652## M4sh Initialization. ##
15653## -------------------- ##
15654
15655# Be more Bourne compatible
15656DUALCASE=1; export DUALCASE # for MKS sh
15657if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
15658 emulate sh
15659 NULLCMD=:
5213506e 15660 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
15661 # is contrary to our usage. Disable this feature.
15662 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15663 setopt NO_GLOB_SUBST
15664else
15665 case `(set -o) 2>/dev/null` in #(
15666 *posix*) :
15667 set -o posix ;; #(
15668 *) :
15669 ;;
15670esac
1c710c3c 15671fi
1c710c3c 15672
5213506e
RW
15673
15674as_nl='
15675'
15676export as_nl
15677# Printing a long string crashes Solaris 7 /usr/bin/printf.
15678as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15679as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15680as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15681# Prefer a ksh shell builtin over an external printf program on Solaris,
15682# but without wasting forks for bash or zsh.
15683if test -z "$BASH_VERSION$ZSH_VERSION" \
15684 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15685 as_echo='print -r --'
15686 as_echo_n='print -rn --'
15687elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15688 as_echo='printf %s\n'
15689 as_echo_n='printf %s'
15690else
15691 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15692 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15693 as_echo_n='/usr/ucb/echo -n'
15694 else
15695 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15696 as_echo_n_body='eval
15697 arg=$1;
15698 case $arg in #(
15699 *"$as_nl"*)
15700 expr "X$arg" : "X\\(.*\\)$as_nl";
15701 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15702 esac;
15703 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15704 '
15705 export as_echo_n_body
15706 as_echo_n='sh -c $as_echo_n_body as_echo'
15707 fi
15708 export as_echo_body
15709 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
15710fi
15711
5213506e
RW
15712# The user is always right.
15713if test "${PATH_SEPARATOR+set}" != set; then
15714 PATH_SEPARATOR=:
15715 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15716 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15717 PATH_SEPARATOR=';'
15718 }
15719fi
15720
15721
15722# IFS
15723# We need space, tab and new line, in precisely that order. Quoting is
15724# there to prevent editors from complaining about space-tab.
15725# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15726# splitting by setting IFS to empty value.)
15727IFS=" "" $as_nl"
15728
15729# Find who we are. Look in the path if we contain no directory separator.
22e05272 15730as_myself=
5213506e
RW
15731case $0 in #((
15732 *[\\/]* ) as_myself=$0 ;;
15733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15734for as_dir in $PATH
15735do
15736 IFS=$as_save_IFS
15737 test -z "$as_dir" && as_dir=.
15738 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15739 done
15740IFS=$as_save_IFS
15741
15742 ;;
15743esac
15744# We did not find ourselves, most probably we were run as `sh COMMAND'
15745# in which case we are not to be found in the path.
15746if test "x$as_myself" = x; then
15747 as_myself=$0
15748fi
15749if test ! -f "$as_myself"; then
15750 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15751 exit 1
15752fi
1c710c3c 15753
5213506e
RW
15754# Unset variables that we do not need and which cause bugs (e.g. in
15755# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15756# suppresses any "Segmentation fault" message there. '((' could
15757# trigger a bug in pdksh 5.2.14.
15758for as_var in BASH_ENV ENV MAIL MAILPATH
15759do eval test x\${$as_var+set} = xset \
15760 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15761done
1c710c3c
DJ
15762PS1='$ '
15763PS2='> '
15764PS4='+ '
15765
15766# NLS nuisances.
5213506e
RW
15767LC_ALL=C
15768export LC_ALL
15769LANGUAGE=C
15770export LANGUAGE
15771
15772# CDPATH.
15773(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15774
15775
22e05272
JM
15776# as_fn_error STATUS ERROR [LINENO LOG_FD]
15777# ----------------------------------------
5213506e
RW
15778# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15779# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15780# script with STATUS, using 1 if that was 0.
5213506e
RW
15781as_fn_error ()
15782{
22e05272
JM
15783 as_status=$1; test $as_status -eq 0 && as_status=1
15784 if test "$4"; then
15785 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15786 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 15787 fi
22e05272 15788 $as_echo "$as_me: error: $2" >&2
5213506e
RW
15789 as_fn_exit $as_status
15790} # as_fn_error
15791
15792
15793# as_fn_set_status STATUS
15794# -----------------------
15795# Set $? to STATUS, without forking.
15796as_fn_set_status ()
15797{
15798 return $1
15799} # as_fn_set_status
15800
15801# as_fn_exit STATUS
15802# -----------------
15803# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15804as_fn_exit ()
15805{
15806 set +e
15807 as_fn_set_status $1
15808 exit $1
15809} # as_fn_exit
15810
15811# as_fn_unset VAR
15812# ---------------
15813# Portably unset VAR.
15814as_fn_unset ()
15815{
15816 { eval $1=; unset $1;}
15817}
15818as_unset=as_fn_unset
15819# as_fn_append VAR VALUE
15820# ----------------------
15821# Append the text in VALUE to the end of the definition contained in VAR. Take
15822# advantage of any shell optimizations that allow amortized linear growth over
15823# repeated appends, instead of the typical quadratic growth present in naive
15824# implementations.
15825if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15826 eval 'as_fn_append ()
15827 {
15828 eval $1+=\$2
15829 }'
15830else
15831 as_fn_append ()
15832 {
15833 eval $1=\$$1\$2
15834 }
15835fi # as_fn_append
15836
15837# as_fn_arith ARG...
15838# ------------------
15839# Perform arithmetic evaluation on the ARGs, and store the result in the
15840# global $as_val. Take advantage of shells that can avoid forks. The arguments
15841# must be portable across $(()) and expr.
15842if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15843 eval 'as_fn_arith ()
15844 {
15845 as_val=$(( $* ))
15846 }'
15847else
15848 as_fn_arith ()
15849 {
15850 as_val=`expr "$@" || test $? -eq 1`
15851 }
15852fi # as_fn_arith
15853
1c710c3c 15854
5213506e
RW
15855if expr a : '\(a\)' >/dev/null 2>&1 &&
15856 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15857 as_expr=expr
15858else
15859 as_expr=false
15860fi
15861
5213506e 15862if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15863 as_basename=basename
15864else
15865 as_basename=false
15866fi
15867
5213506e
RW
15868if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15869 as_dirname=dirname
15870else
15871 as_dirname=false
15872fi
1c710c3c 15873
5213506e 15874as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15875$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15876 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15878$as_echo X/"$0" |
15879 sed '/^.*\/\([^/][^/]*\)\/*$/{
15880 s//\1/
15881 q
15882 }
15883 /^X\/\(\/\/\)$/{
15884 s//\1/
15885 q
15886 }
15887 /^X\/\(\/\).*/{
15888 s//\1/
15889 q
15890 }
15891 s/.*/./; q'`
2aeb72e9 15892
2aeb72e9
DD
15893# Avoid depending upon Character Ranges.
15894as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15895as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15896as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15897as_cr_digits='0123456789'
15898as_cr_alnum=$as_cr_Letters$as_cr_digits
15899
5213506e
RW
15900ECHO_C= ECHO_N= ECHO_T=
15901case `echo -n x` in #(((((
15902-n*)
15903 case `echo 'xy\c'` in
15904 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15905 xy) ECHO_C='\c';;
15906 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15907 ECHO_T=' ';;
15908 esac;;
15909*)
15910 ECHO_N='-n';;
1c710c3c
DJ
15911esac
15912
5213506e
RW
15913rm -f conf$$ conf$$.exe conf$$.file
15914if test -d conf$$.dir; then
15915 rm -f conf$$.dir/conf$$.file
1c710c3c 15916else
5213506e
RW
15917 rm -f conf$$.dir
15918 mkdir conf$$.dir 2>/dev/null
1c710c3c 15919fi
5213506e
RW
15920if (echo >conf$$.file) 2>/dev/null; then
15921 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15922 as_ln_s='ln -s'
5213506e
RW
15923 # ... but there are two gotchas:
15924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15926 # In both cases, we have to default to `cp -pR'.
5213506e 15927 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15928 as_ln_s='cp -pR'
5213506e
RW
15929 elif ln conf$$.file conf$$ 2>/dev/null; then
15930 as_ln_s=ln
15931 else
22e05272 15932 as_ln_s='cp -pR'
2aeb72e9 15933 fi
1c710c3c 15934else
22e05272 15935 as_ln_s='cp -pR'
1c710c3c 15936fi
5213506e
RW
15937rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15938rmdir conf$$.dir 2>/dev/null
15939
15940
15941# as_fn_mkdir_p
15942# -------------
15943# Create "$as_dir" as a directory, including parents if necessary.
15944as_fn_mkdir_p ()
15945{
15946
15947 case $as_dir in #(
15948 -*) as_dir=./$as_dir;;
15949 esac
15950 test -d "$as_dir" || eval $as_mkdir_p || {
15951 as_dirs=
15952 while :; do
15953 case $as_dir in #(
15954 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15955 *) as_qdir=$as_dir;;
15956 esac
15957 as_dirs="'$as_qdir' $as_dirs"
15958 as_dir=`$as_dirname -- "$as_dir" ||
15959$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15960 X"$as_dir" : 'X\(//\)[^/]' \| \
15961 X"$as_dir" : 'X\(//\)$' \| \
15962 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15963$as_echo X"$as_dir" |
15964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15965 s//\1/
15966 q
15967 }
15968 /^X\(\/\/\)[^/].*/{
15969 s//\1/
15970 q
15971 }
15972 /^X\(\/\/\)$/{
15973 s//\1/
15974 q
15975 }
15976 /^X\(\/\).*/{
15977 s//\1/
15978 q
15979 }
15980 s/.*/./; q'`
15981 test -d "$as_dir" && break
15982 done
15983 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15984 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 15985
1c710c3c 15986
5213506e 15987} # as_fn_mkdir_p
1c710c3c 15988if mkdir -p . 2>/dev/null; then
5213506e 15989 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15990else
15991 test -d ./-p && rmdir ./-p
15992 as_mkdir_p=false
15993fi
15994
22e05272
JM
15995
15996# as_fn_executable_p FILE
15997# -----------------------
15998# Test if FILE is an executable regular file.
15999as_fn_executable_p ()
16000{
16001 test -f "$1" && test -x "$1"
16002} # as_fn_executable_p
16003as_test_x='test -x'
16004as_executable_p=as_fn_executable_p
1c710c3c
DJ
16005
16006# Sed expression to map a string onto a valid CPP name.
16007as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16008
16009# Sed expression to map a string onto a valid variable name.
16010as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16011
16012
1c710c3c 16013exec 6>&1
5213506e
RW
16014## ----------------------------------- ##
16015## Main body of $CONFIG_STATUS script. ##
16016## ----------------------------------- ##
16017_ASEOF
16018test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16019
16020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16021# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 16022# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
16023# values after options handling.
16024ac_log="
1c710c3c 16025This file was extended by $as_me, which was
22e05272 16026generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
16027
16028 CONFIG_FILES = $CONFIG_FILES
16029 CONFIG_HEADERS = $CONFIG_HEADERS
16030 CONFIG_LINKS = $CONFIG_LINKS
16031 CONFIG_COMMANDS = $CONFIG_COMMANDS
16032 $ $0 $@
16033
5213506e
RW
16034on `(hostname || uname -n) 2>/dev/null | sed 1q`
16035"
16036
1c710c3c
DJ
16037_ACEOF
16038
5213506e
RW
16039case $ac_config_files in *"
16040"*) set x $ac_config_files; shift; ac_config_files=$*;;
16041esac
1c710c3c 16042
2aeb72e9 16043
2aeb72e9 16044
5213506e
RW
16045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16046# Files that config.status was made for.
16047config_files="$ac_config_files"
1c710c3c 16048
5213506e 16049_ACEOF
2aeb72e9 16050
5213506e 16051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 16052ac_cs_usage="\
5213506e
RW
16053\`$as_me' instantiates files and other configuration actions
16054from templates according to the current configuration. Unless the files
16055and actions are specified as TAGs, all are instantiated by default.
1c710c3c 16056
5213506e 16057Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
16058
16059 -h, --help print this help, then exit
5213506e 16060 -V, --version print version number and configuration settings, then exit
22e05272 16061 --config print configuration, then exit
5213506e
RW
16062 -q, --quiet, --silent
16063 do not print progress messages
1c710c3c
DJ
16064 -d, --debug don't remove temporary files
16065 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
16066 --file=FILE[:TEMPLATE]
16067 instantiate the configuration file FILE
1c710c3c
DJ
16068
16069Configuration files:
16070$config_files
16071
5213506e 16072Report bugs to the package provider."
2aeb72e9 16073
5213506e
RW
16074_ACEOF
16075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16076ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
16077ac_cs_version="\\
16078config.status
22e05272
JM
16079configured by $0, generated by GNU Autoconf 2.69,
16080 with options \\"\$ac_cs_config\\"
1c710c3c 16081
22e05272 16082Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
16083This config.status script is free software; the Free Software Foundation
16084gives unlimited permission to copy, distribute and modify it."
5213506e
RW
16085
16086ac_pwd='$ac_pwd'
16087srcdir='$srcdir'
16088INSTALL='$INSTALL'
87264276 16089AWK='$AWK'
5213506e 16090test -n "\$AWK" || AWK=awk
1c710c3c
DJ
16091_ACEOF
16092
5213506e
RW
16093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16094# The default lists apply if the user does not specify any file.
1c710c3c
DJ
16095ac_need_defaults=:
16096while test $# != 0
a4b9e93e 16097do
1c710c3c 16098 case $1 in
22e05272 16099 --*=?*)
5213506e
RW
16100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16101 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
16102 ac_shift=:
16103 ;;
22e05272
JM
16104 --*=)
16105 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16106 ac_optarg=
16107 ac_shift=:
16108 ;;
5213506e 16109 *)
1c710c3c
DJ
16110 ac_option=$1
16111 ac_optarg=$2
16112 ac_shift=shift
16113 ;;
1c710c3c
DJ
16114 esac
16115
16116 case $ac_option in
16117 # Handling of the options.
671aa708 16118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 16119 ac_cs_recheck=: ;;
5213506e
RW
16120 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16121 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16122 --config | --confi | --conf | --con | --co | --c )
16123 $as_echo "$ac_cs_config"; exit ;;
5213506e 16124 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
16125 debug=: ;;
16126 --file | --fil | --fi | --f )
16127 $ac_shift
5213506e
RW
16128 case $ac_optarg in
16129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16130 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
16131 esac
16132 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 16133 ac_need_defaults=false;;
5213506e
RW
16134 --he | --h | --help | --hel | -h )
16135 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
16136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16137 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16138 ac_cs_silent=: ;;
16139
16140 # This is an error.
22e05272 16141 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 16142Try \`$0 --help' for more information." ;;
1c710c3c 16143
5213506e
RW
16144 *) as_fn_append ac_config_targets " $1"
16145 ac_need_defaults=false ;;
1c710c3c 16146
0b0dc272 16147 esac
1c710c3c 16148 shift
0b0dc272
AM
16149done
16150
1c710c3c 16151ac_configure_extra_args=
0b0dc272 16152
1c710c3c
DJ
16153if $ac_cs_silent; then
16154 exec 6>/dev/null
16155 ac_configure_extra_args="$ac_configure_extra_args --silent"
16156fi
0b0dc272 16157
1c710c3c 16158_ACEOF
5213506e 16159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 16160if \$ac_cs_recheck; then
22e05272 16161 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
16162 shift
16163 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16164 CONFIG_SHELL='$SHELL'
16165 export CONFIG_SHELL
16166 exec "\$@"
1c710c3c
DJ
16167fi
16168
16169_ACEOF
5213506e
RW
16170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16171exec 5>>config.log
16172{
16173 echo
16174 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16175## Running $as_me. ##
16176_ASBOX
16177 $as_echo "$ac_log"
16178} >&5
1c710c3c 16179
5213506e
RW
16180_ACEOF
16181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
16182#
16183# INIT-COMMANDS
16184#
16185extrasub_build="$extrasub_build"
16186 extrasub_host="$extrasub_host"
16187 extrasub_target="$extrasub_target"
16188
5213506e 16189_ACEOF
1c710c3c 16190
5213506e 16191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 16192
5213506e 16193# Handling of arguments.
1c710c3c
DJ
16194for ac_config_target in $ac_config_targets
16195do
5213506e
RW
16196 case $ac_config_target in
16197 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16198
22e05272 16199 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
16200 esac
16201done
16202
5213506e 16203
1c710c3c
DJ
16204# If the user did not use the arguments to specify the items to instantiate,
16205# then the envvar interface is used. Set only those that are not.
16206# We use the long form for the default assignment because of an extremely
16207# bizarre bug on SunOS 4.1.3.
16208if $ac_need_defaults; then
16209 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16210fi
16211
16212# Have a temporary directory for convenience. Make it in the build tree
5213506e 16213# simply because there is no reason against having it here, and in addition,
1c710c3c 16214# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
16215# Hook for its removal unless debugging.
16216# Note that there is a small window in which the directory will not be cleaned:
16217# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
16218$debug ||
16219{
22e05272 16220 tmp= ac_tmp=
5213506e 16221 trap 'exit_status=$?
22e05272
JM
16222 : "${ac_tmp:=$tmp}"
16223 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
16224' 0
16225 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 16226}
1c710c3c
DJ
16227# Create a (secure) tmp directory for tmp files.
16228
16229{
5213506e 16230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16231 test -d "$tmp"
1c710c3c
DJ
16232} ||
16233{
5213506e
RW
16234 tmp=./conf$$-$RANDOM
16235 (umask 077 && mkdir "$tmp")
22e05272
JM
16236} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16237ac_tmp=$tmp
5213506e
RW
16238
16239# Set up the scripts for CONFIG_FILES section.
16240# No need to generate them if there are no CONFIG_FILES.
16241# This happens for instance with `./config.status config.h'.
16242if test -n "$CONFIG_FILES"; then
16243
16244if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16245 ac_cs_awk_getline=:
16246 ac_cs_awk_pipe_init=
16247 ac_cs_awk_read_file='
16248 while ((getline aline < (F[key])) > 0)
16249 print(aline)
16250 close(F[key])'
16251 ac_cs_awk_pipe_fini=
16252else
16253 ac_cs_awk_getline=false
16254 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16255 ac_cs_awk_read_file='
16256 print "|#_!!_#|"
16257 print "cat " F[key] " &&"
16258 '$ac_cs_awk_pipe_init
16259 # The final `:' finishes the AND list.
16260 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16261fi
16262ac_cr=`echo X | tr X '\015'`
16263# On cygwin, bash can eat \r inside `` if the user requested igncr.
16264# But we know of no other shell where ac_cr would be empty at this
16265# point, so we can use a bashism as a fallback.
16266if test "x$ac_cr" = x; then
16267 eval ac_cr=\$\'\\r\'
16268fi
16269ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16270if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16271 ac_cs_awk_cr='\\r'
5213506e
RW
16272else
16273 ac_cs_awk_cr=$ac_cr
16274fi
16275
22e05272 16276echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
16277_ACEOF
16278
16279# Create commands to substitute file output variables.
1c710c3c 16280{
5213506e 16281 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 16282 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
16283 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16284 echo "_ACAWK" &&
16285 echo "_ACEOF"
16286} >conf$$files.sh &&
16287. ./conf$$files.sh ||
22e05272 16288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 16289rm -f conf$$files.sh
1c710c3c 16290
5213506e
RW
16291{
16292 echo "cat >conf$$subs.awk <<_ACEOF" &&
16293 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16294 echo "_ACEOF"
16295} >conf$$subs.sh ||
22e05272
JM
16296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16297ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
16298ac_delim='%!_!# '
16299for ac_last_try in false false false false false :; do
16300 . ./conf$$subs.sh ||
22e05272 16301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16302
16303 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16304 if test $ac_delim_n = $ac_delim_num; then
16305 break
16306 elif $ac_last_try; then
22e05272 16307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16308 else
16309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16310 fi
16311done
16312rm -f conf$$subs.sh
16313
16314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16315cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 16316_ACEOF
5213506e
RW
16317sed -n '
16318h
16319s/^/S["/; s/!.*/"]=/
16320p
16321g
16322s/^[^!]*!//
16323:repl
16324t repl
16325s/'"$ac_delim"'$//
16326t delim
16327:nl
16328h
22e05272 16329s/\(.\{148\}\)..*/\1/
5213506e
RW
16330t more1
16331s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16332p
16333n
16334b repl
16335:more1
16336s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16337p
16338g
16339s/.\{148\}//
16340t nl
16341:delim
16342h
22e05272 16343s/\(.\{148\}\)..*/\1/
5213506e
RW
16344t more2
16345s/["\\]/\\&/g; s/^/"/; s/$/"/
16346p
16347b
16348:more2
16349s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16350p
16351g
16352s/.\{148\}//
16353t delim
16354' <conf$$subs.awk | sed '
16355/^[^""]/{
16356 N
16357 s/\n//
16358}
16359' >>$CONFIG_STATUS || ac_write_fail=1
16360rm -f conf$$subs.awk
16361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16362_ACAWK
22e05272 16363cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
16364 for (key in S) S_is_set[key] = 1
16365 FS = "\a"
16366 \$ac_cs_awk_pipe_init
16367}
16368{
16369 line = $ 0
16370 nfields = split(line, field, "@")
16371 substed = 0
16372 len = length(field[1])
16373 for (i = 2; i < nfields; i++) {
16374 key = field[i]
16375 keylen = length(key)
16376 if (S_is_set[key]) {
16377 value = S[key]
16378 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16379 len += length(value) + length(field[++i])
16380 substed = 1
16381 } else
16382 len += 1 + keylen
16383 }
16384 if (nfields == 3 && !substed) {
16385 key = field[2]
16386 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16387 \$ac_cs_awk_read_file
16388 next
16389 }
16390 }
16391 print line
16392}
16393\$ac_cs_awk_pipe_fini
16394_ACAWK
16395_ACEOF
16396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16397if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16398 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16399else
16400 cat
22e05272
JM
16401fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16402 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
16403_ACEOF
16404
22e05272
JM
16405# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16406# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
16407# trailing colons and then remove the whole line if VPATH becomes empty
16408# (actually we leave an empty line to preserve line numbers).
16409if test "x$srcdir" = x.; then
22e05272
JM
16410 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16411h
16412s///
16413s/^/:/
16414s/[ ]*$/:/
16415s/:\$(srcdir):/:/g
16416s/:\${srcdir}:/:/g
16417s/:@srcdir@:/:/g
16418s/^:*//
5213506e 16419s/:*$//
22e05272
JM
16420x
16421s/\(=[ ]*\).*/\1/
16422G
16423s/\n//
5213506e
RW
16424s/^[^=]*=[ ]*$//
16425}'
16426fi
2aeb72e9 16427
5213506e
RW
16428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16429fi # test -n "$CONFIG_FILES"
2aeb72e9 16430
1c710c3c 16431
5213506e
RW
16432eval set X " :F $CONFIG_FILES "
16433shift
16434for ac_tag
16435do
16436 case $ac_tag in
16437 :[FHLC]) ac_mode=$ac_tag; continue;;
16438 esac
16439 case $ac_mode$ac_tag in
16440 :[FHL]*:*);;
22e05272 16441 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
16442 :[FH]-) ac_tag=-:-;;
16443 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16444 esac
16445 ac_save_IFS=$IFS
16446 IFS=:
16447 set x $ac_tag
16448 IFS=$ac_save_IFS
16449 shift
16450 ac_file=$1
16451 shift
79c06341 16452
5213506e
RW
16453 case $ac_mode in
16454 :L) ac_source=$1;;
16455 :[FH])
16456 ac_file_inputs=
16457 for ac_f
16458 do
16459 case $ac_f in
22e05272 16460 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
16461 *) # Look for the file first in the build tree, then in the source tree
16462 # (if the path is not absolute). The absolute path cannot be DOS-style,
16463 # because $ac_f cannot contain `:'.
16464 test -f "$ac_f" ||
16465 case $ac_f in
16466 [\\/$]*) false;;
16467 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16468 esac ||
22e05272 16469 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
16470 esac
16471 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16472 as_fn_append ac_file_inputs " '$ac_f'"
16473 done
1c710c3c 16474
5213506e
RW
16475 # Let's still pretend it is `configure' which instantiates (i.e., don't
16476 # use $as_me), people would be surprised to read:
16477 # /* config.h. Generated by config.status. */
16478 configure_input='Generated from '`
16479 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16480 `' by configure.'
16481 if test x"$ac_file" != x-; then
16482 configure_input="$ac_file. $configure_input"
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16484$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 16485 fi
5213506e
RW
16486 # Neutralize special characters interpreted by sed in replacement strings.
16487 case $configure_input in #(
16488 *\&* | *\|* | *\\* )
16489 ac_sed_conf_input=`$as_echo "$configure_input" |
16490 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16491 *) ac_sed_conf_input=$configure_input;;
16492 esac
11a67599 16493
5213506e 16494 case $ac_tag in
22e05272
JM
16495 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16496 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
16497 esac
16498 ;;
11a67599
ZW
16499 esac
16500
5213506e 16501 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
16502$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16503 X"$ac_file" : 'X\(//\)[^/]' \| \
16504 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
16505 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16506$as_echo X"$ac_file" |
16507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16508 s//\1/
16509 q
16510 }
16511 /^X\(\/\/\)[^/].*/{
16512 s//\1/
16513 q
16514 }
16515 /^X\(\/\/\)$/{
16516 s//\1/
16517 q
16518 }
16519 /^X\(\/\).*/{
16520 s//\1/
16521 q
16522 }
16523 s/.*/./; q'`
16524 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 16525 ac_builddir=.
0b0dc272 16526
5213506e
RW
16527case "$ac_dir" in
16528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16529*)
16530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16531 # A ".." for each directory in $ac_dir_suffix.
16532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16533 case $ac_top_builddir_sub in
16534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16536 esac ;;
16537esac
16538ac_abs_top_builddir=$ac_pwd
16539ac_abs_builddir=$ac_pwd$ac_dir_suffix
16540# for backward compatibility:
16541ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
16542
16543case $srcdir in
5213506e 16544 .) # We are building in place.
1c710c3c 16545 ac_srcdir=.
5213506e
RW
16546 ac_top_srcdir=$ac_top_builddir_sub
16547 ac_abs_top_srcdir=$ac_pwd ;;
16548 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 16549 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
16550 ac_top_srcdir=$srcdir
16551 ac_abs_top_srcdir=$srcdir ;;
16552 *) # Relative name.
16553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16554 ac_top_srcdir=$ac_top_build_prefix$srcdir
16555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 16556esac
5213506e 16557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 16558
0b0dc272 16559
5213506e
RW
16560 case $ac_mode in
16561 :F)
16562 #
16563 # CONFIG_FILE
16564 #
1c710c3c
DJ
16565
16566 case $INSTALL in
16567 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 16568 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 16569 esac
5213506e 16570_ACEOF
11a67599 16571
5213506e
RW
16572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16573# If the template does not know about datarootdir, expand it.
16574# FIXME: This hack should be removed a few years after 2.60.
16575ac_datarootdir_hack=; ac_datarootdir_seen=
16576ac_sed_dataroot='
16577/datarootdir/ {
16578 p
16579 q
16580}
16581/@datadir@/p
16582/@docdir@/p
16583/@infodir@/p
16584/@localedir@/p
16585/@mandir@/p'
16586case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16587*datarootdir*) ac_datarootdir_seen=yes;;
16588*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16590$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 16591_ACEOF
5213506e
RW
16592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16593 ac_datarootdir_hack='
16594 s&@datadir@&$datadir&g
16595 s&@docdir@&$docdir&g
16596 s&@infodir@&$infodir&g
16597 s&@localedir@&$localedir&g
16598 s&@mandir@&$mandir&g
16599 s&\\\${datarootdir}&$datarootdir&g' ;;
16600esac
16601_ACEOF
16602
16603# Neutralize VPATH when `$srcdir' = `.'.
16604# Shell code in configure.ac might set extrasub.
16605# FIXME: do we really want to maintain this feature?
16606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16607ac_sed_extra="$ac_vpsub
1c710c3c
DJ
16608$extrasub
16609_ACEOF
5213506e 16610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
16611:t
16612/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
16613s|@configure_input@|$ac_sed_conf_input|;t t
16614s&@top_builddir@&$ac_top_builddir_sub&;t t
16615s&@top_build_prefix@&$ac_top_build_prefix&;t t
16616s&@srcdir@&$ac_srcdir&;t t
16617s&@abs_srcdir@&$ac_abs_srcdir&;t t
16618s&@top_srcdir@&$ac_top_srcdir&;t t
16619s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16620s&@builddir@&$ac_builddir&;t t
16621s&@abs_builddir@&$ac_abs_builddir&;t t
16622s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16623s&@INSTALL@&$ac_INSTALL&;t t
16624$ac_datarootdir_hack
16625"
16626eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16627if $ac_cs_awk_getline; then
22e05272 16628 $AWK -f "$ac_tmp/subs.awk"
5213506e 16629else
22e05272
JM
16630 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16631fi \
16632 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
16633
16634test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
16635 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16637 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 16638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16639which seems to be undefined. Please make sure it is defined" >&5
5213506e 16640$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16641which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 16642
22e05272 16643 rm -f "$ac_tmp/stdin"
5213506e 16644 case $ac_file in
22e05272
JM
16645 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16646 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 16647 esac \
22e05272 16648 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 16649 ;;
11a67599 16650
11a67599 16651
79c06341 16652
5213506e
RW
16653 esac
16654
3e54529c
RW
16655
16656 case $ac_file$ac_mode in
16657 "Makefile":F) sed "$extrasub_build" Makefile |
16658 sed "$extrasub_host" |
16659 sed "$extrasub_target" > mf$$
16660 mv -f mf$$ Makefile ;;
16661
16662 esac
5213506e
RW
16663done # for ac_tag
16664
16665
16666as_fn_exit 0
1c710c3c 16667_ACEOF
1c710c3c
DJ
16668ac_clean_files=$ac_clean_files_save
16669
5213506e 16670test $ac_write_fail = 0 ||
22e05272 16671 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 16672
1c710c3c
DJ
16673
16674# configure is writing to config.log, and then calls config.status.
16675# config.status does its own redirection, appending to config.log.
16676# Unfortunately, on DOS this fails, as config.log is still kept open
16677# by configure, so config.status won't be able to write to it; its
16678# output is simply discarded. So we exec the FD to /dev/null,
16679# effectively closing config.log, so it can be properly (re)opened and
16680# appended to by config.status. When coming back to configure, we
16681# need to make the FD available again.
16682if test "$no_create" != yes; then
16683 ac_cs_success=:
16684 ac_config_status_args=
16685 test "$silent" = yes &&
16686 ac_config_status_args="$ac_config_status_args --quiet"
16687 exec 5>/dev/null
16688 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16689 exec 5>>config.log
16690 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16691 # would make configure fail if this is the last instruction.
22e05272 16692 $ac_cs_success || as_fn_exit 1
5213506e
RW
16693fi
16694if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16696$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 16697fi
79c06341 16698
This page took 4.829398 seconds and 5 git commands to generate.