]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
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 :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
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 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
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.
d0ac1c44 90as_myself=
81ecdfbb
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
c6b750e1
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
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;}
81ecdfbb
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
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
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'\" &&
8e957354
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"
81ecdfbb
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
c6b750e1 211do
81ecdfbb
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 :
d0ac1c44
SM
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
81ecdfbb
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."
c6b750e1 266 else
81ecdfbb
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."
c6b750e1 271 fi
81ecdfbb
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
c6b750e1 301
81ecdfbb
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"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
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
81ecdfbb
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
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
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
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
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
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
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
c6b750e1
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
81ecdfbb
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
c6b750e1 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
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'`
c6b750e1 456
c6b750e1
DJ
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
c6b750e1 464
81ecdfbb
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 |
c6b750e1 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
c6b750e1 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 482 t loop
81ecdfbb 483 s/-\n.*//
c6b750e1 484 ' >$as_me.lineno &&
81ecdfbb
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; }
c6b750e1 487
d0ac1c44
SM
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
c6b750e1
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
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
c6b750e1
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
81ecdfbb
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';;
c6b750e1
DJ
511esac
512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
c6b750e1 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
c6b750e1 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 522 as_ln_s='ln -s'
81ecdfbb
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.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
c6b750e1 533 fi
c6b750e1 534else
d0ac1c44 535 as_ln_s='cp -pR'
c6b750e1 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
539
540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
c6b750e1
DJ
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
a0da8069 559
c6b750e1 560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c6b750e1
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
c6b750e1
DJ
565#
566# Initializations.
567#
a0da8069 568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
c6b750e1 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
c6b750e1
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
c6b750e1
DJ
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
81ecdfbb 583PACKAGE_URL=
c6b750e1
DJ
584
585ac_unique_file="move-if-change"
81ecdfbb
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
b121d7d4 604READELF_FOR_TARGET
81ecdfbb
RW
605RANLIB_FOR_TARGET
606OBJDUMP_FOR_TARGET
6b91c541 607OBJCOPY_FOR_TARGET
81ecdfbb
RW
608NM_FOR_TARGET
609LIPO_FOR_TARGET
610LD_FOR_TARGET
611DLLTOOL_FOR_TARGET
612AS_FOR_TARGET
613AR_FOR_TARGET
e552509b 614GOC_FOR_TARGET
81ecdfbb 615GFORTRAN_FOR_TARGET
81ecdfbb
RW
616GCC_FOR_TARGET
617CXX_FOR_TARGET
618CC_FOR_TARGET
b121d7d4 619READELF
81ecdfbb
RW
620OBJDUMP
621OBJCOPY
622WINDMC
623WINDRES
624STRIP
625RANLIB
626NM
627LIPO
628LD
629DLLTOOL
630AS
631AR
632RUNTEST
633EXPECT
634MAKEINFO
635FLEX
636LEX
637M4
638BISON
639YACC
81ecdfbb
RW
640WINDRES_FOR_BUILD
641WINDMC_FOR_BUILD
642RANLIB_FOR_BUILD
643NM_FOR_BUILD
644LD_FOR_BUILD
645LDFLAGS_FOR_BUILD
e552509b 646GOC_FOR_BUILD
81ecdfbb 647GFORTRAN_FOR_BUILD
81ecdfbb
RW
648DLLTOOL_FOR_BUILD
649CXX_FOR_BUILD
650CXXFLAGS_FOR_BUILD
651CFLAGS_FOR_BUILD
652CC_FOR_BUILD
653AS_FOR_BUILD
654AR_FOR_BUILD
911e63d0 655target_configdirs
81ecdfbb 656configdirs
81ecdfbb 657build_configdirs
81ecdfbb
RW
658INSTALL_GDB_TK
659GDB_TK
660CONFIGURE_GDB_TK
661build_tooldir
662tooldir
663GCC_SHLIB_SUBDIR
664RPATH_ENVVAR
4074d5f2
RW
665target_configargs
666host_configargs
667build_configargs
96655cc4 668BUILD_CONFIG
91c1f14c 669LDFLAGS_FOR_TARGET
81ecdfbb
RW
670CXXFLAGS_FOR_TARGET
671CFLAGS_FOR_TARGET
672DEBUG_PREFIX_CFLAGS_FOR_TARGET
673SYSROOT_CFLAGS_FOR_TARGET
bf41f30d 674get_gcc_base_ver
e81d5d05 675extra_host_zlib_configure_flags
700d40ca 676extra_host_libiberty_configure_flags
1b6c0831 677stage1_languages
bf41f30d 678host_shared
1b6c0831
L
679extra_linker_plugin_flags
680extra_linker_plugin_configure_flags
7ec59b9e 681islinc
1b6c0831 682isllibs
81ecdfbb 683poststage1_ldflags
143754cd 684poststage1_libs
81ecdfbb 685stage1_ldflags
b3676d82 686stage1_libs
7ec59b9e 687extra_isl_gmp_configure_flags
81ecdfbb
RW
688extra_mpc_mpfr_configure_flags
689extra_mpc_gmp_configure_flags
690extra_mpfr_configure_flags
691gmpinc
692gmplibs
693do_compare
694GNATMAKE
695GNATBIND
696ac_ct_CXX
697CXXFLAGS
698CXX
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
1b6c0831 706extra_liboffloadmic_configure_flags
81ecdfbb
RW
707target_subdir
708host_subdir
709build_subdir
710build_libsubdir
8e957354
PB
711AWK
712SED
81ecdfbb
RW
713LN_S
714LN
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718target_os
719target_vendor
720target_cpu
721target
722host_os
723host_vendor
724host_cpu
725host
726target_noncanonical
727host_noncanonical
728build_noncanonical
729build_os
730build_vendor
731build_cpu
732build
733TOPLEVEL_CONFIGURE_ARGUMENTS
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
772ac_subst_files='serialization_dependencies
773host_makefile_frag
774target_makefile_frag
775alphaieee_frag
776ospace_frag'
777ac_user_opts='
778enable_option_checking
779with_build_libsubdir
cf39cfc5 780with_system_zlib
1b6c0831
L
781enable_as_accelerator_for
782enable_offload_targets
81ecdfbb 783enable_gold
c7791212 784enable_ld
edeefb67 785enable_compressed_debug_sections
89a1e9c3
PB
786enable_libquadmath
787enable_libquadmath_support
81ecdfbb
RW
788enable_libada
789enable_libssp
f66a9a70 790enable_libstdcxx
1b6c0831 791enable_liboffloadmic
ffdd6afc 792enable_bootstrap
81ecdfbb
RW
793with_mpc
794with_mpc_include
795with_mpc_lib
796with_mpfr_dir
797with_mpfr
798with_mpfr_include
799with_mpfr_lib
800with_gmp_dir
801with_gmp
802with_gmp_include
803with_gmp_lib
81ecdfbb 804with_stage1_libs
ef93dd73 805with_static_standard_libraries
b3676d82 806with_stage1_ldflags
81ecdfbb 807with_boot_libs
143754cd 808with_boot_ldflags
7ec59b9e
L
809with_isl
810with_isl_include
811with_isl_lib
812enable_isl_version_check
700d40ca 813enable_lto
1b6c0831
L
814enable_linker_plugin_configure_flags
815enable_linker_plugin_flags
bf41f30d 816enable_host_shared
81ecdfbb
RW
817enable_stage1_languages
818enable_objc_gc
05a13254
NC
819with_target_bdw_gc
820with_target_bdw_gc_include
821with_target_bdw_gc_lib
bf41f30d 822with_gcc_major_version_only
81ecdfbb
RW
823with_build_sysroot
824with_debug_prefix_map
96655cc4 825with_build_config
730af8ee 826enable_vtable_verify
81ecdfbb
RW
827enable_serial_configure
828with_build_time_tools
829enable_maintainer_mode
830enable_stage1_checking
831enable_werror
81ecdfbb
RW
832'
833 ac_precious_vars='build_alias
834host_alias
835target_alias
836CC
837CFLAGS
838LDFLAGS
839LIBS
840CPPFLAGS
841CXX
842CXXFLAGS
843CCC
4074d5f2
RW
844build_configargs
845host_configargs
846target_configargs
81ecdfbb
RW
847AR
848AS
849DLLTOOL
850LD
851LIPO
852NM
853RANLIB
854STRIP
855WINDRES
856WINDMC
857OBJCOPY
858OBJDUMP
b121d7d4 859READELF
81ecdfbb
RW
860CC_FOR_TARGET
861CXX_FOR_TARGET
862GCC_FOR_TARGET
81ecdfbb 863GFORTRAN_FOR_TARGET
e552509b 864GOC_FOR_TARGET
81ecdfbb
RW
865AR_FOR_TARGET
866AS_FOR_TARGET
867DLLTOOL_FOR_TARGET
868LD_FOR_TARGET
869LIPO_FOR_TARGET
870NM_FOR_TARGET
6b91c541 871OBJCOPY_FOR_TARGET
81ecdfbb
RW
872OBJDUMP_FOR_TARGET
873RANLIB_FOR_TARGET
b121d7d4 874READELF_FOR_TARGET
81ecdfbb
RW
875STRIP_FOR_TARGET
876WINDRES_FOR_TARGET
877WINDMC_FOR_TARGET'
878
a0da8069
NN
879
880# Initialize some variables set by options.
c6b750e1
DJ
881ac_init_help=
882ac_init_version=false
81ecdfbb
RW
883ac_unrecognized_opts=
884ac_unrecognized_sep=
a0da8069
NN
885# The variables have the same names as the options, with
886# dashes changed to underlines.
c6b750e1 887cache_file=/dev/null
a0da8069 888exec_prefix=NONE
a0da8069 889no_create=
a0da8069
NN
890no_recursion=
891prefix=NONE
892program_prefix=NONE
893program_suffix=NONE
894program_transform_name=s,x,x,
895silent=
896site=
897srcdir=
a0da8069
NN
898verbose=
899x_includes=NONE
900x_libraries=NONE
c6b750e1
DJ
901
902# Installation directory options.
903# These are left unexpanded so users can "make install exec_prefix=/foo"
904# and all the variables that are supposed to be based on exec_prefix
905# by default will actually change.
906# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 907# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
908bindir='${exec_prefix}/bin'
909sbindir='${exec_prefix}/sbin'
910libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
911datarootdir='${prefix}/share'
912datadir='${datarootdir}'
a0da8069
NN
913sysconfdir='${prefix}/etc'
914sharedstatedir='${prefix}/com'
915localstatedir='${prefix}/var'
a0da8069
NN
916includedir='${prefix}/include'
917oldincludedir='/usr/include'
81ecdfbb
RW
918docdir='${datarootdir}/doc/${PACKAGE}'
919infodir='${datarootdir}/info'
920htmldir='${docdir}'
921dvidir='${docdir}'
922pdfdir='${docdir}'
923psdir='${docdir}'
924libdir='${exec_prefix}/lib'
925localedir='${datarootdir}/locale'
926mandir='${datarootdir}/man'
252b5132 927
a0da8069 928ac_prev=
81ecdfbb 929ac_dashdash=
a0da8069
NN
930for ac_option
931do
a0da8069
NN
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
81ecdfbb 934 eval $ac_prev=\$ac_option
a0da8069
NN
935 ac_prev=
936 continue
937 fi
252b5132 938
81ecdfbb 939 case $ac_option in
d0ac1c44
SM
940 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *=) ac_optarg= ;;
942 *) ac_optarg=yes ;;
81ecdfbb 943 esac
a0da8069
NN
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
81ecdfbb
RW
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
a0da8069
NN
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 954 bindir=$ac_optarg ;;
a0da8069
NN
955
956 -build | --build | --buil | --bui | --bu)
c6b750e1 957 ac_prev=build_alias ;;
a0da8069 958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 959 build_alias=$ac_optarg ;;
a0da8069
NN
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
a0da8069 970
81ecdfbb 971 -datadir | --datadir | --datadi | --datad)
a0da8069 972 ac_prev=datadir ;;
81ecdfbb 973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 974 datadir=$ac_optarg ;;
a0da8069 975
81ecdfbb
RW
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
a0da8069 983 -disable-* | --disable-*)
81ecdfbb 984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 985 # Reject names that are not valid shell variable names.
81ecdfbb 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 987 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992"enable_$ac_useropt"
993"*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
a0da8069
NN
1008
1009 -enable-* | --enable-*)
81ecdfbb 1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1011 # Reject names that are not valid shell variable names.
81ecdfbb 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1013 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
a0da8069 1022 esac
81ecdfbb 1023 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
c6b750e1 1032 exec_prefix=$ac_optarg ;;
a0da8069
NN
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
c6b750e1
DJ
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
a0da8069
NN
1044
1045 -host | --host | --hos | --ho)
c6b750e1 1046 ac_prev=host_alias ;;
a0da8069 1047 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1048 host_alias=$ac_optarg ;;
a0da8069 1049
81ecdfbb
RW
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
a0da8069
NN
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1061 includedir=$ac_optarg ;;
a0da8069
NN
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1066 infodir=$ac_optarg ;;
a0da8069
NN
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1071 libdir=$ac_optarg ;;
a0da8069
NN
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1078 libexecdir=$ac_optarg ;;
a0da8069 1079
81ecdfbb
RW
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
a0da8069 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1086 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1090 localstatedir=$ac_optarg ;;
a0da8069
NN
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1095 mandir=$ac_optarg ;;
a0da8069
NN
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1102 | --no-cr | --no-c | -n)
a0da8069
NN
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1116 oldincludedir=$ac_optarg ;;
a0da8069
NN
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1121 prefix=$ac_optarg ;;
a0da8069
NN
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1128 program_prefix=$ac_optarg ;;
a0da8069
NN
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1135 program_suffix=$ac_optarg ;;
a0da8069
NN
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1152 program_transform_name=$ac_optarg ;;
a0da8069 1153
81ecdfbb
RW
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
a0da8069
NN
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
c6b750e1 1172 sbindir=$ac_optarg ;;
a0da8069
NN
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
c6b750e1 1183 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
c6b750e1 1188 site=$ac_optarg ;;
a0da8069
NN
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1193 srcdir=$ac_optarg ;;
a0da8069
NN
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1200 sysconfdir=$ac_optarg ;;
a0da8069
NN
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1203 ac_prev=target_alias ;;
a0da8069 1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1205 target_alias=$ac_optarg ;;
a0da8069
NN
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
c6b750e1
DJ
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
a0da8069
NN
1212
1213 -with-* | --with-*)
81ecdfbb 1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1215 # Reject names that are not valid shell variable names.
81ecdfbb 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1217 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
a0da8069 1226 esac
81ecdfbb 1227 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1228
1229 -without-* | --without-*)
81ecdfbb 1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1231 # Reject names that are not valid shell variable names.
81ecdfbb 1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1233 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238"with_$ac_useropt"
1239"*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
a0da8069
NN
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1254 x_includes=$ac_optarg ;;
a0da8069
NN
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1261 x_libraries=$ac_optarg ;;
a0da8069 1262
d0ac1c44
SM
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264Try \`$0 --help' for more information"
a0da8069
NN
1265 ;;
1266
c6b750e1
DJ
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1273 esac
1274 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1275 export $ac_envvar ;;
1276
a0da8069 1277 *)
c6b750e1 1278 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
a0da8069
NN
1283 ;;
1284
1285 esac
1286done
1287
1288if test -n "$ac_prev"; then
c6b750e1 1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1290 as_fn_error $? "missing argument to $ac_option"
a0da8069 1291fi
a0da8069 1292
81ecdfbb
RW
1293if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
d0ac1c44 1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1298 esac
81ecdfbb 1299fi
a0da8069 1300
81ecdfbb
RW
1301# Check all directory arguments for consistency.
1302for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
a0da8069 1306do
81ecdfbb
RW
1307 eval ac_val=\$$ac_var
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
c6b750e1 1315 case $ac_val in
81ecdfbb
RW
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1318 esac
d0ac1c44 1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1320done
1321
c6b750e1
DJ
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
376a0e54 1328
c6b750e1
DJ
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
c6b750e1
DJ
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1335 fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
a0da8069 1342
a0da8069 1343
81ecdfbb
RW
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1347 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1349 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1350
1351
a0da8069
NN
1352# Find the source files, if location was not specified.
1353if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
81ecdfbb
RW
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361$as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)[^/].*/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\).*/{
1375 s//\1/
1376 q
1377 }
1378 s/.*/./; q'`
a0da8069 1379 srcdir=$ac_confdir
81ecdfbb 1380 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1381 srcdir=..
1382 fi
1383else
1384 ac_srcdir_defaulted=no
1385fi
81ecdfbb
RW
1386if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1389fi
1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
d0ac1c44 1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1393 pwd)`
1394# When building in place, set srcdir=.
1395if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397fi
1398# Remove unnecessary trailing slashes from srcdir.
1399# Double slashes in file names in object file debugging info
1400# mess up M-x gdb in Emacs.
1401case $srcdir in
1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403esac
6d0cd39e
AM
1404case $srcdir in
1405 *" "*)
d0ac1c44 1406 as_fn_error $? "path to source, $srcdir, contains spaces"
6d0cd39e
AM
1407 ;;
1408esac
9cc8ae67
PB
1409ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1410
81ecdfbb
RW
1411for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416done
c6b750e1
DJ
1417
1418#
1419# Report the --help message.
1420#
1421if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425\`configure' configures this package to adapt to many kinds of systems.
1426
1427Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430VAR=VALUE. See below for descriptions of some of the useful variables.
1431
1432Defaults for the options are specified in brackets.
1433
1434Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
d0ac1c44 1439 -q, --quiet, --silent do not print \`checking ...' messages
c6b750e1
DJ
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444
c6b750e1
DJ
1445Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1447 [$ac_default_prefix]
c6b750e1 1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1449 [PREFIX]
c6b750e1
DJ
1450
1451By default, \`make install' will install all the files in
1452\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454for instance \`--prefix=\$HOME'.
1455
1456For better control, use the options below.
1457
1458Fine tuning of the installation directories:
81ecdfbb
RW
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1478_ACEOF
1479
1480 cat <<\_ACEOF
1481
1482Program names:
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1486
1487System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 --target=TARGET configure for building compilers for TARGET [HOST]
1491_ACEOF
a0da8069 1492fi
a0da8069 1493
c6b750e1
DJ
1494if test -n "$ac_init_help"; then
1495
1496 cat <<\_ACEOF
1497
1498Optional Features:
81ecdfbb 1499 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1502 --enable-as-accelerator-for=ARG
1503 build as offload target compiler. Specify offload
1504 host triple by ARG
1505 --enable-offload-targets=LIST
1506 enable offloading to devices from comma-separated
1507 LIST of TARGET[=DIR]. Use optional path to find
1508 offload target compiler during the build
c7791212 1509 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1510 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
6c3bc0f8 1511 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1512 Enable compressed debug sections for gas, gold or ld
1513 by default
89a1e9c3
PB
1514 --disable-libquadmath do not build libquadmath directory
1515 --disable-libquadmath-support
1516 disable libquadmath support for Fortran
521ec477
DD
1517 --enable-libada build libada directory
1518 --enable-libssp build libssp directory
f66a9a70 1519 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1520 --enable-liboffloadmic=ARG
1521 build liboffloadmic [ARG={no,host,target}]
ffdd6afc 1522 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e 1523 --disable-isl-version-check
4849dfd8 1524 disable check for isl version
700d40ca 1525 --enable-lto enable link time optimization support
1b6c0831
L
1526 --enable-linker-plugin-configure-flags=FLAGS
1527 additional flags for configuring linker plugins
1528 [none]
1529 --enable-linker-plugin-flags=FLAGS
1530 additional flags for configuring and building linker
1531 plugins [none]
bf41f30d 1532 --enable-host-shared build host code as shared libraries
7837304f
AS
1533 --enable-stage1-languages[=all]
1534 choose additional languages to build during stage1.
1535 Mostly useful for compiler development
1536 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1537 Objective-C runtime
ce6c656d 1538 --enable-vtable-verify Enable vtable verification feature
521ec477 1539 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1540 force sequential configuration of sub-packages for
1541 the host, target or build machine, or all
1542 sub-packages
1543 --enable-maintainer-mode
1544 enable make rules and dependencies not useful (and
1545 sometimes confusing) to the casual installer
1546 --enable-stage1-checking[=all]
1547 choose additional checking for stage1 of the
1548 compiler
c6b750e1
DJ
1549 --enable-werror enable -Werror in bootstrap stage2 and later
1550
1551Optional Packages:
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1554 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1555 --with-system-zlib use installed libz
7837304f
AS
1556 --with-mpc=PATH specify prefix directory for installed MPC package.
1557 Equivalent to --with-mpc-include=PATH/include plus
1558 --with-mpc-lib=PATH/lib
1559 --with-mpc-include=PATH specify directory for installed MPC include files
1560 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1561 --with-mpfr-dir=PATH this option has been REMOVED
1562 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1563 Equivalent to --with-mpfr-include=PATH/include plus
1564 --with-mpfr-lib=PATH/lib
c6b750e1 1565 --with-mpfr-include=PATH
521ec477
DD
1566 specify directory for installed MPFR include files
1567 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1568 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1569 --with-gmp=PATH specify prefix directory for the installed GMP
1570 package. Equivalent to
1571 --with-gmp-include=PATH/include plus
1572 --with-gmp-lib=PATH/lib
521ec477
DD
1573 --with-gmp-include=PATH specify directory for installed GMP include files
1574 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1575 --with-stage1-libs=LIBS libraries for stage1
ef93dd73
TT
1576 --with-static-standard-libraries
1577 use -static-libstdc++ and -static-libgcc
1578 (default=auto)
7837304f
AS
1579 --with-stage1-ldflags=FLAGS
1580 linker flags for stage1
7837304f
AS
1581 --with-boot-libs=LIBS libraries for stage2 and later
1582 --with-boot-ldflags=FLAGS
1583 linker flags for stage2 and later
4849dfd8 1584 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1585 package. Equivalent to
7ec59b9e
L
1586 --with-isl-include=PATH/include plus
1587 --with-isl-lib=PATH/lib
4849dfd8
NC
1588 --with-isl-include=PATH Specify directory for installed isl include files
1589 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1590 --with-target-bdw-gc=PATHLIST
1591 specify prefix directory for installed bdw-gc
1592 package. Equivalent to
1593 --with-target-bdw-gc-include=PATH/include plus
1594 --with-target-bdw-gc-lib=PATH/lib
1595 --with-target-bdw-gc-include=PATHLIST
1596 specify directories for installed bdw-gc include
1597 files
1598 --with-target-bdw-gc-lib=PATHLIST
1599 specify directories for installed bdw-gc library
bf41f30d
NC
1600 --with-gcc-major-version-only
1601 use only GCC major number in filesystem paths
521ec477 1602 --with-build-sysroot=SYSROOT
c6b750e1 1603 use sysroot as the system root during the build
8a6ee3ab 1604 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1605 map A to B, C to D ... in debug information
1606 --with-build-config='NAME NAME2...'
1607 use config/NAME.mk build configuration
521ec477 1608 --with-build-time-tools=PATH
c6b750e1 1609 use given path to find target tools during the build
c6b750e1
DJ
1610
1611Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
81ecdfbb 1616 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1617 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1618 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1619 CXX C++ compiler command
1620 CXXFLAGS C++ compiler flags
4074d5f2
RW
1621 build_configargs
1622 additional configure arguments for build directories
1623 host_configargs
1624 additional configure arguments for host directories
1625 target_configargs
1626 additional configure arguments for target directories
9a819804
AO
1627 AR AR for the host
1628 AS AS for the host
1629 DLLTOOL DLLTOOL for the host
1630 LD LD for the host
1631 LIPO LIPO for the host
1632 NM NM for the host
1633 RANLIB RANLIB for the host
1634 STRIP STRIP for the host
1635 WINDRES WINDRES for the host
0c24b341 1636 WINDMC WINDMC for the host
9a819804
AO
1637 OBJCOPY OBJCOPY for the host
1638 OBJDUMP OBJDUMP for the host
b121d7d4 1639 READELF READELF for the host
9a819804
AO
1640 CC_FOR_TARGET
1641 CC for the target
1642 CXX_FOR_TARGET
1643 CXX for the target
1644 GCC_FOR_TARGET
1645 GCC for the target
9a819804
AO
1646 GFORTRAN_FOR_TARGET
1647 GFORTRAN for the target
e552509b
ILT
1648 GOC_FOR_TARGET
1649 GOC for the target
9a819804
AO
1650 AR_FOR_TARGET
1651 AR for the target
1652 AS_FOR_TARGET
1653 AS for the target
1654 DLLTOOL_FOR_TARGET
1655 DLLTOOL for the target
1656 LD_FOR_TARGET
1657 LD for the target
1658 LIPO_FOR_TARGET
1659 LIPO for the target
1660 NM_FOR_TARGET
1661 NM for the target
6b91c541
AP
1662 OBJCOPY_FOR_TARGET
1663 OBJCOPY for the target
9a819804
AO
1664 OBJDUMP_FOR_TARGET
1665 OBJDUMP for the target
1666 RANLIB_FOR_TARGET
1667 RANLIB for the target
b121d7d4
DD
1668 READELF_FOR_TARGET
1669 READELF for the target
9a819804
AO
1670 STRIP_FOR_TARGET
1671 STRIP for the target
1672 WINDRES_FOR_TARGET
1673 WINDRES for the target
0c24b341
NC
1674 WINDMC_FOR_TARGET
1675 WINDMC for the target
c6b750e1
DJ
1676
1677Use these variables to override the choices made by `configure' or to help
1678it to find libraries and programs with nonstandard names/locations.
1679
81ecdfbb 1680Report bugs to the package provider.
c6b750e1 1681_ACEOF
81ecdfbb 1682ac_status=$?
c6b750e1
DJ
1683fi
1684
1685if test "$ac_init_help" = "recursive"; then
1686 # If there are subdirs, report their specific --help.
c6b750e1 1687 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1688 test -d "$ac_dir" ||
1689 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690 continue
c6b750e1
DJ
1691 ac_builddir=.
1692
81ecdfbb
RW
1693case "$ac_dir" in
1694.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695*)
1696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1697 # A ".." for each directory in $ac_dir_suffix.
1698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1699 case $ac_top_builddir_sub in
1700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1702 esac ;;
1703esac
1704ac_abs_top_builddir=$ac_pwd
1705ac_abs_builddir=$ac_pwd$ac_dir_suffix
1706# for backward compatibility:
1707ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1708
1709case $srcdir in
81ecdfbb 1710 .) # We are building in place.
c6b750e1 1711 ac_srcdir=.
81ecdfbb
RW
1712 ac_top_srcdir=$ac_top_builddir_sub
1713 ac_abs_top_srcdir=$ac_pwd ;;
1714 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1715 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1716 ac_top_srcdir=$srcdir
1717 ac_abs_top_srcdir=$srcdir ;;
1718 *) # Relative name.
1719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1720 ac_top_srcdir=$ac_top_build_prefix$srcdir
1721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1722esac
81ecdfbb
RW
1723ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724
1725 cd "$ac_dir" || { ac_status=$?; continue; }
1726 # Check for guested configure.
1727 if test -f "$ac_srcdir/configure.gnu"; then
1728 echo &&
1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730 elif test -f "$ac_srcdir/configure"; then
1731 echo &&
1732 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1733 else
81ecdfbb
RW
1734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 fi || ac_status=$?
1736 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1737 done
1738fi
1739
81ecdfbb 1740test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1741if $ac_init_version; then
1742 cat <<\_ACEOF
81ecdfbb 1743configure
d0ac1c44 1744generated by GNU Autoconf 2.69
c6b750e1 1745
d0ac1c44 1746Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
1747This configure script is free software; the Free Software Foundation
1748gives unlimited permission to copy, distribute and modify it.
1749_ACEOF
81ecdfbb 1750 exit
c6b750e1 1751fi
81ecdfbb
RW
1752
1753## ------------------------ ##
1754## Autoconf initialization. ##
1755## ------------------------ ##
1756
1757# ac_fn_c_try_compile LINENO
1758# --------------------------
1759# Try to compile conftest.$ac_ext, and return whether this succeeded.
1760ac_fn_c_try_compile ()
1761{
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext
1764 if { { ac_try="$ac_compile"
1765case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_compile") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest.$ac_objext; then :
1783 ac_retval=0
1784else
1785 $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=1
1789fi
d0ac1c44
SM
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
81ecdfbb
RW
1792
1793} # ac_fn_c_try_compile
1794
1795# ac_fn_cxx_try_compile LINENO
1796# ----------------------------
1797# Try to compile conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_cxx_try_compile ()
1799{
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827fi
d0ac1c44
SM
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
81ecdfbb
RW
1830
1831} # ac_fn_cxx_try_compile
1832
b3676d82
EB
1833# ac_fn_cxx_try_link LINENO
1834# -------------------------
1835# Try to link conftest.$ac_ext, and return whether this succeeded.
1836ac_fn_cxx_try_link ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext conftest$ac_exeext
1840 if { { ac_try="$ac_link"
1841case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1853 fi
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest$ac_exeext && {
1859 test "$cross_compiling" = yes ||
d0ac1c44 1860 test -x conftest$ac_exeext
b3676d82
EB
1861 }; then :
1862 ac_retval=0
1863else
1864 $as_echo "$as_me: failed program was:" >&5
1865sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1
1868fi
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
b3676d82
EB
1876
1877} # ac_fn_cxx_try_link
1878
81ecdfbb
RW
1879# ac_fn_c_try_link LINENO
1880# -----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded.
1882ac_fn_c_try_link ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
d0ac1c44 1906 test -x conftest$ac_exeext
81ecdfbb
RW
1907 }; then :
1908 ac_retval=0
1909else
1910 $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
81ecdfbb
RW
1922
1923} # ac_fn_c_try_link
1924cat >config.log <<_ACEOF
c6b750e1
DJ
1925This file contains any messages produced by compilers while
1926running configure, to aid debugging if configure makes a mistake.
1927
1928It was created by $as_me, which was
d0ac1c44 1929generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
1930
1931 $ $0 $@
1932
1933_ACEOF
81ecdfbb 1934exec 5>>config.log
c6b750e1
DJ
1935{
1936cat <<_ASUNAME
1937## --------- ##
1938## Platform. ##
1939## --------- ##
1940
1941hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1942uname -m = `(uname -m) 2>/dev/null || echo unknown`
1943uname -r = `(uname -r) 2>/dev/null || echo unknown`
1944uname -s = `(uname -s) 2>/dev/null || echo unknown`
1945uname -v = `(uname -v) 2>/dev/null || echo unknown`
1946
1947/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1948/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1949
1950/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1951/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1952/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1953/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1954/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1955/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1956/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1957
1958_ASUNAME
1959
1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1965 $as_echo "PATH: $as_dir"
1966 done
1967IFS=$as_save_IFS
c6b750e1
DJ
1968
1969} >&5
1970
1971cat >&5 <<_ACEOF
1972
1973
1974## ----------- ##
1975## Core tests. ##
1976## ----------- ##
1977
1978_ACEOF
1979
1980
1981# Keep a trace of the command line.
1982# Strip out --no-create and --no-recursion so they do not pile up.
1983# Strip out --silent because we don't want to record it for future runs.
1984# Also quote any args containing shell meta-characters.
1985# Make two passes to allow for proper duplicate-argument suppression.
1986ac_configure_args=
1987ac_configure_args0=
1988ac_configure_args1=
c6b750e1
DJ
1989ac_must_keep_next=false
1990for ac_pass in 1 2
1991do
1992 for ac_arg
1993 do
1994 case $ac_arg in
1995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1997 | -silent | --silent | --silen | --sile | --sil)
1998 continue ;;
81ecdfbb
RW
1999 *\'*)
2000 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2001 esac
2002 case $ac_pass in
81ecdfbb 2003 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2004 2)
81ecdfbb 2005 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2006 if test $ac_must_keep_next = true; then
2007 ac_must_keep_next=false # Got value, back to normal.
2008 else
2009 case $ac_arg in
2010 *=* | --config-cache | -C | -disable-* | --disable-* \
2011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2013 | -with-* | --with-* | -without-* | --without-* | --x)
2014 case "$ac_configure_args0 " in
2015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2016 esac
2017 ;;
2018 -* ) ac_must_keep_next=true ;;
2019 esac
2020 fi
81ecdfbb 2021 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2022 ;;
2023 esac
2024 done
2025done
81ecdfbb
RW
2026{ ac_configure_args0=; unset ac_configure_args0;}
2027{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2028
2029# When interrupted or exit'd, cleanup temporary files, and complete
2030# config.log. We remove comments because anyway the quotes in there
2031# would cause problems or look ugly.
81ecdfbb
RW
2032# WARNING: Use '\'' to represent an apostrophe within the trap.
2033# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2034trap 'exit_status=$?
2035 # Save into config.log some information that might help in debugging.
2036 {
2037 echo
2038
d0ac1c44 2039 $as_echo "## ---------------- ##
c6b750e1 2040## Cache variables. ##
d0ac1c44 2041## ---------------- ##"
c6b750e1
DJ
2042 echo
2043 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2044(
2045 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in #(
2048 *${as_nl}*)
2049 case $ac_var in #(
2050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2051$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2052 esac
2053 case $ac_var in #(
2054 _ | IFS | as_nl) ;; #(
2055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2056 *) { eval $ac_var=; unset $ac_var;} ;;
2057 esac ;;
2058 esac
2059 done
c6b750e1 2060 (set) 2>&1 |
81ecdfbb
RW
2061 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2062 *${as_nl}ac_space=\ *)
c6b750e1 2063 sed -n \
81ecdfbb
RW
2064 "s/'\''/'\''\\\\'\'''\''/g;
2065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2066 ;; #(
c6b750e1 2067 *)
81ecdfbb 2068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2069 ;;
81ecdfbb
RW
2070 esac |
2071 sort
2072)
c6b750e1
DJ
2073 echo
2074
d0ac1c44 2075 $as_echo "## ----------------- ##
c6b750e1 2076## Output variables. ##
d0ac1c44 2077## ----------------- ##"
c6b750e1
DJ
2078 echo
2079 for ac_var in $ac_subst_vars
2080 do
81ecdfbb
RW
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2086 done | sort
2087 echo
2088
2089 if test -n "$ac_subst_files"; then
d0ac1c44 2090 $as_echo "## ------------------- ##
81ecdfbb 2091## File substitutions. ##
d0ac1c44 2092## ------------------- ##"
c6b750e1
DJ
2093 echo
2094 for ac_var in $ac_subst_files
2095 do
81ecdfbb
RW
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2101 done | sort
2102 echo
2103 fi
2104
2105 if test -s confdefs.h; then
d0ac1c44 2106 $as_echo "## ----------- ##
c6b750e1 2107## confdefs.h. ##
d0ac1c44 2108## ----------- ##"
c6b750e1 2109 echo
81ecdfbb 2110 cat confdefs.h
c6b750e1
DJ
2111 echo
2112 fi
2113 test "$ac_signal" != 0 &&
81ecdfbb
RW
2114 $as_echo "$as_me: caught signal $ac_signal"
2115 $as_echo "$as_me: exit $exit_status"
c6b750e1 2116 } >&5
81ecdfbb
RW
2117 rm -f core *.core core.conftest.* &&
2118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2119 exit $exit_status
81ecdfbb 2120' 0
c6b750e1 2121for ac_signal in 1 2 13 15; do
81ecdfbb 2122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2123done
2124ac_signal=0
2125
2126# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2127rm -f -r conftest* confdefs.h
2128
2129$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2130
2131# Predefined preprocessor variables.
2132
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_NAME "$PACKAGE_NAME"
2135_ACEOF
2136
c6b750e1
DJ
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139_ACEOF
2140
c6b750e1
DJ
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_VERSION "$PACKAGE_VERSION"
2143_ACEOF
2144
c6b750e1
DJ
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_STRING "$PACKAGE_STRING"
2147_ACEOF
2148
c6b750e1
DJ
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151_ACEOF
2152
81ecdfbb
RW
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_URL "$PACKAGE_URL"
2155_ACEOF
2156
c6b750e1
DJ
2157
2158# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2159# Prefer an explicitly selected file to automatically selected ones.
2160ac_site_file1=NONE
2161ac_site_file2=NONE
2162if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2163 # We do not want a PATH search for config.site.
2164 case $CONFIG_SITE in #((
2165 -*) ac_site_file1=./$CONFIG_SITE;;
2166 */*) ac_site_file1=$CONFIG_SITE;;
2167 *) ac_site_file1=./$CONFIG_SITE;;
2168 esac
81ecdfbb
RW
2169elif test "x$prefix" != xNONE; then
2170 ac_site_file1=$prefix/share/config.site
2171 ac_site_file2=$prefix/etc/config.site
2172else
2173 ac_site_file1=$ac_default_prefix/share/config.site
2174 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2175fi
81ecdfbb
RW
2176for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2177do
2178 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2179 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2181$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2182 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2183 . "$ac_site_file" \
2184 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186as_fn_error $? "failed to load site script $ac_site_file
2187See \`config.log' for more details" "$LINENO" 5; }
a0da8069
NN
2188 fi
2189done
2190
2191if test -r "$cache_file"; then
d0ac1c44
SM
2192 # Some versions of bash will fail to source /dev/null (special files
2193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2197 case $cache_file in
81ecdfbb
RW
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
c6b750e1
DJ
2200 esac
2201 fi
a0da8069 2202else
81ecdfbb
RW
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2205 >$cache_file
2206fi
2207
2208# Check that the precious variables saved in the cache have kept the same
2209# value.
2210ac_cache_corrupted=false
81ecdfbb 2211for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2214 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2216 case $ac_old_set,$ac_new_set in
2217 set,)
81ecdfbb
RW
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2220 ac_cache_corrupted=: ;;
2221 ,set)
81ecdfbb
RW
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2224 ac_cache_corrupted=: ;;
2225 ,);;
2226 *)
2227 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2228 # differences in whitespace do not lead to failure.
2229 ac_old_val_w=`echo x $ac_old_val`
2230 ac_new_val_w=`echo x $ac_new_val`
2231 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234 ac_cache_corrupted=:
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238 eval $ac_var=\$ac_old_val
2239 fi
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2241$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2243$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2244 fi;;
2245 esac
2246 # Pass precious variables to config.status.
2247 if test "$ac_new_set" = set; then
2248 case $ac_new_val in
81ecdfbb 2249 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2250 *) ac_arg=$ac_var=$ac_new_val ;;
2251 esac
2252 case " $ac_configure_args " in
2253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2254 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2255 esac
2256 fi
2257done
2258if $ac_cache_corrupted; then
81ecdfbb
RW
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2263 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2264fi
81ecdfbb
RW
2265## -------------------- ##
2266## Main body of script. ##
2267## -------------------- ##
a0da8069
NN
2268
2269ac_ext=c
a0da8069 2270ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275
2276
2277
c6b750e1
DJ
2278
2279
34a0f3cf 2280
c6b750e1 2281
5b553f7e
RW
2282progname=$0
2283# if PWD already has a value, it is probably wrong.
2284if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2285
2286# Export original configure arguments for use by sub-configures.
2287# Quote arguments with shell meta charatcers.
2288TOPLEVEL_CONFIGURE_ARGUMENTS=
2289set -- "$progname" "$@"
2290for ac_arg
2291do
2292 case "$ac_arg" in
2293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2294 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2295 # if the argument is of the form -foo=baz, quote the baz part only
2296 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2297 *) ;;
2298 esac
2299 # Add the quoted argument to the list.
2300 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2301done
2302if test "$silent" = yes; then
2303 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2304fi
2305# Remove the initial space we just introduced and, as these will be
2306# expanded by make, quote '$'.
2307TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2308
c6b750e1
DJ
2309
2310# Find the build, host, and target systems.
a0da8069 2311ac_aux_dir=
81ecdfbb 2312for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2313 if test -f "$ac_dir/install-sh"; then
2314 ac_aux_dir=$ac_dir
2315 ac_install_sh="$ac_aux_dir/install-sh -c"
2316 break
2317 elif test -f "$ac_dir/install.sh"; then
2318 ac_aux_dir=$ac_dir
2319 ac_install_sh="$ac_aux_dir/install.sh -c"
2320 break
2321 elif test -f "$ac_dir/shtool"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/shtool install -c"
2324 break
2325 fi
a0da8069
NN
2326done
2327if test -z "$ac_aux_dir"; then
d0ac1c44 2328 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2329fi
81ecdfbb
RW
2330
2331# These three variables are undocumented and unsupported,
2332# and are intended to be withdrawn in a future Autoconf release.
2333# They can cause serious problems if a builder's source tree is in a directory
2334# whose full name contains unusual characters.
2335ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2336ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2337ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2338
a0da8069 2339
c6b750e1 2340# Make sure we can run config.sub.
81ecdfbb 2341$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2342 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2343
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2345$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2346if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2347 $as_echo_n "(cached) " >&6
2348else
2349 ac_build_alias=$build_alias
2350test "x$ac_build_alias" = x &&
2351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2352test "x$ac_build_alias" = x &&
d0ac1c44 2353 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2354ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2355 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2356
2357fi
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2359$as_echo "$ac_cv_build" >&6; }
2360case $ac_cv_build in
2361*-*-*) ;;
d0ac1c44 2362*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2363esac
c6b750e1 2364build=$ac_cv_build
81ecdfbb
RW
2365ac_save_IFS=$IFS; IFS='-'
2366set x $ac_cv_build
2367shift
2368build_cpu=$1
2369build_vendor=$2
2370shift; shift
2371# Remember, the first character of IFS is used to create $*,
2372# except with old shells:
2373build_os=$*
2374IFS=$ac_save_IFS
2375case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2376
a0da8069 2377
c6b750e1
DJ
2378 case ${build_alias} in
2379 "") build_noncanonical=${build} ;;
2380 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2381esac
2382
2383
cac3d6c4 2384
c6b750e1
DJ
2385 case ${host_alias} in
2386 "") host_noncanonical=${build_noncanonical} ;;
2387 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2388esac
2389
cac3d6c4 2390
c6b750e1
DJ
2391
2392 case ${target_alias} in
2393 "") target_noncanonical=${host_noncanonical} ;;
2394 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2395esac
2396
cac3d6c4 2397
c6b750e1
DJ
2398
2399
2400test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2401 test "$program_prefix$program_suffix$program_transform_name" = \
2402 NONENONEs,x,x, &&
c6b750e1 2403 program_transform_name=s,y,y,
cac3d6c4 2404
81ecdfbb
RW
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2406$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2407if ${ac_cv_host+:} false; then :
81ecdfbb 2408 $as_echo_n "(cached) " >&6
cac3d6c4 2409else
81ecdfbb
RW
2410 if test "x$host_alias" = x; then
2411 ac_cv_host=$ac_cv_build
2412else
2413 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2415fi
c6b750e1
DJ
2416
2417fi
81ecdfbb
RW
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2419$as_echo "$ac_cv_host" >&6; }
2420case $ac_cv_host in
2421*-*-*) ;;
d0ac1c44 2422*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2423esac
c6b750e1 2424host=$ac_cv_host
81ecdfbb
RW
2425ac_save_IFS=$IFS; IFS='-'
2426set x $ac_cv_host
2427shift
2428host_cpu=$1
2429host_vendor=$2
2430shift; shift
2431# Remember, the first character of IFS is used to create $*,
2432# except with old shells:
2433host_os=$*
2434IFS=$ac_save_IFS
2435case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2436
2437
81ecdfbb
RW
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2439$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2440if ${ac_cv_target+:} false; then :
81ecdfbb 2441 $as_echo_n "(cached) " >&6
c6b750e1 2442else
81ecdfbb
RW
2443 if test "x$target_alias" = x; then
2444 ac_cv_target=$ac_cv_host
2445else
2446 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2447 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2448fi
c6b750e1 2449
cac3d6c4 2450fi
81ecdfbb
RW
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2452$as_echo "$ac_cv_target" >&6; }
2453case $ac_cv_target in
2454*-*-*) ;;
d0ac1c44 2455*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2456esac
c6b750e1 2457target=$ac_cv_target
81ecdfbb
RW
2458ac_save_IFS=$IFS; IFS='-'
2459set x $ac_cv_target
2460shift
2461target_cpu=$1
2462target_vendor=$2
2463shift; shift
2464# Remember, the first character of IFS is used to create $*,
2465# except with old shells:
2466target_os=$*
2467IFS=$ac_save_IFS
2468case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2469
2470
2471# The aliases save the names the user supplied, while $host etc.
2472# will get canonicalized.
2473test -n "$target_alias" &&
2474 test "$program_prefix$program_suffix$program_transform_name" = \
2475 NONENONEs,x,x, &&
2476 program_prefix=${target_alias}-
81ecdfbb 2477
a0da8069 2478test "$program_prefix" != NONE &&
81ecdfbb 2479 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2480# Use a double $ so make ignores it.
2481test "$program_suffix" != NONE &&
81ecdfbb
RW
2482 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2483# Double any \ or $.
c6b750e1 2484# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2485ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2486program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2487
a0da8069
NN
2488
2489
e5c3f801
NN
2490# Get 'install' or 'install-sh' and its variants.
2491# Find a good install program. We prefer a C program (faster),
2492# so one script is as good as another. But avoid the broken or
2493# incompatible versions:
2494# SysV /etc/install, /usr/sbin/install
2495# SunOS /usr/etc/install
2496# IRIX /sbin/install
2497# AIX /bin/install
c6b750e1 2498# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2499# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2500# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2501# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2502# OS/2's system install, which has a completely different semantic
e5c3f801 2503# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2504# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2506$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2507if test -z "$INSTALL"; then
d0ac1c44 2508if ${ac_cv_path_install+:} false; then :
81ecdfbb 2509 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2510else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2516 # Account for people who put trailing slashes in PATH elements.
2517case $as_dir/ in #((
2518 ./ | .// | /[cC]/* | \
c6b750e1 2519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2520 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2521 /usr/ucb/* ) ;;
2522 *)
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2525 # by default.
2526 for ac_prog in ginstall scoinst install; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2528 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 2529 if test $ac_prog = install &&
c6b750e1 2530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2531 # AIX install. It has an incompatible calling convention.
2532 :
c6b750e1
DJ
2533 elif test $ac_prog = install &&
2534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # program-specific install script used by HP pwplus--don't use.
2536 :
e5c3f801 2537 else
58c85be7
RW
2538 rm -rf conftest.one conftest.two conftest.dir
2539 echo one > conftest.one
2540 echo two > conftest.two
2541 mkdir conftest.dir
2542 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2543 test -s conftest.one && test -s conftest.two &&
2544 test -s conftest.dir/conftest.one &&
2545 test -s conftest.dir/conftest.two
2546 then
2547 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2548 break 3
2549 fi
e5c3f801
NN
2550 fi
2551 fi
2552 done
c6b750e1
DJ
2553 done
2554 ;;
2555esac
81ecdfbb
RW
2556
2557 done
2558IFS=$as_save_IFS
c6b750e1 2559
58c85be7 2560rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2561
2562fi
2563 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2564 INSTALL=$ac_cv_path_install
e5c3f801 2565 else
58c85be7
RW
2566 # As a last resort, use the slow shell script. Don't cache a
2567 # value for INSTALL within a source directory, because that will
e5c3f801 2568 # break other packages using the cache if that directory is
58c85be7 2569 # removed, or if the value is a relative name.
c6b750e1 2570 INSTALL=$ac_install_sh
e5c3f801
NN
2571 fi
2572fi
81ecdfbb
RW
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2574$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2575
2576# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2577# It thinks the first close brace ends the variable substitution.
2578test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2579
c6b750e1 2580test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2581
2582test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2583
81ecdfbb
RW
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2585$as_echo_n "checking whether ln works... " >&6; }
d0ac1c44 2586if ${acx_cv_prog_LN+:} false; then :
81ecdfbb 2587 $as_echo_n "(cached) " >&6
656fdd47
PB
2588else
2589 rm -f conftestdata_t
2590echo >conftestdata_f
2591if ln conftestdata_f conftestdata_t 2>/dev/null
2592then
2593 acx_cv_prog_LN=ln
2594else
2595 acx_cv_prog_LN=no
2596fi
2597rm -f conftestdata_f conftestdata_t
2598
2599fi
2600if test $acx_cv_prog_LN = no; then
2601 LN="cp"
81ecdfbb
RW
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2603$as_echo "no, using $LN" >&6; }
656fdd47
PB
2604else
2605 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2607$as_echo "yes" >&6; }
656fdd47
PB
2608fi
2609
81ecdfbb
RW
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2611$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2612LN_S=$as_ln_s
2613if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615$as_echo "yes" >&6; }
cac3d6c4 2616else
81ecdfbb
RW
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2618$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2619fi
2620
8e957354
PB
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2622$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 2623if ${ac_cv_path_SED+:} false; then :
8e957354
PB
2624 $as_echo_n "(cached) " >&6
2625else
2626 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2627 for ac_i in 1 2 3 4 5 6 7; do
2628 ac_script="$ac_script$as_nl$ac_script"
2629 done
2630 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2631 { ac_script=; unset ac_script;}
2632 if test -z "$SED"; then
2633 ac_path_SED_found=false
2634 # Loop through the user's path and test for each of PROGNAME-LIST
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_prog in sed gsed; do
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 2643 as_fn_executable_p "$ac_path_SED" || continue
8e957354
PB
2644# Check for GNU ac_path_SED and select it if it is found.
2645 # Check for GNU $ac_path_SED
2646case `"$ac_path_SED" --version 2>&1` in
2647*GNU*)
2648 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2649*)
2650 ac_count=0
2651 $as_echo_n 0123456789 >"conftest.in"
2652 while :
2653 do
2654 cat "conftest.in" "conftest.in" >"conftest.tmp"
2655 mv "conftest.tmp" "conftest.in"
2656 cp "conftest.in" "conftest.nl"
2657 $as_echo '' >> "conftest.nl"
2658 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2660 as_fn_arith $ac_count + 1 && ac_count=$as_val
2661 if test $ac_count -gt ${ac_path_SED_max-0}; then
2662 # Best one so far, save it but keep looking for a better one
2663 ac_cv_path_SED="$ac_path_SED"
2664 ac_path_SED_max=$ac_count
2665 fi
2666 # 10*(2^10) chars as input seems more than enough
2667 test $ac_count -gt 10 && break
2668 done
2669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2670esac
2671
2672 $ac_path_SED_found && break 3
2673 done
2674 done
2675 done
2676IFS=$as_save_IFS
2677 if test -z "$ac_cv_path_SED"; then
d0ac1c44 2678 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8e957354
PB
2679 fi
2680else
2681 ac_cv_path_SED=$SED
2682fi
2683
2684fi
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2686$as_echo "$ac_cv_path_SED" >&6; }
2687 SED="$ac_cv_path_SED"
2688 rm -f conftest.sed
2689
2690for ac_prog in gawk mawk nawk awk
2691do
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693set dummy $ac_prog; ac_word=$2
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2696if ${ac_cv_prog_AWK+:} false; then :
8e957354
PB
2697 $as_echo_n "(cached) " >&6
2698else
2699 if test -n "$AWK"; then
2700 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8e957354
PB
2709 ac_cv_prog_AWK="$ac_prog"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713done
2714 done
2715IFS=$as_save_IFS
2716
2717fi
2718fi
2719AWK=$ac_cv_prog_AWK
2720if test -n "$AWK"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2722$as_echo "$AWK" >&6; }
2723else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725$as_echo "no" >&6; }
2726fi
2727
2728
2729 test -n "$AWK" && break
2730done
2731
e5c3f801 2732
0fdbe983
DJ
2733srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2734
2735# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2736# a relative path.
2737if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2738 INSTALL="${srcpwd}/install-sh -c"
2739fi
2740
a0da8069
NN
2741# Set srcdir to "." if that's what it is.
2742# This is important for multilib support.
2743pwd=`${PWDCMD-pwd}`
a0da8069
NN
2744if test "${pwd}" = "${srcpwd}" ; then
2745 srcdir=.
252b5132
RH
2746fi
2747
a0da8069 2748topsrcdir=$srcpwd
252b5132 2749
a0da8069 2750extra_host_args=
afefada0 2751
a0da8069
NN
2752### To add a new directory to the tree, first choose whether it is a target
2753### or a host dependent tool. Then put it into the appropriate list
2754### (library or tools, host or target), doing a dependency sort.
252b5132 2755
c6b750e1 2756# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2757# configdirs, or target_configdirs; see the serialization section below.
252b5132 2758
c6b750e1
DJ
2759# Dependency sorting is only needed when *configuration* must be done in
2760# a particular order. In all cases a dependency should be specified in
a0da8069 2761# the Makefile, whether or not it's implicitly specified here.
252b5132 2762
a0da8069
NN
2763# Double entries in build_configdirs, configdirs, or target_configdirs may
2764# cause circular dependencies and break everything horribly.
252b5132 2765
6a9cf61e
PB
2766# these library is used by various programs built for the build
2767# environment
2768#
1b6c0831 2769build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2770
2771# these tools are built for the build environment
a90ef4bf 2772build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2773
a0da8069 2774# these libraries are used by various programs built for the host environment
1b6c0831
L
2775#f
2776host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
a0da8069 2777
a0da8069
NN
2778# these tools are built for the host environment
2779# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2780# know that we are building the simulator.
2781# binutils, gas and ld appear in that order because it makes sense to run
2782# "make check" in that particular order.
e6de499b 2783# If --enable-gold is used, "gold" may replace "ld".
1b6c0831 2784host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
a0da8069 2785
a0da8069
NN
2786# these libraries are built for the target environment, and are built after
2787# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2788# Note that libiberty is not a target library.
b1299c4e 2789target_libraries="target-libgcc \
2bf680c4 2790 target-libbacktrace \
a0da8069
NN
2791 target-libgloss \
2792 target-newlib \
cff87f51 2793 target-libgomp \
1b6c0831 2794 target-liboffloadmic \
bf41f30d 2795 target-libhsail-rt \
7ec59b9e 2796 target-libatomic \
d32e2926 2797 target-libitm \
b9459e83 2798 target-libstdc++-v3 \
5286fdef 2799 target-libsanitizer \
95e43135 2800 target-libvtv \
bb780410 2801 target-libssp \
e552509b 2802 target-libquadmath \
4b1cb4fe 2803 target-libgfortran \
05a13254 2804 target-libffi \
a2592b1b 2805 target-libobjc \
e552509b
ILT
2806 target-libada \
2807 target-libgo"
a0da8069 2808
9c14acb8
NN
2809# these tools are built using the target libraries, and are intended to
2810# run only in the target environment
a0da8069 2811#
9c14acb8 2812# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2813# list belongs in this list.
a0da8069 2814#
a90ef4bf 2815target_tools="target-rda"
252b5132 2816
a0da8069 2817################################################################################
252b5132 2818
a0da8069
NN
2819## All tools belong in one of the four categories, and are assigned above
2820## We assign ${configdirs} this way to remove all embedded newlines. This
2821## is important because configure will choke if they ever get through.
2822## ${configdirs} is directories we build using the host tools.
2823## ${target_configdirs} is directories we build using the target tools.
a0da8069 2824configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2825target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2826build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2827
9cc8ae67
PB
2828
2829
a0da8069 2830################################################################################
252b5132 2831
a0da8069 2832srcname="gnu development package"
252b5132 2833
a0da8069
NN
2834# This gets set non-empty for some net releases of packages.
2835appdirs=""
252b5132 2836
a0da8069
NN
2837# Define is_cross_compiler to save on calls to 'test'.
2838is_cross_compiler=
2839if test x"${host}" = x"${target}" ; then
2840 is_cross_compiler=no
252b5132 2841else
a0da8069 2842 is_cross_compiler=yes
c6b750e1 2843fi
252b5132 2844
9175bfc0 2845# Find the build and target subdir names.
dd12c3a8 2846
66a79c16
DJ
2847# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2848# have matching libraries, they should use host libraries: Makefile.tpl
2849# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2850# However, they still use the build modules, because the corresponding
2851# host modules (e.g. bison) are only built for the host when bootstrap
2852# finishes. So:
2853# - build_subdir is where we find build modules, and never changes.
2854# - build_libsubdir is where we find build libraries, and can be overridden.
2855
2856# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2857build_subdir="build-${build_noncanonical}"
c6b750e1 2858
81ecdfbb
RW
2859# Check whether --with-build-libsubdir was given.
2860if test "${with_build_libsubdir+set}" = set; then :
2861 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2862else
2863 build_libsubdir="$build_subdir"
81ecdfbb
RW
2864fi
2865
b00612cc
PB
2866# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2867if ( test $srcdir = . && test -d gcc ) \
2868 || test -d $srcdir/../host-${host_noncanonical}; then
2869 host_subdir="host-${host_noncanonical}"
2870else
2871 host_subdir=.
2872fi
dd12c3a8
NN
2873# No prefix.
2874target_subdir=${target_noncanonical}
c6b750e1 2875
2fd0b40b
RW
2876# Be sure to cover against remnants of an in-tree build.
2877if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
d0ac1c44 2878 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2fd0b40b
RW
2879Use a pristine source tree when building in a separate tree" "$LINENO" 5
2880fi
252b5132 2881
a0da8069
NN
2882# Skipdirs are removed silently.
2883skipdirs=
2884# Noconfigdirs are removed loudly.
2885noconfigdirs=""
252b5132 2886
a0da8069
NN
2887use_gnu_ld=
2888# Make sure we don't let GNU ld be added if we didn't want it.
2889if test x$with_gnu_ld = xno ; then
2890 use_gnu_ld=no
93f9b408 2891 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2892fi
2893
a0da8069
NN
2894use_gnu_as=
2895# Make sure we don't let GNU as be added if we didn't want it.
2896if test x$with_gnu_as = xno ; then
2897 use_gnu_as=no
2898 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2899fi
2900
700d40ca 2901use_included_zlib=
cf39cfc5
L
2902
2903# Check whether --with-system-zlib was given.
2904if test "${with_system_zlib+set}" = set; then :
2905 withval=$with_system_zlib;
2906fi
2907
700d40ca
ILT
2908# Make sure we don't let ZLIB be added if we didn't want it.
2909if test x$with_system_zlib = xyes ; then
2910 use_included_zlib=no
2911 noconfigdirs="$noconfigdirs zlib"
2912fi
2913
69961a84
ДП
2914# Don't compile the bundled readline/libreadline.a if --with-system-readline
2915# is provided.
2916if test x$with_system_readline = xyes ; then
2917 noconfigdirs="$noconfigdirs readline"
2918fi
2919
c6b750e1 2920# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2921# it's not even worth trying to configure, much less build, that tool.
252b5132 2922
a0da8069
NN
2923case ${with_x} in
2924 yes | "") ;; # the default value for this tree is that X11 is available
2925 no)
675c6968 2926 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2927 # We won't be able to build gdbtk without X.
c6b750e1 2928 enable_gdbtk=no
a0da8069
NN
2929 ;;
2930 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2931esac
252b5132 2932
0377a422 2933# Some are only suitable for cross toolchains.
a0da8069
NN
2934# Remove these if host=target.
2935cross_only="target-libgloss target-newlib target-opcodes"
2936
2937case $is_cross_compiler in
2938 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2939esac
252b5132 2940
a0da8069
NN
2941# If both --with-headers and --with-libs are specified, default to
2942# --without-newlib.
32be62b5
RS
2943if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2944 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2945 if test x"${with_newlib}" = x ; then
2946 with_newlib=no
2947 fi
252b5132
RH
2948fi
2949
a0da8069
NN
2950# Recognize --with-newlib/--without-newlib.
2951case ${with_newlib} in
2952 no) skipdirs="${skipdirs} target-newlib" ;;
2953 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2954esac
252b5132 2955
1b6c0831
L
2956# Check whether --enable-as-accelerator-for was given.
2957if test "${enable_as_accelerator_for+set}" = set; then :
2958 enableval=$enable_as_accelerator_for;
2959fi
2960
2961
2962# Check whether --enable-offload-targets was given.
2963if test "${enable_offload_targets+set}" = set; then :
2964 enableval=$enable_offload_targets;
2965 if test x"$enable_offload_targets" = x; then
d0ac1c44 2966 as_fn_error $? "no offload targets specified" "$LINENO" 5
1b6c0831
L
2967 fi
2968
2969else
2970 enable_offload_targets=
2971fi
2972
2973
c7791212
NC
2974# Handle --enable-gold, --enable-ld.
2975# --disable-gold [--enable-ld]
2976# Build only ld. Default option.
d3b50760
L
2977# --enable-gold [--enable-ld]
2978# Build both gold and ld. Install gold as "ld.gold", install ld
2979# as "ld.bfd" and "ld".
2980# --enable-gold=default [--enable-ld]
c7791212
NC
2981# Build both gold and ld. Install gold as "ld.gold" and "ld",
2982# install ld as "ld.bfd".
2983# --enable-gold[=default] --disable-ld
2984# Build only gold, which is then installed as both "ld.gold" and "ld".
2985# --enable-gold --enable-ld=default
d3b50760
L
2986# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2987# and ld.bfd).
c7791212
NC
2988# In other words, ld is default
2989# --enable-gold=default --enable-ld=default
2990# Error.
2991
2992default_ld=
81ecdfbb
RW
2993# Check whether --enable-gold was given.
2994if test "${enable_gold+set}" = set; then :
2995 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2996else
2997 ENABLE_GOLD=no
81ecdfbb
RW
2998fi
2999
c7791212
NC
3000case "${ENABLE_GOLD}" in
3001 yes|default)
e6de499b
NC
3002 # Check for ELF target.
3003 is_elf=no
3004 case "${target}" in
3005 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 3006 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 3007 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
bf41f30d 3008 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
3009 case "${target}" in
3010 *-*-linux*aout* | *-*-linux*oldld*)
3011 ;;
3012 *)
3013 is_elf=yes
3014 ;;
3015 esac
3016 esac
3017
3018 if test "$is_elf" = "yes"; then
3019 # Check for target supported by gold.
93f9b408 3020 case "${target}" in
6d26190c 3021 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 3022 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
3023 configdirs="$configdirs gold"
3024 if test x${ENABLE_GOLD} = xdefault; then
3025 default_ld=gold
3026 fi
e6de499b 3027 ENABLE_GOLD=yes
93f9b408
ILT
3028 ;;
3029 esac
e6de499b
NC
3030 fi
3031 ;;
3032 no)
3033 ;;
3034 *)
d0ac1c44 3035 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3036 ;;
c7791212
NC
3037esac
3038
3039# Check whether --enable-ld was given.
3040if test "${enable_ld+set}" = set; then :
3041 enableval=$enable_ld; ENABLE_LD=$enableval
3042else
3043 ENABLE_LD=yes
3044fi
3045
3046
3047case "${ENABLE_LD}" in
3048 default)
d3b50760 3049 if test x${default_ld} != x; then
d0ac1c44 3050 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3051 fi
3052 ;;
3053 yes)
3054 ;;
3055 no)
3056 if test x${ENABLE_GOLD} != xyes; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3058$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3059 fi
3060 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3061 ;;
3062 *)
d0ac1c44 3063 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3064 ;;
3065esac
93f9b408 3066
edeefb67
L
3067# PR gas/19109
3068# Decide the default method for compressing debug sections.
3069# Provide a configure time option to override our default.
3070# Check whether --enable-compressed_debug_sections was given.
3071if test "${enable_compressed_debug_sections+set}" = set; then :
3072 enableval=$enable_compressed_debug_sections;
3073 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3074 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3075 fi
3076
3077else
3078 enable_compressed_debug_sections=
3079fi
3080
3081
a0da8069 3082# Configure extra directories which are host specific
252b5132 3083
a0da8069
NN
3084case "${host}" in
3085 *-cygwin*)
3086 configdirs="$configdirs libtermcap" ;;
3087esac
252b5132 3088
59f7ec45
HPN
3089# A target can indicate whether a language isn't supported for some reason.
3090# Only spaces may be used in this macro; not newlines or tabs.
3091unsupported_languages=
3092
c6b750e1 3093# Remove more programs from consideration, based on the host or
a0da8069
NN
3094# target this usually means that a port of the program doesn't
3095# exist yet.
252b5132 3096
a0da8069 3097case "${host}" in
3516a403 3098 i[3456789]86-*-msdosdjgpp*)
6a608608 3099 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3100 ;;
a0da8069 3101esac
252b5132 3102
4b1cb4fe 3103
89a1e9c3
PB
3104# Check whether --enable-libquadmath was given.
3105if test "${enable_libquadmath+set}" = set; then :
3106 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3107else
3108 ENABLE_LIBQUADMATH=yes
3109fi
3110
3111if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3112 noconfigdirs="$noconfigdirs target-libquadmath"
3113fi
3114
3115
3116# Check whether --enable-libquadmath-support was given.
3117if test "${enable_libquadmath_support+set}" = set; then :
3118 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3119else
3120 ENABLE_LIBQUADMATH_SUPPORT=yes
3121fi
3122
3123enable_libquadmath_support=
3124if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3125 enable_libquadmath_support=no
3126fi
3127
3128
81ecdfbb
RW
3129# Check whether --enable-libada was given.
3130if test "${enable_libada+set}" = set; then :
3131 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3132else
3133 ENABLE_LIBADA=yes
81ecdfbb
RW
3134fi
3135
a2592b1b 3136if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3137 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3138fi
3139
81ecdfbb
RW
3140# Check whether --enable-libssp was given.
3141if test "${enable_libssp+set}" = set; then :
3142 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3143else
3144 ENABLE_LIBSSP=yes
81ecdfbb
RW
3145fi
3146
5f128533 3147
f66a9a70
L
3148# Check whether --enable-libstdcxx was given.
3149if test "${enable_libstdcxx+set}" = set; then :
3150 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3151else
3152 ENABLE_LIBSTDCXX=default
3153fi
3154
3155if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3156 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3157fi
3158
3159# If this is accelerator compiler and its target is intelmic we enable
3160# target liboffloadmic by default. If this is compiler with offloading
3161# for intelmic we enable host liboffloadmic by default. Otherwise
3162# liboffloadmic is disabled by default.
3163# Check whether --enable-liboffloadmic was given.
3164if test "${enable_liboffloadmic+set}" = set; then :
3165 enableval=$enable_liboffloadmic; case "$enableval" in
3166 no | host | target)
3167 enable_liboffloadmic=$enableval ;;
3168 *)
d0ac1c44 3169 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
1b6c0831
L
3170esac
3171else
3172 if test x"$enable_as_accelerator_for" != x; then
3173 case "${target}" in
3174 *-intelmic-* | *-intelmicemul-*)
3175 enable_liboffloadmic=target
3176 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3177 ;;
3178 *)
3179 enable_liboffloadmic=no
3180 ;;
3181 esac
3182else
3183 case "${enable_offload_targets}" in
3184 *-intelmic-* | *-intelmicemul-*)
3185 enable_liboffloadmic=host
3186 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3187 ;;
3188 *)
3189 enable_liboffloadmic=no
3190 ;;
3191 esac
3192fi
f66a9a70
L
3193fi
3194
1b6c0831
L
3195
3196
68996839 3197# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3198if test x$enable_libgomp = x ; then
b3ded179 3199 case "${target}" in
29383458 3200 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3201 ;;
5b806d27 3202 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3203 ;;
2479f722 3204 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3205 ;;
3206 *-*-darwin* | *-*-aix*)
3207 ;;
68996839
NC
3208 nvptx*-*-*)
3209 ;;
b3ded179
PB
3210 *)
3211 noconfigdirs="$noconfigdirs target-libgomp"
3212 ;;
3213 esac
a6df5a19 3214fi
b3ded179 3215
7ec59b9e
L
3216# Disable libatomic on unsupported systems.
3217if test -d ${srcdir}/libatomic; then
3218 if test x$enable_libatomic = x; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3220$as_echo_n "checking for libatomic support... " >&6; }
3221 if (srcdir=${srcdir}/libatomic; \
3222 . ${srcdir}/configure.tgt; \
3223 test -n "$UNSUPPORTED")
3224 then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226$as_echo "no" >&6; }
3227 noconfigdirs="$noconfigdirs target-libatomic"
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3230$as_echo "yes" >&6; }
3231 fi
3232 fi
3233fi
3234
1b6c0831
L
3235# Disable liboffloadmic on unsupported systems.
3236if test -d ${srcdir}/liboffloadmic; then
3237 if test x$enable_liboffloadmic != xno; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3239$as_echo_n "checking for liboffloadmic support... " >&6; }
3240 if (srcdir=${srcdir}/liboffloadmic; \
3241 . ${srcdir}/configure.tgt; \
3242 test -n "$UNSUPPORTED")
3243 then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246 noconfigdirs="$noconfigdirs target-liboffloadmic"
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249$as_echo "yes" >&6; }
3250 fi
3251 fi
3252fi
3253
d32e2926
RH
3254# Disable libitm on unsupported systems.
3255if test -d ${srcdir}/libitm; then
3256 if test x$enable_libitm = x; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3258$as_echo_n "checking for libitm support... " >&6; }
3259 if (srcdir=${srcdir}/libitm; \
3260 . ${srcdir}/configure.tgt; \
3261 test -n "$UNSUPPORTED")
3262 then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264$as_echo "no" >&6; }
3265 noconfigdirs="$noconfigdirs target-libitm"
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268$as_echo "yes" >&6; }
3269 fi
3270 fi
3271fi
3272
5286fdef
L
3273# Disable libsanitizer on unsupported systems.
3274if test -d ${srcdir}/libsanitizer; then
3275 if test x$enable_libsanitizer = x; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3277$as_echo_n "checking for libsanitizer support... " >&6; }
3278 if (srcdir=${srcdir}/libsanitizer; \
3279 . ${srcdir}/configure.tgt; \
3280 test -n "$UNSUPPORTED")
3281 then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283$as_echo "no" >&6; }
3284 noconfigdirs="$noconfigdirs target-libsanitizer"
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287$as_echo "yes" >&6; }
3288 fi
3289 fi
3290fi
3291
95e43135
JBG
3292# Disable libvtv on unsupported systems.
3293if test -d ${srcdir}/libvtv; then
3294 if test x$enable_libvtv = x; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3296$as_echo_n "checking for libvtv support... " >&6; }
3297 if (srcdir=${srcdir}/libvtv; \
3298 . ${srcdir}/configure.tgt; \
3299 test "$VTV_SUPPORTED" != "yes")
3300 then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303 noconfigdirs="$noconfigdirs target-libvtv"
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306$as_echo "yes" >&6; }
3307 fi
3308 fi
3309fi
3310
1b6c0831 3311
bf41f30d
NC
3312# Disable libhsail-rt on unsupported systems.
3313if test -d ${srcdir}/libhsail-rt; then
3314 if test x$enable_libhsail_rt = x; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3316$as_echo_n "checking for libhsail-rt support... " >&6; }
3317 if (srcdir=${srcdir}/libhsail-rt; \
3318 . ${srcdir}/configure.tgt; \
3319 test -n "$UNSUPPORTED")
3320 then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323 unsupported_languages="$unsupported_languages brig"
3324 # This implicitly disables also target-libhsail-rt as it won't
3325 # get added to the build without BRIG FE.
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328$as_echo "yes" >&6; }
3329 fi
3330 fi
3331fi
1b6c0831
L
3332
3333
1488e230
DE
3334# Disable libquadmath for some systems.
3335case "${target}" in
5286fdef
L
3336 avr-*-*)
3337 noconfigdirs="$noconfigdirs target-libquadmath"
3338 ;;
1488e230
DE
3339 # libquadmath is unused on AIX and libquadmath build process use of
3340 # LD_LIBRARY_PATH can break AIX bootstrap.
3341 powerpc-*-aix* | rs6000-*-aix*)
3342 noconfigdirs="$noconfigdirs target-libquadmath"
3343 ;;
3344esac
3345
065a5627
JM
3346# Disable libssp for some systems.
3347case "${target}" in
3348 avr-*-*)
c5f5c3c2 3349 # No hosted I/O support.
065a5627
JM
3350 noconfigdirs="$noconfigdirs target-libssp"
3351 ;;
3352 powerpc-*-aix* | rs6000-*-aix*)
3353 noconfigdirs="$noconfigdirs target-libssp"
3354 ;;
99c513f6 3355 rl78-*-*)
202e2356
NC
3356 # libssp uses a misaligned load to trigger a fault, but the RL78
3357 # doesn't fault for those - instead, it gives a build-time error
3358 # for explicit misaligned loads.
99c513f6
DD
3359 noconfigdirs="$noconfigdirs target-libssp"
3360 ;;
1b6c0831
L
3361 visium-*-*)
3362 # No hosted I/O support.
3363 noconfigdirs="$noconfigdirs target-libssp"
3364 ;;
065a5627
JM
3365esac
3366
065a5627 3367# Disable libstdc++-v3 for some systems.
f66a9a70
L
3368# Allow user to override this if they pass --enable-libstdc++-v3
3369if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3370 case "${target}" in
3371 *-*-vxworks*)
3372 # VxWorks uses the Dinkumware C++ library.
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 ;;
3375 arm*-wince-pe*)
3376 # the C++ libraries don't build on top of CE's C libraries
3377 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3378 ;;
3379 avr-*-*)
3380 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3381 ;;
969b1713
L
3382 ft32-*-*)
3383 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3384 ;;
f66a9a70
L
3385 esac
3386fi
065a5627
JM
3387
3388# Disable Fortran for some systems.
3389case "${target}" in
3390 mmix-*-*)
3391 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3392 unsupported_languages="$unsupported_languages fortran"
3393 ;;
3394esac
3395
05a13254 3396# Disable libffi for some systems.
0827f9a6 3397case "${target}" in
9863d716
JM
3398 powerpc-*-darwin*)
3399 ;;
3400 i[3456789]86-*-darwin*)
3401 ;;
3402 x86_64-*-darwin[912]*)
3403 ;;
3404 *-*-darwin*)
05a13254 3405 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3406 ;;
9863d716 3407 *-*-netware*)
05a13254
NC
3408 noconfigdirs="$noconfigdirs target-libffi"
3409 ;;
3410 *-*-phoenix*)
3411 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3412 ;;
3413 *-*-rtems*)
05a13254 3414 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3415 ;;
3416 *-*-tpf*)
05a13254 3417 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3418 ;;
3419 *-*-uclinux*)
05a13254 3420 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3421 ;;
3422 *-*-vxworks*)
05a13254
NC
3423 noconfigdirs="$noconfigdirs target-libffi"
3424 ;;
3425 aarch64*-*-freebsd*)
3426 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3427 ;;
9863d716 3428 alpha*-*-*vms*)
05a13254 3429 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3430 ;;
1b6c0831 3431 arm*-*-freebsd*)
05a13254 3432 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3433 ;;
0827f9a6 3434 arm-wince-pe)
05a13254 3435 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3436 ;;
9863d716 3437 arm*-*-symbianelf*)
05a13254 3438 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3439 ;;
9863d716 3440 cris-*-* | crisv32-*-*)
9863d716
JM
3441 case "${target}" in
3442 *-*-linux*)
3443 ;;
3444 *) # See PR46792 regarding target-libffi.
05a13254 3445 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3446 esac
3447 ;;
82ae827f 3448 hppa*64*-*-hpux*)
05a13254 3449 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3450 ;;
3451 hppa*-hp-hpux11*)
3452 ;;
82ae827f 3453 hppa*-*-hpux*)
05a13254 3454 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3455 ;;
9863d716 3456 ia64*-*-*vms*)
05a13254 3457 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3458 ;;
9863d716 3459 i[3456789]86-w64-mingw*)
05a13254 3460 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3461 ;;
3462 i[3456789]86-*-mingw*)
05a13254 3463 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3464 ;;
3465 x86_64-*-mingw*)
05a13254 3466 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3467 ;;
9863d716 3468 mmix-*-*)
05a13254 3469 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3470 ;;
3471 powerpc-*-aix*)
9863d716 3472 ;;
9863d716 3473 rs6000-*-aix*)
9863d716 3474 ;;
3f8107ab 3475 ft32-*-*)
05a13254 3476 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3477 ;;
9863d716 3478 *-*-lynxos*)
05a13254 3479 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3480 ;;
9863d716
JM
3481esac
3482
1b6c0831
L
3483# Disable the go frontend on systems where it is known to not work. Please keep
3484# this in sync with contrib/config-list.mk.
3485case "${target}" in
bf41f30d 3486*-*-darwin* | *-*-cygwin* | *-*-mingw*)
1b6c0831
L
3487 unsupported_languages="$unsupported_languages go"
3488 ;;
3489esac
3490
a413f71a
ILT
3491# Disable libgo for some systems where it is known to not work.
3492# For testing, you can easily override this with --enable-libgo.
3493if test x$enable_libgo = x; then
3494 case "${target}" in
3495 *-*-darwin*)
3496 # PR 46986
3497 noconfigdirs="$noconfigdirs target-libgo"
3498 ;;
3499 *-*-cygwin* | *-*-mingw*)
3500 noconfigdirs="$noconfigdirs target-libgo"
3501 ;;
a413f71a
ILT
3502 esac
3503fi
3504
691bb5a1
DD
3505# Default libgloss CPU subdirectory.
3506libgloss_dir="$target_cpu"
4b1cb4fe 3507
ff46fb8f
JM
3508case "${target}" in
3509 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3510 libgloss_dir=wince
3511 ;;
f1dd87fc
YZ
3512 aarch64*-*-* )
3513 libgloss_dir=aarch64
3514 ;;
ff46fb8f
JM
3515 arm*-*-*)
3516 libgloss_dir=arm
3517 ;;
3518 cris-*-* | crisv32-*-*)
3519 libgloss_dir=cris
3520 ;;
3521 hppa*-*-*)
3522 libgloss_dir=pa
3523 ;;
3524 i[3456789]86-*-*)
3525 libgloss_dir=i386
3526 ;;
3527 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3528 libgloss_dir=m68hc11
3529 ;;
3530 m68*-*-* | fido-*-*)
3531 libgloss_dir=m68k
3532 ;;
3533 mips*-*-*)
3534 libgloss_dir=mips
3535 ;;
3536 powerpc*-*-*)
3537 libgloss_dir=rs6000
3538 ;;
3539 sparc*-*-*)
3540 libgloss_dir=sparc
3541 ;;
3542esac
3543
c7e4b184 3544# Disable newlib and libgloss for various target OSes.
a0da8069 3545case "${target}" in
c7e4b184
JM
3546 alpha*-dec-osf*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 i[3456789]86-*-linux*)
3550 # This section makes it possible to build newlib natively on linux.
3551 # If we are using a cross compiler then don't configure newlib.
3552 if test x${is_cross_compiler} != xno ; then
3553 noconfigdirs="$noconfigdirs target-newlib"
3554 fi
3555 noconfigdirs="$noconfigdirs target-libgloss"
3556 # If we are not using a cross compiler, do configure newlib.
3557 # Note however, that newlib will only be configured in this situation
3558 # if the --with-newlib option has been given, because otherwise
3559 # 'target-newlib' will appear in skipdirs.
3560 ;;
3561 i[3456789]86-*-rdos*)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567 sparc-*-sunos4*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 ;;
3570 *-*-aix*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 *-*-beos*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
a0da8069 3576 *-*-chorusos)
b2f14e4a 3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3578 ;;
c7e4b184
JM
3579 *-*-dragonfly*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-freebsd*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
3585 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 ;;
3588 *-*-lynxos*)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 *-*-mingw*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 *-*-netbsd*)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 *-*-netware*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 *-*-tpf*)
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 ;;
3603 *-*-uclinux*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 *-*-vxworks*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609esac
3610
3611case "${target}" in
3612 *-*-chorusos)
3613 ;;
f075eb5e
TG
3614 aarch64-*-darwin*)
3615 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3616 noconfigdirs="$noconfigdirs sim target-rda"
3617 ;;
3618 arm-*-darwin*)
3619 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3620 noconfigdirs="$noconfigdirs sim target-rda"
3621 ;;
24741ab2 3622 powerpc-*-darwin*)
9d39db92 3623 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3624 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3625 ;;
85bd1942
TG
3626 i[3456789]86-*-darwin*)
3627 noconfigdirs="$noconfigdirs ld gprof"
3628 noconfigdirs="$noconfigdirs sim target-rda"
3629 ;;
e8a5fa9c 3630 x86_64-*-darwin[912]*)
652dec25
TG
3631 noconfigdirs="$noconfigdirs ld gas gprof"
3632 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3633 ;;
04d1ab34 3634 *-*-darwin*)
d320aacb 3635 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3636 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3637 ;;
5b806d27 3638 *-*-dragonfly*)
5b806d27 3639 ;;
de0b4a87 3640 *-*-freebsd*)
4b1cb4fe
DD
3641 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3642 && test -f /usr/local/include/gmp.h; then
3643 with_gmp=/usr/local
3644 fi
4b1cb4fe 3645 ;;
f8a495c8
NC
3646 *-*-kaos*)
3647 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3648 noconfigdirs="$noconfigdirs target-libgloss"
3649 ;;
a0da8069 3650 *-*-netbsd*)
a0da8069 3651 ;;
2a3124ca 3652 *-*-netware*)
a0da8069 3653 ;;
05a13254
NC
3654 *-*-phoenix*)
3655 noconfigdirs="$noconfigdirs target-libgloss"
3656 ;;
a0da8069 3657 *-*-rtems*)
9863d716 3658 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3659 ;;
1587117a
EC
3660 # The tpf target doesn't support gdb yet.
3661 *-*-tpf*)
c7e4b184 3662 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3663 ;;
c1968181 3664 *-*-uclinux*)
c7e4b184 3665 noconfigdirs="$noconfigdirs target-rda"
c1968181 3666 ;;
a0da8069 3667 *-*-vxworks*)
a0da8069
NN
3668 ;;
3669 alpha*-dec-osf*)
3670 # ld works, but does not support shared libraries.
a0da8069 3671 # gas doesn't generate exception information.
c7e4b184 3672 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3673 ;;
3674 alpha*-*-*vms*)
9863d716 3675 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3676 ;;
a0da8069
NN
3677 alpha*-*-*)
3678 # newlib is not 64 bit ready
9863d716 3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3680 ;;
a0da8069 3681 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3682 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3683 ;;
05a13254
NC
3684 arc*-*-*)
3685 noconfigdirs="$noconfigdirs sim"
a0da8069 3686 ;;
a0da8069 3687 arm-*-pe*)
9863d716 3688 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3689 ;;
a0da8069 3690 arm-*-riscix*)
b2f14e4a 3691 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3692 ;;
8e71395b
L
3693 avr-*-*)
3694 if test x${with_avrlibc} != xno; then
3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696 fi
3697 ;;
a0da8069 3698 c4x-*-* | tic4x-*-*)
b2f14e4a 3699 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3700 ;;
b2f14e4a
JM
3701 tic54x-*-*)
3702 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3703 ;;
a0da8069 3704 d10v-*-*)
b2f14e4a 3705 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3706 ;;
3707 d30v-*-*)
b2f14e4a 3708 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3709 ;;
3710 fr30-*-elf*)
9863d716 3711 noconfigdirs="$noconfigdirs gdb"
a0da8069 3712 ;;
3f8107ab
AM
3713 ft32-*-*)
3714 noconfigdirs="$noconfigdirs target-rda gprof"
3715 ;;
20135e4c 3716 moxie-*-*)
10b8fe5e 3717 noconfigdirs="$noconfigdirs"
20135e4c 3718 ;;
a0da8069 3719 h8300*-*-*)
9863d716 3720 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3721 ;;
3722 h8500-*-*)
b2f14e4a 3723 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3724 ;;
caeba88f 3725 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3726 ;;
5569a85f
JDA
3727 hppa*64*-*-hpux*)
3728 noconfigdirs="$noconfigdirs gdb"
3729 ;;
3730 hppa*-*-hpux11*)
3731 noconfigdirs="$noconfigdirs gdb ld"
3732 ;;
93cc359e 3733 hppa*64*-*-linux*)
a0da8069 3734 ;;
f0ff0f90 3735 hppa*-*-linux*)
5dcac624 3736 ;;
a0da8069 3737 hppa*-*-*elf* | \
a0da8069
NN
3738 hppa*-*-lites* | \
3739 hppa*-*-openbsd* | \
3740 hppa*64*-*-*)
4f0ef2d8 3741 ;;
691bb5a1 3742 hppa*-*-pro*)
691bb5a1 3743 ;;
a0da8069 3744 hppa*-*-*)
9863d716 3745 noconfigdirs="$noconfigdirs ld"
a0da8069 3746 ;;
b07c2aad 3747 i960-*-*)
b2f14e4a 3748 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3749 ;;
a0da8069
NN
3750 ia64*-*-elf*)
3751 # No gdb support yet.
0377a422 3752 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3753 ;;
3754 ia64*-**-hpux*)
92c9a463 3755 # No ld support yet.
5569a85f 3756 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3757 ;;
19e99079 3758 ia64*-*-*vms*)
7ec59b9e
L
3759 # No ld support yet.
3760 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3761 ;;
1f53ca9a 3762 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3763 ;;
3764 i[3456789]86-*-mingw*)
45055374 3765 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3766 ;;
a0da8069
NN
3767 *-*-cygwin*)
3768 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3769 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3770 # always build newlib if winsup directory is present.
45055374 3771 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3772 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3773 elif test -d "$srcdir/newlib"; then
45055374 3774 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3775 fi
c6b750e1 3776 ;;
ec11bdc6 3777 i[3456789]86-*-pe)
782cb41f 3778 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3779 ;;
ec11bdc6 3780 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3781 # The linker does not yet know about weak symbols in COFF,
3782 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3783 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3784 ;;
ec11bdc6 3785 i[3456789]86-*-sco*)
b2f14e4a 3786 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3787 ;;
cff32a7c 3788 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3789 noconfigdirs="$noconfigdirs target-libgloss"
3790 ;;
ec11bdc6 3791 i[3456789]86-*-sysv4*)
b2f14e4a 3792 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3793 ;;
ec11bdc6 3794 i[3456789]86-*-beos*)
c7e4b184 3795 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3796 ;;
b59bea8a 3797 i[3456789]86-*-rdos*)
c7e4b184 3798 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3799 ;;
a0da8069 3800 mmix-*-*)
9863d716 3801 noconfigdirs="$noconfigdirs gdb"
a0da8069 3802 ;;
4970f871 3803 mt-*-*)
cdb9b172
AH
3804 noconfigdirs="$noconfigdirs sim"
3805 ;;
1063beb5
FT
3806 nfp-*-*)
3807 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3808 noconfigdirs="$noconfigdirs $target_libraries"
3809 ;;
a0da8069
NN
3810 powerpc-*-aix*)
3811 # copied from rs6000-*-* entry
c7e4b184 3812 noconfigdirs="$noconfigdirs gprof"
a0da8069 3813 ;;
93cc359e 3814 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3815 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3816 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3817 # always build newlib.
3818 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3819 ;;
3820 # This is temporary until we can link against shared libraries
3821 powerpcle-*-solaris*)
b2f14e4a 3822 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3823 ;;
3824 powerpc-*-beos*)
c7e4b184 3825 noconfigdirs="$noconfigdirs gdb"
a0da8069 3826 ;;
a0da8069 3827 rs6000-*-lynxos*)
c7e4b184 3828 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3829 ;;
3830 rs6000-*-aix*)
c7e4b184 3831 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3832 ;;
3833 rs6000-*-*)
9863d716 3834 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3835 ;;
3836 m68k-apollo-*)
b2f14e4a 3837 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3838 ;;
25a07265 3839 microblaze*)
9863d716 3840 noconfigdirs="$noconfigdirs gprof"
25a07265 3841 ;;
a9d58c06 3842 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3843 if test x$with_newlib = xyes; then
3844 noconfigdirs="$noconfigdirs gprof"
3845 fi
5bd8be13 3846 ;;
a0da8069 3847 mips*-*-irix5*)
b2f14e4a 3848 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3849 ;;
3850 mips*-*-irix6*)
9863d716 3851 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3852 ;;
a0da8069 3853 mips*-*-bsd*)
e8044f35 3854 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3855 ;;
a0da8069 3856 mips*-*-linux*)
a0da8069 3857 ;;
e8044f35
RS
3858 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3859 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3860 noconfigdirs="$noconfigdirs ld gas gprof"
3861 ;;
a0da8069 3862 mips*-*-*)
9863d716 3863 noconfigdirs="$noconfigdirs gprof"
a0da8069 3864 ;;
1b6c0831 3865 nvptx*-*-*)
1b6c0831
L
3866 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3867 ;;
05a13254 3868 sh-*-*)
e8a5fa9c
RW
3869 case "${target}" in
3870 sh*-*-elf)
9863d716 3871 ;;
e8a5fa9c 3872 *)
9863d716 3873 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3874 esac
a0da8069 3875 ;;
a0da8069 3876 sparc-*-sunos4*)
c7e4b184 3877 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3878 use_gnu_ld=no
3879 fi
3880 ;;
619a3713 3881 tic6x-*-*)
40ae9136 3882 noconfigdirs="$noconfigdirs sim"
619a3713 3883 ;;
05a13254 3884 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3885 noconfigdirs="$noconfigdirs sim"
3886 ;;
a0da8069 3887 v810-*-*)
b2f14e4a 3888 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3889 ;;
3890 vax-*-*)
9863d716 3891 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3892 ;;
b29d2641
MR
3893 wasm32-*-*)
3894 noconfigdirs="$noconfigdirs ld"
3895 ;;
a0da8069 3896esac
252b5132 3897
a0da8069
NN
3898# If we aren't building newlib, then don't build libgloss, since libgloss
3899# depends upon some newlib header files.
3900case "${noconfigdirs}" in
3901 *target-libgloss*) ;;
3902 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3903esac
3904
a0da8069 3905# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3906host_makefile_frag=/dev/null
3907if test -d ${srcdir}/config ; then
3908case "${host}" in
ec11bdc6 3909 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3910 host_makefile_frag="config/mh-djgpp"
3911 ;;
3912 *-cygwin*)
e33b51a6 3913
81ecdfbb
RW
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3915$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3916echo a >cygwin-cat-check
1f53ca9a 3917if test `cat cygwin-cat-check` = a ; then
8ade07e9 3918 rm cygwin-cat-check
81ecdfbb
RW
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920$as_echo "yes" >&6; }
e33b51a6 3921else
8ade07e9 3922 rm cygwin-cat-check
81ecdfbb
RW
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924$as_echo "no" >&6; }
d0ac1c44 3925 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
3926 Please either mount the build directory in binary mode or run the following
3927 commands before running any configure script:
3928set -o igncr
3929export SHELLOPTS
81ecdfbb 3930 " "$LINENO" 5
e33b51a6 3931fi
e33b51a6 3932
a0da8069
NN
3933 host_makefile_frag="config/mh-cygwin"
3934 ;;
8a1599ab 3935 *-mingw*)
84e7906e 3936 host_makefile_frag="config/mh-mingw"
2d1e8239 3937 ;;
ce6c656d
L
3938 alpha*-linux*)
3939 host_makefile_frag="config/mh-alpha-linux"
3940 ;;
da888c87 3941 hppa*-hp-hpux10*)
da888c87 3942 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3943 ;;
3516a403 3944 hppa*-hp-hpux*)
da888c87
PB
3945 host_makefile_frag="config/mh-pa"
3946 ;;
3947 hppa*-*)
3948 host_makefile_frag="config/mh-pa"
3949 ;;
e552509b
ILT
3950 *-*-darwin*)
3951 host_makefile_frag="config/mh-darwin"
0df3d27f 3952 ;;
f6d183c0
PB
3953 powerpc-*-aix*)
3954 host_makefile_frag="config/mh-ppc-aix"
3955 ;;
3956 rs6000-*-aix*)
3957 host_makefile_frag="config/mh-ppc-aix"
3958 ;;
a0da8069
NN
3959esac
3960fi
3961
9e07f89d 3962if test "${build}" != "${host}" ; then
1576798e
PB
3963 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3964 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3965 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e 3966 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
1576798e 3967 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3968 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3969 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3970 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3971 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3972 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3973 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3974 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3975else
3976 AR_FOR_BUILD="\$(AR)"
3977 AS_FOR_BUILD="\$(AS)"
512b7dfb 3978 CC_FOR_BUILD="\$(CC)"
1576798e 3979 CXX_FOR_BUILD="\$(CXX)"
1576798e 3980 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3981 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3982 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3983 LD_FOR_BUILD="\$(LD)"
3984 NM_FOR_BUILD="\$(NM)"
3985 RANLIB_FOR_BUILD="\$(RANLIB)"
3986 WINDRES_FOR_BUILD="\$(WINDRES)"
3987 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3988fi
3989
3990ac_ext=c
c6b750e1
DJ
3991ac_cpp='$CPP $CPPFLAGS'
3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3997set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4000if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4001 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4002else
4003 if test -n "$CC"; then
4004 ac_cv_prog_CC="$CC" # Let the user override the test.
4005else
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
81ecdfbb 4011 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4015 break 2
4016 fi
4017done
81ecdfbb
RW
4018 done
4019IFS=$as_save_IFS
c6b750e1
DJ
4020
4021fi
4022fi
4023CC=$ac_cv_prog_CC
4024if test -n "$CC"; then
81ecdfbb
RW
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4026$as_echo "$CC" >&6; }
c6b750e1 4027else
81ecdfbb
RW
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029$as_echo "no" >&6; }
c6b750e1
DJ
4030fi
4031
81ecdfbb 4032
c6b750e1
DJ
4033fi
4034if test -z "$ac_cv_prog_CC"; then
4035 ac_ct_CC=$CC
6a9cf61e 4036 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4037set dummy gcc; ac_word=$2
81ecdfbb
RW
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4040if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4041 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4042else
4043 if test -n "$ac_ct_CC"; then
4044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4045else
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
81ecdfbb 4051 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4053 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4055 break 2
4056 fi
4057done
81ecdfbb
RW
4058 done
4059IFS=$as_save_IFS
c6b750e1
DJ
4060
4061fi
4062fi
4063ac_ct_CC=$ac_cv_prog_ac_ct_CC
4064if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4066$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4067else
81ecdfbb
RW
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069$as_echo "no" >&6; }
c6b750e1
DJ
4070fi
4071
81ecdfbb
RW
4072 if test "x$ac_ct_CC" = x; then
4073 CC=""
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076yes:)
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079ac_tool_warned=yes ;;
4080esac
4081 CC=$ac_ct_CC
4082 fi
c6b750e1
DJ
4083else
4084 CC="$ac_cv_prog_CC"
4085fi
4086
4087if test -z "$CC"; then
81ecdfbb
RW
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4090set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4093if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4094 $as_echo_n "(cached) " >&6
9e07f89d
NN
4095else
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4098else
c6b750e1
DJ
4099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100for as_dir in $PATH
4101do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
81ecdfbb 4104 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4106 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4108 break 2
4109 fi
4110done
81ecdfbb
RW
4111 done
4112IFS=$as_save_IFS
c6b750e1 4113
9e07f89d
NN
4114fi
4115fi
c6b750e1 4116CC=$ac_cv_prog_CC
9e07f89d 4117if test -n "$CC"; then
81ecdfbb
RW
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119$as_echo "$CC" >&6; }
c6b750e1 4120else
81ecdfbb
RW
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122$as_echo "no" >&6; }
c6b750e1
DJ
4123fi
4124
c6b750e1 4125
81ecdfbb 4126 fi
c6b750e1 4127fi
9e07f89d
NN
4128if test -z "$CC"; then
4129 # Extract the first word of "cc", so it can be a program name with args.
4130set dummy cc; ac_word=$2
81ecdfbb
RW
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4133if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4134 $as_echo_n "(cached) " >&6
9e07f89d
NN
4135else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138else
9e07f89d 4139 ac_prog_rejected=no
c6b750e1
DJ
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
81ecdfbb 4145 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4148 ac_prog_rejected=yes
4149 continue
4150 fi
4151 ac_cv_prog_CC="cc"
81ecdfbb 4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4153 break 2
4154 fi
4155done
81ecdfbb
RW
4156 done
4157IFS=$as_save_IFS
c6b750e1 4158
9e07f89d
NN
4159if test $ac_prog_rejected = yes; then
4160 # We found a bogon in the path, so make sure we never use it.
4161 set dummy $ac_cv_prog_CC
4162 shift
c6b750e1 4163 if test $# != 0; then
9e07f89d
NN
4164 # We chose a different compiler from the bogus one.
4165 # However, it has the same basename, so the bogon will be chosen
4166 # first if we set CC to just the basename; use the full file name.
4167 shift
c6b750e1 4168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4169 fi
4170fi
4171fi
4172fi
c6b750e1 4173CC=$ac_cv_prog_CC
9e07f89d 4174if test -n "$CC"; then
81ecdfbb
RW
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176$as_echo "$CC" >&6; }
9e07f89d 4177else
81ecdfbb
RW
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179$as_echo "no" >&6; }
9e07f89d
NN
4180fi
4181
81ecdfbb 4182
c6b750e1
DJ
4183fi
4184if test -z "$CC"; then
4185 if test -n "$ac_tool_prefix"; then
81ecdfbb 4186 for ac_prog in cl.exe
c6b750e1
DJ
4187 do
4188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4192if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4193 $as_echo_n "(cached) " >&6
9e07f89d
NN
4194else
4195 if test -n "$CC"; then
4196 ac_cv_prog_CC="$CC" # Let the user override the test.
4197else
c6b750e1
DJ
4198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH
4200do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
81ecdfbb 4203 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4207 break 2
376a0e54 4208 fi
c6b750e1 4209done
81ecdfbb
RW
4210 done
4211IFS=$as_save_IFS
cac3d6c4 4212
c6b750e1
DJ
4213fi
4214fi
4215CC=$ac_cv_prog_CC
4216if test -n "$CC"; then
81ecdfbb
RW
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4218$as_echo "$CC" >&6; }
cac3d6c4 4219else
81ecdfbb
RW
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221$as_echo "no" >&6; }
9e07f89d 4222fi
cac3d6c4 4223
81ecdfbb 4224
c6b750e1
DJ
4225 test -n "$CC" && break
4226 done
cac3d6c4 4227fi
c6b750e1
DJ
4228if test -z "$CC"; then
4229 ac_ct_CC=$CC
81ecdfbb 4230 for ac_prog in cl.exe
c6b750e1
DJ
4231do
4232 # Extract the first word of "$ac_prog", so it can be a program name with args.
4233set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4236if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4237 $as_echo_n "(cached) " >&6
cac3d6c4 4238else
c6b750e1
DJ
4239 if test -n "$ac_ct_CC"; then
4240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4241else
c6b750e1
DJ
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
81ecdfbb 4247 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4249 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4251 break 2
4252 fi
4253done
81ecdfbb
RW
4254 done
4255IFS=$as_save_IFS
c6b750e1 4256
cac3d6c4
CM
4257fi
4258fi
c6b750e1
DJ
4259ac_ct_CC=$ac_cv_prog_ac_ct_CC
4260if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4262$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4263else
81ecdfbb
RW
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265$as_echo "no" >&6; }
cac3d6c4 4266fi
376a0e54 4267
81ecdfbb 4268
c6b750e1
DJ
4269 test -n "$ac_ct_CC" && break
4270done
4271
81ecdfbb
RW
4272 if test "x$ac_ct_CC" = x; then
4273 CC=""
4274 else
4275 case $cross_compiling:$ac_tool_warned in
4276yes:)
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279ac_tool_warned=yes ;;
4280esac
4281 CC=$ac_ct_CC
4282 fi
c6b750e1
DJ
4283fi
4284
4285fi
4286
4287
81ecdfbb
RW
4288test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4290as_fn_error $? "no acceptable C compiler found in \$PATH
4291See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4292
4293# Provide some information about the compiler.
81ecdfbb
RW
4294$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4295set X $ac_compile
4296ac_compiler=$2
4297for ac_option in --version -v -V -qversion; do
4298 { { ac_try="$ac_compiler $ac_option >&5"
4299case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302esac
4303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304$as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4306 ac_status=$?
81ecdfbb
RW
4307 if test -s conftest.err; then
4308 sed '10a\
4309... rest of stderr output deleted ...
4310 10q' conftest.err >conftest.er1
4311 cat conftest.er1 >&5
81ecdfbb 4312 fi
d0ac1c44 4313 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }
4316done
c6b750e1 4317
81ecdfbb 4318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4319/* end confdefs.h. */
4320
4321int
4322main ()
4323{
4324
4325 ;
4326 return 0;
4327}
4328_ACEOF
4329ac_clean_files_save=$ac_clean_files
d0ac1c44 4330ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4331# Try to create an executable without -o first, disregard a.out.
4332# It will help us diagnose broken compilers, and finding out an intuition
4333# of exeext.
d0ac1c44
SM
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4335$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4336ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4337
4338# The possible output files:
4339ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4340
4341ac_rmfiles=
4342for ac_file in $ac_files
4343do
4344 case $ac_file in
4345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4346 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4347 esac
4348done
4349rm -f $ac_rmfiles
4350
4351if { { ac_try="$ac_link_default"
4352case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355esac
4356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4357$as_echo "$ac_try_echo"; } >&5
4358 (eval "$ac_link_default") 2>&5
c6b750e1 4359 ac_status=$?
81ecdfbb
RW
4360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4361 test $ac_status = 0; }; then :
4362 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4363# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4364# in a Makefile. We should not override ac_cv_exeext if it was cached,
4365# so that the user can short-circuit this test for compilers unknown to
4366# Autoconf.
4367for ac_file in $ac_files ''
c6b750e1
DJ
4368do
4369 test -f "$ac_file" || continue
4370 case $ac_file in
81ecdfbb 4371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4372 ;;
4373 [ab].out )
4374 # We found the default executable, but exeext='' is most
4375 # certainly right.
4376 break;;
4377 *.* )
81ecdfbb
RW
4378 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4379 then :; else
4380 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4381 fi
4382 # We set ac_cv_exeext here because the later test for it is not
4383 # safe: cross compilers may not add the suffix if given an `-o'
4384 # argument, so we may need to know it at that point already.
4385 # Even if this section looks crufty: it has the advantage of
4386 # actually working.
c6b750e1
DJ
4387 break;;
4388 * )
4389 break;;
4390 esac
4391done
81ecdfbb
RW
4392test "$ac_cv_exeext" = no && ac_cv_exeext=
4393
c6b750e1 4394else
81ecdfbb
RW
4395 ac_file=''
4396fi
81ecdfbb 4397if test -z "$ac_file"; then :
d0ac1c44
SM
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399$as_echo "no" >&6; }
4400$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
81ecdfbb
RW
4403{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4405as_fn_error 77 "C compiler cannot create executables
4406See \`config.log' for more details" "$LINENO" 5; }
4407else
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4409$as_echo "yes" >&6; }
c6b750e1 4410fi
d0ac1c44
SM
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4412$as_echo_n "checking for C compiler default output file name... " >&6; }
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4414$as_echo "$ac_file" >&6; }
c6b750e1 4415ac_exeext=$ac_cv_exeext
c6b750e1 4416
d0ac1c44 4417rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4418ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4420$as_echo_n "checking for suffix of executables... " >&6; }
4421if { { ac_try="$ac_link"
4422case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425esac
4426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4427$as_echo "$ac_try_echo"; } >&5
4428 (eval "$ac_link") 2>&5
c6b750e1 4429 ac_status=$?
81ecdfbb
RW
4430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431 test $ac_status = 0; }; then :
c6b750e1
DJ
4432 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4433# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4434# work properly (i.e., refer to `conftest.exe'), while it won't with
4435# `rm'.
4436for ac_file in conftest.exe conftest conftest.*; do
4437 test -f "$ac_file" || continue
4438 case $ac_file in
81ecdfbb 4439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4440 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4441 break;;
4442 * ) break;;
4443 esac
4444done
4445else
81ecdfbb
RW
4446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4448as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4449See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4450fi
d0ac1c44 4451rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4453$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4454
4455rm -f conftest.$ac_ext
4456EXEEXT=$ac_cv_exeext
4457ac_exeext=$EXEEXT
d0ac1c44
SM
4458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h. */
4460#include <stdio.h>
4461int
4462main ()
4463{
4464FILE *f = fopen ("conftest.out", "w");
4465 return ferror (f) || fclose (f) != 0;
4466
4467 ;
4468 return 0;
4469}
4470_ACEOF
4471ac_clean_files="$ac_clean_files conftest.out"
4472# Check that the compiler produces executables we can run. If not, either
4473# the compiler is broken, or we cross compile.
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4475$as_echo_n "checking whether we are cross compiling... " >&6; }
4476if test "$cross_compiling" != yes; then
4477 { { ac_try="$ac_link"
4478case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481esac
4482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483$as_echo "$ac_try_echo"; } >&5
4484 (eval "$ac_link") 2>&5
4485 ac_status=$?
4486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487 test $ac_status = 0; }
4488 if { ac_try='./conftest$ac_cv_exeext'
4489 { { case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492esac
4493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494$as_echo "$ac_try_echo"; } >&5
4495 (eval "$ac_try") 2>&5
4496 ac_status=$?
4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; }; }; then
4499 cross_compiling=no
4500 else
4501 if test "$cross_compiling" = maybe; then
4502 cross_compiling=yes
4503 else
4504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4506as_fn_error $? "cannot run C compiled programs.
4507If you meant to cross compile, use \`--host'.
4508See \`config.log' for more details" "$LINENO" 5; }
4509 fi
4510 fi
4511fi
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4513$as_echo "$cross_compiling" >&6; }
4514
4515rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4516ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4518$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4519if ${ac_cv_objext+:} false; then :
81ecdfbb 4520 $as_echo_n "(cached) " >&6
c6b750e1 4521else
81ecdfbb 4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4523/* end confdefs.h. */
4524
4525int
4526main ()
4527{
4528
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533rm -f conftest.o conftest.obj
81ecdfbb
RW
4534if { { ac_try="$ac_compile"
4535case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538esac
4539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4540$as_echo "$ac_try_echo"; } >&5
4541 (eval "$ac_compile") 2>&5
c6b750e1 4542 ac_status=$?
81ecdfbb
RW
4543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }; then :
4545 for ac_file in conftest.o conftest.obj conftest.*; do
4546 test -f "$ac_file" || continue;
c6b750e1 4547 case $ac_file in
81ecdfbb 4548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4550 break;;
4551 esac
4552done
cac3d6c4 4553else
81ecdfbb 4554 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4555sed 's/^/| /' conftest.$ac_ext >&5
4556
81ecdfbb
RW
4557{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4559as_fn_error $? "cannot compute suffix of object files: cannot compile
4560See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4561fi
c6b750e1
DJ
4562rm -f conftest.$ac_cv_objext conftest.$ac_ext
4563fi
81ecdfbb
RW
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4565$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4566OBJEXT=$ac_cv_objext
4567ac_objext=$OBJEXT
81ecdfbb
RW
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4569$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4570if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4571 $as_echo_n "(cached) " >&6
c6b750e1 4572else
81ecdfbb 4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4574/* end confdefs.h. */
4575
4576int
4577main ()
4578{
4579#ifndef __GNUC__
4580 choke me
4581#endif
4582
4583 ;
4584 return 0;
4585}
4586_ACEOF
81ecdfbb 4587if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4588 ac_compiler_gnu=yes
4589else
81ecdfbb 4590 ac_compiler_gnu=no
c6b750e1 4591fi
81ecdfbb 4592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4593ac_cv_c_compiler_gnu=$ac_compiler_gnu
4594
4595fi
81ecdfbb
RW
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4597$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4598if test $ac_compiler_gnu = yes; then
4599 GCC=yes
4600else
4601 GCC=
4602fi
c6b750e1
DJ
4603ac_test_CFLAGS=${CFLAGS+set}
4604ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4606$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4607if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4608 $as_echo_n "(cached) " >&6
4609else
4610 ac_save_c_werror_flag=$ac_c_werror_flag
4611 ac_c_werror_flag=yes
4612 ac_cv_prog_cc_g=no
4613 CFLAGS="-g"
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4615/* end confdefs.h. */
4616
4617int
4618main ()
4619{
4620
4621 ;
4622 return 0;
4623}
4624_ACEOF
81ecdfbb 4625if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4626 ac_cv_prog_cc_g=yes
4627else
81ecdfbb
RW
4628 CFLAGS=""
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630/* end confdefs.h. */
4631
4632int
4633main ()
4634{
4635
4636 ;
4637 return 0;
4638}
4639_ACEOF
4640if ac_fn_c_try_compile "$LINENO"; then :
4641
4642else
4643 ac_c_werror_flag=$ac_save_c_werror_flag
4644 CFLAGS="-g"
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646/* end confdefs.h. */
cac3d6c4 4647
81ecdfbb
RW
4648int
4649main ()
4650{
4651
4652 ;
4653 return 0;
4654}
4655_ACEOF
4656if ac_fn_c_try_compile "$LINENO"; then :
4657 ac_cv_prog_cc_g=yes
4658fi
4659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4660fi
81ecdfbb 4661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4662fi
81ecdfbb
RW
4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 ac_c_werror_flag=$ac_save_c_werror_flag
4665fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4667$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4668if test "$ac_test_CFLAGS" = set; then
c6b750e1 4669 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4670elif test $ac_cv_prog_cc_g = yes; then
4671 if test "$GCC" = yes; then
4672 CFLAGS="-g -O2"
4673 else
4674 CFLAGS="-g"
4675 fi
4676else
4677 if test "$GCC" = yes; then
4678 CFLAGS="-O2"
4679 else
4680 CFLAGS=
4681 fi
4682fi
81ecdfbb
RW
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4684$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4685if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4686 $as_echo_n "(cached) " >&6
c6b750e1 4687else
81ecdfbb 4688 ac_cv_prog_cc_c89=no
c6b750e1 4689ac_save_CC=$CC
81ecdfbb 4690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4691/* end confdefs.h. */
4692#include <stdarg.h>
4693#include <stdio.h>
d0ac1c44 4694struct stat;
c6b750e1
DJ
4695/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4696struct buf { int x; };
4697FILE * (*rcsopen) (struct buf *, struct stat *, int);
4698static char *e (p, i)
4699 char **p;
4700 int i;
4701{
4702 return p[i];
4703}
4704static char *f (char * (*g) (char **, int), char **p, ...)
4705{
4706 char *s;
4707 va_list v;
4708 va_start (v,p);
4709 s = g (p, va_arg (v,int));
4710 va_end (v);
4711 return s;
4712}
4713
4714/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4715 function prototypes and stuff, but not '\xHH' hex character constants.
4716 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4717 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4718 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4719 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4720 that's true only with -std. */
c6b750e1
DJ
4721int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4722
81ecdfbb
RW
4723/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4724 inside strings and character constants. */
4725#define FOO(x) 'x'
4726int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4727
c6b750e1
DJ
4728int test (int i, double x);
4729struct s1 {int (*f) (int a);};
4730struct s2 {int (*f) (double a);};
4731int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4732int argc;
4733char **argv;
4734int
4735main ()
4736{
4737return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4738 ;
4739 return 0;
4740}
4741_ACEOF
81ecdfbb
RW
4742for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4744do
4745 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4746 if ac_fn_c_try_compile "$LINENO"; then :
4747 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4748fi
81ecdfbb
RW
4749rm -f core conftest.err conftest.$ac_objext
4750 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4751done
81ecdfbb 4752rm -f conftest.$ac_ext
c6b750e1
DJ
4753CC=$ac_save_CC
4754
4755fi
81ecdfbb
RW
4756# AC_CACHE_VAL
4757case "x$ac_cv_prog_cc_c89" in
4758 x)
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4760$as_echo "none needed" >&6; } ;;
4761 xno)
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4763$as_echo "unsupported" >&6; } ;;
c6b750e1 4764 *)
81ecdfbb
RW
4765 CC="$CC $ac_cv_prog_cc_c89"
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4767$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4768esac
81ecdfbb 4769if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4770
c6b750e1
DJ
4771fi
4772
c6b750e1
DJ
4773ac_ext=c
4774ac_cpp='$CPP $CPPFLAGS'
4775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4778
81ecdfbb 4779ac_ext=cpp
18f6b6ee
PB
4780ac_cpp='$CXXCPP $CPPFLAGS'
4781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4784if test -z "$CXX"; then
4785 if test -n "$CCC"; then
4786 CXX=$CCC
4787 else
4788 if test -n "$ac_tool_prefix"; then
4789 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4790 do
4791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4792set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4795if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 4796 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4797else
4798 if test -n "$CXX"; then
4799 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4800else
4801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH
4803do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
81ecdfbb 4806 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4808 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4810 break 2
4811 fi
4812done
81ecdfbb
RW
4813 done
4814IFS=$as_save_IFS
512b7dfb 4815
18f6b6ee
PB
4816fi
4817fi
4818CXX=$ac_cv_prog_CXX
4819if test -n "$CXX"; then
81ecdfbb
RW
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4821$as_echo "$CXX" >&6; }
18f6b6ee 4822else
81ecdfbb
RW
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824$as_echo "no" >&6; }
18f6b6ee
PB
4825fi
4826
81ecdfbb 4827
18f6b6ee
PB
4828 test -n "$CXX" && break
4829 done
4830fi
4831if test -z "$CXX"; then
4832 ac_ct_CXX=$CXX
81ecdfbb 4833 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4834do
4835 # Extract the first word of "$ac_prog", so it can be a program name with args.
4836set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4839if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 4840 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4841else
4842 if test -n "$ac_ct_CXX"; then
4843 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4844else
4845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
81ecdfbb 4850 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4852 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4854 break 2
512b7dfb 4855 fi
18f6b6ee 4856done
81ecdfbb
RW
4857 done
4858IFS=$as_save_IFS
512b7dfb 4859
18f6b6ee
PB
4860fi
4861fi
4862ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4863if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4865$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4866else
81ecdfbb
RW
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868$as_echo "no" >&6; }
18f6b6ee
PB
4869fi
4870
81ecdfbb 4871
18f6b6ee
PB
4872 test -n "$ac_ct_CXX" && break
4873done
18f6b6ee 4874
81ecdfbb
RW
4875 if test "x$ac_ct_CXX" = x; then
4876 CXX="g++"
4877 else
4878 case $cross_compiling:$ac_tool_warned in
4879yes:)
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4882ac_tool_warned=yes ;;
4883esac
4884 CXX=$ac_ct_CXX
4885 fi
18f6b6ee
PB
4886fi
4887
81ecdfbb
RW
4888 fi
4889fi
18f6b6ee 4890# Provide some information about the compiler.
81ecdfbb
RW
4891$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4892set X $ac_compile
4893ac_compiler=$2
4894for ac_option in --version -v -V -qversion; do
4895 { { ac_try="$ac_compiler $ac_option >&5"
4896case "(($ac_try" in
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4899esac
4900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4901$as_echo "$ac_try_echo"; } >&5
4902 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4903 ac_status=$?
81ecdfbb
RW
4904 if test -s conftest.err; then
4905 sed '10a\
4906... rest of stderr output deleted ...
4907 10q' conftest.err >conftest.er1
4908 cat conftest.er1 >&5
81ecdfbb 4909 fi
d0ac1c44 4910 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4912 test $ac_status = 0; }
4913done
18f6b6ee 4914
81ecdfbb
RW
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4916$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 4917if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 4918 $as_echo_n "(cached) " >&6
18f6b6ee 4919else
81ecdfbb 4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4921/* end confdefs.h. */
4922
4923int
4924main ()
4925{
4926#ifndef __GNUC__
4927 choke me
4928#endif
4929
4930 ;
4931 return 0;
4932}
4933_ACEOF
81ecdfbb 4934if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4935 ac_compiler_gnu=yes
4936else
81ecdfbb 4937 ac_compiler_gnu=no
18f6b6ee 4938fi
81ecdfbb 4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4940ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4941
4942fi
81ecdfbb
RW
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4944$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4945if test $ac_compiler_gnu = yes; then
4946 GXX=yes
4947else
4948 GXX=
4949fi
18f6b6ee
PB
4950ac_test_CXXFLAGS=${CXXFLAGS+set}
4951ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4953$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 4954if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
4955 $as_echo_n "(cached) " >&6
4956else
4957 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4958 ac_cxx_werror_flag=yes
4959 ac_cv_prog_cxx_g=no
4960 CXXFLAGS="-g"
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4962/* end confdefs.h. */
4963
4964int
4965main ()
4966{
4967
4968 ;
4969 return 0;
4970}
4971_ACEOF
81ecdfbb 4972if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4973 ac_cv_prog_cxx_g=yes
4974else
81ecdfbb
RW
4975 CXXFLAGS=""
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4977/* end confdefs.h. */
81ecdfbb 4978
18f6b6ee
PB
4979int
4980main ()
4981{
81ecdfbb 4982
18f6b6ee
PB
4983 ;
4984 return 0;
4985}
4986_ACEOF
81ecdfbb 4987if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4988
81ecdfbb
RW
4989else
4990 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4991 CXXFLAGS="-g"
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4993/* end confdefs.h. */
81ecdfbb 4994
18f6b6ee
PB
4995int
4996main ()
4997{
81ecdfbb 4998
18f6b6ee
PB
4999 ;
5000 return 0;
5001}
5002_ACEOF
81ecdfbb
RW
5003if ac_fn_cxx_try_compile "$LINENO"; then :
5004 ac_cv_prog_cxx_g=yes
18f6b6ee 5005fi
81ecdfbb
RW
5006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007fi
5008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009fi
5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5012fi
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5014$as_echo "$ac_cv_prog_cxx_g" >&6; }
5015if test "$ac_test_CXXFLAGS" = set; then
5016 CXXFLAGS=$ac_save_CXXFLAGS
5017elif test $ac_cv_prog_cxx_g = yes; then
5018 if test "$GXX" = yes; then
5019 CXXFLAGS="-g -O2"
5020 else
5021 CXXFLAGS="-g"
5022 fi
5023else
5024 if test "$GXX" = yes; then
5025 CXXFLAGS="-O2"
5026 else
5027 CXXFLAGS=
5028 fi
18f6b6ee 5029fi
18f6b6ee
PB
5030ac_ext=c
5031ac_cpp='$CPP $CPPFLAGS'
5032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035
5036
5037# We must set the default linker to the linker used by gcc for the correct
5038# operation of libtool. If LD is not defined and we are using gcc, try to
5039# set the LD default to the ld used by gcc.
5040if test -z "$LD"; then
5041 if test "$GCC" = yes; then
5042 case $build in
5043 *-*-mingw*)
5044 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5045 *)
5046 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5047 esac
5048 case $gcc_prog_ld in
5049 # Accept absolute paths.
5050 [\\/]* | [A-Za-z]:[\\/]*)
5051 LD="$gcc_prog_ld" ;;
5052 esac
5053 fi
512b7dfb
PB
5054fi
5055
b3676d82
EB
5056# Check whether -static-libstdc++ -static-libgcc is supported.
5057have_static_libs=no
5058if test "$GCC" = yes; then
5059 saved_LDFLAGS="$LDFLAGS"
5060
5061 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5063$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5064 ac_ext=cpp
5065ac_cpp='$CXXCPP $CPPFLAGS'
5066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5069
5070
5071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072/* end confdefs.h. */
a882be68
EB
5073
5074#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5075#error -static-libstdc++ not implemented
5076#endif
b3676d82
EB
5077int main() {}
5078_ACEOF
5079if ac_fn_cxx_try_link "$LINENO"; then :
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5081$as_echo "yes" >&6; }; have_static_libs=yes
5082else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084$as_echo "no" >&6; }
5085fi
5086rm -f core conftest.err conftest.$ac_objext \
5087 conftest$ac_exeext conftest.$ac_ext
5088 ac_ext=c
5089ac_cpp='$CPP $CPPFLAGS'
5090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
5094
5095 LDFLAGS="$saved_LDFLAGS"
5096fi
5097
512b7dfb
PB
5098
5099
5100
c6b750e1 5101if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5102 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5103set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5106if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5107 $as_echo_n "(cached) " >&6
9e07f89d 5108else
512b7dfb
PB
5109 if test -n "$GNATBIND"; then
5110 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5111else
c6b750e1
DJ
5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
81ecdfbb 5117 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5119 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5121 break 2
5122 fi
5123done
81ecdfbb
RW
5124 done
5125IFS=$as_save_IFS
c6b750e1 5126
9e07f89d
NN
5127fi
5128fi
512b7dfb
PB
5129GNATBIND=$ac_cv_prog_GNATBIND
5130if test -n "$GNATBIND"; then
81ecdfbb
RW
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5132$as_echo "$GNATBIND" >&6; }
9e07f89d 5133else
81ecdfbb
RW
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135$as_echo "no" >&6; }
9e07f89d
NN
5136fi
5137
81ecdfbb 5138
c6b750e1 5139fi
512b7dfb
PB
5140if test -z "$ac_cv_prog_GNATBIND"; then
5141 ac_ct_GNATBIND=$GNATBIND
5142 # Extract the first word of "gnatbind", so it can be a program name with args.
5143set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5146if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5147 $as_echo_n "(cached) " >&6
9e07f89d 5148else
512b7dfb
PB
5149 if test -n "$ac_ct_GNATBIND"; then
5150 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5151else
c6b750e1
DJ
5152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153for as_dir in $PATH
5154do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
81ecdfbb 5157 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5159 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5161 break 2
5162 fi
5163done
81ecdfbb
RW
5164 done
5165IFS=$as_save_IFS
c6b750e1 5166
9e07f89d
NN
5167fi
5168fi
512b7dfb
PB
5169ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5170if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5172$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5173else
81ecdfbb
RW
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175$as_echo "no" >&6; }
9e07f89d
NN
5176fi
5177
81ecdfbb
RW
5178 if test "x$ac_ct_GNATBIND" = x; then
5179 GNATBIND="no"
5180 else
5181 case $cross_compiling:$ac_tool_warned in
5182yes:)
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5185ac_tool_warned=yes ;;
5186esac
5187 GNATBIND=$ac_ct_GNATBIND
5188 fi
24ff9987 5189else
512b7dfb 5190 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5191fi
5192
7df2cd5d 5193if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5194 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5195set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5198if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5199 $as_echo_n "(cached) " >&6
7df2cd5d 5200else
512b7dfb
PB
5201 if test -n "$GNATMAKE"; then
5202 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5203else
5204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
81ecdfbb 5209 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5211 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5213 break 2
5214 fi
5215done
81ecdfbb
RW
5216 done
5217IFS=$as_save_IFS
7df2cd5d
PB
5218
5219fi
5220fi
512b7dfb
PB
5221GNATMAKE=$ac_cv_prog_GNATMAKE
5222if test -n "$GNATMAKE"; then
81ecdfbb
RW
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5224$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5225else
81ecdfbb
RW
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227$as_echo "no" >&6; }
7df2cd5d
PB
5228fi
5229
81ecdfbb 5230
7df2cd5d 5231fi
512b7dfb
PB
5232if test -z "$ac_cv_prog_GNATMAKE"; then
5233 ac_ct_GNATMAKE=$GNATMAKE
5234 # Extract the first word of "gnatmake", so it can be a program name with args.
5235set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5238if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5239 $as_echo_n "(cached) " >&6
7df2cd5d 5240else
512b7dfb
PB
5241 if test -n "$ac_ct_GNATMAKE"; then
5242 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5243else
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=.
81ecdfbb 5249 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5251 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5253 break 2
5254 fi
5255done
81ecdfbb
RW
5256 done
5257IFS=$as_save_IFS
7df2cd5d 5258
7df2cd5d
PB
5259fi
5260fi
512b7dfb
PB
5261ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5262if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5264$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5265else
81ecdfbb
RW
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267$as_echo "no" >&6; }
7df2cd5d
PB
5268fi
5269
81ecdfbb
RW
5270 if test "x$ac_ct_GNATMAKE" = x; then
5271 GNATMAKE="no"
5272 else
5273 case $cross_compiling:$ac_tool_warned in
5274yes:)
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5277ac_tool_warned=yes ;;
5278esac
5279 GNATMAKE=$ac_ct_GNATMAKE
5280 fi
7df2cd5d 5281else
512b7dfb 5282 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5283fi
5284
81ecdfbb
RW
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5286$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
d0ac1c44 5287if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5288 $as_echo_n "(cached) " >&6
9e07f89d
NN
5289else
5290 cat >conftest.adb <<EOF
5291procedure conftest is begin null; end conftest;
5292EOF
5293acx_cv_cc_gcc_supports_ada=no
5294# There is a bug in old released versions of GCC which causes the
5295# driver to exit successfully when the appropriate language module
5296# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5297# Therefore we must check for the error message as well as an
5298# unsuccessful exit.
b8908782
DD
5299# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5300# given a .adb file, but produce no object file. So we must check
5301# if an object file was really produced to guard against this.
9e07f89d 5302errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5303if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5304 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5305fi
5306rm -f conftest.*
5307fi
81ecdfbb
RW
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5309$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5310
64b986c0 5311if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5312 have_gnat=yes
5313else
5314 have_gnat=no
5315fi
5316
81ecdfbb
RW
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5318$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5319if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5320 $as_echo_n "(cached) " >&6
b8908782
DD
5321else
5322 echo abfoo >t1
5323 echo cdfoo >t2
da17fe9d 5324 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5325 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5326 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5327 :
5328 else
5329 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5330 fi
5331 fi
b8908782
DD
5332 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5333 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5334 :
b8908782
DD
5335 else
5336 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5337 fi
5338 fi
5339 rm t1 t2
5340
5341fi
81ecdfbb
RW
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5343$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5344do_compare="$gcc_cv_prog_cmp_skip"
5345
5346
9e07f89d 5347
ffdd6afc
ILT
5348# Check whether --enable-bootstrap was given.
5349if test "${enable_bootstrap+set}" = set; then :
5350 enableval=$enable_bootstrap;
5351else
5352 enable_bootstrap=default
5353fi
5354
5355
5356# Issue errors and warnings for invalid/strange bootstrap combinations.
5357if test -r $srcdir/gcc/configure; then
5358 have_compiler=yes
5359else
5360 have_compiler=no
5361fi
5362
5363case "$have_compiler:$host:$target:$enable_bootstrap" in
5364 *:*:*:no) ;;
5365
5366 # Default behavior. Enable bootstrap if we have a compiler
5367 # and we are in a native configuration.
5368 yes:$build:$build:default)
5369 enable_bootstrap=yes ;;
5370
5371 *:*:*:default)
5372 enable_bootstrap=no ;;
5373
5374 # We have a compiler and we are in a native configuration, bootstrap is ok
5375 yes:$build:$build:yes)
5376 ;;
5377
5378 # Other configurations, but we have a compiler. Assume the user knows
5379 # what he's doing.
5380 yes:*:*:yes)
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5382$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5383 ;;
5384
5385 # No compiler: if they passed --enable-bootstrap explicitly, fail
5386 no:*:*:yes)
d0ac1c44 5387 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5388
5389 # Fail if wrong command line
5390 *)
d0ac1c44 5391 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5392 ;;
5393esac
5394
ce6c656d
L
5395# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5396# C++98 compiler can still start the bootstrap.
5397if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5398 CXX="$CXX -std=gnu++98"
5399fi
5400
d5f2ee2e
KG
5401# Used for setting $lt_cv_objdir
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5403$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 5404if ${lt_cv_objdir+:} false; then :
d5f2ee2e
KG
5405 $as_echo_n "(cached) " >&6
5406else
5407 rm -f .libs 2>/dev/null
5408mkdir .libs 2>/dev/null
5409if test -d .libs; then
5410 lt_cv_objdir=.libs
5411else
5412 # MS-DOS does not allow filenames that begin with a dot.
5413 lt_cv_objdir=_libs
5414fi
5415rmdir .libs 2>/dev/null
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5418$as_echo "$lt_cv_objdir" >&6; }
5419objdir=$lt_cv_objdir
5420
5421
5422
5423
5424
5425cat >>confdefs.h <<_ACEOF
5426#define LT_OBJDIR "$lt_cv_objdir/"
5427_ACEOF
5428
5429
5430
e8a5fa9c 5431# Check for GMP, MPFR and MPC
d9b76ff9 5432gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5433gmpinc=
4b900473 5434have_gmp=no
e8a5fa9c
RW
5435
5436# Specify a location for mpc
5437# check for this first so it ends up on the link line before mpfr.
5438
81ecdfbb
RW
5439# Check whether --with-mpc was given.
5440if test "${with_mpc+set}" = set; then :
5441 withval=$with_mpc;
5442fi
e8a5fa9c 5443
e8a5fa9c 5444
e552509b 5445# Check whether --with-mpc-include was given.
81ecdfbb
RW
5446if test "${with_mpc_include+set}" = set; then :
5447 withval=$with_mpc_include;
5448fi
e8a5fa9c 5449
e8a5fa9c 5450
e552509b 5451# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5452if test "${with_mpc_lib+set}" = set; then :
5453 withval=$with_mpc_lib;
5454fi
e8a5fa9c 5455
e8a5fa9c
RW
5456
5457if test "x$with_mpc" != x; then
d9b76ff9
KG
5458 gmplibs="-L$with_mpc/lib $gmplibs"
5459 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5460fi
5461if test "x$with_mpc_include" != x; then
d9b76ff9 5462 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5463fi
5464if test "x$with_mpc_lib" != x; then
d9b76ff9 5465 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5466fi
5467if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5468 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5469 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5470 # Do not test the mpc version. Assume that it is sufficient, since
5471 # it is in the source tree, and the library has not been built yet
5472 # but it would be included on the link line in the version check below
5473 # hence making the test fail.
d9b76ff9 5474 have_gmp=yes
e8a5fa9c 5475fi
4b900473 5476
11b04d1f
DD
5477# Specify a location for mpfr
5478# check for this first so it ends up on the link line before gmp.
c6b750e1 5479
81ecdfbb
RW
5480# Check whether --with-mpfr-dir was given.
5481if test "${with_mpfr_dir+set}" = set; then :
d0ac1c44 5482 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
81ecdfbb
RW
5483Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5484fi
5485
11b04d1f
DD
5486
5487
81ecdfbb
RW
5488# Check whether --with-mpfr was given.
5489if test "${with_mpfr+set}" = set; then :
5490 withval=$with_mpfr;
5491fi
c6b750e1 5492
11b04d1f 5493
e552509b 5494# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5495if test "${with_mpfr_include+set}" = set; then :
5496 withval=$with_mpfr_include;
5497fi
c6b750e1 5498
8a0d8a5c 5499
e552509b 5500# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5501if test "${with_mpfr_lib+set}" = set; then :
5502 withval=$with_mpfr_lib;
5503fi
8a0d8a5c 5504
11b04d1f
DD
5505
5506if test "x$with_mpfr" != x; then
5507 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5508 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5509fi
8a0d8a5c 5510if test "x$with_mpfr_include" != x; then
d9b76ff9 5511 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5512fi
5513if test "x$with_mpfr_lib" != x; then
5514 gmplibs="-L$with_mpfr_lib $gmplibs"
5515fi
4b900473 5516if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5517 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 5518 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 5519 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5520 fi
05a13254
NC
5521 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5522 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5523 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5524 # Do not test the mpfr version. Assume that it is sufficient, since
5525 # it is in the source tree, and the library has not been built yet
5526 # but it would be included on the link line in the version check below
5527 # hence making the test fail.
5528 have_gmp=yes
5529fi
11b04d1f 5530
4b1cb4fe 5531# Specify a location for gmp
c6b750e1 5532
81ecdfbb
RW
5533# Check whether --with-gmp-dir was given.
5534if test "${with_gmp_dir+set}" = set; then :
d0ac1c44 5535 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
81ecdfbb
RW
5536Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5537fi
5538
4b1cb4fe
DD
5539
5540
81ecdfbb
RW
5541# Check whether --with-gmp was given.
5542if test "${with_gmp+set}" = set; then :
5543 withval=$with_gmp;
5544fi
c6b750e1 5545
4b1cb4fe 5546
e552509b 5547# Check whether --with-gmp-include was given.
81ecdfbb
RW
5548if test "${with_gmp_include+set}" = set; then :
5549 withval=$with_gmp_include;
5550fi
c6b750e1 5551
8a0d8a5c 5552
e552509b 5553# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5554if test "${with_gmp_lib+set}" = set; then :
5555 withval=$with_gmp_lib;
5556fi
8a0d8a5c
PB
5557
5558
4b1cb4fe 5559
11b04d1f
DD
5560if test "x$with_gmp" != x; then
5561 gmplibs="-L$with_gmp/lib $gmplibs"
5562 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5563fi
8a0d8a5c
PB
5564if test "x$with_gmp_include" != x; then
5565 gmpinc="-I$with_gmp_include $gmpinc"
5566fi
5567if test "x$with_gmp_lib" != x; then
5568 gmplibs="-L$with_gmp_lib $gmplibs"
5569fi
4b900473 5570if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5571 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5572 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5573 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5574 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5575 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5576 # Do not test the gmp version. Assume that it is sufficient, since
5577 # it is in the source tree, and the library has not been built yet
5578 # but it would be included on the link line in the version check below
5579 # hence making the test fail.
5580 have_gmp=yes
5581fi
4b1cb4fe 5582
ceb92e78 5583if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5584 have_gmp=yes
5585 saved_CFLAGS="$CFLAGS"
5586 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5587 # Check for the recommended and required versions of GMP.
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5589$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5590
5591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5592/* end confdefs.h. */
5593#include "gmp.h"
5594int
5595main ()
5596{
5597
5598 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5599 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5600 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5601 choke me
5602 #endif
5603
5604 ;
5605 return 0;
5606}
5607_ACEOF
5608if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5610/* end confdefs.h. */
a6b5846e 5611#include <gmp.h>
c6b750e1
DJ
5612int
5613main ()
5614{
4b1cb4fe 5615
a6b5846e
KG
5616 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5617 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5618 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5619 choke me
5620 #endif
c6b750e1
DJ
5621
5622 ;
5623 return 0;
5624}
5625_ACEOF
81ecdfbb
RW
5626if ac_fn_c_try_compile "$LINENO"; then :
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5628$as_echo "yes" >&6; }
a6b5846e
KG
5629else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5631$as_echo "buggy but acceptable" >&6; }
5632fi
5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5634else
81ecdfbb
RW
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5637fi
81ecdfbb 5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5639
e8a5fa9c 5640 # If we have GMP, check the MPFR version.
4b900473 5641 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5642 # Check for the recommended and required versions of MPFR.
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5644$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5646/* end confdefs.h. */
9b134994 5647#include <gmp.h>
4b900473 5648 #include <mpfr.h>
c6b750e1
DJ
5649int
5650main ()
5651{
9b134994 5652
7ec59b9e 5653 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5654 choke me
5655 #endif
c6b750e1
DJ
5656
5657 ;
5658 return 0;
5659}
5660_ACEOF
81ecdfbb
RW
5661if ac_fn_c_try_compile "$LINENO"; then :
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5663/* end confdefs.h. */
4b1cb4fe 5664#include <gmp.h>
4b900473 5665 #include <mpfr.h>
c6b750e1
DJ
5666int
5667main ()
5668{
9dbaa842 5669
a6b5846e 5670 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5671 choke me
5672 #endif
e8a5fa9c
RW
5673
5674 ;
5675 return 0;
5676}
5677_ACEOF
81ecdfbb
RW
5678if ac_fn_c_try_compile "$LINENO"; then :
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5680$as_echo "yes" >&6; }
e8a5fa9c 5681else
81ecdfbb
RW
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5683$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5684fi
81ecdfbb 5685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5686else
81ecdfbb
RW
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5689fi
81ecdfbb 5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5691 fi
5692
5693 # Check for the MPC header version.
d9b76ff9 5694 if test x"$have_gmp" = xyes ; then
a6b5846e 5695 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5697$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5699/* end confdefs.h. */
5700#include <mpc.h>
5701int
5702main ()
5703{
5704
a6b5846e
KG
5705 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5706 choke me
5707 #endif
5708
5709 ;
5710 return 0;
5711}
5712_ACEOF
5713if ac_fn_c_try_compile "$LINENO"; then :
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715/* end confdefs.h. */
5716#include <mpc.h>
5717int
5718main ()
5719{
5720
5721 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5722 choke me
5723 #endif
5724
5725 ;
5726 return 0;
5727}
5728_ACEOF
81ecdfbb
RW
5729if ac_fn_c_try_compile "$LINENO"; then :
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5731$as_echo "yes" >&6; }
a6b5846e
KG
5732else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5734$as_echo "buggy but acceptable" >&6; }
5735fi
5736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5737else
81ecdfbb 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5739$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5740fi
81ecdfbb 5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5742 fi
5743
5744 # Now check the MPFR library.
5745 if test x"$have_gmp" = xyes; then
5746 saved_LIBS="$LIBS"
5747 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5749$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5751/* end confdefs.h. */
d9b76ff9 5752#include <mpc.h>
e8a5fa9c
RW
5753int
5754main ()
5755{
5756
5757 mpfr_t n;
5758 mpfr_t x;
d9b76ff9 5759 mpc_t c;
e8a5fa9c
RW
5760 int t;
5761 mpfr_init (n);
5762 mpfr_init (x);
5763 mpfr_atan2 (n, n, x, GMP_RNDN);
5764 mpfr_erfc (n, x, GMP_RNDN);
5765 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5766 mpfr_clear(n);
5767 mpfr_clear(x);
5768 mpc_init2 (c, 53);
5769 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5770 mpc_cosh (c, c, MPC_RNDNN);
5771 mpc_pow (c, c, c, MPC_RNDNN);
5772 mpc_acosh (c, c, MPC_RNDNN);
5773 mpc_clear (c);
c6b750e1
DJ
5774
5775 ;
5776 return 0;
5777}
5778_ACEOF
81ecdfbb
RW
5779if ac_fn_c_try_link "$LINENO"; then :
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5781$as_echo "yes" >&6; }
c6b750e1 5782else
81ecdfbb
RW
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5785fi
81ecdfbb
RW
5786rm -f core conftest.err conftest.$ac_objext \
5787 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5788 LIBS="$saved_LIBS"
5789 fi
5790
4b900473 5791 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5792
a6b5846e
KG
5793# The library versions listed in the error message below should match
5794# the HARD-minimums enforced above.
4b900473 5795 if test x$have_gmp != xyes; then
d0ac1c44 5796 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5797Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5798their locations. Source code for these libraries can be found at
5799their respective hosting sites as well as at
5800ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5801http://gcc.gnu.org/install/prerequisites.html for additional info. If
5802you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5803make sure that you have installed both the libraries and the header
5804files. They may be located in separate packages." "$LINENO" 5
4b900473 5805 fi
9dbaa842
DD
5806fi
5807
e8a5fa9c
RW
5808# Flags needed for both GMP, MPFR and/or MPC.
5809
5810
5811
4b1cb4fe
DD
5812
5813
5814
7ec59b9e 5815
b3676d82 5816# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5817
b3676d82
EB
5818# Check whether --with-stage1-libs was given.
5819if test "${with_stage1_libs+set}" = set; then :
5820 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5821 stage1_libs=
e8a5fa9c 5822 else
b3676d82 5823 stage1_libs=$withval
e8a5fa9c
RW
5824 fi
5825else
68996839 5826 stage1_libs=
81ecdfbb
RW
5827fi
5828
e8a5fa9c
RW
5829
5830
ef93dd73
TT
5831# Whether or not to use -static-libstdc++ and -static-libgcc. The
5832# default is yes if gcc is being built; no otherwise. The reason for
5833# this default is that gdb is sometimes linked against GNU Source
5834# Highlight, which is a shared library that uses C++ exceptions. In
5835# this case, -static-libstdc++ will cause crashes.
5836
5837# Check whether --with-static-standard-libraries was given.
5838if test "${with_static_standard_libraries+set}" = set; then :
5839 withval=$with_static_standard_libraries;
5840else
5841 with_static_standard_libraries=auto
5842fi
5843
5844if test "$with_static_standard_libraries" = auto; then
5845 with_static_standard_libraries=$have_compiler
5846fi
5847
b3676d82 5848# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5849
b3676d82
EB
5850# Check whether --with-stage1-ldflags was given.
5851if test "${with_stage1_ldflags+set}" = set; then :
5852 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5853 stage1_ldflags=
e8a5fa9c 5854 else
b3676d82 5855 stage1_ldflags=$withval
e8a5fa9c
RW
5856 fi
5857else
b3676d82
EB
5858 stage1_ldflags=
5859 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5860 # if supported. But if the user explicitly specified the libraries to use,
5861 # trust that they are doing what they want.
ef93dd73
TT
5862 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5863 -a "$have_static_libs" = yes; then
b3676d82
EB
5864 stage1_ldflags="-static-libstdc++ -static-libgcc"
5865 fi
81ecdfbb
RW
5866fi
5867
e8a5fa9c
RW
5868
5869
68996839 5870# Libraries to use for stage2 and later builds.
e8a5fa9c 5871
81ecdfbb
RW
5872# Check whether --with-boot-libs was given.
5873if test "${with_boot_libs+set}" = set; then :
5874 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5875 poststage1_libs=
5876 else
5877 poststage1_libs=$withval
5878 fi
5879else
68996839 5880 poststage1_libs=
81ecdfbb
RW
5881fi
5882
e8a5fa9c
RW
5883
5884
143754cd
NC
5885# Linker flags to use for stage2 and later builds.
5886
5887# Check whether --with-boot-ldflags was given.
5888if test "${with_boot_ldflags+set}" = set; then :
5889 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5890 poststage1_ldflags=
5891 else
5892 poststage1_ldflags=$withval
5893 fi
5894else
5895 poststage1_ldflags=
4f11b223
ILT
5896 # In stages 2 and 3, default to linking libstdc++ and libgcc
5897 # statically. But if the user explicitly specified the libraries to
5898 # use, trust that they are doing what they want.
5899 if test "$poststage1_libs" = ""; then
143754cd
NC
5900 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5901 fi
5902fi
5903
5904
5905
4849dfd8 5906# GCC GRAPHITE dependency isl.
1b6c0831 5907# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
5908
5909
7ec59b9e
L
5910# Check whether --with-isl was given.
5911if test "${with_isl+set}" = set; then :
5912 withval=$with_isl;
81ecdfbb 5913fi
e28c595f 5914
e28c595f 5915
1b6c0831 5916# Treat --without-isl as a request to disable
8e71395b 5917# GRAPHITE support and skip all following checks.
1b6c0831 5918if test "x$with_isl" != "xno"; then
4849dfd8 5919 # Check for isl
8e71395b
L
5920
5921
7ec59b9e
L
5922# Check whether --with-isl-include was given.
5923if test "${with_isl_include+set}" = set; then :
5924 withval=$with_isl_include;
81ecdfbb
RW
5925fi
5926
e28c595f 5927
7ec59b9e
L
5928# Check whether --with-isl-lib was given.
5929if test "${with_isl_lib+set}" = set; then :
5930 withval=$with_isl_lib;
81ecdfbb 5931fi
e28c595f 5932
e28c595f 5933
7ec59b9e
L
5934 # Check whether --enable-isl-version-check was given.
5935if test "${enable_isl_version_check+set}" = set; then :
5936 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5937else
5938 ENABLE_ISL_CHECK=yes
b123da99
SP
5939fi
5940
5941
7ec59b9e
L
5942 # Initialize isllibs and islinc.
5943 case $with_isl in
5944 no)
5945 isllibs=
5946 islinc=
5947 ;;
5948 "" | yes)
5949 ;;
5950 *)
5951 isllibs="-L$with_isl/lib"
5952 islinc="-I$with_isl/include"
5953 ;;
5954 esac
5955 if test "x${with_isl_include}" != x ; then
5956 islinc="-I$with_isl_include"
5957 fi
5958 if test "x${with_isl_lib}" != x; then
5959 isllibs="-L$with_isl_lib"
5960 fi
5961 if test "x${islinc}" = x && test "x${isllibs}" = x \
5962 && test -d ${srcdir}/isl; then
5963 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5964 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5965 ENABLE_ISL_CHECK=no
4849dfd8
NC
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5967$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 5968 fi
b123da99 5969
1b6c0831 5970 isllibs="${isllibs} -lisl"
b123da99 5971
e28c595f 5972
b3fc79f8
JBG
5973
5974 if test "${ENABLE_ISL_CHECK}" = yes ; then
5975 _isl_saved_CFLAGS=$CFLAGS
5976 _isl_saved_LDFLAGS=$LDFLAGS
5977 _isl_saved_LIBS=$LIBS
5978
5979 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
5980 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5981 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 5982
bf41f30d
NC
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
5984$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 5986/* end confdefs.h. */
bf41f30d 5987#include <isl/schedule.h>
b3fc79f8
JBG
5988int
5989main ()
5990{
bf41f30d 5991isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
5992 ;
5993 return 0;
5994}
5995_ACEOF
1b6c0831 5996if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
5997 gcc_cv_isl=yes
5998else
5999 gcc_cv_isl=no
6000fi
1b6c0831
L
6001rm -f core conftest.err conftest.$ac_objext \
6002 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6004$as_echo "$gcc_cv_isl" >&6; }
6005
4849dfd8 6006 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6008$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
6009 fi
6010
b3fc79f8
JBG
6011 CFLAGS=$_isl_saved_CFLAGS
6012 LDFLAGS=$_isl_saved_LDFLAGS
6013 LIBS=$_isl_saved_LIBS
6014 fi
6015
6016
e28c595f 6017
e28c595f 6018
7ec59b9e
L
6019
6020
7ec59b9e
L
6021 if test "x${with_isl}" = xno; then
6022 graphite_requested=no
6023 elif test "x${with_isl}" != x \
6024 || test "x${with_isl_include}" != x \
6025 || test "x${with_isl_lib}" != x ; then
6026 graphite_requested=yes
6027 else
6028 graphite_requested=no
b123da99 6029 fi
e28c595f 6030
e28c595f
JM
6031
6032
7ec59b9e
L
6033 if test "${gcc_cv_isl}" = no ; then
6034 isllibs=
6035 islinc=
6036 fi
e28c595f 6037
7ec59b9e
L
6038 if test "${graphite_requested}" = yes \
6039 && test "x${isllibs}" = x \
6040 && test "x${islinc}" = x ; then
e28c595f 6041
d0ac1c44 6042 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6043 fi
e552509b 6044
e28c595f 6045
e552509b
ILT
6046fi
6047
4849dfd8 6048# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6049if test "x$with_isl" = xno ||
8e71395b 6050 test "x$gcc_cv_isl" = xno; then
1b6c0831 6051 noconfigdirs="$noconfigdirs isl"
8e71395b 6052 islinc=
7ec59b9e
L
6053fi
6054
8e71395b
L
6055
6056
6057
700d40ca
ILT
6058# Check for LTO support.
6059# Check whether --enable-lto was given.
6060if test "${enable_lto+set}" = set; then :
6061 enableval=$enable_lto; enable_lto=$enableval
6062else
6063 enable_lto=yes; default_enable_lto=yes
6064fi
6065
6066
143754cd 6067
e49e5c92
DK
6068
6069
6070target_elf=no
6071case $target in
6072 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6073 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6074 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6075 nvptx-*-none)
e49e5c92
DK
6076 target_elf=no
6077 ;;
6078 *)
6079 target_elf=yes
6080 ;;
6081esac
6082
6083if test $target_elf = yes; then :
74cea91b
DK
6084 # ELF platforms build the lto-plugin always.
6085 build_lto_plugin=yes
e49e5c92 6086
e49e5c92
DK
6087else
6088 if test x"$default_enable_lto" = x"yes" ; then
29821356 6089 case $target in
bf41f30d 6090 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6091 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6092 *) enable_lto=no ;;
6093 esac
e49e5c92 6094 else
29821356
RW
6095 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6096 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6097 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6098 # warn during gcc/ subconfigure; unless you're bootstrapping with
6099 # -flto it won't be needed until after installation anyway.
6100 case $target in
52cf9762 6101 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 6102 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 6103 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
6104 fi
6105 ;;
6106 esac
6107 fi
a8eb3f0a 6108 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6109 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6110 case $target in
74cea91b 6111 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6112 *) ;;
6113 esac
74cea91b 6114
e49e5c92
DK
6115fi
6116
700d40ca 6117
1b6c0831
L
6118# Check whether --enable-linker-plugin-configure-flags was given.
6119if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6120 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6121else
6122 extra_linker_plugin_configure_flags=
6123fi
6124
6125
6126# Check whether --enable-linker-plugin-flags was given.
6127if test "${enable_linker_plugin_flags+set}" = set; then :
6128 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6129else
6130 extra_linker_plugin_flags=
6131fi
6132
6133
6134
bf41f30d
NC
6135# Enable --enable-host-shared.
6136# Checked early to determine whether jit is an 'all' language
6137# Check whether --enable-host-shared was given.
6138if test "${enable_host_shared+set}" = set; then :
6139 enableval=$enable_host_shared; host_shared=$enableval
6140else
6141 host_shared=no
6142fi
6143
6144
e28c595f 6145
7ec59b9e 6146# By default, C and C++ are the only stage 1 languages.
9b134994 6147stage1_languages=,c,
1d39f329 6148
e8a5fa9c 6149# Target libraries that we bootstrap.
2aa2364a 6150bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6151
9e07f89d
NN
6152# Figure out what language subdirectories are present.
6153# Look if the user specified --enable-languages="..."; if not, use
6154# the environment variable $LANGUAGES if defined. $LANGUAGES might
6155# go away some day.
6156# NB: embedded tabs in this IF block -- do not untabify
6157if test -d ${srcdir}/gcc; then
6158 if test x"${enable_languages+set}" != xset; then
6159 if test x"${LANGUAGES+set}" = xset; then
6160 enable_languages="${LANGUAGES}"
136bb21f 6161 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 6162 else
bf41f30d 6163 enable_languages=default
9e07f89d
NN
6164 fi
6165 else
6166 if test x"${enable_languages}" = x ||
6167 test x"${enable_languages}" = xyes;
6168 then
136bb21f 6169 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6170 exit 1
6171 fi
6172 fi
6173 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6174
096f7d00
DE
6175 # 'f95' is the old name for the 'fortran' language. We issue a warning
6176 # and make the substitution.
6177 case ,${enable_languages}, in
6178 *,f95,*)
136bb21f 6179 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6180 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6181 ;;
6182 esac
6183
7ec59b9e
L
6184 # If bootstrapping, C++ must be enabled.
6185 case ",$enable_languages,:$enable_bootstrap" in
6186 *,c++,*:*) ;;
6187 *:yes)
ffdd6afc
ILT
6188 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6189 enable_languages="${enable_languages},c++"
6190 else
d0ac1c44 6191 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6192 fi
6193 ;;
6194 esac
6195
9e07f89d
NN
6196 # First scan to see if an enabled language requires some other language.
6197 # We assume that a given config-lang.in will list all the language
6198 # front ends it requires, even if some are required indirectly.
6199 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6200 case ${lang_frag} in
6201 ..) ;;
6202 # The odd quoting in the next line works around
6203 # an apparent bug in bash 1.12 on linux.
6204 ${srcdir}/gcc/[*]/config-lang.in) ;;
6205 *)
e552509b
ILT
6206 # From the config-lang.in, get $language, $lang_requires, and
6207 # $lang_requires_boot_languages.
9e07f89d
NN
6208 language=
6209 lang_requires=
e552509b 6210 lang_requires_boot_languages=
bf41f30d
NC
6211 # set srcdir during sourcing lang_frag to the gcc dir.
6212 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6213 # polutes this shell
6214 saved_srcdir=${srcdir}
6215 srcdir=${srcdir}/gcc . ${lang_frag}
6216 srcdir=${saved_srcdir}
e552509b 6217 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6218 case ,${enable_languages}, in
6219 *,$other,*) ;;
bf41f30d 6220 *,default,*) ;;
9e07f89d
NN
6221 *,all,*) ;;
6222 *,$language,*)
6223 echo " \`$other' language required by \`$language'; enabling" 1>&2
6224 enable_languages="${enable_languages},${other}"
6225 ;;
6226 esac
6227 done
e552509b
ILT
6228 for other in ${lang_requires_boot_languages} ; do
6229 if test "$other" != "c"; then
6230 case ,${enable_stage1_languages}, in
6231 *,$other,*) ;;
bf41f30d 6232 *,default,*) ;;
e552509b
ILT
6233 *,all,*) ;;
6234 *)
6235 case ,${enable_languages}, in
6236 *,$language,*)
6237 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6238 enable_stage1_languages="$enable_stage1_languages,${other}"
6239 ;;
6240 esac
6241 ;;
6242 esac
6243 fi
6244 done
9e07f89d
NN
6245 ;;
6246 esac
6247 done
6248
9b134994 6249 new_enable_languages=,c,
700d40ca
ILT
6250
6251 # If LTO is enabled, add the LTO front end.
700d40ca 6252 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6253 case ,${enable_languages}, in
6254 *,lto,*) ;;
6255 *) enable_languages="${enable_languages},lto" ;;
6256 esac
a8eb3f0a 6257 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6258 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6259 fi
6260 fi
6261
1b6c0831
L
6262 # If we're building an offloading compiler, add the LTO front end.
6263 if test x"$enable_as_accelerator_for" != x ; then
6264 case ,${enable_languages}, in
6265 *,lto,*) ;;
6266 *) enable_languages="${enable_languages},lto" ;;
6267 esac
6268 fi
700d40ca 6269
bf41f30d 6270 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6271 potential_languages=,c,
9e07f89d 6272
9e1a94f4
ILT
6273 enabled_target_libs=
6274 disabled_target_libs=
6275
9e07f89d
NN
6276 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6277 case ${lang_frag} in
6278 ..) ;;
6279 # The odd quoting in the next line works around
6280 # an apparent bug in bash 1.12 on linux.
6281 ${srcdir}/gcc/[*]/config-lang.in) ;;
6282 *)
c6b750e1 6283 # From the config-lang.in, get $language, $target_libs,
1d39f329 6284 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6285 language=
6286 target_libs=
6287 lang_dirs=
64ce424c 6288 subdir_requires=
9b134994
PB
6289 boot_language=no
6290 build_by_default=yes
bf41f30d
NC
6291 # set srcdir during sourcing. See above about save & restore
6292 saved_srcdir=${srcdir}
6293 srcdir=${srcdir}/gcc . ${lang_frag}
6294 srcdir=${saved_srcdir}
9b134994
PB
6295 if test x${language} = x; then
6296 echo "${lang_frag} doesn't set \$language." 1>&2
6297 exit 1
6298 fi
6299
ffdd6afc 6300 if test "$language" = "c++"; then
7ec59b9e 6301 boot_language=yes
e8a5fa9c
RW
6302 fi
6303
8e71395b 6304 add_this_lang=no
bf41f30d
NC
6305 # C is always enabled, so no need to add it again
6306 if test "$language" != "c"; then
6307 case ,${enable_languages}, in
6308 *,${language},*)
6309 # Language was explicitly selected; include it
7ec59b9e 6310 add_this_lang=yes
bf41f30d
NC
6311 ;;
6312 *,all,*)
6313 # All languages are enabled
6314 add_this_lang=all
6315 ;;
6316 *,default,*)
6317 # 'default' was selected, select it if it is a default language
8e71395b 6318 add_this_lang=${build_by_default}
bf41f30d
NC
6319 ;;
6320 esac
6321 fi
4b1cb4fe 6322
64ce424c 6323 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6324 for i in $subdir_requires; do
3d3adb43 6325 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
6326 case ${add_this_lang} in
6327 yes)
64ce424c 6328 # Specifically requested language; tell them.
d0ac1c44 6329 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 6330 ;;
bf41f30d
NC
6331 all)
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6333$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6334 add_this_lang=unsupported
6335 ;;
64ce424c
PB
6336 *)
6337 # Silently disable.
9b134994 6338 add_this_lang=unsupported
64ce424c
PB
6339 ;;
6340 esac
6341 done
6342
9b134994 6343 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
6344 case ${add_this_lang}:${language}:${have_gnat} in
6345 yes:ada:no)
9b134994 6346 # Specifically requested language; tell them.
d0ac1c44 6347 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 6348 ;;
bf41f30d
NC
6349 all:ada:no)
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6351$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6352 add_this_lang=unsupported
6353 ;;
9b134994
PB
6354 *:ada:no)
6355 # Silently disable.
6356 add_this_lang=unsupported
6357 ;;
6358 esac
6359
bf41f30d
NC
6360 # Disable jit if -enable-host-shared not specified
6361 case ${add_this_lang}:${language}:${host_shared} in
6362 yes:jit:no)
6363 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 6364 as_fn_error $? "
bf41f30d
NC
6365Enabling language \"jit\" requires --enable-host-shared.
6366
6367--enable-host-shared typically slows the rest of the compiler down by
6368a few %, so you must explicitly enable it.
6369
6370If you want to build both the jit and the regular compiler, it is often
6371best to do this via two separate configure/builds, in separate
6372directories, to avoid imposing the performance cost of
6373--enable-host-shared on the regular compiler." "$LINENO" 5
6374 ;;
6375 all:jit:no)
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6377$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6378 add_this_lang=unsupported
6379 ;;
6380 *:jit:no)
6381 # Silently disable.
6382 add_this_lang=unsupported
6383 ;;
6384 esac
6385
6386 # Disable a language that is unsupported by the target.
6387 case "${add_this_lang}: $unsupported_languages " in
6388 no:*) ;;
6389 unsupported:*) ;;
6390 *:*" $language "*)
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6392$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 6393 add_this_lang=unsupported
59f7ec45
HPN
6394 ;;
6395 esac
6396
4b1cb4fe 6397 case $add_this_lang in
9b134994 6398 unsupported)
9e07f89d 6399 # Remove language-dependent dirs.
9e1a94f4
ILT
6400 disabled_target_libs="$disabled_target_libs $target_libs"
6401 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6402 ;;
9b134994
PB
6403 no)
6404 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6405 disabled_target_libs="$disabled_target_libs $target_libs"
6406 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6407 potential_languages="${potential_languages}${language},"
6408 ;;
bf41f30d 6409 all|yes)
9b134994
PB
6410 new_enable_languages="${new_enable_languages}${language},"
6411 potential_languages="${potential_languages}${language},"
1d39f329 6412 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6413 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6414 case "${boot_language}:,$enable_stage1_languages," in
6415 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6416 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6417 case ",$stage1_languages," in
6418 *,$language,* | ,yes, | ,all,) ;;
6419 *) stage1_languages="${stage1_languages}${language}," ;;
6420 esac
e8a5fa9c
RW
6421 # We need to bootstrap any supporting libraries.
6422 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6423 ;;
6424 esac
6425 ;;
9e07f89d
NN
6426 esac
6427 ;;
6428 esac
6429 done
6430
9e1a94f4
ILT
6431 # Add target libraries which are only needed for disabled languages
6432 # to noconfigdirs.
6433 if test -n "$disabled_target_libs"; then
6434 for dir in $disabled_target_libs; do
6435 case " $enabled_target_libs " in
6436 *" ${dir} "*) ;;
6437 *) noconfigdirs="$noconfigdirs $dir" ;;
6438 esac
6439 done
6440 fi
6441
81ecdfbb
RW
6442 # Check whether --enable-stage1-languages was given.
6443if test "${enable_stage1_languages+set}" = set; then :
6444 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6445 ,no,|,,)
6446 # Set it to something that will have no effect in the loop below
6447 enable_stage1_languages=c ;;
6448 ,yes,)
6449 enable_stage1_languages=`echo $new_enable_languages | \
6450 sed -e "s/^,//" -e "s/,$//" ` ;;
6451 *,all,*)
6452 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6453 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6454 esac
6455
6456 # Add "good" languages from enable_stage1_languages to stage1_languages,
6457 # while "bad" languages go in missing_languages. Leave no duplicates.
6458 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6459 case $potential_languages in
6460 *,$i,*)
6461 case $stage1_languages in
6462 *,$i,*) ;;
6463 *) stage1_languages="$stage1_languages$i," ;;
6464 esac ;;
6465 *)
6466 case $missing_languages in
6467 *,$i,*) ;;
6468 *) missing_languages="$missing_languages$i," ;;
6469 esac ;;
6470 esac
6471 done
81ecdfbb
RW
6472fi
6473
9b134994
PB
6474
6475 # Remove leading/trailing commas that were added for simplicity
6476 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6477 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6478 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6479 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6480
9e07f89d 6481 if test "x$missing_languages" != x; then
d0ac1c44 6482 as_fn_error $? "
27258dd4 6483The following requested languages could not be built: ${missing_languages}
81ecdfbb 6484Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6485 fi
9e07f89d
NN
6486 if test "x$new_enable_languages" != "x$enable_languages"; then
6487 echo The following languages will be built: ${new_enable_languages}
9b134994 6488 enable_languages="$new_enable_languages"
9e07f89d 6489 fi
9b134994 6490
c6b750e1 6491
81ec575a 6492 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6493fi
6494
a6df5a19
PB
6495# Handle --disable-<component> generically.
6496for dir in $configdirs $build_configdirs $target_configdirs ; do
6497 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6498 varname=`echo $dirname | sed -e s/+/_/g`
6499 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6500 noconfigdirs="$noconfigdirs $dir"
6501 fi
6502done
6503
4f0ef2d8 6504# Check for Boehm's garbage collector
81ecdfbb
RW
6505# Check whether --enable-objc-gc was given.
6506if test "${enable_objc_gc+set}" = set; then :
05a13254 6507 enableval=$enable_objc_gc;
81ecdfbb
RW
6508fi
6509
4f0ef2d8 6510
05a13254
NC
6511# Check whether --with-target-bdw-gc was given.
6512if test "${with_target_bdw_gc+set}" = set; then :
6513 withval=$with_target_bdw_gc;
6514fi
6515
6516
6517# Check whether --with-target-bdw-gc-include was given.
6518if test "${with_target_bdw_gc_include+set}" = set; then :
6519 withval=$with_target_bdw_gc_include;
6520fi
6521
6522
6523# Check whether --with-target-bdw-gc-lib was given.
6524if test "${with_target_bdw_gc_lib+set}" = set; then :
6525 withval=$with_target_bdw_gc_lib;
6526fi
6527
6528
6529case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6531$as_echo_n "checking for bdw garbage collector... " >&6; }
6532 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6534$as_echo "using bdw-gc in default locations" >&6; }
6535 else
6536 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 6537 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 6538 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 6539 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
6540 else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6542$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6543 fi
05a13254 6544 fi
4f0ef2d8
CD
6545esac
6546
bf41f30d 6547# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6548case ,${enable_languages}, in
1b6c0831 6549 *,c++,*)
bf41f30d 6550 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
6551 case "${noconfigdirs}" in
6552 *target-libstdc++-v3*)
bf41f30d 6553 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
6554 ;;
6555 *) ;;
6556 esac
6557 ;;
7ec59b9e 6558 *)
bf41f30d 6559 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6560 ;;
6561esac
6562
caeba88f
AL
6563# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6564# $build_configdirs and $target_configdirs.
9e07f89d
NN
6565# If we have the source for $noconfigdirs entries, add them to $notsupp.
6566
6567notsupp=""
6568for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6569 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6570 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6571 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6572 if test -r $srcdir/$dirname/configure ; then
6573 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6574 true
6575 else
6576 notsupp="$notsupp $dir"
6577 fi
6578 fi
6579 fi
caeba88f
AL
6580 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6581 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6582 if test -r $srcdir/$dirname/configure ; then
6583 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6584 true
6585 else
6586 notsupp="$notsupp $dir"
6587 fi
6588 fi
6589 fi
9e07f89d
NN
6590 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6591 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6592 if test -r $srcdir/$dirname/configure ; then
6593 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6594 true
6595 else
6596 notsupp="$notsupp $dir"
6597 fi
6598 fi
6599 fi
6600done
6601
9e07f89d
NN
6602# Quietly strip out all directories which aren't configurable in this tree.
6603# This relies on all configurable subdirectories being autoconfiscated, which
6604# is now the case.
6a9cf61e
PB
6605build_configdirs_all="$build_configdirs"
6606build_configdirs=
6607for i in ${build_configdirs_all} ; do
c6b750e1 6608 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6609 if test -f ${srcdir}/$j/configure ; then
6610 build_configdirs="${build_configdirs} $i"
6611 fi
6612done
6613
9e07f89d
NN
6614configdirs_all="$configdirs"
6615configdirs=
6616for i in ${configdirs_all} ; do
6617 if test -f ${srcdir}/$i/configure ; then
6618 configdirs="${configdirs} $i"
6619 fi
6620done
6a9cf61e 6621
9e07f89d
NN
6622target_configdirs_all="$target_configdirs"
6623target_configdirs=
6624for i in ${target_configdirs_all} ; do
c6b750e1 6625 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6626 if test -f ${srcdir}/$j/configure ; then
6627 target_configdirs="${target_configdirs} $i"
6628 fi
6629done
6630
1b6c0831
L
6631# libiberty-linker-plugin is special: it doesn't have its own source directory,
6632# so we have to add it after the preceding checks.
6633if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6634then
6635 case " $configdirs " in
6636 *" libiberty "*)
6637 # If we can build libiberty, we can also build libiberty-linker-plugin.
6638 configdirs="$configdirs libiberty-linker-plugin"
6639 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6640 --with-libiberty=../libiberty-linker-plugin";;
6641 *)
d0ac1c44 6642 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
6643 esac
6644fi
6645
6646# Sometimes we have special requirements for the host libiberty.
6647extra_host_libiberty_configure_flags=
e81d5d05 6648extra_host_zlib_configure_flags=
1b6c0831
L
6649case " $configdirs " in
6650 *" lto-plugin "* | *" libcc1 "*)
6651 # When these are to be built as shared libraries, the same applies to
6652 # libiberty.
6653 extra_host_libiberty_configure_flags=--enable-shared
6654 ;;
e81d5d05
L
6655 *" bfd "*)
6656 # When bfd is to be built as a shared library, the same applies to
6657 # zlib.
6658 if test "$enable_shared" = "yes"; then
6659 extra_host_zlib_configure_flags=--enable-host-shared
6660 fi
6661 ;;
1b6c0831
L
6662esac
6663
6664
e81d5d05 6665
9e07f89d
NN
6666# Produce a warning message for the subdirs we can't configure.
6667# This isn't especially interesting in the Cygnus tree, but in the individual
6668# FSF releases, it's important to let people know when their machine isn't
6669# supported by the one or two programs in a package.
6670
6671if test -n "${notsupp}" && test -z "${norecursion}" ; then
6672 # If $appdirs is non-empty, at least one of those directories must still
6673 # be configured, or we error out. (E.g., if the gas release supports a
6674 # specified target in some subdirs but not the gas subdir, we shouldn't
6675 # pretend that all is well.)
6676 if test -n "$appdirs" ; then
6677 for dir in $appdirs ; do
6678 if test -r $dir/Makefile.in ; then
6679 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6680 appdirs=""
6681 break
6682 fi
6a9cf61e 6683 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6684 appdirs=""
6685 break
6686 fi
6687 fi
6688 done
6689 if test -n "$appdirs" ; then
6690 echo "*** This configuration is not supported by this package." 1>&2
6691 exit 1
6692 fi
6693 fi
6694 # Okay, some application will build, or we don't care to check. Still
6695 # notify of subdirs not getting built.
6696 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6697 echo " ${notsupp}" 1>&2
6698 echo " (Any other directories should still work fine.)" 1>&2
6699fi
6700
6701case "$host" in
6702 *msdosdjgpp*)
6703 enable_gdbtk=no ;;
6704esac
6705
18f6b6ee
PB
6706# To find our prefix, in gcc_cv_tool_prefix.
6707
6708# The user is always right.
6709if test "${PATH_SEPARATOR+set}" != set; then
6710 echo "#! /bin/sh" >conf$$.sh
6711 echo "exit 0" >>conf$$.sh
6712 chmod +x conf$$.sh
6713 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6714 PATH_SEPARATOR=';'
6715 else
6716 PATH_SEPARATOR=:
6717 fi
6718 rm -f conf$$.sh
6719fi
6720
6721
bf41f30d
NC
6722 get_gcc_base_ver="cat"
6723
6724# Check whether --with-gcc-major-version-only was given.
6725if test "${with_gcc_major_version_only+set}" = set; then :
6726 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 6727 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
6728 fi
6729
6730fi
6731
6732
6733
6734
6735
18f6b6ee
PB
6736
6737if test "x$exec_prefix" = xNONE; then
6738 if test "x$prefix" = xNONE; then
6739 gcc_cv_tool_prefix=$ac_default_prefix
6740 else
6741 gcc_cv_tool_prefix=$prefix
6742 fi
6743else
6744 gcc_cv_tool_prefix=$exec_prefix
6745fi
6746
6747# If there is no compiler in the tree, use the PATH only. In any
6748# case, if there is no compiler in the tree nobody should use
6749# AS_FOR_TARGET and LD_FOR_TARGET.
6750if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
6751 if test x$with_gcc_major_version_only = xyes ; then
6752 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6753 else
6754 gcc_version=`cat $srcdir/gcc/BASE-VER`
6755 fi
18f6b6ee
PB
6756 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6757 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6758 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6759 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6760 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6761 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6762else
6763 gcc_cv_tool_dirs=
6764fi
6765
6766if test x$build = x$target && test -n "$md_exec_prefix"; then
6767 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6768fi
6769
6770
6771
9e07f89d
NN
6772copy_dirs=
6773
c6b750e1 6774
81ecdfbb
RW
6775# Check whether --with-build-sysroot was given.
6776if test "${with_build_sysroot+set}" = set; then :
6777 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6778 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6779 fi
6780else
6781 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6782fi
a19b6204
MM
6783
6784
8a6ee3ab 6785
81ecdfbb
RW
6786
6787# Check whether --with-debug-prefix-map was given.
6788if test "${with_debug_prefix_map+set}" = set; then :
6789 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6790 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6791 for debug_map in $withval; do
6792 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6793 done
6794 fi
6795else
6796 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6797fi
6798
8a6ee3ab
JM
6799
6800
7f6ef0c0
PB
6801# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6802# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6803# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6804# We want to ensure that TARGET libraries (which we know are built with
6805# gcc) are built with "-O2 -g", so include those options when setting
6806# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6807if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6808 if test "x${is_cross_compiler}" = xyes; then
6809 CFLAGS_FOR_TARGET="-g -O2"
6810 else
6811 CFLAGS_FOR_TARGET=$CFLAGS
6812 case " $CFLAGS " in
6813 *" -O2 "*) ;;
6814 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6815 esac
6816 case " $CFLAGS " in
6817 *" -g "* | *" -g3 "*) ;;
6818 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6819 esac
6820 fi
7f6ef0c0
PB
6821fi
6822
6823
6824if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6825 if test "x${is_cross_compiler}" = xyes; then
6826 CXXFLAGS_FOR_TARGET="-g -O2"
6827 else
6828 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6829 case " $CXXFLAGS " in
6830 *" -O2 "*) ;;
6831 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6832 esac
6833 case " $CXXFLAGS " in
6834 *" -g "* | *" -g3 "*) ;;
6835 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6836 esac
6837 fi
7f6ef0c0
PB
6838fi
6839
6840
91c1f14c
DK
6841
6842
9e07f89d
NN
6843# Handle --with-headers=XXX. If the value is not "yes", the contents of
6844# the named directory are copied to $(tooldir)/sys-include.
6845if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6846 if test x${is_cross_compiler} = xno ; then
6847 echo 1>&2 '***' --with-headers is only supported when cross compiling
6848 exit 1
6849 fi
6850 if test x"${with_headers}" != xyes ; then
18f6b6ee 6851 x=${gcc_cv_tool_prefix}
c6b750e1 6852 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6853 fi
6854fi
6855
6856# Handle --with-libs=XXX. If the value is not "yes", the contents of
6857# the name directories are copied to $(tooldir)/lib. Multiple directories
6858# are permitted.
6859if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6860 if test x${is_cross_compiler} = xno ; then
6861 echo 1>&2 '***' --with-libs is only supported when cross compiling
6862 exit 1
6863 fi
6864 if test x"${with_libs}" != xyes ; then
6865 # Copy the libraries in reverse order, so that files in the first named
6866 # library override files in subsequent libraries.
18f6b6ee 6867 x=${gcc_cv_tool_prefix}
9e07f89d 6868 for l in ${with_libs}; do
c6b750e1 6869 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6870 done
6871 fi
6872fi
6873
700d40ca 6874# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6875#
6876# This is done by determining whether or not the appropriate directory
6877# is available, and by checking whether or not specific configurations
6878# have requested that this magic not happen.
c6b750e1
DJ
6879#
6880# The command line options always override the explicit settings in
136bb21f 6881# configure.ac, and the settings in configure.ac override this magic.
2429c060 6882#
c6b750e1 6883# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6884# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6885# --without-gnu-ld options for the configure script. Similarly, if
6886# the default is to use the included zlib and you don't want to do that,
6887# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6888
6889if test x${use_gnu_as} = x &&
6890 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6891 with_gnu_as=yes
6892 extra_host_args="$extra_host_args --with-gnu-as"
6893fi
6894
6895if test x${use_gnu_ld} = x &&
93f9b408 6896 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6897 with_gnu_ld=yes
6898 extra_host_args="$extra_host_args --with-gnu-ld"
6899fi
6900
700d40ca
ILT
6901if test x${use_included_zlib} = x &&
6902 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6903 :
6904else
6905 with_system_zlib=yes
6906 extra_host_args="$extra_host_args --with-system-zlib"
6907fi
6908
2429c060
PB
6909# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6910# can detect this case.
6911
6912if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6913 with_newlib=yes
6914 extra_host_args="$extra_host_args --with-newlib"
6915fi
6916
9e07f89d
NN
6917# Handle ${copy_dirs}
6918set fnord ${copy_dirs}
6919shift
6920while test $# != 0 ; do
6921 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6922 :
6923 else
6924 echo Copying $1 to $2
6925
6926 # Use the install script to create the directory and all required
6927 # parent directories.
6928 if test -d $2 ; then
6929 :
6930 else
6931 echo >config.temp
6932 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6933 fi
6934
6935 # Copy the directory, assuming we have tar.
6936 # FIXME: Should we use B in the second tar? Not all systems support it.
6937 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6938
6939 # It is the responsibility of the user to correctly adjust all
6940 # symlinks. If somebody can figure out how to handle them correctly
6941 # here, feel free to add the code.
6942
6943 echo $1 > $2/COPIED
6944 fi
6945 shift; shift
6946done
6947
2429c060
PB
6948# Determine a target-dependent exec_prefix that the installed
6949# gcc will search in. Keep this list sorted by triplet, with
6950# the *-*-osname triplets last.
6951md_exec_prefix=
6952case "${target}" in
521ec477 6953 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6954 md_exec_prefix=/dev/env/DJDIR/bin
6955 ;;
2429c060 6956 *-*-hpux* | \
2429c060 6957 *-*-nto-qnx* | \
1f111696 6958 *-*-solaris2*)
2429c060
PB
6959 md_exec_prefix=/usr/ccs/bin
6960 ;;
6961esac
6962
a0da8069
NN
6963extra_arflags_for_target=
6964extra_nmflags_for_target=
6965extra_ranlibflags_for_target=
6966target_makefile_frag=/dev/null
6967case "${target}" in
77d7106f
AM
6968 spu-*-*)
6969 target_makefile_frag="config/mt-spu"
6970 ;;
a9d58c06 6971 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
6972 target_makefile_frag="config/mt-sde"
6973 ;;
f3b1e08e
RS
6974 mipsisa*-*-elfoabi*)
6975 target_makefile_frag="config/mt-mips-elfoabi"
6976 ;;
e7c8859c
RS
6977 mips*-*-*linux* | mips*-*-gnu*)
6978 target_makefile_frag="config/mt-mips-gnu"
6979 ;;
d9e042ac
SL
6980 nios2-*-elf*)
6981 target_makefile_frag="config/mt-nios2-elf"
6982 ;;
bf41f30d
NC
6983 *-*-linux-android*)
6984 target_makefile_frag="config/mt-android"
6985 ;;
29383458 6986 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6987 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6988 ;;
6989 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6990 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6991 # commands to handle both 32-bit and 64-bit objects. These flags are
6992 # harmless if we're using GNU nm or ar.
6993 extra_arflags_for_target=" -X32_64"
6994 extra_nmflags_for_target=" -B -X32_64"
6995 ;;
a0da8069
NN
6996esac
6997
6998alphaieee_frag=/dev/null
6999case $target in
7000 alpha*-*-*)
7001 # This just makes sure to use the -mieee option to build target libs.
7002 # This should probably be set individually by each library.
7003 alphaieee_frag="config/mt-alphaieee"
7004 ;;
7005esac
7006
7007# If --enable-target-optspace always use -Os instead of -O2 to build
7008# the target libraries, similarly if it is not specified, use -Os
7009# on selected platforms.
7010ospace_frag=/dev/null
7011case "${enable_target_optspace}:${target}" in
7012 yes:*)
7013 ospace_frag="config/mt-ospace"
7014 ;;
7015 :d30v-*)
7016 ospace_frag="config/mt-d30v"
7017 ;;
16beab3d 7018 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
7019 ospace_frag="config/mt-ospace"
7020 ;;
7021 no:* | :*)
7022 ;;
7023 *)
7024 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7025 ;;
7026esac
7027
a0da8069
NN
7028# Some systems (e.g., one of the i386-aix systems the gas testers are
7029# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7030tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7031build_tooldir=${tooldir}
7032
a0da8069
NN
7033# Create a .gdbinit file which runs the one in srcdir
7034# and tells GDB to look there for source files.
7035
7036if test -r ${srcdir}/.gdbinit ; then
7037 case ${srcdir} in
7038 .) ;;
7039 *) cat > ./.gdbinit <<EOF
7040# ${NO_EDIT}
7041dir ${srcdir}
7042dir .
7043source ${srcdir}/.gdbinit
7044EOF
7045 ;;
7046 esac
7047fi
7048
a0da8069
NN
7049# Make sure that the compiler is able to generate an executable. If it
7050# can't, we are probably in trouble. We don't care whether we can run the
7051# executable--we might be using a cross compiler--we only care whether it
7052# can be created. At this point the main configure script has set CC.
7053we_are_ok=no
7054echo "int main () { return 0; }" > conftest.c
7055${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7056if test $? = 0 ; then
7057 if test -s conftest || test -s conftest.exe ; then
7058 we_are_ok=yes
7059 fi
c6b750e1 7060fi
a0da8069
NN
7061case $we_are_ok in
7062 no)
7063 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7064 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7065 rm -f conftest*
7066 exit 1
7067 ;;
7068esac
7069rm -f conftest*
7070
3bbd2f8f 7071# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7072case "${host}" in
7073 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7074 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7075 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7076 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7077esac
7078
3bbd2f8f 7079# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7080# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7081# built executables to PATH.
3bbd2f8f
AL
7082if test "$RPATH_ENVVAR" = PATH; then
7083 GCC_SHLIB_SUBDIR=/shlib
7084else
7085 GCC_SHLIB_SUBDIR=
7086fi
7087
730af8ee 7088# Adjust the toplevel makefile according to whether bootstrap was selected.
7089case $enable_bootstrap in
7090 yes)
7091 bootstrap_suffix=bootstrap
7092 BUILD_CONFIG=bootstrap-debug
7093 ;;
7094 no)
7095 bootstrap_suffix=no-bootstrap
7096 BUILD_CONFIG=
7097 ;;
7098esac
7099
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7101$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7102
7103
7104# Check whether --with-build-config was given.
7105if test "${with_build_config+set}" = set; then :
7106 withval=$with_build_config; case $with_build_config in
7107 yes) with_build_config= ;;
7108 no) with_build_config= BUILD_CONFIG= ;;
7109 esac
7110fi
7111
7112
7113if test "x${with_build_config}" != x; then
7114 BUILD_CONFIG=$with_build_config
7115else
7116 case $BUILD_CONFIG in
7117 bootstrap-debug)
7118 if echo "int f (void) { return 0; }" > conftest.c &&
7119 ${CC} -c conftest.c &&
7120 mv conftest.o conftest.o.g0 &&
7121 ${CC} -c -g conftest.c &&
7122 mv conftest.o conftest.o.g &&
7123 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7124 :
7125 else
7126 BUILD_CONFIG=
7127 fi
7128 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7129 ;;
7130 esac
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7133$as_echo "$BUILD_CONFIG" >&6; }
7134
7135
7136# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7138$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7139# Check whether --enable-vtable-verify was given.
7140if test "${enable_vtable_verify+set}" = set; then :
7141 enableval=$enable_vtable_verify; case "$enableval" in
7142 yes) enable_vtable_verify=yes ;;
7143 no) enable_vtable_verify=no ;;
7144 *) enable_vtable_verify=no;;
7145 esac
7146else
7147 enable_vtable_verify=no
7148fi
7149
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7151$as_echo "$enable_vtable_verify" >&6; }
7152
a0da8069
NN
7153# Record target_configdirs and the configure arguments for target and
7154# build configuration in Makefile.
7155target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7156build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7157bootstrap_fixincludes=no
a0da8069 7158
2aa2364a
JR
7159# If we are building libgomp, bootstrap it.
7160if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7161 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7162fi
7163
730af8ee 7164# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7165# or bootstrap-ubsan, bootstrap it.
7166if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7167 case "$BUILD_CONFIG" in
7168 *bootstrap-asan* | *bootstrap-ubsan* )
7169 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7170 bootstrap_fixincludes=yes
730af8ee 7171 ;;
7172 esac
5eb08693
L
7173fi
7174
730af8ee 7175# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7176if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7177 test "$enable_vtable_verify" != no; then
95e43135
JBG
7178 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7179fi
7180
a0da8069
NN
7181# Determine whether gdb needs tk/tcl or not.
7182# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7183# and in that case we want gdb to be built without tk. Ugh!
7184# In fact I believe gdb is the *only* package directly dependent on tk,
7185# so we should be able to put the 'maybe's in unconditionally and
7186# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7187# 100% sure that that's safe though.
c180f501 7188
675c6968 7189gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7190case "$enable_gdbtk" in
7191 no)
7192 GDB_TK="" ;;
c180f501
AC
7193 yes)
7194 GDB_TK="${gdb_tk}" ;;
a0da8069 7195 *)
c180f501
AC
7196 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7197 # distro. Eventually someone will fix this and move Insight, nee
7198 # gdbtk to a separate directory.
7199 if test -d ${srcdir}/gdb/gdbtk ; then
7200 GDB_TK="${gdb_tk}"
7201 else
7202 GDB_TK=""
7203 fi
7204 ;;
a0da8069 7205esac
907be67c
DJ
7206CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7207INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7208
6bd3dfaa 7209# Strip out unwanted targets.
dd12c3a8
NN
7210
7211# While at that, we remove Makefiles if we were started for recursive
7212# configuration, so that the top-level Makefile reconfigures them,
7213# like we used to do when configure itself was recursive.
dd12c3a8 7214
06a51eac
RW
7215# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7216# but now we're fixing up the Makefile ourselves with the additional
7217# commands passed to AC_CONFIG_FILES. Use separate variables
7218# extrasub-{build,host,target} not because there is any reason to split
7219# the substitutions up that way, but only to remain below the limit of
7220# 99 commands in a script, for HP-UX sed.
4119873a
AO
7221
7222# Do not nest @if/@endif or @unless/@endunless pairs, because
7223# configure will not warn you at all.
dd12c3a8 7224
16b1ad29
RW
7225case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7226 yes:yes:*\ gold\ *:*,c++,*) ;;
7227 yes:yes:*\ gold\ *:*)
d0ac1c44 7228 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
7229 ;;
7230esac
7231
06a51eac 7232extrasub_build=
6a9cf61e 7233for module in ${build_configdirs} ; do
498d4a71
CF
7234 if test -z "${no_recursion}" \
7235 && test -f ${build_subdir}/${module}/Makefile; then
7236 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7237 rm -f ${build_subdir}/${module}/Makefile
7238 fi
06a51eac 7239 extrasub_build="$extrasub_build
498d4a71
CF
7240/^@if build-$module\$/d
7241/^@endif build-$module\$/d
4119873a 7242/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 7243/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
7244/^@endif build-$module-$bootstrap_suffix\$/d
7245/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 7246done
06a51eac 7247extrasub_host=
498d4a71 7248for module in ${configdirs} ; do
80911fe1 7249 if test -z "${no_recursion}"; then
8cf39b1b 7250 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7251 if test -f ${file}; then
7252 echo 1>&2 "*** removing ${file} to force reconfigure"
7253 rm -f ${file}
7254 fi
7255 done
498d4a71 7256 fi
201f096f 7257 case ${module},${bootstrap_fixincludes} in
7258 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7259 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7260 esac
06a51eac 7261 extrasub_host="$extrasub_host
498d4a71
CF
7262/^@if $module\$/d
7263/^@endif $module\$/d
4119873a 7264/^@unless $module\$/,/^@endunless $module\$/d
201f096f 7265/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
7266/^@endif $module-$host_bootstrap_suffix\$/d
7267/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 7268done
06a51eac 7269extrasub_target=
498d4a71
CF
7270for module in ${target_configdirs} ; do
7271 if test -z "${no_recursion}" \
7272 && test -f ${target_subdir}/${module}/Makefile; then
7273 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7274 rm -f ${target_subdir}/${module}/Makefile
7275 fi
e8a5fa9c
RW
7276
7277 # We only bootstrap target libraries listed in bootstrap_target_libs.
7278 case $bootstrap_target_libs in
7279 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7280 *) target_bootstrap_suffix=no-bootstrap ;;
7281 esac
7282
06a51eac 7283 extrasub_target="$extrasub_target
498d4a71
CF
7284/^@if target-$module\$/d
7285/^@endif target-$module\$/d
4119873a 7286/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 7287/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
7288/^@endif target-$module-$target_bootstrap_suffix\$/d
7289/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7290done
7291
06a51eac
RW
7292# Do the final fixup along with target modules.
7293extrasub_target="$extrasub_target
4119873a
AO
7294/^@if /,/^@endif /d
7295/^@unless /d
7296/^@endunless /d"
a0da8069
NN
7297
7298# Create the serialization dependencies. This uses a temporary file.
7299
81ecdfbb
RW
7300# Check whether --enable-serial-configure was given.
7301if test "${enable_serial_configure+set}" = set; then :
7302 enableval=$enable_serial_configure;
7303fi
e6bfb94a
AO
7304
7305
1047cb91
DD
7306case ${enable_serial_configure} in
7307 yes)
7308 enable_serial_build_configure=yes
7309 enable_serial_host_configure=yes
7310 enable_serial_target_configure=yes
7311 ;;
7312esac
7313
a0da8069
NN
7314# These force 'configure's to be done one at a time, to avoid problems
7315# with contention over a shared config.cache.
7316rm -f serdep.tmp
e6bfb94a 7317echo '# serdep.tmp' > serdep.tmp
a0da8069 7318olditem=
1047cb91 7319test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7320for item in ${build_configdirs} ; do
7321 case ${olditem} in
7322 "") ;;
e6bfb94a 7323 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7324 esac
7325 olditem=${item}
7326done
7327olditem=
1047cb91 7328test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7329for item in ${configdirs} ; do
7330 case ${olditem} in
7331 "") ;;
e6bfb94a 7332 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7333 esac
7334 olditem=${item}
7335done
7336olditem=
1047cb91 7337test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7338for item in ${target_configdirs} ; do
7339 case ${olditem} in
7340 "") ;;
e6bfb94a 7341 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7342 esac
7343 olditem=${item}
7344done
7345serialization_dependencies=serdep.tmp
7346
7347
e6bfb94a 7348# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7349# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7350# might not want to pass down to subconfigures. The exception being
7351# --cache-file=/dev/null, which is used to turn off the use of cache
7352# files altogether, and which should be passed on to subconfigures.
7353# Also strip program-prefix, program-suffix, and program-transform-name,
7354# so that we can pass down a consistent program-transform-name.
c6b750e1 7355baseargs=
65b4571a 7356tbaseargs=
c6b750e1
DJ
7357keep_next=no
7358skip_next=no
7359eval "set -- $ac_configure_args"
18f6b6ee
PB
7360for ac_arg
7361do
c6b750e1
DJ
7362 if test X"$skip_next" = X"yes"; then
7363 skip_next=no
7364 continue
7365 fi
7366 if test X"$keep_next" = X"yes"; then
7367 case $ac_arg in
7368 *\'*)
7369 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7370 esac
7371 baseargs="$baseargs '$ac_arg'"
65b4571a 7372 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7373 keep_next=no
7374 continue
7375 fi
7376
7377 # Handle separated arguments. Based on the logic generated by
7378 # autoconf 2.59.
7379 case $ac_arg in
7380 *=* | --config-cache | -C | -disable-* | --disable-* \
7381 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7382 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7383 | -with-* | --with-* | -without-* | --without-* | --x)
7384 separate_arg=no
7385 ;;
7386 -*)
7387 separate_arg=yes
7388 ;;
7389 *)
7390 separate_arg=no
7391 ;;
7392 esac
7393
65b4571a
AO
7394 skip_targ=no
7395 case $ac_arg in
7396
7397 --with-* | --without-*)
7398 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7399
7400 case $libopt in
7401 *[-_]include)
7402 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7403 ;;
7404 *[-_]lib)
7405 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7406 ;;
7407 *)
7408 lib=$libopt
7409 ;;
7410 esac
7411
7412
7413 case $lib in
1b6c0831 7414 mpc | mpfr | gmp | isl)
65b4571a
AO
7415 # If we're processing --with-$lib, --with-$lib-include or
7416 # --with-$lib-lib, for one of the libs above, and target is
7417 # different from host, don't pass the current argument to any
7418 # target library's configure.
7419 if test x$is_cross_compiler = xyes; then
7420 skip_targ=yes
7421 fi
7422 ;;
7423 esac
7424 ;;
7425 esac
7426
c6b750e1 7427 case "$ac_arg" in
30167e0a
NC
7428 --cache-file=/dev/null | \
7429 -cache-file=/dev/null )
7430 # Handled here to avoid the test to skip args below.
7431 baseargs="$baseargs '$ac_arg'"
65b4571a 7432 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7433 # Assert: $separate_arg should always be no.
7434 keep_next=$separate_arg
7435 ;;
c6b750e1
DJ
7436 --no*)
7437 continue
7438 ;;
7439 --c* | \
7440 --sr* | \
7441 --ho* | \
7442 --bu* | \
7443 --t* | \
7444 --program-* | \
7445 -cache_file* | \
7446 -srcdir* | \
7447 -host* | \
7448 -build* | \
7449 -target* | \
7450 -program-prefix* | \
7451 -program-suffix* | \
7452 -program-transform-name* )
7453 skip_next=$separate_arg
7454 continue
7455 ;;
7456 -*)
7457 # An option. Add it.
7458 case $ac_arg in
7459 *\'*)
7460 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7461 esac
7462 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7463 if test X"$skip_targ" = Xno; then
7464 tbaseargs="$tbaseargs '$ac_arg'"
7465 fi
c6b750e1
DJ
7466 keep_next=$separate_arg
7467 ;;
7468 *)
7469 # Either a variable assignment, or a nonopt (triplet). Don't
7470 # pass it down; let the Makefile handle this.
7471 continue
7472 ;;
7473 esac
7474done
7475# Remove the initial space we just introduced and, as these will be
7476# expanded by make, quote '$'.
7477baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7478
f27d4f92
DJ
7479# Add in --program-transform-name, after --program-prefix and
7480# --program-suffix have been applied to it. Autoconf has already
7481# doubled dollar signs and backslashes in program_transform_name; we want
7482# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7483# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7484# Also, because we want to override the logic in subdir configure scripts to
7485# choose program_transform_name, replace any s,x,x, with s,y,y,.
7486sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7487${program_transform_name}
7488EOF_SED
7489gcc_transform_name=`cat conftestsed.out`
7490rm -f conftestsed.out
7491baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7492tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7493if test "$silent" = yes; then
7494 baseargs="$baseargs --silent"
65b4571a 7495 tbaseargs="$tbaseargs --silent"
2444379b 7496fi
34a0f3cf 7497baseargs="$baseargs --disable-option-checking"
65b4571a 7498tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7499
4074d5f2
RW
7500# Record and document user additions to sub configure arguments.
7501
7502
7503
7504
a0da8069
NN
7505# For the build-side libraries, we just need to pretend we're native,
7506# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7507# desired. We can't even use the same cache file for all build-side
7508# libraries, as they're compiled differently; some with C, some with
7509# C++ or with different feature-enabling options.
7510build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7511
7512# For host modules, accept cache file option, or specification as blank.
7513case "${cache_file}" in
7514"") # empty
7515 cache_file_option="" ;;
7516/* | [A-Za-z]:[\\/]* ) # absolute path
7517 cache_file_option="--cache-file=${cache_file}" ;;
7518*) # relative path
7519 cache_file_option="--cache-file=../${cache_file}" ;;
7520esac
7521
82252c06
NN
7522# Host dirs don't like to share a cache file either, horribly enough.
7523# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7524host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7525
65b4571a 7526target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7527
7528# Passing a --with-cross-host argument lets the target libraries know
7529# whether they are being built with a cross-compiler or being built
7530# native. However, it would be better to use other mechanisms to make the
7531# sorts of decisions they want to make on this basis. Please consider
7532# this option to be deprecated. FIXME.
7533if test x${is_cross_compiler} = xyes ; then
c6b750e1 7534 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7535fi
7536
afc0578d 7537# Special user-friendly check for native x86_64-linux build, if
7538# multilib is not explicitly enabled.
7539case "$target:$have_compiler:$host:$target:$enable_multilib" in
7540 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7541 # Make sure we have a development environment that handles 32-bit
afc0578d 7542 dev64=no
7543 echo "int main () { return 0; }" > conftest.c
7544 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7545 if test $? = 0 ; then
7546 if test -s conftest || test -s conftest.exe ; then
7547 dev64=yes
7548 fi
7549 fi
7550 rm -f conftest*
7551 if test x${dev64} != xyes ; then
d0ac1c44 7552 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
afc0578d 7553 fi
7554 ;;
7555esac
7556
938d2b74
RW
7557# Default to --enable-multilib.
7558if test x${enable_multilib} = x ; then
a0da8069 7559 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7560fi
a0da8069
NN
7561
7562# Pass --with-newlib if appropriate. Note that target_configdirs has
7563# changed from the earlier setting of with_newlib.
7564if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7565 target_configargs="--with-newlib ${target_configargs}"
7566fi
7567
95036d20
NN
7568# Different target subdirs use different values of certain variables
7569# (notably CXX). Worse, multilibs use *lots* of different values.
7570# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7571# it doesn't automatically accept command-line overrides of them.
7572# This means it's not safe for target subdirs to share a cache file,
7573# which is disgusting, but there you have it. Hopefully this can be
7574# fixed in future. It's still worthwhile to use a cache file for each
7575# directory. I think.
7576
ae380b45
MS
7577# Pass the appropriate --build, --host, --target and --cache-file arguments.
7578# We need to pass --target, as newer autoconf's requires consistency
7579# for target_alias and gcc doesn't manage it consistently.
4b900473 7580target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7581
a0da8069
NN
7582FLAGS_FOR_TARGET=
7583case " $target_configdirs " in
7584 *" newlib "*)
7585 case " $target_configargs " in
7586 *" --with-newlib "*)
7587 case "$target" in
1f53ca9a 7588 *-cygwin*)
6d94c122 7589 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7590 ;;
a0da8069
NN
7591 esac
7592
7593 # If we're not building GCC, don't discard standard headers.
7594 if test -d ${srcdir}/gcc; then
7595 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7596
7597 if test "${build}" != "${host}"; then
7598 # On Canadian crosses, CC_FOR_TARGET will have already been set
7599 # by `configure', so we won't have an opportunity to add -Bgcc/
7600 # to it. This is right: we don't want to search that directory
7601 # for binaries, but we want the header files in there, so add
7602 # them explicitly.
e552509b 7603 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7604
7605 # Someone might think of using the pre-installed headers on
7606 # Canadian crosses, in case the installed compiler is not fully
7607 # compatible with the compiler being built. In this case, it
7608 # would be better to flag an error than risking having
7609 # incompatible object files being constructed. We can't
7610 # guarantee that an error will be flagged, but let's hope the
7611 # compiler will do it, when presented with incompatible header
7612 # files.
7613 fi
7614 fi
7615
7616 case "${target}-${is_cross_compiler}" in
ec11bdc6 7617 i[3456789]86-*-linux*-no)
a0da8069
NN
7618 # Here host == target, so we don't need to build gcc,
7619 # so we don't want to discard standard headers.
7620 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7621 ;;
7622 *)
7623 # If we're building newlib, use its generic headers last, but search
7624 # for any libc-related directories first (so make it the last -B
7625 # switch).
7626 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7627
7628 # If we're building libgloss, find the startup file, simulator library
7629 # and linker script.
7630 case " $target_configdirs " in
7631 *" libgloss "*)
7632 # Look for startup file, simulator library and maybe linker script.
7633 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7634 # Look for libnosys.a in case the target needs it.
7635 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7636 # Most targets have the linker script in the source directory.
7637 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7638 ;;
7639 esac
a0da8069
NN
7640 ;;
7641 esac
7642 ;;
7643 esac
7644 ;;
7645esac
1f53ca9a 7646
45055374 7647case "$target" in
1f53ca9a
AO
7648 x86_64-*mingw* | *-w64-mingw*)
7649 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7650 # however, use a symlink named 'mingw' in ${prefix} .
7651 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7652 ;;
7653 *-mingw*)
7654 # MinGW can't be handled as Cygwin above since it does not use newlib.
7655 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'
7656 ;;
45055374 7657esac
a0da8069 7658
5fbad20a
DD
7659# Allow the user to override the flags for
7660# our build compiler if desired.
c66487f8
NC
7661if test x"${build}" = x"${host}" ; then
7662 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7663 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7664 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7665fi
5fbad20a 7666
a0da8069
NN
7667# On Canadian crosses, we'll be searching the right directories for
7668# the previously-installed cross compiler, so don't bother to add
7669# flags for directories within the install tree of the compiler
7670# being built; programs in there won't even run.
7671if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7672 # Search for pre-installed headers if nothing else fits.
bba45b8b 7673 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
7674fi
7675
7676if test "x${use_gnu_ld}" = x &&
7677 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7678 # Arrange for us to find uninstalled linker scripts.
b00612cc 7679 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7680fi
7681
a481dbb7
DD
7682# Search for other target-specific linker scripts and such.
7683case "${target}" in
4e206d7e
DB
7684 mep*)
7685 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7686 ;;
7687esac
7688
a0da8069 7689# Makefile fragments.
3e707e94
PB
7690for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7691do
7692 eval fragval=\$$frag
7693 if test $fragval != /dev/null; then
7694 eval $frag=${srcdir}/$fragval
7695 fi
7696done
a0da8069
NN
7697
7698
7699
7700
7701
7702# Miscellanea: directories, flags, etc.
7703
7704
7705
7706
7707
7708
7709
3bbd2f8f 7710
6a9cf61e 7711# Build module lists & subconfigure args.
a0da8069
NN
7712
7713
7714
be01d343
PB
7715# Host module lists & subconfigure args.
7716
7717
7718
911e63d0 7719
be01d343
PB
7720# Target module lists & subconfigure args.
7721
7722
7723
7724# Build tools.
7725
7726
7727
1576798e
PB
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
be01d343
PB
7741# Generate default definitions for YACC, M4, LEX and other programs that run
7742# on the build machine. These are used if the Makefile can't locate these
7743# programs in objdir.
7744MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7745
7746for ac_prog in 'bison -y' byacc yacc
7747do
c6b750e1 7748 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7749set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7752if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 7753 $as_echo_n "(cached) " >&6
be01d343
PB
7754else
7755 if test -n "$YACC"; then
7756 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7757else
c6b750e1
DJ
7758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759for as_dir in $PATH
7760do
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
81ecdfbb 7763 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7765 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7767 break 2
7768 fi
7769done
81ecdfbb
RW
7770 done
7771IFS=$as_save_IFS
c6b750e1 7772
be01d343
PB
7773fi
7774fi
c6b750e1 7775YACC=$ac_cv_prog_YACC
be01d343 7776if test -n "$YACC"; then
81ecdfbb
RW
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7778$as_echo "$YACC" >&6; }
be01d343 7779else
81ecdfbb
RW
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781$as_echo "no" >&6; }
be01d343
PB
7782fi
7783
81ecdfbb 7784
c6b750e1 7785 test -n "$YACC" && break
be01d343
PB
7786done
7787test -n "$YACC" || YACC="$MISSING bison -y"
7788
7789case " $build_configdirs " in
7790 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7791esac
7792
7793for ac_prog in bison
7794do
c6b750e1 7795 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7796set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7799if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 7800 $as_echo_n "(cached) " >&6
be01d343
PB
7801else
7802 if test -n "$BISON"; then
7803 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7804else
c6b750e1
DJ
7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
81ecdfbb 7810 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7812 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7814 break 2
7815 fi
7816done
81ecdfbb
RW
7817 done
7818IFS=$as_save_IFS
c6b750e1 7819
be01d343
PB
7820fi
7821fi
c6b750e1 7822BISON=$ac_cv_prog_BISON
be01d343 7823if test -n "$BISON"; then
81ecdfbb
RW
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7825$as_echo "$BISON" >&6; }
be01d343 7826else
81ecdfbb
RW
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828$as_echo "no" >&6; }
be01d343
PB
7829fi
7830
81ecdfbb 7831
c6b750e1 7832 test -n "$BISON" && break
be01d343
PB
7833done
7834test -n "$BISON" || BISON="$MISSING bison"
7835
7836case " $build_configdirs " in
7837 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7838esac
7839
7840for ac_prog in gm4 gnum4 m4
7841do
c6b750e1 7842 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7843set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7846if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 7847 $as_echo_n "(cached) " >&6
be01d343
PB
7848else
7849 if test -n "$M4"; then
7850 ac_cv_prog_M4="$M4" # Let the user override the test.
7851else
c6b750e1
DJ
7852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853for as_dir in $PATH
7854do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
81ecdfbb 7857 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7859 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7861 break 2
7862 fi
7863done
81ecdfbb
RW
7864 done
7865IFS=$as_save_IFS
c6b750e1 7866
be01d343
PB
7867fi
7868fi
c6b750e1 7869M4=$ac_cv_prog_M4
be01d343 7870if test -n "$M4"; then
81ecdfbb
RW
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7872$as_echo "$M4" >&6; }
be01d343 7873else
81ecdfbb
RW
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875$as_echo "no" >&6; }
be01d343
PB
7876fi
7877
81ecdfbb 7878
c6b750e1 7879 test -n "$M4" && break
be01d343
PB
7880done
7881test -n "$M4" || M4="$MISSING m4"
7882
7883case " $build_configdirs " in
7884 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7885esac
7886
7887for ac_prog in flex lex
7888do
c6b750e1 7889 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7890set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7893if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 7894 $as_echo_n "(cached) " >&6
be01d343
PB
7895else
7896 if test -n "$LEX"; then
7897 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7898else
c6b750e1
DJ
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
81ecdfbb 7904 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7906 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7908 break 2
7909 fi
7910done
81ecdfbb
RW
7911 done
7912IFS=$as_save_IFS
c6b750e1 7913
be01d343
PB
7914fi
7915fi
c6b750e1 7916LEX=$ac_cv_prog_LEX
be01d343 7917if test -n "$LEX"; then
81ecdfbb
RW
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7919$as_echo "$LEX" >&6; }
be01d343 7920else
81ecdfbb
RW
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
be01d343
PB
7923fi
7924
81ecdfbb 7925
c6b750e1 7926 test -n "$LEX" && break
be01d343
PB
7927done
7928test -n "$LEX" || LEX="$MISSING flex"
7929
7930case " $build_configdirs " in
7931 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7932 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7933esac
7934
7935for ac_prog in flex
7936do
c6b750e1 7937 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7938set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7941if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 7942 $as_echo_n "(cached) " >&6
be01d343
PB
7943else
7944 if test -n "$FLEX"; then
7945 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7946else
c6b750e1
DJ
7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
81ecdfbb 7952 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7954 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7956 break 2
7957 fi
7958done
81ecdfbb
RW
7959 done
7960IFS=$as_save_IFS
c6b750e1 7961
be01d343
PB
7962fi
7963fi
c6b750e1 7964FLEX=$ac_cv_prog_FLEX
be01d343 7965if test -n "$FLEX"; then
81ecdfbb
RW
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7967$as_echo "$FLEX" >&6; }
be01d343 7968else
81ecdfbb
RW
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970$as_echo "no" >&6; }
be01d343
PB
7971fi
7972
81ecdfbb 7973
c6b750e1 7974 test -n "$FLEX" && break
be01d343
PB
7975done
7976test -n "$FLEX" || FLEX="$MISSING flex"
7977
7978case " $build_configdirs " in
7979 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7980esac
7981
7982for ac_prog in makeinfo
7983do
c6b750e1 7984 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7985set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7988if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 7989 $as_echo_n "(cached) " >&6
be01d343
PB
7990else
7991 if test -n "$MAKEINFO"; then
7992 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7993else
c6b750e1
DJ
7994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995for as_dir in $PATH
7996do
7997 IFS=$as_save_IFS
7998 test -z "$as_dir" && as_dir=.
81ecdfbb 7999 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8001 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8003 break 2
8004 fi
8005done
81ecdfbb
RW
8006 done
8007IFS=$as_save_IFS
c6b750e1 8008
be01d343
PB
8009fi
8010fi
c6b750e1 8011MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8012if test -n "$MAKEINFO"; then
81ecdfbb
RW
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8014$as_echo "$MAKEINFO" >&6; }
be01d343 8015else
81ecdfbb
RW
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017$as_echo "no" >&6; }
be01d343
PB
8018fi
8019
81ecdfbb 8020
c6b750e1 8021 test -n "$MAKEINFO" && break
be01d343
PB
8022done
8023test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8024
8025case " $build_configdirs " in
8026 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8027 *)
8028
10ad8ef3 8029 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8030 # higher, else we use the "missing" dummy.
8031 if ${MAKEINFO} --version \
10ad8ef3 8032 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8033 :
8034 else
8035 MAKEINFO="$MISSING makeinfo"
8036 fi
8037 ;;
8038
8039esac
a0da8069 8040
be01d343 8041# FIXME: expect and dejagnu may become build tools?
a0da8069 8042
be01d343
PB
8043for ac_prog in expect
8044do
c6b750e1 8045 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8046set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8049if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 8050 $as_echo_n "(cached) " >&6
be01d343
PB
8051else
8052 if test -n "$EXPECT"; then
8053 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8054else
c6b750e1
DJ
8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056for as_dir in $PATH
8057do
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
81ecdfbb 8060 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8062 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8064 break 2
8065 fi
8066done
81ecdfbb
RW
8067 done
8068IFS=$as_save_IFS
c6b750e1 8069
be01d343
PB
8070fi
8071fi
c6b750e1 8072EXPECT=$ac_cv_prog_EXPECT
be01d343 8073if test -n "$EXPECT"; then
81ecdfbb
RW
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8075$as_echo "$EXPECT" >&6; }
be01d343 8076else
81ecdfbb
RW
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078$as_echo "no" >&6; }
be01d343 8079fi
a0da8069 8080
81ecdfbb 8081
c6b750e1 8082 test -n "$EXPECT" && break
be01d343
PB
8083done
8084test -n "$EXPECT" || EXPECT="expect"
a0da8069 8085
be01d343
PB
8086case " $configdirs " in
8087 *" expect "*)
8088 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8089 ;;
8090esac
a0da8069 8091
be01d343
PB
8092for ac_prog in runtest
8093do
c6b750e1 8094 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8095set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8098if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 8099 $as_echo_n "(cached) " >&6
be01d343
PB
8100else
8101 if test -n "$RUNTEST"; then
8102 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8103else
c6b750e1
DJ
8104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105for as_dir in $PATH
8106do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
81ecdfbb 8109 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8111 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8113 break 2
8114 fi
8115done
81ecdfbb
RW
8116 done
8117IFS=$as_save_IFS
c6b750e1 8118
be01d343
PB
8119fi
8120fi
c6b750e1 8121RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8122if test -n "$RUNTEST"; then
81ecdfbb
RW
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8124$as_echo "$RUNTEST" >&6; }
be01d343 8125else
81ecdfbb
RW
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127$as_echo "no" >&6; }
be01d343 8128fi
a0da8069 8129
81ecdfbb 8130
c6b750e1 8131 test -n "$RUNTEST" && break
be01d343
PB
8132done
8133test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8134
be01d343
PB
8135case " $configdirs " in
8136 *" dejagnu "*)
6b89cc21 8137 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8138 ;;
8139esac
a0da8069
NN
8140
8141
a0da8069 8142# Host tools.
859789af
AC
8143ncn_tool_prefix=
8144test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8145ncn_target_tool_prefix=
8146test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8147
9a819804
AO
8148
8149
8150if test -n "$AR"; then
8151 ac_cv_prog_AR=$AR
8152elif test -n "$ac_cv_prog_AR"; then
8153 AR=$ac_cv_prog_AR
8154fi
8155
8156if test -n "$ac_cv_prog_AR"; then
8157 for ncn_progname in ar; do
8158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8159set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8162if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8163 $as_echo_n "(cached) " >&6
9a819804
AO
8164else
8165 if test -n "$AR"; then
8166 ac_cv_prog_AR="$AR" # Let the user override the test.
8167else
8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
81ecdfbb 8173 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8175 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8177 break 2
8178 fi
8179done
81ecdfbb
RW
8180 done
8181IFS=$as_save_IFS
9a819804
AO
8182
8183fi
8184fi
8185AR=$ac_cv_prog_AR
8186if test -n "$AR"; then
81ecdfbb
RW
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8188$as_echo "$AR" >&6; }
9a819804 8189else
81ecdfbb
RW
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191$as_echo "no" >&6; }
9a819804
AO
8192fi
8193
81ecdfbb 8194
9a819804
AO
8195 done
8196fi
8197
8198for ncn_progname in ar; do
05cbd757
PB
8199 if test -n "$ncn_tool_prefix"; then
8200 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8201set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8204if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8205 $as_echo_n "(cached) " >&6
859789af
AC
8206else
8207 if test -n "$AR"; then
8208 ac_cv_prog_AR="$AR" # Let the user override the test.
8209else
c6b750e1
DJ
8210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211for as_dir in $PATH
8212do
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
81ecdfbb 8215 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8217 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8219 break 2
8220 fi
8221done
81ecdfbb
RW
8222 done
8223IFS=$as_save_IFS
c6b750e1 8224
859789af
AC
8225fi
8226fi
c6b750e1 8227AR=$ac_cv_prog_AR
859789af 8228if test -n "$AR"; then
81ecdfbb
RW
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8230$as_echo "$AR" >&6; }
859789af 8231else
81ecdfbb
RW
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233$as_echo "no" >&6; }
859789af
AC
8234fi
8235
81ecdfbb 8236
05cbd757
PB
8237 fi
8238 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8240set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8243if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8244 $as_echo_n "(cached) " >&6
859789af 8245else
05cbd757
PB
8246 if test -n "$AR"; then
8247 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8248else
c6b750e1
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=.
81ecdfbb 8254 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8256 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8258 break 2
8259 fi
8260done
81ecdfbb
RW
8261 done
8262IFS=$as_save_IFS
c6b750e1 8263
859789af
AC
8264fi
8265fi
c6b750e1 8266AR=$ac_cv_prog_AR
05cbd757 8267if test -n "$AR"; then
81ecdfbb
RW
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8269$as_echo "$AR" >&6; }
859789af 8270else
81ecdfbb
RW
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272$as_echo "no" >&6; }
859789af 8273fi
c6b750e1 8274
81ecdfbb 8275
05cbd757
PB
8276 fi
8277 test -n "$ac_cv_prog_AR" && break
8278done
8279
8280if test -z "$ac_cv_prog_AR" ; then
8281 set dummy ar
8282 if test $build = $host ; then
8283 AR="$2"
859789af 8284 else
05cbd757 8285 AR="${ncn_tool_prefix}$2"
859789af 8286 fi
859789af
AC
8287fi
8288
9a819804
AO
8289
8290
8291if test -n "$AS"; then
8292 ac_cv_prog_AS=$AS
8293elif test -n "$ac_cv_prog_AS"; then
8294 AS=$ac_cv_prog_AS
8295fi
8296
8297if test -n "$ac_cv_prog_AS"; then
8298 for ncn_progname in as; do
8299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8300set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8303if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8304 $as_echo_n "(cached) " >&6
9a819804
AO
8305else
8306 if test -n "$AS"; then
8307 ac_cv_prog_AS="$AS" # Let the user override the test.
8308else
8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
81ecdfbb 8314 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8316 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8318 break 2
8319 fi
8320done
81ecdfbb
RW
8321 done
8322IFS=$as_save_IFS
9a819804
AO
8323
8324fi
8325fi
8326AS=$ac_cv_prog_AS
8327if test -n "$AS"; then
81ecdfbb
RW
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8329$as_echo "$AS" >&6; }
9a819804 8330else
81ecdfbb
RW
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332$as_echo "no" >&6; }
9a819804
AO
8333fi
8334
81ecdfbb 8335
9a819804
AO
8336 done
8337fi
8338
8339for ncn_progname in as; do
05cbd757
PB
8340 if test -n "$ncn_tool_prefix"; then
8341 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8342set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8345if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8346 $as_echo_n "(cached) " >&6
859789af
AC
8347else
8348 if test -n "$AS"; then
8349 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8350else
8351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352for as_dir in $PATH
8353do
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
81ecdfbb 8356 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8358 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8360 break 2
8361 fi
8362done
81ecdfbb
RW
8363 done
8364IFS=$as_save_IFS
c6b750e1 8365
859789af
AC
8366fi
8367fi
c6b750e1 8368AS=$ac_cv_prog_AS
859789af 8369if test -n "$AS"; then
81ecdfbb
RW
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8371$as_echo "$AS" >&6; }
859789af 8372else
81ecdfbb
RW
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374$as_echo "no" >&6; }
859789af
AC
8375fi
8376
81ecdfbb 8377
05cbd757
PB
8378 fi
8379 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8381set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8384if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8385 $as_echo_n "(cached) " >&6
859789af 8386else
05cbd757
PB
8387 if test -n "$AS"; then
8388 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8389else
c6b750e1
DJ
8390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391for as_dir in $PATH
8392do
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
81ecdfbb 8395 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8397 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8399 break 2
8400 fi
8401done
81ecdfbb
RW
8402 done
8403IFS=$as_save_IFS
c6b750e1 8404
859789af
AC
8405fi
8406fi
c6b750e1 8407AS=$ac_cv_prog_AS
05cbd757 8408if test -n "$AS"; then
81ecdfbb
RW
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8410$as_echo "$AS" >&6; }
859789af 8411else
81ecdfbb
RW
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413$as_echo "no" >&6; }
859789af 8414fi
c6b750e1 8415
81ecdfbb 8416
05cbd757
PB
8417 fi
8418 test -n "$ac_cv_prog_AS" && break
8419done
8420
8421if test -z "$ac_cv_prog_AS" ; then
8422 set dummy as
8423 if test $build = $host ; then
8424 AS="$2"
859789af 8425 else
05cbd757 8426 AS="${ncn_tool_prefix}$2"
859789af 8427 fi
859789af
AC
8428fi
8429
9a819804
AO
8430
8431
8432if test -n "$DLLTOOL"; then
8433 ac_cv_prog_DLLTOOL=$DLLTOOL
8434elif test -n "$ac_cv_prog_DLLTOOL"; then
8435 DLLTOOL=$ac_cv_prog_DLLTOOL
8436fi
8437
8438if test -n "$ac_cv_prog_DLLTOOL"; then
8439 for ncn_progname in dlltool; do
8440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8441set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8444if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8445 $as_echo_n "(cached) " >&6
9a819804
AO
8446else
8447 if test -n "$DLLTOOL"; then
8448 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8449else
8450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451for as_dir in $PATH
8452do
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
81ecdfbb 8455 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8457 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8459 break 2
8460 fi
8461done
81ecdfbb
RW
8462 done
8463IFS=$as_save_IFS
9a819804
AO
8464
8465fi
8466fi
8467DLLTOOL=$ac_cv_prog_DLLTOOL
8468if test -n "$DLLTOOL"; then
81ecdfbb
RW
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8470$as_echo "$DLLTOOL" >&6; }
9a819804 8471else
81ecdfbb
RW
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473$as_echo "no" >&6; }
9a819804
AO
8474fi
8475
81ecdfbb 8476
9a819804
AO
8477 done
8478fi
8479
8480for ncn_progname in dlltool; do
05cbd757
PB
8481 if test -n "$ncn_tool_prefix"; then
8482 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8483set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8486if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8487 $as_echo_n "(cached) " >&6
859789af
AC
8488else
8489 if test -n "$DLLTOOL"; then
8490 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8491else
c6b750e1
DJ
8492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493for as_dir in $PATH
8494do
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
81ecdfbb 8497 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8499 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8501 break 2
8502 fi
8503done
81ecdfbb
RW
8504 done
8505IFS=$as_save_IFS
c6b750e1 8506
859789af
AC
8507fi
8508fi
c6b750e1 8509DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8510if test -n "$DLLTOOL"; then
81ecdfbb
RW
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8512$as_echo "$DLLTOOL" >&6; }
859789af 8513else
81ecdfbb
RW
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515$as_echo "no" >&6; }
859789af
AC
8516fi
8517
81ecdfbb 8518
05cbd757
PB
8519 fi
8520 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8522set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8525if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8526 $as_echo_n "(cached) " >&6
859789af 8527else
05cbd757
PB
8528 if test -n "$DLLTOOL"; then
8529 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8530else
c6b750e1
DJ
8531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532for as_dir in $PATH
8533do
8534 IFS=$as_save_IFS
8535 test -z "$as_dir" && as_dir=.
81ecdfbb 8536 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8538 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8540 break 2
8541 fi
8542done
81ecdfbb
RW
8543 done
8544IFS=$as_save_IFS
c6b750e1 8545
859789af
AC
8546fi
8547fi
c6b750e1 8548DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8549if test -n "$DLLTOOL"; then
81ecdfbb
RW
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8551$as_echo "$DLLTOOL" >&6; }
859789af 8552else
81ecdfbb
RW
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554$as_echo "no" >&6; }
859789af 8555fi
c6b750e1 8556
81ecdfbb 8557
05cbd757
PB
8558 fi
8559 test -n "$ac_cv_prog_DLLTOOL" && break
8560done
8561
8562if test -z "$ac_cv_prog_DLLTOOL" ; then
8563 set dummy dlltool
8564 if test $build = $host ; then
8565 DLLTOOL="$2"
859789af 8566 else
05cbd757 8567 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8568 fi
859789af
AC
8569fi
8570
9a819804
AO
8571
8572
8573if test -n "$LD"; then
8574 ac_cv_prog_LD=$LD
8575elif test -n "$ac_cv_prog_LD"; then
8576 LD=$ac_cv_prog_LD
8577fi
8578
8579if test -n "$ac_cv_prog_LD"; then
8580 for ncn_progname in ld; do
8581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8582set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8585if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8586 $as_echo_n "(cached) " >&6
9a819804
AO
8587else
8588 if test -n "$LD"; then
8589 ac_cv_prog_LD="$LD" # Let the user override the test.
8590else
8591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592for as_dir in $PATH
8593do
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
81ecdfbb 8596 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8598 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8600 break 2
8601 fi
8602done
81ecdfbb
RW
8603 done
8604IFS=$as_save_IFS
9a819804
AO
8605
8606fi
8607fi
8608LD=$ac_cv_prog_LD
8609if test -n "$LD"; then
81ecdfbb
RW
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8611$as_echo "$LD" >&6; }
9a819804 8612else
81ecdfbb
RW
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614$as_echo "no" >&6; }
9a819804
AO
8615fi
8616
81ecdfbb 8617
9a819804
AO
8618 done
8619fi
8620
8621for ncn_progname in ld; do
05cbd757
PB
8622 if test -n "$ncn_tool_prefix"; then
8623 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8624set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8627if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8628 $as_echo_n "(cached) " >&6
859789af
AC
8629else
8630 if test -n "$LD"; then
8631 ac_cv_prog_LD="$LD" # Let the user override the test.
8632else
c6b750e1
DJ
8633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634for as_dir in $PATH
8635do
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
81ecdfbb 8638 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8640 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8642 break 2
8643 fi
8644done
81ecdfbb
RW
8645 done
8646IFS=$as_save_IFS
c6b750e1 8647
859789af
AC
8648fi
8649fi
c6b750e1 8650LD=$ac_cv_prog_LD
859789af 8651if test -n "$LD"; then
81ecdfbb
RW
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8653$as_echo "$LD" >&6; }
859789af 8654else
81ecdfbb
RW
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656$as_echo "no" >&6; }
859789af
AC
8657fi
8658
81ecdfbb 8659
05cbd757
PB
8660 fi
8661 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8663set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8666if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8667 $as_echo_n "(cached) " >&6
859789af 8668else
05cbd757
PB
8669 if test -n "$LD"; then
8670 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8671else
c6b750e1
DJ
8672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673for as_dir in $PATH
8674do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
81ecdfbb 8677 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8679 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8681 break 2
8682 fi
8683done
81ecdfbb
RW
8684 done
8685IFS=$as_save_IFS
c6b750e1 8686
859789af
AC
8687fi
8688fi
c6b750e1 8689LD=$ac_cv_prog_LD
05cbd757 8690if test -n "$LD"; then
81ecdfbb
RW
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8692$as_echo "$LD" >&6; }
859789af 8693else
81ecdfbb
RW
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695$as_echo "no" >&6; }
859789af 8696fi
c6b750e1 8697
81ecdfbb 8698
05cbd757
PB
8699 fi
8700 test -n "$ac_cv_prog_LD" && break
8701done
8702
8703if test -z "$ac_cv_prog_LD" ; then
8704 set dummy ld
8705 if test $build = $host ; then
8706 LD="$2"
859789af 8707 else
05cbd757 8708 LD="${ncn_tool_prefix}$2"
859789af 8709 fi
859789af
AC
8710fi
8711
9a819804
AO
8712
8713
8714if test -n "$LIPO"; then
8715 ac_cv_prog_LIPO=$LIPO
8716elif test -n "$ac_cv_prog_LIPO"; then
8717 LIPO=$ac_cv_prog_LIPO
8718fi
8719
8720if test -n "$ac_cv_prog_LIPO"; then
8721 for ncn_progname in lipo; do
8722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8723set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8726if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8727 $as_echo_n "(cached) " >&6
9a819804
AO
8728else
8729 if test -n "$LIPO"; then
8730 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8731else
8732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733for as_dir in $PATH
8734do
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
81ecdfbb 8737 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8739 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8741 break 2
8742 fi
8743done
81ecdfbb
RW
8744 done
8745IFS=$as_save_IFS
9a819804
AO
8746
8747fi
8748fi
8749LIPO=$ac_cv_prog_LIPO
8750if test -n "$LIPO"; then
81ecdfbb
RW
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8752$as_echo "$LIPO" >&6; }
9a819804 8753else
81ecdfbb
RW
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755$as_echo "no" >&6; }
9a819804
AO
8756fi
8757
81ecdfbb 8758
9a819804
AO
8759 done
8760fi
8761
8762for ncn_progname in lipo; do
be01d343
PB
8763 if test -n "$ncn_tool_prefix"; then
8764 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8765set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8768if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8769 $as_echo_n "(cached) " >&6
be01d343
PB
8770else
8771 if test -n "$LIPO"; then
8772 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8773else
c6b750e1
DJ
8774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775for as_dir in $PATH
8776do
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
81ecdfbb 8779 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8781 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8783 break 2
8784 fi
8785done
81ecdfbb
RW
8786 done
8787IFS=$as_save_IFS
c6b750e1 8788
be01d343
PB
8789fi
8790fi
c6b750e1 8791LIPO=$ac_cv_prog_LIPO
be01d343 8792if test -n "$LIPO"; then
81ecdfbb
RW
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8794$as_echo "$LIPO" >&6; }
be01d343 8795else
81ecdfbb
RW
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797$as_echo "no" >&6; }
be01d343
PB
8798fi
8799
81ecdfbb 8800
be01d343
PB
8801 fi
8802 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8804set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8807if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8808 $as_echo_n "(cached) " >&6
be01d343
PB
8809else
8810 if test -n "$LIPO"; then
8811 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8812else
c6b750e1
DJ
8813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814for as_dir in $PATH
8815do
8816 IFS=$as_save_IFS
8817 test -z "$as_dir" && as_dir=.
81ecdfbb 8818 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8820 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8822 break 2
8823 fi
8824done
81ecdfbb
RW
8825 done
8826IFS=$as_save_IFS
c6b750e1 8827
be01d343
PB
8828fi
8829fi
c6b750e1 8830LIPO=$ac_cv_prog_LIPO
be01d343 8831if test -n "$LIPO"; then
81ecdfbb
RW
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8833$as_echo "$LIPO" >&6; }
be01d343 8834else
81ecdfbb
RW
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836$as_echo "no" >&6; }
be01d343 8837fi
c6b750e1 8838
81ecdfbb 8839
be01d343
PB
8840 fi
8841 test -n "$ac_cv_prog_LIPO" && break
8842done
8843
8844if test -z "$ac_cv_prog_LIPO" ; then
8845 set dummy lipo
8846 if test $build = $host ; then
8847 LIPO="$2"
8848 else
8849 LIPO="${ncn_tool_prefix}$2"
8850 fi
8851fi
8852
9a819804
AO
8853
8854
8855if test -n "$NM"; then
8856 ac_cv_prog_NM=$NM
8857elif test -n "$ac_cv_prog_NM"; then
8858 NM=$ac_cv_prog_NM
8859fi
8860
8861if test -n "$ac_cv_prog_NM"; then
8862 for ncn_progname in nm; do
8863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8864set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8867if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8868 $as_echo_n "(cached) " >&6
859789af
AC
8869else
8870 if test -n "$NM"; then
8871 ac_cv_prog_NM="$NM" # Let the user override the test.
8872else
c6b750e1
DJ
8873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874for as_dir in $PATH
8875do
8876 IFS=$as_save_IFS
8877 test -z "$as_dir" && as_dir=.
81ecdfbb 8878 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8880 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8882 break 2
8883 fi
8884done
81ecdfbb
RW
8885 done
8886IFS=$as_save_IFS
c6b750e1 8887
859789af
AC
8888fi
8889fi
c6b750e1 8890NM=$ac_cv_prog_NM
859789af 8891if test -n "$NM"; then
81ecdfbb
RW
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8893$as_echo "$NM" >&6; }
859789af 8894else
81ecdfbb
RW
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896$as_echo "no" >&6; }
859789af
AC
8897fi
8898
81ecdfbb 8899
9a819804
AO
8900 done
8901fi
8902
8903for ncn_progname in nm; do
8904 if test -n "$ncn_tool_prefix"; then
8905 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8906set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8909if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8910 $as_echo_n "(cached) " >&6
859789af 8911else
05cbd757
PB
8912 if test -n "$NM"; then
8913 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8914else
c6b750e1
DJ
8915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916for as_dir in $PATH
8917do
8918 IFS=$as_save_IFS
8919 test -z "$as_dir" && as_dir=.
81ecdfbb 8920 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8922 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8924 break 2
8925 fi
8926done
81ecdfbb
RW
8927 done
8928IFS=$as_save_IFS
c6b750e1 8929
859789af
AC
8930fi
8931fi
c6b750e1 8932NM=$ac_cv_prog_NM
05cbd757 8933if test -n "$NM"; then
81ecdfbb
RW
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8935$as_echo "$NM" >&6; }
859789af 8936else
81ecdfbb
RW
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938$as_echo "no" >&6; }
859789af 8939fi
c6b750e1 8940
81ecdfbb 8941
05cbd757 8942 fi
9a819804
AO
8943 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8945set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8947$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8948if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8949 $as_echo_n "(cached) " >&6
9a819804
AO
8950else
8951 if test -n "$NM"; then
8952 ac_cv_prog_NM="$NM" # Let the user override the test.
8953else
8954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955for as_dir in $PATH
8956do
8957 IFS=$as_save_IFS
8958 test -z "$as_dir" && as_dir=.
81ecdfbb 8959 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8961 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8963 break 2
8964 fi
8965done
81ecdfbb
RW
8966 done
8967IFS=$as_save_IFS
9a819804
AO
8968
8969fi
8970fi
8971NM=$ac_cv_prog_NM
8972if test -n "$NM"; then
81ecdfbb
RW
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8974$as_echo "$NM" >&6; }
9a819804 8975else
81ecdfbb
RW
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977$as_echo "no" >&6; }
9a819804
AO
8978fi
8979
81ecdfbb 8980
9a819804
AO
8981 fi
8982 test -n "$ac_cv_prog_NM" && break
8983done
8984
8985if test -z "$ac_cv_prog_NM" ; then
8986 set dummy nm
8987 if test $build = $host ; then
8988 NM="$2"
8989 else
8990 NM="${ncn_tool_prefix}$2"
8991 fi
8992fi
8993
8994
8995
8996if test -n "$RANLIB"; then
8997 ac_cv_prog_RANLIB=$RANLIB
8998elif test -n "$ac_cv_prog_RANLIB"; then
8999 RANLIB=$ac_cv_prog_RANLIB
9000fi
9001
9002if test -n "$ac_cv_prog_RANLIB"; then
9003 for ncn_progname in ranlib; do
9004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9005set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9008if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9009 $as_echo_n "(cached) " >&6
9a819804
AO
9010else
9011 if test -n "$RANLIB"; then
9012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9013else
9014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015for as_dir in $PATH
9016do
9017 IFS=$as_save_IFS
9018 test -z "$as_dir" && as_dir=.
81ecdfbb 9019 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9021 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9023 break 2
9024 fi
9025done
81ecdfbb
RW
9026 done
9027IFS=$as_save_IFS
9a819804
AO
9028
9029fi
9030fi
9031RANLIB=$ac_cv_prog_RANLIB
9032if test -n "$RANLIB"; then
81ecdfbb
RW
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9034$as_echo "$RANLIB" >&6; }
9a819804 9035else
81ecdfbb
RW
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037$as_echo "no" >&6; }
9a819804
AO
9038fi
9039
81ecdfbb 9040
9a819804
AO
9041 done
9042fi
859789af 9043
9a819804 9044for ncn_progname in ranlib; do
05cbd757
PB
9045 if test -n "$ncn_tool_prefix"; then
9046 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9047set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9049$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9050if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9051 $as_echo_n "(cached) " >&6
859789af
AC
9052else
9053 if test -n "$RANLIB"; then
9054 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9055else
c6b750e1
DJ
9056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057for as_dir in $PATH
9058do
9059 IFS=$as_save_IFS
9060 test -z "$as_dir" && as_dir=.
81ecdfbb 9061 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9063 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9065 break 2
9066 fi
9067done
81ecdfbb
RW
9068 done
9069IFS=$as_save_IFS
c6b750e1 9070
859789af
AC
9071fi
9072fi
c6b750e1 9073RANLIB=$ac_cv_prog_RANLIB
859789af 9074if test -n "$RANLIB"; then
81ecdfbb
RW
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9076$as_echo "$RANLIB" >&6; }
859789af 9077else
81ecdfbb
RW
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079$as_echo "no" >&6; }
859789af
AC
9080fi
9081
81ecdfbb 9082
05cbd757
PB
9083 fi
9084 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9086set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9089if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9090 $as_echo_n "(cached) " >&6
859789af 9091else
05cbd757
PB
9092 if test -n "$RANLIB"; then
9093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9094else
c6b750e1
DJ
9095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096for as_dir in $PATH
9097do
9098 IFS=$as_save_IFS
9099 test -z "$as_dir" && as_dir=.
81ecdfbb 9100 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9102 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9104 break 2
9105 fi
9106done
81ecdfbb
RW
9107 done
9108IFS=$as_save_IFS
c6b750e1 9109
859789af
AC
9110fi
9111fi
c6b750e1 9112RANLIB=$ac_cv_prog_RANLIB
05cbd757 9113if test -n "$RANLIB"; then
81ecdfbb
RW
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9115$as_echo "$RANLIB" >&6; }
859789af 9116else
81ecdfbb
RW
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9118$as_echo "no" >&6; }
859789af 9119fi
c6b750e1 9120
81ecdfbb 9121
859789af 9122 fi
05cbd757
PB
9123 test -n "$ac_cv_prog_RANLIB" && break
9124done
9125
9126if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9127 RANLIB="true"
859789af
AC
9128fi
9129
9a819804
AO
9130
9131
9132if test -n "$STRIP"; then
9133 ac_cv_prog_STRIP=$STRIP
9134elif test -n "$ac_cv_prog_STRIP"; then
9135 STRIP=$ac_cv_prog_STRIP
9136fi
9137
9138if test -n "$ac_cv_prog_STRIP"; then
9139 for ncn_progname in strip; do
9140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9141set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9144if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9145 $as_echo_n "(cached) " >&6
9a819804
AO
9146else
9147 if test -n "$STRIP"; then
9148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9149else
9150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151for as_dir in $PATH
9152do
9153 IFS=$as_save_IFS
9154 test -z "$as_dir" && as_dir=.
81ecdfbb 9155 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9157 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9159 break 2
9160 fi
9161done
81ecdfbb
RW
9162 done
9163IFS=$as_save_IFS
9a819804
AO
9164
9165fi
9166fi
9167STRIP=$ac_cv_prog_STRIP
9168if test -n "$STRIP"; then
81ecdfbb
RW
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9170$as_echo "$STRIP" >&6; }
9a819804 9171else
81ecdfbb
RW
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173$as_echo "no" >&6; }
9a819804
AO
9174fi
9175
81ecdfbb 9176
9a819804
AO
9177 done
9178fi
9179
9180for ncn_progname in strip; do
be01d343
PB
9181 if test -n "$ncn_tool_prefix"; then
9182 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9183set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9186if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9187 $as_echo_n "(cached) " >&6
be01d343
PB
9188else
9189 if test -n "$STRIP"; then
9190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9191else
c6b750e1
DJ
9192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193for as_dir in $PATH
9194do
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
81ecdfbb 9197 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9199 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9201 break 2
9202 fi
9203done
81ecdfbb
RW
9204 done
9205IFS=$as_save_IFS
c6b750e1 9206
be01d343
PB
9207fi
9208fi
c6b750e1 9209STRIP=$ac_cv_prog_STRIP
be01d343 9210if test -n "$STRIP"; then
81ecdfbb
RW
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9212$as_echo "$STRIP" >&6; }
be01d343 9213else
81ecdfbb
RW
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215$as_echo "no" >&6; }
be01d343
PB
9216fi
9217
81ecdfbb 9218
be01d343
PB
9219 fi
9220 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9222set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9224$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9225if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9226 $as_echo_n "(cached) " >&6
be01d343
PB
9227else
9228 if test -n "$STRIP"; then
9229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9230else
c6b750e1
DJ
9231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232for as_dir in $PATH
9233do
9234 IFS=$as_save_IFS
9235 test -z "$as_dir" && as_dir=.
81ecdfbb 9236 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9238 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9240 break 2
9241 fi
9242done
81ecdfbb
RW
9243 done
9244IFS=$as_save_IFS
c6b750e1 9245
be01d343
PB
9246fi
9247fi
c6b750e1 9248STRIP=$ac_cv_prog_STRIP
be01d343 9249if test -n "$STRIP"; then
81ecdfbb
RW
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9251$as_echo "$STRIP" >&6; }
be01d343 9252else
81ecdfbb
RW
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254$as_echo "no" >&6; }
be01d343 9255fi
c6b750e1 9256
81ecdfbb 9257
be01d343
PB
9258 fi
9259 test -n "$ac_cv_prog_STRIP" && break
9260done
9261
9262if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9263 STRIP="true"
be01d343
PB
9264fi
9265
9a819804
AO
9266
9267
9268if test -n "$WINDRES"; then
9269 ac_cv_prog_WINDRES=$WINDRES
9270elif test -n "$ac_cv_prog_WINDRES"; then
9271 WINDRES=$ac_cv_prog_WINDRES
9272fi
9273
9274if test -n "$ac_cv_prog_WINDRES"; then
9275 for ncn_progname in windres; do
9276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9277set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9280if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9281 $as_echo_n "(cached) " >&6
9a819804
AO
9282else
9283 if test -n "$WINDRES"; then
9284 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9285else
9286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287for as_dir in $PATH
9288do
9289 IFS=$as_save_IFS
9290 test -z "$as_dir" && as_dir=.
81ecdfbb 9291 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9293 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9295 break 2
9296 fi
9297done
81ecdfbb
RW
9298 done
9299IFS=$as_save_IFS
9a819804
AO
9300
9301fi
9302fi
9303WINDRES=$ac_cv_prog_WINDRES
9304if test -n "$WINDRES"; then
81ecdfbb
RW
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9306$as_echo "$WINDRES" >&6; }
9a819804 9307else
81ecdfbb
RW
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309$as_echo "no" >&6; }
9a819804
AO
9310fi
9311
81ecdfbb 9312
9a819804
AO
9313 done
9314fi
9315
9316for ncn_progname in windres; do
05cbd757
PB
9317 if test -n "$ncn_tool_prefix"; then
9318 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9319set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9322if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9323 $as_echo_n "(cached) " >&6
859789af
AC
9324else
9325 if test -n "$WINDRES"; then
9326 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9327else
c6b750e1
DJ
9328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329for as_dir in $PATH
9330do
9331 IFS=$as_save_IFS
9332 test -z "$as_dir" && as_dir=.
81ecdfbb 9333 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9335 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9337 break 2
9338 fi
9339done
81ecdfbb
RW
9340 done
9341IFS=$as_save_IFS
c6b750e1 9342
859789af
AC
9343fi
9344fi
c6b750e1 9345WINDRES=$ac_cv_prog_WINDRES
859789af 9346if test -n "$WINDRES"; then
81ecdfbb
RW
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9348$as_echo "$WINDRES" >&6; }
859789af 9349else
81ecdfbb
RW
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351$as_echo "no" >&6; }
859789af
AC
9352fi
9353
81ecdfbb 9354
05cbd757
PB
9355 fi
9356 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9358set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9361if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9362 $as_echo_n "(cached) " >&6
859789af 9363else
05cbd757
PB
9364 if test -n "$WINDRES"; then
9365 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9366else
c6b750e1
DJ
9367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368for as_dir in $PATH
9369do
9370 IFS=$as_save_IFS
9371 test -z "$as_dir" && as_dir=.
81ecdfbb 9372 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9374 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9376 break 2
9377 fi
9378done
81ecdfbb
RW
9379 done
9380IFS=$as_save_IFS
c6b750e1 9381
859789af
AC
9382fi
9383fi
c6b750e1 9384WINDRES=$ac_cv_prog_WINDRES
05cbd757 9385if test -n "$WINDRES"; then
81ecdfbb
RW
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9387$as_echo "$WINDRES" >&6; }
859789af 9388else
81ecdfbb
RW
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390$as_echo "no" >&6; }
859789af 9391fi
c6b750e1 9392
81ecdfbb 9393
05cbd757
PB
9394 fi
9395 test -n "$ac_cv_prog_WINDRES" && break
9396done
9397
9398if test -z "$ac_cv_prog_WINDRES" ; then
9399 set dummy windres
9400 if test $build = $host ; then
9401 WINDRES="$2"
859789af 9402 else
05cbd757 9403 WINDRES="${ncn_tool_prefix}$2"
859789af 9404 fi
859789af
AC
9405fi
9406
9a819804
AO
9407
9408
0c24b341
NC
9409if test -n "$WINDMC"; then
9410 ac_cv_prog_WINDMC=$WINDMC
9411elif test -n "$ac_cv_prog_WINDMC"; then
9412 WINDMC=$ac_cv_prog_WINDMC
9413fi
9414
9415if test -n "$ac_cv_prog_WINDMC"; then
9416 for ncn_progname in windmc; do
9417 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9418set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9420$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9421if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9422 $as_echo_n "(cached) " >&6
0c24b341
NC
9423else
9424 if test -n "$WINDMC"; then
9425 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9426else
9427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428for as_dir in $PATH
9429do
9430 IFS=$as_save_IFS
9431 test -z "$as_dir" && as_dir=.
81ecdfbb 9432 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9434 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9436 break 2
9437 fi
9438done
81ecdfbb
RW
9439 done
9440IFS=$as_save_IFS
0c24b341
NC
9441
9442fi
9443fi
9444WINDMC=$ac_cv_prog_WINDMC
9445if test -n "$WINDMC"; then
81ecdfbb
RW
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9447$as_echo "$WINDMC" >&6; }
0c24b341 9448else
81ecdfbb
RW
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450$as_echo "no" >&6; }
0c24b341
NC
9451fi
9452
81ecdfbb 9453
0c24b341
NC
9454 done
9455fi
9456
9457for ncn_progname in windmc; do
9458 if test -n "$ncn_tool_prefix"; then
9459 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9460set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9463if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9464 $as_echo_n "(cached) " >&6
0c24b341
NC
9465else
9466 if test -n "$WINDMC"; then
9467 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9468else
9469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470for as_dir in $PATH
9471do
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
81ecdfbb 9474 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9476 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9478 break 2
9479 fi
9480done
81ecdfbb
RW
9481 done
9482IFS=$as_save_IFS
0c24b341
NC
9483
9484fi
9485fi
9486WINDMC=$ac_cv_prog_WINDMC
9487if test -n "$WINDMC"; then
81ecdfbb
RW
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9489$as_echo "$WINDMC" >&6; }
0c24b341 9490else
81ecdfbb
RW
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9492$as_echo "no" >&6; }
0c24b341
NC
9493fi
9494
81ecdfbb 9495
0c24b341
NC
9496 fi
9497 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9499set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9501$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9502if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9503 $as_echo_n "(cached) " >&6
0c24b341
NC
9504else
9505 if test -n "$WINDMC"; then
9506 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9507else
9508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509for as_dir in $PATH
9510do
9511 IFS=$as_save_IFS
9512 test -z "$as_dir" && as_dir=.
81ecdfbb 9513 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9515 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9517 break 2
9518 fi
9519done
81ecdfbb
RW
9520 done
9521IFS=$as_save_IFS
0c24b341
NC
9522
9523fi
9524fi
9525WINDMC=$ac_cv_prog_WINDMC
9526if test -n "$WINDMC"; then
81ecdfbb
RW
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9528$as_echo "$WINDMC" >&6; }
0c24b341 9529else
81ecdfbb
RW
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531$as_echo "no" >&6; }
0c24b341
NC
9532fi
9533
81ecdfbb 9534
0c24b341
NC
9535 fi
9536 test -n "$ac_cv_prog_WINDMC" && break
9537done
9538
9539if test -z "$ac_cv_prog_WINDMC" ; then
9540 set dummy windmc
9541 if test $build = $host ; then
9542 WINDMC="$2"
9543 else
9544 WINDMC="${ncn_tool_prefix}$2"
9545 fi
9546fi
9547
9548
9549
9a819804
AO
9550if test -n "$OBJCOPY"; then
9551 ac_cv_prog_OBJCOPY=$OBJCOPY
9552elif test -n "$ac_cv_prog_OBJCOPY"; then
9553 OBJCOPY=$ac_cv_prog_OBJCOPY
9554fi
9555
9556if test -n "$ac_cv_prog_OBJCOPY"; then
9557 for ncn_progname in objcopy; do
9558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9559set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9562if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9563 $as_echo_n "(cached) " >&6
9a819804
AO
9564else
9565 if test -n "$OBJCOPY"; then
9566 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9567else
9568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569for as_dir in $PATH
9570do
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
81ecdfbb 9573 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9575 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9577 break 2
9578 fi
9579done
81ecdfbb
RW
9580 done
9581IFS=$as_save_IFS
9a819804
AO
9582
9583fi
9584fi
9585OBJCOPY=$ac_cv_prog_OBJCOPY
9586if test -n "$OBJCOPY"; then
81ecdfbb
RW
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9588$as_echo "$OBJCOPY" >&6; }
9a819804 9589else
81ecdfbb
RW
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591$as_echo "no" >&6; }
9a819804
AO
9592fi
9593
81ecdfbb 9594
9a819804
AO
9595 done
9596fi
9597
9598for ncn_progname in objcopy; do
05cbd757
PB
9599 if test -n "$ncn_tool_prefix"; then
9600 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9601set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9604if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9605 $as_echo_n "(cached) " >&6
859789af
AC
9606else
9607 if test -n "$OBJCOPY"; then
9608 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9609else
c6b750e1
DJ
9610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611for as_dir in $PATH
9612do
9613 IFS=$as_save_IFS
9614 test -z "$as_dir" && as_dir=.
81ecdfbb 9615 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9617 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9619 break 2
9620 fi
9621done
81ecdfbb
RW
9622 done
9623IFS=$as_save_IFS
c6b750e1 9624
859789af
AC
9625fi
9626fi
c6b750e1 9627OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9628if test -n "$OBJCOPY"; then
81ecdfbb
RW
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9630$as_echo "$OBJCOPY" >&6; }
859789af 9631else
81ecdfbb
RW
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633$as_echo "no" >&6; }
859789af
AC
9634fi
9635
81ecdfbb 9636
05cbd757
PB
9637 fi
9638 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9640set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9643if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9644 $as_echo_n "(cached) " >&6
859789af 9645else
05cbd757
PB
9646 if test -n "$OBJCOPY"; then
9647 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9648else
c6b750e1
DJ
9649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650for as_dir in $PATH
9651do
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
81ecdfbb 9654 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9656 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9658 break 2
9659 fi
9660done
81ecdfbb
RW
9661 done
9662IFS=$as_save_IFS
c6b750e1 9663
859789af
AC
9664fi
9665fi
c6b750e1 9666OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9667if test -n "$OBJCOPY"; then
81ecdfbb
RW
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9669$as_echo "$OBJCOPY" >&6; }
859789af 9670else
81ecdfbb
RW
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672$as_echo "no" >&6; }
859789af 9673fi
c6b750e1 9674
81ecdfbb 9675
05cbd757
PB
9676 fi
9677 test -n "$ac_cv_prog_OBJCOPY" && break
9678done
9679
9680if test -z "$ac_cv_prog_OBJCOPY" ; then
9681 set dummy objcopy
9682 if test $build = $host ; then
9683 OBJCOPY="$2"
859789af 9684 else
05cbd757 9685 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9686 fi
859789af
AC
9687fi
9688
9a819804
AO
9689
9690
9691if test -n "$OBJDUMP"; then
9692 ac_cv_prog_OBJDUMP=$OBJDUMP
9693elif test -n "$ac_cv_prog_OBJDUMP"; then
9694 OBJDUMP=$ac_cv_prog_OBJDUMP
9695fi
9696
9697if test -n "$ac_cv_prog_OBJDUMP"; then
9698 for ncn_progname in objdump; do
9699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9700set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9703if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9704 $as_echo_n "(cached) " >&6
9a819804
AO
9705else
9706 if test -n "$OBJDUMP"; then
9707 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9708else
9709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710for as_dir in $PATH
9711do
9712 IFS=$as_save_IFS
9713 test -z "$as_dir" && as_dir=.
81ecdfbb 9714 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9716 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9718 break 2
9719 fi
9720done
81ecdfbb
RW
9721 done
9722IFS=$as_save_IFS
9a819804
AO
9723
9724fi
9725fi
9726OBJDUMP=$ac_cv_prog_OBJDUMP
9727if test -n "$OBJDUMP"; then
81ecdfbb
RW
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9729$as_echo "$OBJDUMP" >&6; }
9a819804 9730else
81ecdfbb
RW
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732$as_echo "no" >&6; }
9a819804
AO
9733fi
9734
81ecdfbb 9735
9a819804
AO
9736 done
9737fi
9738
9739for ncn_progname in objdump; do
05cbd757
PB
9740 if test -n "$ncn_tool_prefix"; then
9741 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9742set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9745if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9746 $as_echo_n "(cached) " >&6
859789af
AC
9747else
9748 if test -n "$OBJDUMP"; then
9749 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9750else
c6b750e1
DJ
9751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752for as_dir in $PATH
9753do
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
81ecdfbb 9756 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9758 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9760 break 2
9761 fi
9762done
81ecdfbb
RW
9763 done
9764IFS=$as_save_IFS
c6b750e1 9765
859789af
AC
9766fi
9767fi
c6b750e1 9768OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9769if test -n "$OBJDUMP"; then
81ecdfbb
RW
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9771$as_echo "$OBJDUMP" >&6; }
859789af 9772else
81ecdfbb
RW
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774$as_echo "no" >&6; }
859789af
AC
9775fi
9776
81ecdfbb 9777
05cbd757
PB
9778 fi
9779 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9781set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9783$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9784if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9785 $as_echo_n "(cached) " >&6
859789af 9786else
05cbd757
PB
9787 if test -n "$OBJDUMP"; then
9788 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9789else
c6b750e1
DJ
9790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791for as_dir in $PATH
9792do
9793 IFS=$as_save_IFS
9794 test -z "$as_dir" && as_dir=.
81ecdfbb 9795 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9797 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9799 break 2
9800 fi
9801done
81ecdfbb
RW
9802 done
9803IFS=$as_save_IFS
c6b750e1 9804
859789af
AC
9805fi
9806fi
c6b750e1 9807OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9808if test -n "$OBJDUMP"; then
81ecdfbb
RW
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9810$as_echo "$OBJDUMP" >&6; }
859789af 9811else
81ecdfbb
RW
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813$as_echo "no" >&6; }
859789af 9814fi
c6b750e1 9815
81ecdfbb 9816
05cbd757
PB
9817 fi
9818 test -n "$ac_cv_prog_OBJDUMP" && break
9819done
9820
9821if test -z "$ac_cv_prog_OBJDUMP" ; then
9822 set dummy objdump
9823 if test $build = $host ; then
9824 OBJDUMP="$2"
859789af 9825 else
05cbd757 9826 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9827 fi
859789af
AC
9828fi
9829
a0da8069
NN
9830
9831
b121d7d4
DD
9832if test -n "$READELF"; then
9833 ac_cv_prog_READELF=$READELF
9834elif test -n "$ac_cv_prog_READELF"; then
9835 READELF=$ac_cv_prog_READELF
9836fi
9837
9838if test -n "$ac_cv_prog_READELF"; then
9839 for ncn_progname in readelf; do
9840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9841set dummy ${ncn_progname}; ac_word=$2
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9844if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9845 $as_echo_n "(cached) " >&6
9846else
9847 if test -n "$READELF"; then
9848 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9849else
9850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851for as_dir in $PATH
9852do
9853 IFS=$as_save_IFS
9854 test -z "$as_dir" && as_dir=.
9855 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9857 ac_cv_prog_READELF="${ncn_progname}"
9858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859 break 2
9860 fi
9861done
9862 done
9863IFS=$as_save_IFS
9864
9865fi
9866fi
9867READELF=$ac_cv_prog_READELF
9868if test -n "$READELF"; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9870$as_echo "$READELF" >&6; }
9871else
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873$as_echo "no" >&6; }
9874fi
9875
9876
9877 done
9878fi
9879
9880for ncn_progname in readelf; do
9881 if test -n "$ncn_tool_prefix"; then
9882 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9883set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9886if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9887 $as_echo_n "(cached) " >&6
9888else
9889 if test -n "$READELF"; then
9890 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9891else
9892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893for as_dir in $PATH
9894do
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
9897 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9899 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9901 break 2
9902 fi
9903done
9904 done
9905IFS=$as_save_IFS
9906
9907fi
9908fi
9909READELF=$ac_cv_prog_READELF
9910if test -n "$READELF"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9912$as_echo "$READELF" >&6; }
9913else
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915$as_echo "no" >&6; }
9916fi
9917
9918
9919 fi
9920 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9922set dummy ${ncn_progname}; ac_word=$2
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9924$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9925if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9926 $as_echo_n "(cached) " >&6
9927else
9928 if test -n "$READELF"; then
9929 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9930else
9931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932for as_dir in $PATH
9933do
9934 IFS=$as_save_IFS
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9938 ac_cv_prog_READELF="${ncn_progname}"
9939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 break 2
9941 fi
9942done
9943 done
9944IFS=$as_save_IFS
9945
9946fi
9947fi
9948READELF=$ac_cv_prog_READELF
9949if test -n "$READELF"; then
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9951$as_echo "$READELF" >&6; }
9952else
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9954$as_echo "no" >&6; }
9955fi
9956
9957
9958 fi
9959 test -n "$ac_cv_prog_READELF" && break
9960done
9961
9962if test -z "$ac_cv_prog_READELF" ; then
9963 set dummy readelf
9964 if test $build = $host ; then
9965 READELF="$2"
9966 else
9967 READELF="${ncn_tool_prefix}$2"
9968 fi
9969fi
9970
9971
9972
a0da8069
NN
9973
9974
9975
be01d343 9976# Target tools.
c6b750e1 9977
81ecdfbb
RW
9978# Check whether --with-build-time-tools was given.
9979if test "${with_build_time_tools+set}" = set; then :
9980 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9981 x/*) ;;
9982 *)
9983 with_build_time_tools=
81ecdfbb
RW
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9985$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9986 ;;
9987 esac
859789af 9988else
2429c060 9989 with_build_time_tools=
81ecdfbb
RW
9990fi
9991
859789af 9992
9a819804
AO
9993
9994
9995if test -n "$CC_FOR_TARGET"; then
9996 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9997elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9998 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9999fi
10000
10001if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10002 for ncn_progname in cc gcc; do
10003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10004set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10006$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10007if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10008 $as_echo_n "(cached) " >&6
9a819804
AO
10009else
10010 if test -n "$CC_FOR_TARGET"; then
10011 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10012else
10013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014for as_dir in $PATH
10015do
10016 IFS=$as_save_IFS
10017 test -z "$as_dir" && as_dir=.
81ecdfbb 10018 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10020 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10022 break 2
10023 fi
10024done
81ecdfbb
RW
10025 done
10026IFS=$as_save_IFS
9a819804
AO
10027
10028fi
10029fi
10030CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10031if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10033$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10034else
81ecdfbb
RW
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036$as_echo "no" >&6; }
9a819804
AO
10037fi
10038
81ecdfbb 10039
9a819804
AO
10040 done
10041fi
10042
10043if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10044 for ncn_progname in cc gcc; do
81ecdfbb
RW
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10046$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10047 if test -x $with_build_time_tools/${ncn_progname}; then
10048 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10050$as_echo "yes" >&6; }
cac3d6c4 10051 break
2429c060 10052 else
81ecdfbb
RW
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054$as_echo "no" >&6; }
cac3d6c4
CM
10055 fi
10056 done
55db4b87
PB
10057fi
10058
2429c060
PB
10059if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10060 for ncn_progname in cc gcc; do
10061 if test -n "$ncn_target_tool_prefix"; then
10062 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10063set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10065$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10066if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10067 $as_echo_n "(cached) " >&6
55db4b87
PB
10068else
10069 if test -n "$CC_FOR_TARGET"; then
10070 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10071else
c6b750e1
DJ
10072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073for as_dir in $PATH
10074do
10075 IFS=$as_save_IFS
10076 test -z "$as_dir" && as_dir=.
81ecdfbb 10077 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10079 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10081 break 2
10082 fi
10083done
81ecdfbb
RW
10084 done
10085IFS=$as_save_IFS
c6b750e1 10086
55db4b87
PB
10087fi
10088fi
c6b750e1 10089CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10090if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10092$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10093else
81ecdfbb
RW
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095$as_echo "no" >&6; }
55db4b87
PB
10096fi
10097
81ecdfbb 10098
2429c060
PB
10099 fi
10100 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10102set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10105if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10106 $as_echo_n "(cached) " >&6
55db4b87 10107else
05cbd757
PB
10108 if test -n "$CC_FOR_TARGET"; then
10109 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10110else
c6b750e1
DJ
10111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112for as_dir in $PATH
10113do
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
81ecdfbb 10116 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10118 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10120 break 2
10121 fi
10122done
81ecdfbb
RW
10123 done
10124IFS=$as_save_IFS
c6b750e1 10125
55db4b87
PB
10126fi
10127fi
c6b750e1 10128CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10129if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10131$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10132else
81ecdfbb
RW
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134$as_echo "no" >&6; }
55db4b87 10135fi
c6b750e1 10136
81ecdfbb 10137
2429c060
PB
10138 fi
10139 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10140 done
10141fi
c6b750e1 10142
05cbd757
PB
10143if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10144 set dummy cc gcc
10145 if test $build = $target ; then
10146 CC_FOR_TARGET="$2"
55db4b87 10147 else
05cbd757 10148 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10149 fi
d3f5afc4
MS
10150else
10151 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10152fi
10153
9a819804
AO
10154
10155
10156if test -n "$CXX_FOR_TARGET"; then
10157 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10158elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10159 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10160fi
10161
10162if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10163 for ncn_progname in c++ g++ cxx gxx; do
10164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10165set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10168if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10169 $as_echo_n "(cached) " >&6
9a819804
AO
10170else
10171 if test -n "$CXX_FOR_TARGET"; then
10172 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10173else
10174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175for as_dir in $PATH
10176do
10177 IFS=$as_save_IFS
10178 test -z "$as_dir" && as_dir=.
81ecdfbb 10179 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10181 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10183 break 2
10184 fi
10185done
81ecdfbb
RW
10186 done
10187IFS=$as_save_IFS
9a819804
AO
10188
10189fi
10190fi
10191CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10192if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10194$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10195else
81ecdfbb
RW
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197$as_echo "no" >&6; }
9a819804
AO
10198fi
10199
81ecdfbb 10200
9a819804
AO
10201 done
10202fi
10203
10204if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10205 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10207$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10208 if test -x $with_build_time_tools/${ncn_progname}; then
10209 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10211$as_echo "yes" >&6; }
2429c060
PB
10212 break
10213 else
81ecdfbb
RW
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215$as_echo "no" >&6; }
2429c060
PB
10216 fi
10217 done
10218fi
10219
10220if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10221 for ncn_progname in c++ g++ cxx gxx; do
10222 if test -n "$ncn_target_tool_prefix"; then
10223 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10224set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10227if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10228 $as_echo_n "(cached) " >&6
55db4b87
PB
10229else
10230 if test -n "$CXX_FOR_TARGET"; then
10231 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10232else
c6b750e1
DJ
10233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234for as_dir in $PATH
10235do
10236 IFS=$as_save_IFS
10237 test -z "$as_dir" && as_dir=.
81ecdfbb 10238 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10240 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10242 break 2
10243 fi
10244done
81ecdfbb
RW
10245 done
10246IFS=$as_save_IFS
c6b750e1 10247
55db4b87
PB
10248fi
10249fi
c6b750e1 10250CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10251if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10253$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10254else
81ecdfbb
RW
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256$as_echo "no" >&6; }
55db4b87
PB
10257fi
10258
81ecdfbb 10259
2429c060
PB
10260 fi
10261 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10263set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10265$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10266if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10267 $as_echo_n "(cached) " >&6
55db4b87 10268else
05cbd757
PB
10269 if test -n "$CXX_FOR_TARGET"; then
10270 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10271else
c6b750e1
DJ
10272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273for as_dir in $PATH
10274do
10275 IFS=$as_save_IFS
10276 test -z "$as_dir" && as_dir=.
81ecdfbb 10277 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10279 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10281 break 2
10282 fi
10283done
81ecdfbb
RW
10284 done
10285IFS=$as_save_IFS
c6b750e1 10286
55db4b87
PB
10287fi
10288fi
c6b750e1 10289CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10290if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10292$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10293else
81ecdfbb
RW
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295$as_echo "no" >&6; }
55db4b87 10296fi
c6b750e1 10297
81ecdfbb 10298
2429c060
PB
10299 fi
10300 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10301 done
10302fi
c6b750e1 10303
05cbd757
PB
10304if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10305 set dummy c++ g++ cxx gxx
10306 if test $build = $target ; then
10307 CXX_FOR_TARGET="$2"
55db4b87 10308 else
05cbd757 10309 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10310 fi
d3f5afc4
MS
10311else
10312 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10313fi
10314
9a819804
AO
10315
10316
10317if test -n "$GCC_FOR_TARGET"; then
10318 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10319elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10320 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10321fi
10322
10323if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10324 for ncn_progname in gcc; do
10325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10326set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10329if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10330 $as_echo_n "(cached) " >&6
9a819804
AO
10331else
10332 if test -n "$GCC_FOR_TARGET"; then
10333 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10334else
10335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336for as_dir in $PATH
10337do
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
81ecdfbb 10340 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10342 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10344 break 2
10345 fi
10346done
81ecdfbb
RW
10347 done
10348IFS=$as_save_IFS
9a819804
AO
10349
10350fi
10351fi
10352GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10353if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10355$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10356else
81ecdfbb
RW
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358$as_echo "no" >&6; }
9a819804
AO
10359fi
10360
81ecdfbb 10361
9a819804
AO
10362 done
10363fi
10364
10365if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10366 for ncn_progname in gcc; do
81ecdfbb
RW
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10368$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10369 if test -x $with_build_time_tools/${ncn_progname}; then
10370 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10372$as_echo "yes" >&6; }
2429c060
PB
10373 break
10374 else
81ecdfbb
RW
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376$as_echo "no" >&6; }
2429c060
PB
10377 fi
10378 done
10379fi
10380
10381if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10382 for ncn_progname in gcc; do
10383 if test -n "$ncn_target_tool_prefix"; then
10384 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10385set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10387$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10388if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10389 $as_echo_n "(cached) " >&6
859789af 10390else
2429c060
PB
10391 if test -n "$GCC_FOR_TARGET"; then
10392 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10393else
c6b750e1
DJ
10394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10395for as_dir in $PATH
10396do
10397 IFS=$as_save_IFS
10398 test -z "$as_dir" && as_dir=.
81ecdfbb 10399 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10401 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10403 break 2
10404 fi
10405done
81ecdfbb
RW
10406 done
10407IFS=$as_save_IFS
c6b750e1 10408
55db4b87
PB
10409fi
10410fi
c6b750e1 10411GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10412if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10414$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10415else
81ecdfbb
RW
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417$as_echo "no" >&6; }
55db4b87
PB
10418fi
10419
81ecdfbb 10420
2429c060
PB
10421 fi
10422 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10424set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10426$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10427if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10428 $as_echo_n "(cached) " >&6
55db4b87 10429else
05cbd757
PB
10430 if test -n "$GCC_FOR_TARGET"; then
10431 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10432else
c6b750e1
DJ
10433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434for as_dir in $PATH
10435do
10436 IFS=$as_save_IFS
10437 test -z "$as_dir" && as_dir=.
81ecdfbb 10438 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10440 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10442 break 2
10443 fi
10444done
81ecdfbb
RW
10445 done
10446IFS=$as_save_IFS
c6b750e1 10447
55db4b87
PB
10448fi
10449fi
c6b750e1 10450GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10451if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10453$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10454else
81ecdfbb
RW
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456$as_echo "no" >&6; }
55db4b87 10457fi
c6b750e1 10458
81ecdfbb 10459
2429c060
PB
10460 fi
10461 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10462 done
10463fi
c6b750e1 10464
05cbd757
PB
10465if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10466 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10467else
10468 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10469fi
10470
9a819804
AO
10471
10472
9a819804
AO
10473if test -n "$GFORTRAN_FOR_TARGET"; then
10474 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10475elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10476 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10477fi
10478
9a819804
AO
10479if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10480 for ncn_progname in gfortran; do
10481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10482set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10485if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10486 $as_echo_n "(cached) " >&6
55db4b87 10487else
9a819804
AO
10488 if test -n "$GFORTRAN_FOR_TARGET"; then
10489 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10490else
c6b750e1
DJ
10491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492for as_dir in $PATH
10493do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
81ecdfbb 10496 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10498 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10500 break 2
10501 fi
10502done
81ecdfbb
RW
10503 done
10504IFS=$as_save_IFS
c6b750e1 10505
55db4b87
PB
10506fi
10507fi
9a819804
AO
10508GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10509if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10511$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10512else
81ecdfbb
RW
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514$as_echo "no" >&6; }
55db4b87 10515fi
c6b750e1 10516
81ecdfbb 10517
2429c060
PB
10518 done
10519fi
c6b750e1 10520
9a819804 10521if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10522 for ncn_progname in gfortran; do
81ecdfbb
RW
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10524$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10525 if test -x $with_build_time_tools/${ncn_progname}; then
10526 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10528$as_echo "yes" >&6; }
2429c060
PB
10529 break
10530 else
81ecdfbb
RW
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532$as_echo "no" >&6; }
2429c060
PB
10533 fi
10534 done
10535fi
10536
10537if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10538 for ncn_progname in gfortran; do
10539 if test -n "$ncn_target_tool_prefix"; then
10540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10541set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10544if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10545 $as_echo_n "(cached) " >&6
55db4b87
PB
10546else
10547 if test -n "$GFORTRAN_FOR_TARGET"; then
10548 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10549else
c6b750e1
DJ
10550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551for as_dir in $PATH
10552do
10553 IFS=$as_save_IFS
10554 test -z "$as_dir" && as_dir=.
81ecdfbb 10555 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10557 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10559 break 2
10560 fi
10561done
81ecdfbb
RW
10562 done
10563IFS=$as_save_IFS
c6b750e1 10564
55db4b87
PB
10565fi
10566fi
c6b750e1 10567GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10568if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10570$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10571else
81ecdfbb
RW
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573$as_echo "no" >&6; }
55db4b87
PB
10574fi
10575
81ecdfbb 10576
2429c060
PB
10577 fi
10578 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10580set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10582$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10583if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10584 $as_echo_n "(cached) " >&6
55db4b87 10585else
05cbd757 10586 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10587 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10588else
10589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590for as_dir in $PATH
10591do
10592 IFS=$as_save_IFS
10593 test -z "$as_dir" && as_dir=.
81ecdfbb 10594 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10596 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10598 break 2
10599 fi
10600done
81ecdfbb
RW
10601 done
10602IFS=$as_save_IFS
c6b750e1 10603
55db4b87
PB
10604fi
10605fi
c6b750e1 10606GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10607if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10609$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10610else
81ecdfbb
RW
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10612$as_echo "no" >&6; }
55db4b87 10613fi
c6b750e1 10614
81ecdfbb 10615
2429c060
PB
10616 fi
10617 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10618 done
10619fi
c6b750e1 10620
05cbd757
PB
10621if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10622 set dummy gfortran
10623 if test $build = $target ; then
10624 GFORTRAN_FOR_TARGET="$2"
55db4b87 10625 else
05cbd757 10626 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10627 fi
d3f5afc4
MS
10628else
10629 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10630fi
10631
2429c060
PB
10632
10633
e552509b
ILT
10634if test -n "$GOC_FOR_TARGET"; then
10635 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10636elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10637 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10638fi
10639
10640if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10641 for ncn_progname in gccgo; do
10642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10643set dummy ${ncn_progname}; ac_word=$2
10644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10645$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10646if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10647 $as_echo_n "(cached) " >&6
10648else
10649 if test -n "$GOC_FOR_TARGET"; then
10650 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10651else
10652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10653for as_dir in $PATH
10654do
10655 IFS=$as_save_IFS
10656 test -z "$as_dir" && as_dir=.
10657 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10659 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10661 break 2
10662 fi
10663done
10664 done
10665IFS=$as_save_IFS
10666
10667fi
10668fi
10669GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10670if test -n "$GOC_FOR_TARGET"; then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10672$as_echo "$GOC_FOR_TARGET" >&6; }
10673else
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675$as_echo "no" >&6; }
10676fi
10677
10678
10679 done
10680fi
10681
10682if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10683 for ncn_progname in gccgo; do
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10685$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10686 if test -x $with_build_time_tools/${ncn_progname}; then
10687 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10689$as_echo "yes" >&6; }
10690 break
10691 else
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693$as_echo "no" >&6; }
10694 fi
10695 done
10696fi
10697
10698if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10699 for ncn_progname in gccgo; do
10700 if test -n "$ncn_target_tool_prefix"; then
10701 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10702set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10705if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10706 $as_echo_n "(cached) " >&6
10707else
10708 if test -n "$GOC_FOR_TARGET"; then
10709 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10710else
10711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712for as_dir in $PATH
10713do
10714 IFS=$as_save_IFS
10715 test -z "$as_dir" && as_dir=.
10716 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10718 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10720 break 2
10721 fi
10722done
10723 done
10724IFS=$as_save_IFS
10725
10726fi
10727fi
10728GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10729if test -n "$GOC_FOR_TARGET"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10731$as_echo "$GOC_FOR_TARGET" >&6; }
10732else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734$as_echo "no" >&6; }
10735fi
10736
10737
10738 fi
10739 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10740 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10741set dummy ${ncn_progname}; ac_word=$2
10742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10744if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10745 $as_echo_n "(cached) " >&6
10746else
10747 if test -n "$GOC_FOR_TARGET"; then
10748 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10749else
10750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10751for as_dir in $PATH
10752do
10753 IFS=$as_save_IFS
10754 test -z "$as_dir" && as_dir=.
10755 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10757 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10759 break 2
10760 fi
10761done
10762 done
10763IFS=$as_save_IFS
10764
10765fi
10766fi
10767GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10768if test -n "$GOC_FOR_TARGET"; then
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10770$as_echo "$GOC_FOR_TARGET" >&6; }
10771else
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773$as_echo "no" >&6; }
10774fi
10775
10776
10777 fi
10778 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10779 done
10780fi
10781
10782if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10783 set dummy gccgo
10784 if test $build = $target ; then
10785 GOC_FOR_TARGET="$2"
10786 else
10787 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10788 fi
10789else
10790 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10791fi
10792
10793
10794
2429c060
PB
10795cat > conftest.c << \EOF
10796#ifdef __GNUC__
10797 gcc_yay;
10798#endif
10799EOF
10800if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10801 have_gcc_for_target=yes
859789af 10802else
2429c060
PB
10803 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10804 have_gcc_for_target=no
859789af 10805fi
2429c060
PB
10806rm conftest.c
10807
10808
10809
859789af 10810
2429c060
PB
10811if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10812 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10814$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10815 if test -x $with_build_time_tools/ar; then
10816 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10817 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10819$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10820 else
81ecdfbb
RW
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822$as_echo "no" >&6; }
3a35eeb3 10823 fi
2429c060
PB
10824 elif test $build != $host && test $have_gcc_for_target = yes; then
10825 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10826 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10827 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10828 fi
2429c060 10829fi
c6b750e1 10830if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10831 # Extract the first word of "ar", so it can be a program name with args.
10832set dummy ar; ac_word=$2
81ecdfbb
RW
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10835if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 10836 $as_echo_n "(cached) " >&6
859789af 10837else
c6b750e1
DJ
10838 case $AR_FOR_TARGET in
10839 [\\/]* | ?:[\\/]*)
2429c060
PB
10840 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10841 ;;
2429c060 10842 *)
c6b750e1
DJ
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844for as_dir in $gcc_cv_tool_dirs
10845do
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
81ecdfbb 10848 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10850 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10852 break 2
10853 fi
10854done
81ecdfbb
RW
10855 done
10856IFS=$as_save_IFS
c6b750e1 10857
2429c060
PB
10858 ;;
10859esac
859789af 10860fi
c6b750e1 10861AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10862if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10864$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10865else
81ecdfbb
RW
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867$as_echo "no" >&6; }
859789af 10868fi
05cbd757 10869
81ecdfbb 10870
2429c060
PB
10871fi
10872if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10873
10874
10875if test -n "$AR_FOR_TARGET"; then
10876 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10877elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10878 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10879fi
10880
10881if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10882 for ncn_progname in ar; do
10883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10884set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10886$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10887if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 10888 $as_echo_n "(cached) " >&6
9a819804
AO
10889else
10890 if test -n "$AR_FOR_TARGET"; then
10891 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10892else
10893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894for as_dir in $PATH
10895do
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
81ecdfbb 10898 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10900 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10902 break 2
10903 fi
10904done
81ecdfbb
RW
10905 done
10906IFS=$as_save_IFS
9a819804
AO
10907
10908fi
10909fi
10910AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10911if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10913$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10914else
81ecdfbb
RW
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916$as_echo "no" >&6; }
9a819804
AO
10917fi
10918
81ecdfbb 10919
9a819804
AO
10920 done
10921fi
10922
10923if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10924 for ncn_progname in ar; do
81ecdfbb
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10926$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10927 if test -x $with_build_time_tools/${ncn_progname}; then
10928 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10930$as_echo "yes" >&6; }
2429c060
PB
10931 break
10932 else
81ecdfbb
RW
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934$as_echo "no" >&6; }
2429c060
PB
10935 fi
10936 done
859789af
AC
10937fi
10938
2429c060
PB
10939if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10940 for ncn_progname in ar; do
10941 if test -n "$ncn_target_tool_prefix"; then
10942 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10943set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10946if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 10947 $as_echo_n "(cached) " >&6
7e0f7140 10948else
2429c060
PB
10949 if test -n "$AR_FOR_TARGET"; then
10950 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10951else
c6b750e1
DJ
10952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $PATH
10954do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
81ecdfbb 10957 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10959 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10961 break 2
10962 fi
10963done
81ecdfbb
RW
10964 done
10965IFS=$as_save_IFS
c6b750e1 10966
7e0f7140
GK
10967fi
10968fi
c6b750e1 10969AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10970if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10972$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10973else
81ecdfbb
RW
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975$as_echo "no" >&6; }
7e0f7140
GK
10976fi
10977
81ecdfbb 10978
2429c060
PB
10979 fi
10980 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10982set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10984$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10985if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 10986 $as_echo_n "(cached) " >&6
7e0f7140 10987else
2429c060
PB
10988 if test -n "$AR_FOR_TARGET"; then
10989 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10990else
c6b750e1
DJ
10991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992for as_dir in $PATH
10993do
10994 IFS=$as_save_IFS
10995 test -z "$as_dir" && as_dir=.
81ecdfbb 10996 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10998 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11000 break 2
11001 fi
11002done
81ecdfbb
RW
11003 done
11004IFS=$as_save_IFS
c6b750e1 11005
7e0f7140
GK
11006fi
11007fi
c6b750e1 11008AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11009if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11011$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11012else
81ecdfbb
RW
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014$as_echo "no" >&6; }
7e0f7140 11015fi
c6b750e1 11016
81ecdfbb 11017
2429c060
PB
11018 fi
11019 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11020 done
11021fi
c6b750e1 11022
2429c060
PB
11023if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11024 set dummy ar
7e0f7140 11025 if test $build = $target ; then
2429c060 11026 AR_FOR_TARGET="$2"
7e0f7140 11027 else
2429c060 11028 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11029 fi
d3f5afc4
MS
11030else
11031 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11032fi
11033
3a35eeb3
PB
11034else
11035 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11036fi
11037
11038
11039
11040
11041if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11042 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11044$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11045 if test -x $with_build_time_tools/as; then
11046 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11047 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11049$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11050 else
81ecdfbb
RW
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052$as_echo "no" >&6; }
3a35eeb3 11053 fi
2429c060
PB
11054 elif test $build != $host && test $have_gcc_for_target = yes; then
11055 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11056 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11057 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11058 fi
11059fi
c6b750e1 11060if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11061 # Extract the first word of "as", so it can be a program name with args.
11062set dummy as; ac_word=$2
81ecdfbb
RW
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11065if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 11066 $as_echo_n "(cached) " >&6
2429c060 11067else
c6b750e1
DJ
11068 case $AS_FOR_TARGET in
11069 [\\/]* | ?:[\\/]*)
2429c060
PB
11070 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11071 ;;
2429c060 11072 *)
c6b750e1
DJ
11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074for as_dir in $gcc_cv_tool_dirs
11075do
11076 IFS=$as_save_IFS
11077 test -z "$as_dir" && as_dir=.
81ecdfbb 11078 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11080 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11082 break 2
11083 fi
11084done
81ecdfbb
RW
11085 done
11086IFS=$as_save_IFS
c6b750e1 11087
2429c060
PB
11088 ;;
11089esac
11090fi
c6b750e1 11091AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11092if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11094$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11095else
81ecdfbb
RW
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097$as_echo "no" >&6; }
2429c060
PB
11098fi
11099
81ecdfbb 11100
2429c060
PB
11101fi
11102if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11103
11104
11105if test -n "$AS_FOR_TARGET"; then
11106 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11107elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11108 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11109fi
11110
11111if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11112 for ncn_progname in as; do
11113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11114set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11117if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11118 $as_echo_n "(cached) " >&6
9a819804
AO
11119else
11120 if test -n "$AS_FOR_TARGET"; then
11121 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11122else
11123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124for as_dir in $PATH
11125do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
81ecdfbb 11128 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11130 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11132 break 2
11133 fi
11134done
81ecdfbb
RW
11135 done
11136IFS=$as_save_IFS
9a819804
AO
11137
11138fi
11139fi
11140AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11141if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11143$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11144else
81ecdfbb
RW
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
9a819804
AO
11147fi
11148
81ecdfbb 11149
9a819804
AO
11150 done
11151fi
11152
11153if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11154 for ncn_progname in as; do
81ecdfbb
RW
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11156$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11157 if test -x $with_build_time_tools/${ncn_progname}; then
11158 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11160$as_echo "yes" >&6; }
2429c060
PB
11161 break
11162 else
81ecdfbb
RW
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164$as_echo "no" >&6; }
2429c060
PB
11165 fi
11166 done
11167fi
11168
11169if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11170 for ncn_progname in as; do
11171 if test -n "$ncn_target_tool_prefix"; then
11172 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11173set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11176if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11177 $as_echo_n "(cached) " >&6
2429c060
PB
11178else
11179 if test -n "$AS_FOR_TARGET"; then
11180 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11181else
c6b750e1
DJ
11182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183for as_dir in $PATH
11184do
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
81ecdfbb 11187 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11189 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11191 break 2
11192 fi
11193done
81ecdfbb
RW
11194 done
11195IFS=$as_save_IFS
c6b750e1 11196
2429c060
PB
11197fi
11198fi
c6b750e1 11199AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11200if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11202$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11203else
81ecdfbb
RW
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205$as_echo "no" >&6; }
2429c060
PB
11206fi
11207
81ecdfbb 11208
2429c060
PB
11209 fi
11210 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11212set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11215if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11216 $as_echo_n "(cached) " >&6
2429c060
PB
11217else
11218 if test -n "$AS_FOR_TARGET"; then
11219 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11220else
c6b750e1
DJ
11221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222for as_dir in $PATH
11223do
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
81ecdfbb 11226 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11228 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11230 break 2
11231 fi
11232done
81ecdfbb
RW
11233 done
11234IFS=$as_save_IFS
c6b750e1 11235
2429c060
PB
11236fi
11237fi
c6b750e1 11238AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11239if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11241$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11242else
81ecdfbb
RW
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244$as_echo "no" >&6; }
2429c060 11245fi
c6b750e1 11246
81ecdfbb 11247
2429c060
PB
11248 fi
11249 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11250 done
11251fi
c6b750e1 11252
2429c060
PB
11253if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11254 set dummy as
11255 if test $build = $target ; then
11256 AS_FOR_TARGET="$2"
11257 else
11258 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11259 fi
d3f5afc4
MS
11260else
11261 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11262fi
11263
3a35eeb3
PB
11264else
11265 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11266fi
11267
11268
11269
11270
11271if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11272 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11274$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11275 if test -x $with_build_time_tools/dlltool; then
11276 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11277 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11279$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11280 else
81ecdfbb
RW
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282$as_echo "no" >&6; }
3a35eeb3 11283 fi
2429c060
PB
11284 elif test $build != $host && test $have_gcc_for_target = yes; then
11285 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11286 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11287 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11288 fi
11289fi
c6b750e1 11290if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11291 # Extract the first word of "dlltool", so it can be a program name with args.
11292set dummy dlltool; ac_word=$2
81ecdfbb
RW
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11295if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11296 $as_echo_n "(cached) " >&6
2429c060 11297else
c6b750e1
DJ
11298 case $DLLTOOL_FOR_TARGET in
11299 [\\/]* | ?:[\\/]*)
2429c060
PB
11300 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11301 ;;
2429c060 11302 *)
c6b750e1
DJ
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304for as_dir in $gcc_cv_tool_dirs
11305do
11306 IFS=$as_save_IFS
11307 test -z "$as_dir" && as_dir=.
81ecdfbb 11308 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11310 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11312 break 2
11313 fi
11314done
81ecdfbb
RW
11315 done
11316IFS=$as_save_IFS
c6b750e1 11317
2429c060
PB
11318 ;;
11319esac
11320fi
c6b750e1 11321DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11322if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11324$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11325else
81ecdfbb
RW
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327$as_echo "no" >&6; }
2429c060
PB
11328fi
11329
81ecdfbb 11330
2429c060
PB
11331fi
11332if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11333
11334
11335if test -n "$DLLTOOL_FOR_TARGET"; then
11336 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11337elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11338 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11339fi
11340
11341if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11342 for ncn_progname in dlltool; do
11343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11344set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11347if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11348 $as_echo_n "(cached) " >&6
9a819804
AO
11349else
11350 if test -n "$DLLTOOL_FOR_TARGET"; then
11351 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11352else
11353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354for as_dir in $PATH
11355do
11356 IFS=$as_save_IFS
11357 test -z "$as_dir" && as_dir=.
81ecdfbb 11358 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11360 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11362 break 2
11363 fi
11364done
81ecdfbb
RW
11365 done
11366IFS=$as_save_IFS
9a819804
AO
11367
11368fi
11369fi
11370DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11371if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11373$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11374else
81ecdfbb
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376$as_echo "no" >&6; }
9a819804
AO
11377fi
11378
81ecdfbb 11379
9a819804
AO
11380 done
11381fi
11382
11383if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11384 for ncn_progname in dlltool; do
81ecdfbb
RW
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11386$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11387 if test -x $with_build_time_tools/${ncn_progname}; then
11388 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11390$as_echo "yes" >&6; }
2429c060
PB
11391 break
11392 else
81ecdfbb
RW
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394$as_echo "no" >&6; }
2429c060
PB
11395 fi
11396 done
11397fi
11398
11399if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11400 for ncn_progname in dlltool; do
11401 if test -n "$ncn_target_tool_prefix"; then
11402 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11403set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11405$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11406if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11407 $as_echo_n "(cached) " >&6
2429c060
PB
11408else
11409 if test -n "$DLLTOOL_FOR_TARGET"; then
11410 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11411else
c6b750e1
DJ
11412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413for as_dir in $PATH
11414do
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
81ecdfbb 11417 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11419 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11421 break 2
11422 fi
11423done
81ecdfbb
RW
11424 done
11425IFS=$as_save_IFS
c6b750e1 11426
2429c060
PB
11427fi
11428fi
c6b750e1 11429DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11430if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11432$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11433else
81ecdfbb
RW
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11435$as_echo "no" >&6; }
2429c060
PB
11436fi
11437
81ecdfbb 11438
2429c060
PB
11439 fi
11440 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11442set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11445if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11446 $as_echo_n "(cached) " >&6
2429c060
PB
11447else
11448 if test -n "$DLLTOOL_FOR_TARGET"; then
11449 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11450else
c6b750e1
DJ
11451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452for as_dir in $PATH
11453do
11454 IFS=$as_save_IFS
11455 test -z "$as_dir" && as_dir=.
81ecdfbb 11456 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11458 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11460 break 2
11461 fi
11462done
81ecdfbb
RW
11463 done
11464IFS=$as_save_IFS
c6b750e1 11465
2429c060
PB
11466fi
11467fi
c6b750e1 11468DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11469if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11471$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11472else
81ecdfbb
RW
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474$as_echo "no" >&6; }
2429c060 11475fi
c6b750e1 11476
81ecdfbb 11477
2429c060
PB
11478 fi
11479 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11480 done
11481fi
c6b750e1 11482
2429c060
PB
11483if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11484 set dummy dlltool
11485 if test $build = $target ; then
11486 DLLTOOL_FOR_TARGET="$2"
11487 else
11488 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11489 fi
d3f5afc4
MS
11490else
11491 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11492fi
11493
3a35eeb3
PB
11494else
11495 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11496fi
11497
11498
11499
11500
11501if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11502 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11504$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11505 if test -x $with_build_time_tools/ld; then
11506 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11507 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11509$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11510 else
81ecdfbb
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512$as_echo "no" >&6; }
3a35eeb3 11513 fi
2429c060
PB
11514 elif test $build != $host && test $have_gcc_for_target = yes; then
11515 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11516 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11517 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11518 fi
11519fi
c6b750e1 11520if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11521 # Extract the first word of "ld", so it can be a program name with args.
11522set dummy ld; ac_word=$2
81ecdfbb
RW
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11525if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 11526 $as_echo_n "(cached) " >&6
2429c060 11527else
c6b750e1
DJ
11528 case $LD_FOR_TARGET in
11529 [\\/]* | ?:[\\/]*)
2429c060
PB
11530 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11531 ;;
2429c060 11532 *)
c6b750e1
DJ
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534for as_dir in $gcc_cv_tool_dirs
11535do
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
81ecdfbb 11538 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11540 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11542 break 2
11543 fi
11544done
81ecdfbb
RW
11545 done
11546IFS=$as_save_IFS
c6b750e1 11547
2429c060
PB
11548 ;;
11549esac
11550fi
c6b750e1 11551LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11552if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11554$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11555else
81ecdfbb
RW
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557$as_echo "no" >&6; }
2429c060
PB
11558fi
11559
81ecdfbb 11560
2429c060
PB
11561fi
11562if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11563
11564
11565if test -n "$LD_FOR_TARGET"; then
11566 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11567elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11568 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11569fi
11570
11571if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11572 for ncn_progname in ld; do
11573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11574set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11577if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11578 $as_echo_n "(cached) " >&6
9a819804
AO
11579else
11580 if test -n "$LD_FOR_TARGET"; then
11581 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11582else
11583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584for as_dir in $PATH
11585do
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
81ecdfbb 11588 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11590 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11592 break 2
11593 fi
11594done
81ecdfbb
RW
11595 done
11596IFS=$as_save_IFS
9a819804
AO
11597
11598fi
11599fi
11600LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11601if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11603$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11604else
81ecdfbb
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
9a819804
AO
11607fi
11608
81ecdfbb 11609
9a819804
AO
11610 done
11611fi
11612
11613if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11614 for ncn_progname in ld; do
81ecdfbb
RW
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11616$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11617 if test -x $with_build_time_tools/${ncn_progname}; then
11618 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11620$as_echo "yes" >&6; }
2429c060
PB
11621 break
11622 else
81ecdfbb
RW
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624$as_echo "no" >&6; }
2429c060
PB
11625 fi
11626 done
11627fi
11628
11629if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11630 for ncn_progname in ld; do
11631 if test -n "$ncn_target_tool_prefix"; then
11632 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11633set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11635$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11636if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11637 $as_echo_n "(cached) " >&6
2429c060
PB
11638else
11639 if test -n "$LD_FOR_TARGET"; then
11640 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11641else
c6b750e1
DJ
11642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643for as_dir in $PATH
11644do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
81ecdfbb 11647 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11649 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11651 break 2
11652 fi
11653done
81ecdfbb
RW
11654 done
11655IFS=$as_save_IFS
c6b750e1 11656
2429c060
PB
11657fi
11658fi
c6b750e1 11659LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11660if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11662$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11663else
81ecdfbb
RW
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665$as_echo "no" >&6; }
2429c060
PB
11666fi
11667
81ecdfbb 11668
2429c060
PB
11669 fi
11670 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11672set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11675if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11676 $as_echo_n "(cached) " >&6
2429c060
PB
11677else
11678 if test -n "$LD_FOR_TARGET"; then
11679 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11680else
c6b750e1
DJ
11681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682for as_dir in $PATH
11683do
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
81ecdfbb 11686 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11688 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11690 break 2
11691 fi
11692done
81ecdfbb
RW
11693 done
11694IFS=$as_save_IFS
c6b750e1 11695
2429c060
PB
11696fi
11697fi
c6b750e1 11698LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11699if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11701$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11702else
81ecdfbb
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704$as_echo "no" >&6; }
2429c060 11705fi
c6b750e1 11706
81ecdfbb 11707
2429c060
PB
11708 fi
11709 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11710 done
11711fi
c6b750e1 11712
2429c060
PB
11713if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11714 set dummy ld
11715 if test $build = $target ; then
11716 LD_FOR_TARGET="$2"
11717 else
11718 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11719 fi
d3f5afc4
MS
11720else
11721 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11722fi
11723
3a35eeb3
PB
11724else
11725 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11726fi
11727
11728
11729
11730
11731if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11732 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11734$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11735 if test -x $with_build_time_tools/lipo; then
11736 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11737 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11739$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11740 else
81ecdfbb
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742$as_echo "no" >&6; }
3a35eeb3 11743 fi
2429c060
PB
11744 elif test $build != $host && test $have_gcc_for_target = yes; then
11745 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11746 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11747 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11748 fi
11749fi
9a819804
AO
11750if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11751 # Extract the first word of "lipo", so it can be a program name with args.
11752set dummy lipo; ac_word=$2
81ecdfbb
RW
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11755if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11756 $as_echo_n "(cached) " >&6
9a819804
AO
11757else
11758 case $LIPO_FOR_TARGET in
11759 [\\/]* | ?:[\\/]*)
11760 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11761 ;;
11762 *)
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764for as_dir in $gcc_cv_tool_dirs
11765do
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
81ecdfbb 11768 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11770 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11772 break 2
11773 fi
11774done
81ecdfbb
RW
11775 done
11776IFS=$as_save_IFS
9a819804
AO
11777
11778 ;;
11779esac
11780fi
11781LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11782if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11784$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11785else
81ecdfbb
RW
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787$as_echo "no" >&6; }
9a819804
AO
11788fi
11789
81ecdfbb 11790
9a819804
AO
11791fi
11792if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11793
11794
11795if test -n "$LIPO_FOR_TARGET"; then
11796 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11797elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11798 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11799fi
11800
11801if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11802 for ncn_progname in lipo; do
11803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11804set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11807if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11808 $as_echo_n "(cached) " >&6
2429c060 11809else
9a819804
AO
11810 if test -n "$LIPO_FOR_TARGET"; then
11811 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11812else
11813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814for as_dir in $PATH
c6b750e1
DJ
11815do
11816 IFS=$as_save_IFS
11817 test -z "$as_dir" && as_dir=.
81ecdfbb 11818 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11820 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11822 break 2
11823 fi
11824done
81ecdfbb
RW
11825 done
11826IFS=$as_save_IFS
c6b750e1 11827
2429c060 11828fi
9a819804
AO
11829fi
11830LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11831if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11833$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11834else
81ecdfbb
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836$as_echo "no" >&6; }
2429c060
PB
11837fi
11838
81ecdfbb 11839
9a819804 11840 done
2429c060 11841fi
9a819804
AO
11842
11843if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11844 for ncn_progname in lipo; do
81ecdfbb
RW
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11846$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11847 if test -x $with_build_time_tools/${ncn_progname}; then
11848 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11850$as_echo "yes" >&6; }
2429c060
PB
11851 break
11852 else
81ecdfbb
RW
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854$as_echo "no" >&6; }
2429c060
PB
11855 fi
11856 done
11857fi
11858
11859if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11860 for ncn_progname in lipo; do
11861 if test -n "$ncn_target_tool_prefix"; then
11862 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11863set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11866if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11867 $as_echo_n "(cached) " >&6
2429c060
PB
11868else
11869 if test -n "$LIPO_FOR_TARGET"; then
11870 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11871else
c6b750e1
DJ
11872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873for as_dir in $PATH
11874do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
81ecdfbb 11877 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11879 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11881 break 2
11882 fi
11883done
81ecdfbb
RW
11884 done
11885IFS=$as_save_IFS
c6b750e1 11886
2429c060
PB
11887fi
11888fi
c6b750e1 11889LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11890if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11892$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11893else
81ecdfbb
RW
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895$as_echo "no" >&6; }
2429c060
PB
11896fi
11897
81ecdfbb 11898
2429c060
PB
11899 fi
11900 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11902set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11905if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11906 $as_echo_n "(cached) " >&6
2429c060
PB
11907else
11908 if test -n "$LIPO_FOR_TARGET"; then
11909 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11910else
c6b750e1
DJ
11911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912for as_dir in $PATH
11913do
11914 IFS=$as_save_IFS
11915 test -z "$as_dir" && as_dir=.
81ecdfbb 11916 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11918 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11920 break 2
11921 fi
11922done
81ecdfbb
RW
11923 done
11924IFS=$as_save_IFS
c6b750e1 11925
2429c060
PB
11926fi
11927fi
c6b750e1 11928LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11929if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11931$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11932else
81ecdfbb
RW
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934$as_echo "no" >&6; }
2429c060 11935fi
c6b750e1 11936
81ecdfbb 11937
2429c060
PB
11938 fi
11939 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11940 done
11941fi
c6b750e1 11942
2429c060
PB
11943if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11944 set dummy lipo
11945 if test $build = $target ; then
11946 LIPO_FOR_TARGET="$2"
11947 else
11948 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11949 fi
d3f5afc4
MS
11950else
11951 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11952fi
11953
3a35eeb3
PB
11954else
11955 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11956fi
11957
11958
11959
11960
11961if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11962 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11964$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11965 if test -x $with_build_time_tools/nm; then
11966 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11967 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11969$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11970 else
81ecdfbb
RW
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972$as_echo "no" >&6; }
3a35eeb3 11973 fi
2429c060
PB
11974 elif test $build != $host && test $have_gcc_for_target = yes; then
11975 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11976 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11977 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11978 fi
11979fi
c6b750e1 11980if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11981 # Extract the first word of "nm", so it can be a program name with args.
11982set dummy nm; ac_word=$2
81ecdfbb
RW
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11985if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 11986 $as_echo_n "(cached) " >&6
2429c060 11987else
c6b750e1
DJ
11988 case $NM_FOR_TARGET in
11989 [\\/]* | ?:[\\/]*)
2429c060
PB
11990 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11991 ;;
2429c060 11992 *)
c6b750e1
DJ
11993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11994for as_dir in $gcc_cv_tool_dirs
11995do
11996 IFS=$as_save_IFS
11997 test -z "$as_dir" && as_dir=.
81ecdfbb 11998 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12000 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12002 break 2
12003 fi
12004done
81ecdfbb
RW
12005 done
12006IFS=$as_save_IFS
c6b750e1 12007
2429c060
PB
12008 ;;
12009esac
12010fi
c6b750e1 12011NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12012if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12014$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12015else
81ecdfbb
RW
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017$as_echo "no" >&6; }
2429c060
PB
12018fi
12019
81ecdfbb 12020
2429c060
PB
12021fi
12022if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12023
12024
12025if test -n "$NM_FOR_TARGET"; then
12026 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12027elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12028 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12029fi
12030
12031if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12032 for ncn_progname in nm; do
12033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12034set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12037if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12038 $as_echo_n "(cached) " >&6
9a819804
AO
12039else
12040 if test -n "$NM_FOR_TARGET"; then
12041 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12042else
12043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044for as_dir in $PATH
12045do
12046 IFS=$as_save_IFS
12047 test -z "$as_dir" && as_dir=.
81ecdfbb 12048 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12050 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12052 break 2
12053 fi
12054done
81ecdfbb
RW
12055 done
12056IFS=$as_save_IFS
9a819804
AO
12057
12058fi
12059fi
12060NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12061if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12063$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12064else
81ecdfbb
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066$as_echo "no" >&6; }
9a819804
AO
12067fi
12068
81ecdfbb 12069
9a819804
AO
12070 done
12071fi
12072
12073if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12074 for ncn_progname in nm; do
81ecdfbb
RW
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12076$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12077 if test -x $with_build_time_tools/${ncn_progname}; then
12078 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12080$as_echo "yes" >&6; }
2429c060
PB
12081 break
12082 else
81ecdfbb
RW
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084$as_echo "no" >&6; }
2429c060
PB
12085 fi
12086 done
12087fi
12088
12089if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12090 for ncn_progname in nm; do
12091 if test -n "$ncn_target_tool_prefix"; then
12092 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12093set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12095$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12096if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12097 $as_echo_n "(cached) " >&6
859789af 12098else
55db4b87
PB
12099 if test -n "$NM_FOR_TARGET"; then
12100 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12101else
c6b750e1
DJ
12102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103for as_dir in $PATH
12104do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
81ecdfbb 12107 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12109 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12111 break 2
12112 fi
12113done
81ecdfbb
RW
12114 done
12115IFS=$as_save_IFS
c6b750e1 12116
859789af
AC
12117fi
12118fi
c6b750e1 12119NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12120if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12122$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12123else
81ecdfbb
RW
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125$as_echo "no" >&6; }
859789af
AC
12126fi
12127
81ecdfbb 12128
2429c060
PB
12129 fi
12130 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12132set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12135if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12136 $as_echo_n "(cached) " >&6
859789af 12137else
05cbd757
PB
12138 if test -n "$NM_FOR_TARGET"; then
12139 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12140else
c6b750e1
DJ
12141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142for as_dir in $PATH
12143do
12144 IFS=$as_save_IFS
12145 test -z "$as_dir" && as_dir=.
81ecdfbb 12146 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12148 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12150 break 2
12151 fi
12152done
81ecdfbb
RW
12153 done
12154IFS=$as_save_IFS
c6b750e1 12155
859789af
AC
12156fi
12157fi
c6b750e1 12158NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12159if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12161$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12162else
81ecdfbb
RW
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164$as_echo "no" >&6; }
859789af 12165fi
c6b750e1 12166
81ecdfbb 12167
2429c060
PB
12168 fi
12169 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12170 done
12171fi
c6b750e1 12172
05cbd757
PB
12173if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12174 set dummy nm
12175 if test $build = $target ; then
12176 NM_FOR_TARGET="$2"
859789af 12177 else
05cbd757 12178 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12179 fi
d3f5afc4
MS
12180else
12181 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12182fi
12183
3a35eeb3
PB
12184else
12185 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12186fi
12187
12188
12189
12190
6b91c541
AP
12191if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12192 if test -n "$with_build_time_tools"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12194$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12195 if test -x $with_build_time_tools/objcopy; then
12196 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12197 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12199$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12200 else
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202$as_echo "no" >&6; }
12203 fi
12204 elif test $build != $host && test $have_gcc_for_target = yes; then
12205 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12206 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12207 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12208 fi
12209fi
12210if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12211 # Extract the first word of "objcopy", so it can be a program name with args.
12212set dummy objcopy; ac_word=$2
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12214$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12215if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12216 $as_echo_n "(cached) " >&6
12217else
12218 case $OBJCOPY_FOR_TARGET in
12219 [\\/]* | ?:[\\/]*)
12220 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12221 ;;
12222 *)
12223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224for as_dir in $gcc_cv_tool_dirs
12225do
12226 IFS=$as_save_IFS
12227 test -z "$as_dir" && as_dir=.
12228 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12230 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12232 break 2
12233 fi
12234done
12235 done
12236IFS=$as_save_IFS
12237
12238 ;;
12239esac
12240fi
12241OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12242if test -n "$OBJCOPY_FOR_TARGET"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12244$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12245else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247$as_echo "no" >&6; }
12248fi
12249
12250
12251fi
12252if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12253
12254
12255if test -n "$OBJCOPY_FOR_TARGET"; then
12256 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12257elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12258 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12259fi
12260
12261if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12262 for ncn_progname in objcopy; do
12263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12264set dummy ${ncn_progname}; ac_word=$2
12265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12267if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12268 $as_echo_n "(cached) " >&6
12269else
12270 if test -n "$OBJCOPY_FOR_TARGET"; then
12271 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12272else
12273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274for as_dir in $PATH
12275do
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
12278 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12280 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 break 2
12283 fi
12284done
12285 done
12286IFS=$as_save_IFS
12287
12288fi
12289fi
12290OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12291if test -n "$OBJCOPY_FOR_TARGET"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12293$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12294else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296$as_echo "no" >&6; }
12297fi
12298
12299
12300 done
12301fi
12302
12303if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12304 for ncn_progname in objcopy; do
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12306$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12307 if test -x $with_build_time_tools/${ncn_progname}; then
12308 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12310$as_echo "yes" >&6; }
12311 break
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314$as_echo "no" >&6; }
12315 fi
12316 done
12317fi
12318
12319if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12320 for ncn_progname in objcopy; do
12321 if test -n "$ncn_target_tool_prefix"; then
12322 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12323set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12326if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12327 $as_echo_n "(cached) " >&6
12328else
12329 if test -n "$OBJCOPY_FOR_TARGET"; then
12330 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12331else
12332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333for as_dir in $PATH
12334do
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12339 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 break 2
12342 fi
12343done
12344 done
12345IFS=$as_save_IFS
12346
12347fi
12348fi
12349OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12350if test -n "$OBJCOPY_FOR_TARGET"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12352$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12353else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355$as_echo "no" >&6; }
12356fi
12357
12358
12359 fi
12360 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12362set dummy ${ncn_progname}; ac_word=$2
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12365if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12366 $as_echo_n "(cached) " >&6
12367else
12368 if test -n "$OBJCOPY_FOR_TARGET"; then
12369 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12370else
12371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372for as_dir in $PATH
12373do
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
12376 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12378 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380 break 2
12381 fi
12382done
12383 done
12384IFS=$as_save_IFS
12385
12386fi
12387fi
12388OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12389if test -n "$OBJCOPY_FOR_TARGET"; then
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12391$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12392else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394$as_echo "no" >&6; }
12395fi
12396
12397
12398 fi
12399 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12400 done
12401fi
12402
12403if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12404 set dummy objcopy
12405 if test $build = $target ; then
12406 OBJCOPY_FOR_TARGET="$2"
12407 else
12408 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12409 fi
12410else
12411 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12412fi
12413
12414else
12415 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12416fi
12417
12418
12419
12420
2429c060
PB
12421if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12422 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12424$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12425 if test -x $with_build_time_tools/objdump; then
12426 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12427 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12429$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12430 else
81ecdfbb
RW
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432$as_echo "no" >&6; }
3a35eeb3 12433 fi
2429c060
PB
12434 elif test $build != $host && test $have_gcc_for_target = yes; then
12435 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12436 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12437 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12438 fi
12439fi
c6b750e1 12440if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12441 # Extract the first word of "objdump", so it can be a program name with args.
12442set dummy objdump; ac_word=$2
81ecdfbb
RW
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12445if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12446 $as_echo_n "(cached) " >&6
2429c060 12447else
c6b750e1
DJ
12448 case $OBJDUMP_FOR_TARGET in
12449 [\\/]* | ?:[\\/]*)
2429c060
PB
12450 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12451 ;;
2429c060 12452 *)
c6b750e1
DJ
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454for as_dir in $gcc_cv_tool_dirs
12455do
12456 IFS=$as_save_IFS
12457 test -z "$as_dir" && as_dir=.
81ecdfbb 12458 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12460 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12462 break 2
12463 fi
12464done
81ecdfbb
RW
12465 done
12466IFS=$as_save_IFS
c6b750e1 12467
2429c060
PB
12468 ;;
12469esac
12470fi
c6b750e1 12471OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12472if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12474$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12475else
81ecdfbb
RW
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477$as_echo "no" >&6; }
2429c060
PB
12478fi
12479
81ecdfbb 12480
2429c060
PB
12481fi
12482if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12483
12484
12485if test -n "$OBJDUMP_FOR_TARGET"; then
12486 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12487elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12488 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12489fi
12490
12491if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12492 for ncn_progname in objdump; do
12493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12494set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12497if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12498 $as_echo_n "(cached) " >&6
9a819804
AO
12499else
12500 if test -n "$OBJDUMP_FOR_TARGET"; then
12501 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12502else
12503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504for as_dir in $PATH
12505do
12506 IFS=$as_save_IFS
12507 test -z "$as_dir" && as_dir=.
81ecdfbb 12508 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12510 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12512 break 2
12513 fi
12514done
81ecdfbb
RW
12515 done
12516IFS=$as_save_IFS
9a819804
AO
12517
12518fi
12519fi
12520OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12521if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12523$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12524else
81ecdfbb
RW
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526$as_echo "no" >&6; }
9a819804
AO
12527fi
12528
81ecdfbb 12529
9a819804
AO
12530 done
12531fi
12532
12533if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12534 for ncn_progname in objdump; do
81ecdfbb
RW
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12536$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12537 if test -x $with_build_time_tools/${ncn_progname}; then
12538 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12540$as_echo "yes" >&6; }
2429c060
PB
12541 break
12542 else
81ecdfbb
RW
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544$as_echo "no" >&6; }
2429c060
PB
12545 fi
12546 done
12547fi
12548
12549if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12550 for ncn_progname in objdump; do
12551 if test -n "$ncn_target_tool_prefix"; then
12552 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12553set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12556if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12557 $as_echo_n "(cached) " >&6
5ae72758
DJ
12558else
12559 if test -n "$OBJDUMP_FOR_TARGET"; then
12560 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12561else
c6b750e1
DJ
12562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563for as_dir in $PATH
12564do
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
81ecdfbb 12567 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12569 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12571 break 2
12572 fi
12573done
81ecdfbb
RW
12574 done
12575IFS=$as_save_IFS
c6b750e1 12576
5ae72758
DJ
12577fi
12578fi
c6b750e1 12579OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12580if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12582$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12583else
81ecdfbb
RW
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585$as_echo "no" >&6; }
5ae72758
DJ
12586fi
12587
81ecdfbb 12588
2429c060
PB
12589 fi
12590 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12592set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12595if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12596 $as_echo_n "(cached) " >&6
5ae72758
DJ
12597else
12598 if test -n "$OBJDUMP_FOR_TARGET"; then
12599 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12600else
c6b750e1
DJ
12601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602for as_dir in $PATH
12603do
12604 IFS=$as_save_IFS
12605 test -z "$as_dir" && as_dir=.
81ecdfbb 12606 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12608 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12610 break 2
12611 fi
12612done
81ecdfbb
RW
12613 done
12614IFS=$as_save_IFS
c6b750e1 12615
5ae72758
DJ
12616fi
12617fi
c6b750e1 12618OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12619if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12621$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12622else
81ecdfbb
RW
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624$as_echo "no" >&6; }
5ae72758 12625fi
c6b750e1 12626
81ecdfbb 12627
2429c060
PB
12628 fi
12629 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12630 done
12631fi
c6b750e1 12632
5ae72758
DJ
12633if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12634 set dummy objdump
12635 if test $build = $target ; then
12636 OBJDUMP_FOR_TARGET="$2"
12637 else
12638 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12639 fi
d3f5afc4
MS
12640else
12641 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12642fi
12643
3a35eeb3
PB
12644else
12645 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12646fi
12647
12648
12649
12650
12651if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12652 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12654$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12655 if test -x $with_build_time_tools/ranlib; then
12656 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12657 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12659$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12660 else
81ecdfbb
RW
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662$as_echo "no" >&6; }
3a35eeb3 12663 fi
2429c060
PB
12664 elif test $build != $host && test $have_gcc_for_target = yes; then
12665 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12666 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12667 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12668 fi
12669fi
c6b750e1 12670if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12671 # Extract the first word of "ranlib", so it can be a program name with args.
12672set dummy ranlib; ac_word=$2
81ecdfbb
RW
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12675if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12676 $as_echo_n "(cached) " >&6
2429c060 12677else
c6b750e1
DJ
12678 case $RANLIB_FOR_TARGET in
12679 [\\/]* | ?:[\\/]*)
2429c060
PB
12680 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12681 ;;
2429c060 12682 *)
c6b750e1
DJ
12683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12684for as_dir in $gcc_cv_tool_dirs
12685do
12686 IFS=$as_save_IFS
12687 test -z "$as_dir" && as_dir=.
81ecdfbb 12688 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12690 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12692 break 2
12693 fi
12694done
81ecdfbb
RW
12695 done
12696IFS=$as_save_IFS
c6b750e1 12697
2429c060
PB
12698 ;;
12699esac
12700fi
c6b750e1 12701RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12702if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12704$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12705else
81ecdfbb
RW
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707$as_echo "no" >&6; }
2429c060
PB
12708fi
12709
81ecdfbb 12710
2429c060
PB
12711fi
12712if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12713
12714
12715if test -n "$RANLIB_FOR_TARGET"; then
12716 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12717elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12718 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12719fi
12720
12721if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12722 for ncn_progname in ranlib; do
12723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12724set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12726$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12727if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12728 $as_echo_n "(cached) " >&6
9a819804
AO
12729else
12730 if test -n "$RANLIB_FOR_TARGET"; then
12731 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12732else
12733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12734for as_dir in $PATH
12735do
12736 IFS=$as_save_IFS
12737 test -z "$as_dir" && as_dir=.
81ecdfbb 12738 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12740 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12742 break 2
12743 fi
12744done
81ecdfbb
RW
12745 done
12746IFS=$as_save_IFS
9a819804
AO
12747
12748fi
12749fi
12750RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12751if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12753$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12754else
81ecdfbb
RW
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756$as_echo "no" >&6; }
9a819804
AO
12757fi
12758
81ecdfbb 12759
9a819804
AO
12760 done
12761fi
12762
12763if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12764 for ncn_progname in ranlib; do
81ecdfbb
RW
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12766$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12767 if test -x $with_build_time_tools/${ncn_progname}; then
12768 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12770$as_echo "yes" >&6; }
2429c060
PB
12771 break
12772 else
81ecdfbb
RW
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774$as_echo "no" >&6; }
2429c060
PB
12775 fi
12776 done
12777fi
12778
12779if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12780 for ncn_progname in ranlib; do
12781 if test -n "$ncn_target_tool_prefix"; then
12782 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12783set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12786if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12787 $as_echo_n "(cached) " >&6
859789af 12788else
55db4b87
PB
12789 if test -n "$RANLIB_FOR_TARGET"; then
12790 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12791else
c6b750e1
DJ
12792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793for as_dir in $PATH
12794do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
81ecdfbb 12797 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12799 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12801 break 2
12802 fi
12803done
81ecdfbb
RW
12804 done
12805IFS=$as_save_IFS
c6b750e1 12806
859789af
AC
12807fi
12808fi
c6b750e1 12809RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12810if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12812$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12813else
81ecdfbb
RW
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815$as_echo "no" >&6; }
859789af
AC
12816fi
12817
81ecdfbb 12818
2429c060
PB
12819 fi
12820 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12822set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12824$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12825if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12826 $as_echo_n "(cached) " >&6
859789af 12827else
05cbd757
PB
12828 if test -n "$RANLIB_FOR_TARGET"; then
12829 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12830else
c6b750e1
DJ
12831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832for as_dir in $PATH
12833do
12834 IFS=$as_save_IFS
12835 test -z "$as_dir" && as_dir=.
81ecdfbb 12836 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12838 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12840 break 2
12841 fi
12842done
81ecdfbb
RW
12843 done
12844IFS=$as_save_IFS
c6b750e1 12845
859789af
AC
12846fi
12847fi
c6b750e1 12848RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12849if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12851$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12852else
81ecdfbb
RW
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854$as_echo "no" >&6; }
859789af 12855fi
c6b750e1 12856
81ecdfbb 12857
2429c060
PB
12858 fi
12859 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12860 done
12861fi
c6b750e1 12862
2429c060
PB
12863if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12864 set dummy ranlib
12865 if test $build = $target ; then
12866 RANLIB_FOR_TARGET="$2"
12867 else
12868 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12869 fi
d3f5afc4
MS
12870else
12871 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12872fi
05cbd757 12873
3a35eeb3
PB
12874else
12875 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12876fi
12877
2429c060
PB
12878
12879
12880
b121d7d4
DD
12881if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12882 if test -n "$with_build_time_tools"; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12884$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12885 if test -x $with_build_time_tools/readelf; then
12886 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12887 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12889$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12890 else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892$as_echo "no" >&6; }
12893 fi
12894 elif test $build != $host && test $have_gcc_for_target = yes; then
12895 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12896 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12897 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12898 fi
12899fi
12900if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12901 # Extract the first word of "readelf", so it can be a program name with args.
12902set dummy readelf; ac_word=$2
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12905if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
12906 $as_echo_n "(cached) " >&6
12907else
12908 case $READELF_FOR_TARGET in
12909 [\\/]* | ?:[\\/]*)
12910 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12911 ;;
12912 *)
12913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914for as_dir in $gcc_cv_tool_dirs
12915do
12916 IFS=$as_save_IFS
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12920 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 break 2
12923 fi
12924done
12925 done
12926IFS=$as_save_IFS
12927
12928 ;;
12929esac
12930fi
12931READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12932if test -n "$READELF_FOR_TARGET"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12934$as_echo "$READELF_FOR_TARGET" >&6; }
12935else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937$as_echo "no" >&6; }
12938fi
12939
12940
12941fi
12942if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12943
12944
12945if test -n "$READELF_FOR_TARGET"; then
12946 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12947elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12948 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12949fi
12950
12951if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12952 for ncn_progname in readelf; do
12953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12954set dummy ${ncn_progname}; ac_word=$2
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12956$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12957if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
12958 $as_echo_n "(cached) " >&6
12959else
12960 if test -n "$READELF_FOR_TARGET"; then
12961 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12962else
12963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964for as_dir in $PATH
12965do
12966 IFS=$as_save_IFS
12967 test -z "$as_dir" && as_dir=.
12968 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12970 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 break 2
12973 fi
12974done
12975 done
12976IFS=$as_save_IFS
12977
12978fi
12979fi
12980READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12981if test -n "$READELF_FOR_TARGET"; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12983$as_echo "$READELF_FOR_TARGET" >&6; }
12984else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986$as_echo "no" >&6; }
12987fi
12988
12989
12990 done
12991fi
12992
12993if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12994 for ncn_progname in readelf; do
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12996$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12997 if test -x $with_build_time_tools/${ncn_progname}; then
12998 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13000$as_echo "yes" >&6; }
13001 break
13002 else
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004$as_echo "no" >&6; }
13005 fi
13006 done
13007fi
13008
13009if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13010 for ncn_progname in readelf; do
13011 if test -n "$ncn_target_tool_prefix"; then
13012 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13013set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13015$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13016if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13017 $as_echo_n "(cached) " >&6
13018else
13019 if test -n "$READELF_FOR_TARGET"; then
13020 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13021else
13022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023for as_dir in $PATH
13024do
13025 IFS=$as_save_IFS
13026 test -z "$as_dir" && as_dir=.
13027 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13029 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13031 break 2
13032 fi
13033done
13034 done
13035IFS=$as_save_IFS
13036
13037fi
13038fi
13039READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13040if test -n "$READELF_FOR_TARGET"; then
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13042$as_echo "$READELF_FOR_TARGET" >&6; }
13043else
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045$as_echo "no" >&6; }
13046fi
13047
13048
13049 fi
13050 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13052set dummy ${ncn_progname}; ac_word=$2
13053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13054$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13055if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13056 $as_echo_n "(cached) " >&6
13057else
13058 if test -n "$READELF_FOR_TARGET"; then
13059 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13060else
13061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062for as_dir in $PATH
13063do
13064 IFS=$as_save_IFS
13065 test -z "$as_dir" && as_dir=.
13066 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13068 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070 break 2
13071 fi
13072done
13073 done
13074IFS=$as_save_IFS
13075
13076fi
13077fi
13078READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13079if test -n "$READELF_FOR_TARGET"; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13081$as_echo "$READELF_FOR_TARGET" >&6; }
13082else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084$as_echo "no" >&6; }
13085fi
13086
13087
13088 fi
13089 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13090 done
13091fi
13092
13093if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13094 set dummy readelf
13095 if test $build = $target ; then
13096 READELF_FOR_TARGET="$2"
13097 else
13098 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13099 fi
13100else
13101 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13102fi
13103
13104else
13105 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13106fi
13107
13108
13109
13110
2429c060
PB
13111if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13112 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13114$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13115 if test -x $with_build_time_tools/strip; then
13116 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13117 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13119$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13120 else
81ecdfbb
RW
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122$as_echo "no" >&6; }
3a35eeb3 13123 fi
2429c060
PB
13124 elif test $build != $host && test $have_gcc_for_target = yes; then
13125 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13126 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13127 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13128 fi
13129fi
c6b750e1 13130if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13131 # Extract the first word of "strip", so it can be a program name with args.
13132set dummy strip; ac_word=$2
81ecdfbb
RW
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13135if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13136 $as_echo_n "(cached) " >&6
2429c060 13137else
c6b750e1
DJ
13138 case $STRIP_FOR_TARGET in
13139 [\\/]* | ?:[\\/]*)
2429c060
PB
13140 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13141 ;;
2429c060 13142 *)
c6b750e1
DJ
13143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144for as_dir in $gcc_cv_tool_dirs
13145do
13146 IFS=$as_save_IFS
13147 test -z "$as_dir" && as_dir=.
81ecdfbb 13148 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13150 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13152 break 2
13153 fi
13154done
81ecdfbb
RW
13155 done
13156IFS=$as_save_IFS
c6b750e1 13157
2429c060
PB
13158 ;;
13159esac
13160fi
c6b750e1 13161STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13162if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13164$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13165else
81ecdfbb
RW
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167$as_echo "no" >&6; }
2429c060
PB
13168fi
13169
81ecdfbb 13170
2429c060
PB
13171fi
13172if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13173
13174
13175if test -n "$STRIP_FOR_TARGET"; then
13176 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13177elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13178 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13179fi
13180
13181if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13182 for ncn_progname in strip; do
13183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13184set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13187if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13188 $as_echo_n "(cached) " >&6
9a819804
AO
13189else
13190 if test -n "$STRIP_FOR_TARGET"; then
13191 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13192else
13193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194for as_dir in $PATH
13195do
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
81ecdfbb 13198 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13200 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13202 break 2
13203 fi
13204done
81ecdfbb
RW
13205 done
13206IFS=$as_save_IFS
9a819804
AO
13207
13208fi
13209fi
13210STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13211if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13213$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13214else
81ecdfbb
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216$as_echo "no" >&6; }
9a819804
AO
13217fi
13218
81ecdfbb 13219
9a819804
AO
13220 done
13221fi
13222
13223if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13224 for ncn_progname in strip; do
81ecdfbb
RW
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13226$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13227 if test -x $with_build_time_tools/${ncn_progname}; then
13228 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13230$as_echo "yes" >&6; }
2429c060
PB
13231 break
13232 else
81ecdfbb
RW
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234$as_echo "no" >&6; }
2429c060
PB
13235 fi
13236 done
13237fi
13238
13239if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13240 for ncn_progname in strip; do
13241 if test -n "$ncn_target_tool_prefix"; then
13242 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13243set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13245$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13246if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13247 $as_echo_n "(cached) " >&6
7e0f7140
GK
13248else
13249 if test -n "$STRIP_FOR_TARGET"; then
13250 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13251else
13252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253for as_dir in $PATH
13254do
13255 IFS=$as_save_IFS
13256 test -z "$as_dir" && as_dir=.
81ecdfbb 13257 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13259 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13261 break 2
13262 fi
13263done
81ecdfbb
RW
13264 done
13265IFS=$as_save_IFS
c6b750e1 13266
7e0f7140
GK
13267fi
13268fi
c6b750e1 13269STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13270if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13272$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13273else
81ecdfbb
RW
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13275$as_echo "no" >&6; }
7e0f7140
GK
13276fi
13277
81ecdfbb 13278
2429c060
PB
13279 fi
13280 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13282set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13284$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13285if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13286 $as_echo_n "(cached) " >&6
7e0f7140
GK
13287else
13288 if test -n "$STRIP_FOR_TARGET"; then
13289 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13290else
c6b750e1
DJ
13291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292for as_dir in $PATH
13293do
13294 IFS=$as_save_IFS
13295 test -z "$as_dir" && as_dir=.
81ecdfbb 13296 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13298 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13300 break 2
13301 fi
13302done
81ecdfbb
RW
13303 done
13304IFS=$as_save_IFS
c6b750e1 13305
7e0f7140
GK
13306fi
13307fi
c6b750e1 13308STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13309if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13311$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13312else
81ecdfbb
RW
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314$as_echo "no" >&6; }
7e0f7140 13315fi
c6b750e1 13316
81ecdfbb 13317
2429c060
PB
13318 fi
13319 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13320 done
13321fi
c6b750e1 13322
7e0f7140
GK
13323if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13324 set dummy strip
13325 if test $build = $target ; then
13326 STRIP_FOR_TARGET="$2"
13327 else
13328 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13329 fi
d3f5afc4
MS
13330else
13331 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13332fi
13333
3a35eeb3
PB
13334else
13335 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13336fi
13337
13338
13339
13340
13341if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13342 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13344$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13345 if test -x $with_build_time_tools/windres; then
13346 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13347 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13349$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13350 else
81ecdfbb
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352$as_echo "no" >&6; }
3a35eeb3 13353 fi
2429c060
PB
13354 elif test $build != $host && test $have_gcc_for_target = yes; then
13355 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13356 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13357 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13358 fi
13359fi
c6b750e1 13360if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13361 # Extract the first word of "windres", so it can be a program name with args.
13362set dummy windres; ac_word=$2
81ecdfbb
RW
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13365if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13366 $as_echo_n "(cached) " >&6
2429c060 13367else
c6b750e1
DJ
13368 case $WINDRES_FOR_TARGET in
13369 [\\/]* | ?:[\\/]*)
2429c060
PB
13370 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13371 ;;
2429c060 13372 *)
c6b750e1
DJ
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374for as_dir in $gcc_cv_tool_dirs
13375do
13376 IFS=$as_save_IFS
13377 test -z "$as_dir" && as_dir=.
81ecdfbb 13378 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13380 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13382 break 2
13383 fi
13384done
81ecdfbb
RW
13385 done
13386IFS=$as_save_IFS
c6b750e1 13387
2429c060
PB
13388 ;;
13389esac
13390fi
c6b750e1 13391WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13392if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13394$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13395else
81ecdfbb
RW
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13397$as_echo "no" >&6; }
2429c060
PB
13398fi
13399
81ecdfbb 13400
2429c060
PB
13401fi
13402if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13403
13404
13405if test -n "$WINDRES_FOR_TARGET"; then
13406 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13407elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13408 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13409fi
13410
13411if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13412 for ncn_progname in windres; do
13413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13414set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13417if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13418 $as_echo_n "(cached) " >&6
9a819804
AO
13419else
13420 if test -n "$WINDRES_FOR_TARGET"; then
13421 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13422else
13423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13424for as_dir in $PATH
13425do
13426 IFS=$as_save_IFS
13427 test -z "$as_dir" && as_dir=.
81ecdfbb 13428 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13430 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13432 break 2
13433 fi
13434done
81ecdfbb
RW
13435 done
13436IFS=$as_save_IFS
9a819804
AO
13437
13438fi
13439fi
13440WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13441if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13443$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13444else
81ecdfbb
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446$as_echo "no" >&6; }
9a819804
AO
13447fi
13448
81ecdfbb 13449
9a819804
AO
13450 done
13451fi
13452
13453if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13454 for ncn_progname in windres; do
81ecdfbb
RW
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13456$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13457 if test -x $with_build_time_tools/${ncn_progname}; then
13458 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13460$as_echo "yes" >&6; }
2429c060
PB
13461 break
13462 else
81ecdfbb
RW
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464$as_echo "no" >&6; }
2429c060
PB
13465 fi
13466 done
13467fi
13468
13469if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13470 for ncn_progname in windres; do
13471 if test -n "$ncn_target_tool_prefix"; then
13472 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13473set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13475$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13476if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13477 $as_echo_n "(cached) " >&6
859789af 13478else
55db4b87
PB
13479 if test -n "$WINDRES_FOR_TARGET"; then
13480 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13481else
c6b750e1
DJ
13482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483for as_dir in $PATH
13484do
13485 IFS=$as_save_IFS
13486 test -z "$as_dir" && as_dir=.
81ecdfbb 13487 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13489 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13491 break 2
13492 fi
13493done
81ecdfbb
RW
13494 done
13495IFS=$as_save_IFS
c6b750e1 13496
859789af
AC
13497fi
13498fi
c6b750e1 13499WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13500if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13502$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13503else
81ecdfbb
RW
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505$as_echo "no" >&6; }
859789af
AC
13506fi
13507
81ecdfbb 13508
2429c060
PB
13509 fi
13510 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13512set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13514$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13515if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13516 $as_echo_n "(cached) " >&6
859789af 13517else
05cbd757
PB
13518 if test -n "$WINDRES_FOR_TARGET"; then
13519 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13520else
c6b750e1
DJ
13521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522for as_dir in $PATH
13523do
13524 IFS=$as_save_IFS
13525 test -z "$as_dir" && as_dir=.
81ecdfbb 13526 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13528 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13530 break 2
13531 fi
13532done
81ecdfbb
RW
13533 done
13534IFS=$as_save_IFS
c6b750e1 13535
859789af
AC
13536fi
13537fi
c6b750e1 13538WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13539if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13541$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13542else
81ecdfbb
RW
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544$as_echo "no" >&6; }
859789af 13545fi
c6b750e1 13546
81ecdfbb 13547
2429c060
PB
13548 fi
13549 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13550 done
13551fi
c6b750e1 13552
05cbd757
PB
13553if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13554 set dummy windres
13555 if test $build = $target ; then
13556 WINDRES_FOR_TARGET="$2"
859789af 13557 else
05cbd757 13558 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13559 fi
d3f5afc4
MS
13560else
13561 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13562fi
13563
3a35eeb3
PB
13564else
13565 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13566fi
13567
852e5f18 13568
0c24b341
NC
13569
13570
13571if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13572 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13574$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13575 if test -x $with_build_time_tools/windmc; then
13576 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13577 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13579$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13580 else
81ecdfbb
RW
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582$as_echo "no" >&6; }
0c24b341
NC
13583 fi
13584 elif test $build != $host && test $have_gcc_for_target = yes; then
13585 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13586 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13587 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13588 fi
13589fi
13590if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13591 # Extract the first word of "windmc", so it can be a program name with args.
13592set dummy windmc; ac_word=$2
81ecdfbb
RW
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13595if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13596 $as_echo_n "(cached) " >&6
0c24b341
NC
13597else
13598 case $WINDMC_FOR_TARGET in
13599 [\\/]* | ?:[\\/]*)
13600 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13601 ;;
13602 *)
13603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604for as_dir in $gcc_cv_tool_dirs
13605do
13606 IFS=$as_save_IFS
13607 test -z "$as_dir" && as_dir=.
81ecdfbb 13608 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13610 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13612 break 2
13613 fi
13614done
81ecdfbb
RW
13615 done
13616IFS=$as_save_IFS
0c24b341
NC
13617
13618 ;;
13619esac
13620fi
13621WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13622if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13624$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13625else
81ecdfbb
RW
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13627$as_echo "no" >&6; }
0c24b341
NC
13628fi
13629
81ecdfbb 13630
0c24b341
NC
13631fi
13632if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13633
13634
13635if test -n "$WINDMC_FOR_TARGET"; then
13636 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13637elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13638 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13639fi
13640
13641if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13642 for ncn_progname in windmc; do
13643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13644set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13646$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13647if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13648 $as_echo_n "(cached) " >&6
0c24b341
NC
13649else
13650 if test -n "$WINDMC_FOR_TARGET"; then
13651 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13652else
13653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654for as_dir in $PATH
13655do
13656 IFS=$as_save_IFS
13657 test -z "$as_dir" && as_dir=.
81ecdfbb 13658 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13660 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13662 break 2
13663 fi
13664done
81ecdfbb
RW
13665 done
13666IFS=$as_save_IFS
0c24b341
NC
13667
13668fi
13669fi
13670WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13671if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13673$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13674else
81ecdfbb
RW
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676$as_echo "no" >&6; }
0c24b341
NC
13677fi
13678
81ecdfbb 13679
0c24b341
NC
13680 done
13681fi
13682
13683if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13684 for ncn_progname in windmc; do
81ecdfbb
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13686$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13687 if test -x $with_build_time_tools/${ncn_progname}; then
13688 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13690$as_echo "yes" >&6; }
0c24b341
NC
13691 break
13692 else
81ecdfbb
RW
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694$as_echo "no" >&6; }
0c24b341
NC
13695 fi
13696 done
13697fi
13698
13699if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13700 for ncn_progname in windmc; do
13701 if test -n "$ncn_target_tool_prefix"; then
13702 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13703set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13705$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13706if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13707 $as_echo_n "(cached) " >&6
0c24b341
NC
13708else
13709 if test -n "$WINDMC_FOR_TARGET"; then
13710 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13711else
13712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13713for as_dir in $PATH
13714do
13715 IFS=$as_save_IFS
13716 test -z "$as_dir" && as_dir=.
81ecdfbb 13717 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13719 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13721 break 2
13722 fi
13723done
81ecdfbb
RW
13724 done
13725IFS=$as_save_IFS
0c24b341
NC
13726
13727fi
13728fi
13729WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13730if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13732$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13733else
81ecdfbb
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735$as_echo "no" >&6; }
0c24b341
NC
13736fi
13737
81ecdfbb 13738
0c24b341
NC
13739 fi
13740 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13742set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13745if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13746 $as_echo_n "(cached) " >&6
0c24b341
NC
13747else
13748 if test -n "$WINDMC_FOR_TARGET"; then
13749 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13750else
13751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752for as_dir in $PATH
13753do
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
81ecdfbb 13756 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13758 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13760 break 2
13761 fi
13762done
81ecdfbb
RW
13763 done
13764IFS=$as_save_IFS
0c24b341
NC
13765
13766fi
13767fi
13768WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13769if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13771$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13772else
81ecdfbb
RW
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774$as_echo "no" >&6; }
0c24b341
NC
13775fi
13776
81ecdfbb 13777
0c24b341
NC
13778 fi
13779 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13780 done
13781fi
13782
13783if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13784 set dummy windmc
13785 if test $build = $target ; then
13786 WINDMC_FOR_TARGET="$2"
13787 else
13788 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13789 fi
13790else
13791 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13792fi
13793
13794else
13795 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13796fi
13797
13798
be01d343
PB
13799RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13800
81ecdfbb
RW
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13802$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13803if test "x${build}" != "x${host}" ; then
2429c060
PB
13804 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13805 # We already found the complete path
b8025f34 13806 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13808$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13809 else
13810 # Canadian cross, just use what we found
81ecdfbb
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13812$as_echo "pre-installed" >&6; }
2429c060 13813 fi
be01d343
PB
13814else
13815 ok=yes
13816 case " ${configdirs} " in
13817 *" binutils "*) ;;
13818 *) ok=no ;;
13819 esac
c6b750e1 13820
be01d343
PB
13821 if test $ok = yes; then
13822 # An in-tree tool is available and we can use it
13823 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13825$as_echo "just compiled" >&6; }
2429c060
PB
13826 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13827 # We already found the complete path
b8025f34 13828 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13830$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13831 elif test "x$target" = "x$host"; then
13832 # We can use an host tool
13833 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13835$as_echo "host tool" >&6; }
be01d343
PB
13836 else
13837 # We need a cross tool
81ecdfbb
RW
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13839$as_echo "pre-installed" >&6; }
be01d343
PB
13840 fi
13841fi
4b900473 13842
81ecdfbb
RW
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13844$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13845if test "x${build}" != "x${host}" ; then
2429c060
PB
13846 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13847 # We already found the complete path
b8025f34 13848 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13850$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13851 else
13852 # Canadian cross, just use what we found
81ecdfbb
RW
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13854$as_echo "pre-installed" >&6; }
2429c060 13855 fi
be01d343
PB
13856else
13857 ok=yes
13858 case " ${configdirs} " in
13859 *" gas "*) ;;
13860 *) ok=no ;;
13861 esac
c6b750e1 13862
be01d343
PB
13863 if test $ok = yes; then
13864 # An in-tree tool is available and we can use it
13865 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13867$as_echo "just compiled" >&6; }
2429c060
PB
13868 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13869 # We already found the complete path
b8025f34 13870 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13872$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13873 elif test "x$target" = "x$host"; then
13874 # We can use an host tool
13875 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13877$as_echo "host tool" >&6; }
be01d343
PB
13878 else
13879 # We need a cross tool
81ecdfbb
RW
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13881$as_echo "pre-installed" >&6; }
be01d343
PB
13882 fi
13883fi
4b900473 13884
81ecdfbb
RW
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13886$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13887if test "x${build}" != "x${host}" ; then
2429c060
PB
13888 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13889 # We already found the complete path
b8025f34 13890 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13892$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13893 else
13894 # Canadian cross, just use what we found
81ecdfbb
RW
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13896$as_echo "pre-installed" >&6; }
2429c060 13897 fi
be01d343
PB
13898else
13899 ok=yes
13900 case " ${configdirs} " in
13901 *" gcc "*) ;;
13902 *) ok=no ;;
13903 esac
c6b750e1 13904
be01d343
PB
13905 if test $ok = yes; then
13906 # An in-tree tool is available and we can use it
13907 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13909$as_echo "just compiled" >&6; }
2429c060
PB
13910 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13911 # We already found the complete path
b8025f34 13912 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13914$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13915 elif test "x$target" = "x$host"; then
13916 # We can use an host tool
13917 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13919$as_echo "host tool" >&6; }
be01d343
PB
13920 else
13921 # We need a cross tool
81ecdfbb
RW
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13923$as_echo "pre-installed" >&6; }
be01d343
PB
13924 fi
13925fi
4b900473 13926
81ecdfbb
RW
13927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13928$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13929if test "x${build}" != "x${host}" ; then
2429c060
PB
13930 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13931 # We already found the complete path
b8025f34 13932 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13934$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13935 else
13936 # Canadian cross, just use what we found
81ecdfbb
RW
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13938$as_echo "pre-installed" >&6; }
2429c060 13939 fi
be01d343
PB
13940else
13941 ok=yes
13942 case " ${configdirs} " in
13943 *" gcc "*) ;;
13944 *) ok=no ;;
13945 esac
13946 case ,${enable_languages}, in
13947 *,c++,*) ;;
13948 *) ok=no ;;
13949 esac
13950 if test $ok = yes; then
13951 # An in-tree tool is available and we can use it
95e43135 13952 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'
81ecdfbb
RW
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13954$as_echo "just compiled" >&6; }
2429c060
PB
13955 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13956 # We already found the complete path
b8025f34 13957 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13959$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13960 elif test "x$target" = "x$host"; then
13961 # We can use an host tool
13962 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13964$as_echo "host tool" >&6; }
be01d343
PB
13965 else
13966 # We need a cross tool
81ecdfbb
RW
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13968$as_echo "pre-installed" >&6; }
be01d343
PB
13969 fi
13970fi
4b900473 13971
81ecdfbb
RW
13972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13973$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13974if test "x${build}" != "x${host}" ; then
2429c060
PB
13975 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13976 # We already found the complete path
b8025f34 13977 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13979$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13980 else
13981 # Canadian cross, just use what we found
81ecdfbb
RW
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13983$as_echo "pre-installed" >&6; }
2429c060 13984 fi
be01d343
PB
13985else
13986 ok=yes
13987 case " ${configdirs} " in
13988 *" gcc "*) ;;
13989 *) ok=no ;;
13990 esac
13991 case ,${enable_languages}, in
13992 *,c++,*) ;;
13993 *) ok=no ;;
13994 esac
13995 if test $ok = yes; then
13996 # An in-tree tool is available and we can use it
95e43135 13997 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'
81ecdfbb
RW
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13999$as_echo "just compiled" >&6; }
2429c060
PB
14000 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14001 # We already found the complete path
b8025f34 14002 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14004$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14005 elif test "x$target" = "x$host"; then
14006 # We can use an host tool
14007 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14009$as_echo "host tool" >&6; }
be01d343
PB
14010 else
14011 # We need a cross tool
81ecdfbb
RW
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14013$as_echo "pre-installed" >&6; }
be01d343
PB
14014 fi
14015fi
4b900473 14016
81ecdfbb
RW
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14018$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 14019if test "x${build}" != "x${host}" ; then
2429c060
PB
14020 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14021 # We already found the complete path
b8025f34 14022 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14024$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14025 else
14026 # Canadian cross, just use what we found
81ecdfbb
RW
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14028$as_echo "pre-installed" >&6; }
2429c060 14029 fi
be01d343
PB
14030else
14031 ok=yes
14032 case " ${configdirs} " in
14033 *" binutils "*) ;;
14034 *) ok=no ;;
14035 esac
c6b750e1 14036
be01d343
PB
14037 if test $ok = yes; then
14038 # An in-tree tool is available and we can use it
14039 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14041$as_echo "just compiled" >&6; }
2429c060
PB
14042 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14043 # We already found the complete path
b8025f34 14044 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14046$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14047 elif test "x$target" = "x$host"; then
14048 # We can use an host tool
14049 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14051$as_echo "host tool" >&6; }
be01d343
PB
14052 else
14053 # We need a cross tool
81ecdfbb
RW
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14055$as_echo "pre-installed" >&6; }
be01d343
PB
14056 fi
14057fi
4b900473 14058
81ecdfbb
RW
14059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14060$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14061if test "x${build}" != "x${host}" ; then
2429c060
PB
14062 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14063 # We already found the complete path
b8025f34 14064 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14066$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14067 else
14068 # Canadian cross, just use what we found
81ecdfbb
RW
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14070$as_echo "pre-installed" >&6; }
2429c060 14071 fi
be01d343
PB
14072else
14073 ok=yes
14074 case " ${configdirs} " in
14075 *" gcc "*) ;;
14076 *) ok=no ;;
14077 esac
c6b750e1 14078
be01d343
PB
14079 if test $ok = yes; then
14080 # An in-tree tool is available and we can use it
14081 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14083$as_echo "just compiled" >&6; }
2429c060
PB
14084 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14085 # We already found the complete path
b8025f34 14086 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14088$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14089 elif test "x$target" = "x$host"; then
14090 # We can use an host tool
14091 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14093$as_echo "host tool" >&6; }
be01d343
PB
14094 else
14095 # We need a cross tool
81ecdfbb
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14097$as_echo "pre-installed" >&6; }
be01d343
PB
14098 fi
14099fi
4b900473 14100
81ecdfbb
RW
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14102$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14103if test "x${build}" != "x${host}" ; then
2429c060
PB
14104 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14105 # We already found the complete path
b8025f34 14106 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14108$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14109 else
14110 # Canadian cross, just use what we found
81ecdfbb
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14112$as_echo "pre-installed" >&6; }
2429c060 14113 fi
be01d343
PB
14114else
14115 ok=yes
14116 case " ${configdirs} " in
14117 *" gcc "*) ;;
14118 *) ok=no ;;
14119 esac
14120 case ,${enable_languages}, in
14121 *,fortran,*) ;;
14122 *) ok=no ;;
14123 esac
14124 if test $ok = yes; then
14125 # An in-tree tool is available and we can use it
14126 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14128$as_echo "just compiled" >&6; }
2429c060
PB
14129 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14130 # We already found the complete path
b8025f34 14131 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14133$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14134 elif test "x$target" = "x$host"; then
14135 # We can use an host tool
14136 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14138$as_echo "host tool" >&6; }
be01d343
PB
14139 else
14140 # We need a cross tool
81ecdfbb
RW
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14142$as_echo "pre-installed" >&6; }
be01d343
PB
14143 fi
14144fi
4b900473 14145
e552509b
ILT
14146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14147$as_echo_n "checking where to find the target gccgo... " >&6; }
14148if test "x${build}" != "x${host}" ; then
14149 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14150 # We already found the complete path
14151 ac_dir=`dirname $GOC_FOR_TARGET`
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14153$as_echo "pre-installed in $ac_dir" >&6; }
14154 else
14155 # Canadian cross, just use what we found
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14157$as_echo "pre-installed" >&6; }
14158 fi
14159else
14160 ok=yes
14161 case " ${configdirs} " in
14162 *" gcc "*) ;;
14163 *) ok=no ;;
14164 esac
14165 case ,${enable_languages}, in
14166 *,go,*) ;;
14167 *) ok=no ;;
14168 esac
14169 if test $ok = yes; then
14170 # An in-tree tool is available and we can use it
14171 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14173$as_echo "just compiled" >&6; }
14174 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14175 # We already found the complete path
14176 ac_dir=`dirname $GOC_FOR_TARGET`
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14178$as_echo "pre-installed in $ac_dir" >&6; }
14179 elif test "x$target" = "x$host"; then
14180 # We can use an host tool
14181 GOC_FOR_TARGET='$(GOC)'
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14183$as_echo "host tool" >&6; }
14184 else
14185 # We need a cross tool
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14187$as_echo "pre-installed" >&6; }
14188 fi
14189fi
14190
81ecdfbb
RW
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14192$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14193if test "x${build}" != "x${host}" ; then
2429c060
PB
14194 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14195 # We already found the complete path
b8025f34 14196 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14198$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14199 else
14200 # Canadian cross, just use what we found
81ecdfbb
RW
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14202$as_echo "pre-installed" >&6; }
2429c060 14203 fi
be01d343
PB
14204else
14205 ok=yes
14206 case " ${configdirs} " in
14207 *" ld "*) ;;
14208 *) ok=no ;;
14209 esac
c6b750e1 14210
be01d343
PB
14211 if test $ok = yes; then
14212 # An in-tree tool is available and we can use it
14213 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14215$as_echo "just compiled" >&6; }
2429c060
PB
14216 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14217 # We already found the complete path
b8025f34 14218 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14220$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14221 elif test "x$target" = "x$host"; then
14222 # We can use an host tool
14223 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14225$as_echo "host tool" >&6; }
be01d343
PB
14226 else
14227 # We need a cross tool
81ecdfbb
RW
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14229$as_echo "pre-installed" >&6; }
be01d343
PB
14230 fi
14231fi
4b900473 14232
81ecdfbb
RW
14233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14234$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14235if test "x${build}" != "x${host}" ; then
2429c060
PB
14236 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14237 # We already found the complete path
b8025f34 14238 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14240$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14241 else
14242 # Canadian cross, just use what we found
81ecdfbb
RW
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14244$as_echo "pre-installed" >&6; }
2429c060 14245 fi
be01d343 14246else
2429c060
PB
14247 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14248 # We already found the complete path
b8025f34 14249 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14251$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14252 elif test "x$target" = "x$host"; then
be01d343
PB
14253 # We can use an host tool
14254 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14256$as_echo "host tool" >&6; }
be01d343
PB
14257 else
14258 # We need a cross tool
81ecdfbb
RW
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14260$as_echo "pre-installed" >&6; }
be01d343
PB
14261 fi
14262fi
4b900473 14263
81ecdfbb
RW
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14265$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14266if test "x${build}" != "x${host}" ; then
2429c060
PB
14267 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14268 # We already found the complete path
b8025f34 14269 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14271$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14272 else
14273 # Canadian cross, just use what we found
81ecdfbb
RW
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14275$as_echo "pre-installed" >&6; }
2429c060 14276 fi
be01d343
PB
14277else
14278 ok=yes
14279 case " ${configdirs} " in
14280 *" binutils "*) ;;
14281 *) ok=no ;;
14282 esac
c6b750e1 14283
be01d343
PB
14284 if test $ok = yes; then
14285 # An in-tree tool is available and we can use it
14286 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14288$as_echo "just compiled" >&6; }
2429c060
PB
14289 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14290 # We already found the complete path
b8025f34 14291 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14293$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14294 elif test "x$target" = "x$host"; then
14295 # We can use an host tool
14296 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14298$as_echo "host tool" >&6; }
be01d343
PB
14299 else
14300 # We need a cross tool
81ecdfbb
RW
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14302$as_echo "pre-installed" >&6; }
be01d343
PB
14303 fi
14304fi
4b900473 14305
6b91c541
AP
14306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14307$as_echo_n "checking where to find the target objcopy... " >&6; }
14308if test "x${build}" != "x${host}" ; then
14309 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14310 # We already found the complete path
14311 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14313$as_echo "pre-installed in $ac_dir" >&6; }
14314 else
14315 # Canadian cross, just use what we found
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14317$as_echo "pre-installed" >&6; }
14318 fi
14319else
14320 ok=yes
14321 case " ${configdirs} " in
14322 *" binutils "*) ;;
14323 *) ok=no ;;
14324 esac
14325
14326 if test $ok = yes; then
14327 # An in-tree tool is available and we can use it
14328 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14330$as_echo "just compiled" >&6; }
14331 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14332 # We already found the complete path
14333 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14335$as_echo "pre-installed in $ac_dir" >&6; }
14336 elif test "x$target" = "x$host"; then
14337 # We can use an host tool
1b6c0831 14338 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14340$as_echo "host tool" >&6; }
14341 else
14342 # We need a cross tool
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14344$as_echo "pre-installed" >&6; }
14345 fi
14346fi
14347
81ecdfbb
RW
14348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14349$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14350if test "x${build}" != "x${host}" ; then
2429c060
PB
14351 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14352 # We already found the complete path
b8025f34 14353 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14355$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14356 else
14357 # Canadian cross, just use what we found
81ecdfbb
RW
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14359$as_echo "pre-installed" >&6; }
2429c060 14360 fi
be01d343
PB
14361else
14362 ok=yes
14363 case " ${configdirs} " in
14364 *" binutils "*) ;;
14365 *) ok=no ;;
14366 esac
c6b750e1 14367
be01d343
PB
14368 if test $ok = yes; then
14369 # An in-tree tool is available and we can use it
14370 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14372$as_echo "just compiled" >&6; }
2429c060
PB
14373 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14374 # We already found the complete path
b8025f34 14375 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14377$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14378 elif test "x$target" = "x$host"; then
14379 # We can use an host tool
14380 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14382$as_echo "host tool" >&6; }
be01d343
PB
14383 else
14384 # We need a cross tool
81ecdfbb
RW
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14386$as_echo "pre-installed" >&6; }
be01d343
PB
14387 fi
14388fi
4b900473 14389
81ecdfbb
RW
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14391$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14392if test "x${build}" != "x${host}" ; then
2429c060
PB
14393 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14394 # We already found the complete path
b8025f34 14395 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14397$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14398 else
14399 # Canadian cross, just use what we found
81ecdfbb
RW
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14401$as_echo "pre-installed" >&6; }
2429c060 14402 fi
be01d343
PB
14403else
14404 ok=yes
14405 case " ${configdirs} " in
14406 *" binutils "*) ;;
14407 *) ok=no ;;
14408 esac
c6b750e1 14409
be01d343
PB
14410 if test $ok = yes; then
14411 # An in-tree tool is available and we can use it
14412 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14414$as_echo "just compiled" >&6; }
2429c060
PB
14415 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14416 # We already found the complete path
b8025f34 14417 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14419$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14420 elif test "x$target" = "x$host"; then
14421 # We can use an host tool
14422 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14424$as_echo "host tool" >&6; }
be01d343
PB
14425 else
14426 # We need a cross tool
81ecdfbb
RW
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14428$as_echo "pre-installed" >&6; }
be01d343
PB
14429 fi
14430fi
4b900473 14431
b121d7d4
DD
14432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14433$as_echo_n "checking where to find the target readelf... " >&6; }
14434if test "x${build}" != "x${host}" ; then
14435 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14436 # We already found the complete path
14437 ac_dir=`dirname $READELF_FOR_TARGET`
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14439$as_echo "pre-installed in $ac_dir" >&6; }
14440 else
14441 # Canadian cross, just use what we found
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14443$as_echo "pre-installed" >&6; }
14444 fi
14445else
14446 ok=yes
14447 case " ${configdirs} " in
14448 *" binutils "*) ;;
14449 *) ok=no ;;
14450 esac
14451
14452 if test $ok = yes; then
14453 # An in-tree tool is available and we can use it
14454 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14456$as_echo "just compiled" >&6; }
14457 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14458 # We already found the complete path
14459 ac_dir=`dirname $READELF_FOR_TARGET`
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14461$as_echo "pre-installed in $ac_dir" >&6; }
14462 elif test "x$target" = "x$host"; then
14463 # We can use an host tool
14464 READELF_FOR_TARGET='$(READELF)'
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14466$as_echo "host tool" >&6; }
14467 else
14468 # We need a cross tool
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14470$as_echo "pre-installed" >&6; }
14471 fi
14472fi
14473
81ecdfbb
RW
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14475$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14476if test "x${build}" != "x${host}" ; then
2429c060
PB
14477 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14478 # We already found the complete path
b8025f34 14479 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14481$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14482 else
14483 # Canadian cross, just use what we found
81ecdfbb
RW
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14485$as_echo "pre-installed" >&6; }
2429c060 14486 fi
be01d343
PB
14487else
14488 ok=yes
14489 case " ${configdirs} " in
14490 *" binutils "*) ;;
14491 *) ok=no ;;
14492 esac
c6b750e1 14493
be01d343
PB
14494 if test $ok = yes; then
14495 # An in-tree tool is available and we can use it
9b980aa1 14496 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14498$as_echo "just compiled" >&6; }
2429c060
PB
14499 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14500 # We already found the complete path
b8025f34 14501 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14503$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14504 elif test "x$target" = "x$host"; then
14505 # We can use an host tool
14506 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14508$as_echo "host tool" >&6; }
be01d343
PB
14509 else
14510 # We need a cross tool
81ecdfbb
RW
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14512$as_echo "pre-installed" >&6; }
be01d343
PB
14513 fi
14514fi
4b900473 14515
81ecdfbb
RW
14516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14517$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14518if test "x${build}" != "x${host}" ; then
2429c060
PB
14519 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14520 # We already found the complete path
b8025f34 14521 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14523$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14524 else
14525 # Canadian cross, just use what we found
81ecdfbb
RW
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14527$as_echo "pre-installed" >&6; }
2429c060 14528 fi
be01d343
PB
14529else
14530 ok=yes
14531 case " ${configdirs} " in
14532 *" binutils "*) ;;
14533 *) ok=no ;;
14534 esac
c6b750e1 14535
be01d343
PB
14536 if test $ok = yes; then
14537 # An in-tree tool is available and we can use it
14538 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14540$as_echo "just compiled" >&6; }
2429c060
PB
14541 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14542 # We already found the complete path
b8025f34 14543 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14545$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14546 elif test "x$target" = "x$host"; then
14547 # We can use an host tool
14548 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14550$as_echo "host tool" >&6; }
be01d343
PB
14551 else
14552 # We need a cross tool
81ecdfbb
RW
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14554$as_echo "pre-installed" >&6; }
be01d343 14555 fi
a0da8069 14556fi
54752a6b 14557
81ecdfbb
RW
14558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14559$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14560if test "x${build}" != "x${host}" ; then
14561 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14562 # We already found the complete path
14563 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14565$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14566 else
14567 # Canadian cross, just use what we found
81ecdfbb
RW
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14569$as_echo "pre-installed" >&6; }
0c24b341
NC
14570 fi
14571else
14572 ok=yes
14573 case " ${configdirs} " in
14574 *" binutils "*) ;;
14575 *) ok=no ;;
14576 esac
14577
14578 if test $ok = yes; then
14579 # An in-tree tool is available and we can use it
14580 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14582$as_echo "just compiled" >&6; }
0c24b341
NC
14583 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14584 # We already found the complete path
14585 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14587$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14588 elif test "x$target" = "x$host"; then
14589 # We can use an host tool
14590 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14592$as_echo "host tool" >&6; }
0c24b341
NC
14593 else
14594 # We need a cross tool
81ecdfbb
RW
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14596$as_echo "pre-installed" >&6; }
0c24b341
NC
14597 fi
14598fi
14599
54752a6b
NN
14600
14601
be01d343 14602
4b900473 14603
a0da8069
NN
14604# Certain tools may need extra flags.
14605AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14606RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14607NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14608
be01d343
PB
14609# When building target libraries, except in a Canadian cross, we use
14610# the same toolchain as the compiler we just built.
14611COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14612COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14613COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14614if test $host = $build; then
14615 case " $configdirs " in
14616 *" gcc "*)
14617 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14618 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14619 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14620 ;;
14621 esac
14622fi
14623
14624
14625
14626
14627
81ecdfbb
RW
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14629$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14630# Check whether --enable-maintainer-mode was given.
14631if test "${enable_maintainer_mode+set}" = set; then :
14632 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14633else
14634 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14635fi
14636
14637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14638$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14639
14640
14641if test "$USE_MAINTAINER_MODE" = yes; then
14642 MAINTAINER_MODE_TRUE=
14643 MAINTAINER_MODE_FALSE='#'
14644else
14645 MAINTAINER_MODE_TRUE='#'
14646 MAINTAINER_MODE_FALSE=
c6b750e1 14647fi
3d5e36ae
AO
14648MAINT=$MAINTAINER_MODE_TRUE
14649
1d39f329
NN
14650# ---------------------
14651# GCC bootstrap support
14652# ---------------------
14653
14654# Stage specific cflags for build.
14655stage1_cflags="-g"
14656case $build in
14657 vax-*-*)
14658 case ${GCC} in
14659 yes) stage1_cflags="-g -Wa,-J" ;;
14660 *) stage1_cflags="-g -J" ;;
14661 esac ;;
1d39f329
NN
14662esac
14663
1d89b610 14664
1d39f329 14665
8a0d8a5c 14666# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14667# Check whether --enable-stage1-checking was given.
14668if test "${enable_stage1_checking+set}" = set; then :
14669 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14670else
5566c1fa 14671 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
14672 # For --disable-checking or implicit --enable-checking=release, avoid
14673 # setting --enable-checking=gc in the default stage1 checking for LTO
14674 # bootstraps. See PR62077.
ce6c656d
L
14675 case $BUILD_CONFIG in
14676 *lto*)
05a13254
NC
14677 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14678 *)
14679 stage1_checking=--enable-checking=yes,types;;
ce6c656d 14680 esac
05a13254
NC
14681 if test "x$enable_checking" = x && \
14682 test -d ${srcdir}/gcc && \
14683 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14684 stage1_checking=--enable-checking=yes,types,extra
14685 fi
8a0d8a5c 14686else
5566c1fa 14687 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14688fi
81ecdfbb 14689fi
8a0d8a5c
PB
14690
14691
c6b750e1 14692
81ecdfbb
RW
14693# Enable -Werror in bootstrap stage2 and later.
14694# Check whether --enable-werror was given.
14695if test "${enable_werror+set}" = set; then :
14696 enableval=$enable_werror;
1a6f2dc7
NN
14697case ${enable_werror} in
14698 yes) stage2_werror_flag="--enable-werror-always" ;;
14699 *) stage2_werror_flag="" ;;
1d39f329
NN
14700esac
14701
82033c9b 14702else
82033c9b 14703
bf41f30d
NC
14704if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14705 case $BUILD_CONFIG in
14706 bootstrap-debug)
14707 stage2_werror_flag="--enable-werror-always" ;;
14708 "")
14709 stage2_werror_flag="--enable-werror-always" ;;
14710 esac
14711fi
82033c9b 14712
bf41f30d 14713fi
82033c9b 14714
1b6c0831 14715
1b6c0831 14716
1b6c0831 14717
e8a5fa9c
RW
14718# Specify what files to not compare during bootstrap.
14719
14720compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14721case "$target" in
14722 hppa*64*-*-hpux*) ;;
bf41f30d 14723 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
1488e230 14724 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14725esac
14726
14727
81ecdfbb
RW
14728ac_config_files="$ac_config_files Makefile"
14729
c6b750e1 14730cat >confcache <<\_ACEOF
a0da8069
NN
14731# This file is a shell script that caches the results of configure
14732# tests run on this system so they can be shared between configure
c6b750e1
DJ
14733# scripts and configure runs, see configure's option --config-cache.
14734# It is not useful on other systems. If it contains results you don't
14735# want to keep, you may remove or edit it.
a0da8069 14736#
c6b750e1
DJ
14737# config.status only pays attention to the cache file if you give it
14738# the --recheck option to rerun configure.
a0da8069 14739#
c6b750e1
DJ
14740# `ac_cv_env_foo' variables (set or unset) will be overridden when
14741# loading this file, other *unset* `ac_cv_foo' will be assigned the
14742# following values.
14743
14744_ACEOF
14745
a0da8069
NN
14746# The following way of writing the cache mishandles newlines in values,
14747# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14748# So, we kill variables containing newlines.
a0da8069
NN
14749# Ultrix sh set writes to stderr and can't be redirected directly,
14750# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14751(
14752 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14753 eval ac_val=\$$ac_var
14754 case $ac_val in #(
14755 *${as_nl}*)
14756 case $ac_var in #(
14757 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14758$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14759 esac
14760 case $ac_var in #(
14761 _ | IFS | as_nl) ;; #(
14762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14763 *) { eval $ac_var=; unset $ac_var;} ;;
14764 esac ;;
14765 esac
14766 done
14767
c6b750e1 14768 (set) 2>&1 |
81ecdfbb
RW
14769 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14770 *${as_nl}ac_space=\ *)
14771 # `set' does not quote correctly, so add quotes: double-quote
14772 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14773 sed -n \
14774 "s/'/'\\\\''/g;
14775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14776 ;; #(
c6b750e1
DJ
14777 *)
14778 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14779 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14780 ;;
81ecdfbb
RW
14781 esac |
14782 sort
14783) |
c6b750e1 14784 sed '
81ecdfbb 14785 /^ac_cv_env_/b end
c6b750e1 14786 t clear
81ecdfbb 14787 :clear
c6b750e1
DJ
14788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14789 t end
81ecdfbb
RW
14790 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14791 :end' >>confcache
14792if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14793 if test -w "$cache_file"; then
d0ac1c44 14794 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14796$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14797 if test ! -f "$cache_file" || test -h "$cache_file"; then
14798 cat confcache >"$cache_file"
14799 else
14800 case $cache_file in #(
14801 */* | ?:*)
14802 mv -f confcache "$cache_file"$$ &&
14803 mv -f "$cache_file"$$ "$cache_file" ;; #(
14804 *)
14805 mv -f confcache "$cache_file" ;;
14806 esac
14807 fi
14808 fi
a0da8069 14809 else
81ecdfbb
RW
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14811$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14812 fi
852e5f18 14813fi
a0da8069 14814rm -f confcache
852e5f18 14815
a0da8069
NN
14816test "x$prefix" = xNONE && prefix=$ac_default_prefix
14817# Let make expand exec_prefix.
14818test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14819
a0da8069
NN
14820# Transform confdefs.h into DEFS.
14821# Protect against shell expansion while executing Makefile rules.
14822# Protect against Makefile macro expansion.
c6b750e1
DJ
14823#
14824# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14825# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14826# look for a macro that doesn't take arguments.
81ecdfbb
RW
14827ac_script='
14828:mline
14829/\\$/{
14830 N
14831 s,\\\n,,
14832 b mline
14833}
c6b750e1 14834t clear
81ecdfbb
RW
14835:clear
14836s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14837t quote
81ecdfbb 14838s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14839t quote
81ecdfbb
RW
14840b any
14841:quote
14842s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14843s/\[/\\&/g
14844s/\]/\\&/g
14845s/\$/$$/g
14846H
14847:any
14848${
14849 g
14850 s/^\n//
14851 s/\n/ /g
14852 p
14853}
14854'
14855DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14856
14857
14858ac_libobjs=
14859ac_ltlibobjs=
d0ac1c44 14860U=
c6b750e1
DJ
14861for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14862 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14863 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14864 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14865 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14866 # will be set to the directory where LIBOBJS objects are built.
14867 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14868 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14869done
14870LIBOBJS=$ac_libobjs
852e5f18 14871
c6b750e1 14872LTLIBOBJS=$ac_ltlibobjs
376a0e54 14873
cac3d6c4 14874
c6b750e1 14875
d0ac1c44 14876: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14877ac_write_fail=0
c6b750e1
DJ
14878ac_clean_files_save=$ac_clean_files
14879ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14880{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14881$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14882as_write_fail=0
14883cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14884#! $SHELL
14885# Generated by $as_me.
a0da8069 14886# Run this file to recreate the current configuration.
a0da8069 14887# Compiler output produced by configure, useful for debugging
c6b750e1 14888# configure, is in config.log if it exists.
376a0e54 14889
c6b750e1
DJ
14890debug=false
14891ac_cs_recheck=false
14892ac_cs_silent=false
c6b750e1 14893
81ecdfbb
RW
14894SHELL=\${CONFIG_SHELL-$SHELL}
14895export SHELL
14896_ASEOF
14897cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14898## -------------------- ##
14899## M4sh Initialization. ##
14900## -------------------- ##
14901
14902# Be more Bourne compatible
14903DUALCASE=1; export DUALCASE # for MKS sh
14904if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14905 emulate sh
14906 NULLCMD=:
81ecdfbb 14907 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14908 # is contrary to our usage. Disable this feature.
14909 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14910 setopt NO_GLOB_SUBST
14911else
14912 case `(set -o) 2>/dev/null` in #(
14913 *posix*) :
14914 set -o posix ;; #(
14915 *) :
14916 ;;
14917esac
c6b750e1 14918fi
c6b750e1 14919
81ecdfbb
RW
14920
14921as_nl='
14922'
14923export as_nl
14924# Printing a long string crashes Solaris 7 /usr/bin/printf.
14925as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14926as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14927as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14928# Prefer a ksh shell builtin over an external printf program on Solaris,
14929# but without wasting forks for bash or zsh.
14930if test -z "$BASH_VERSION$ZSH_VERSION" \
14931 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14932 as_echo='print -r --'
14933 as_echo_n='print -rn --'
14934elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14935 as_echo='printf %s\n'
14936 as_echo_n='printf %s'
14937else
14938 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14939 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14940 as_echo_n='/usr/ucb/echo -n'
14941 else
14942 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14943 as_echo_n_body='eval
14944 arg=$1;
14945 case $arg in #(
14946 *"$as_nl"*)
14947 expr "X$arg" : "X\\(.*\\)$as_nl";
14948 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14949 esac;
14950 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14951 '
14952 export as_echo_n_body
14953 as_echo_n='sh -c $as_echo_n_body as_echo'
14954 fi
14955 export as_echo_body
14956 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14957fi
14958
81ecdfbb
RW
14959# The user is always right.
14960if test "${PATH_SEPARATOR+set}" != set; then
14961 PATH_SEPARATOR=:
14962 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14963 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14964 PATH_SEPARATOR=';'
14965 }
14966fi
14967
14968
14969# IFS
14970# We need space, tab and new line, in precisely that order. Quoting is
14971# there to prevent editors from complaining about space-tab.
14972# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14973# splitting by setting IFS to empty value.)
14974IFS=" "" $as_nl"
14975
14976# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 14977as_myself=
81ecdfbb
RW
14978case $0 in #((
14979 *[\\/]* ) as_myself=$0 ;;
14980 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14981for as_dir in $PATH
14982do
14983 IFS=$as_save_IFS
14984 test -z "$as_dir" && as_dir=.
14985 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14986 done
14987IFS=$as_save_IFS
14988
14989 ;;
14990esac
14991# We did not find ourselves, most probably we were run as `sh COMMAND'
14992# in which case we are not to be found in the path.
14993if test "x$as_myself" = x; then
14994 as_myself=$0
14995fi
14996if test ! -f "$as_myself"; then
14997 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14998 exit 1
14999fi
c6b750e1 15000
81ecdfbb
RW
15001# Unset variables that we do not need and which cause bugs (e.g. in
15002# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15003# suppresses any "Segmentation fault" message there. '((' could
15004# trigger a bug in pdksh 5.2.14.
15005for as_var in BASH_ENV ENV MAIL MAILPATH
15006do eval test x\${$as_var+set} = xset \
15007 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15008done
c6b750e1
DJ
15009PS1='$ '
15010PS2='> '
15011PS4='+ '
15012
15013# NLS nuisances.
81ecdfbb
RW
15014LC_ALL=C
15015export LC_ALL
15016LANGUAGE=C
15017export LANGUAGE
15018
15019# CDPATH.
15020(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15021
15022
d0ac1c44
SM
15023# as_fn_error STATUS ERROR [LINENO LOG_FD]
15024# ----------------------------------------
81ecdfbb
RW
15025# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15026# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15027# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15028as_fn_error ()
15029{
d0ac1c44
SM
15030 as_status=$1; test $as_status -eq 0 && as_status=1
15031 if test "$4"; then
15032 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15033 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 15034 fi
d0ac1c44 15035 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15036 as_fn_exit $as_status
15037} # as_fn_error
15038
15039
15040# as_fn_set_status STATUS
15041# -----------------------
15042# Set $? to STATUS, without forking.
15043as_fn_set_status ()
15044{
15045 return $1
15046} # as_fn_set_status
15047
15048# as_fn_exit STATUS
15049# -----------------
15050# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15051as_fn_exit ()
15052{
15053 set +e
15054 as_fn_set_status $1
15055 exit $1
15056} # as_fn_exit
15057
15058# as_fn_unset VAR
15059# ---------------
15060# Portably unset VAR.
15061as_fn_unset ()
15062{
15063 { eval $1=; unset $1;}
15064}
15065as_unset=as_fn_unset
15066# as_fn_append VAR VALUE
15067# ----------------------
15068# Append the text in VALUE to the end of the definition contained in VAR. Take
15069# advantage of any shell optimizations that allow amortized linear growth over
15070# repeated appends, instead of the typical quadratic growth present in naive
15071# implementations.
15072if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15073 eval 'as_fn_append ()
15074 {
15075 eval $1+=\$2
15076 }'
15077else
15078 as_fn_append ()
15079 {
15080 eval $1=\$$1\$2
15081 }
15082fi # as_fn_append
15083
15084# as_fn_arith ARG...
15085# ------------------
15086# Perform arithmetic evaluation on the ARGs, and store the result in the
15087# global $as_val. Take advantage of shells that can avoid forks. The arguments
15088# must be portable across $(()) and expr.
15089if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15090 eval 'as_fn_arith ()
15091 {
15092 as_val=$(( $* ))
15093 }'
15094else
15095 as_fn_arith ()
15096 {
15097 as_val=`expr "$@" || test $? -eq 1`
15098 }
15099fi # as_fn_arith
15100
c6b750e1 15101
81ecdfbb
RW
15102if expr a : '\(a\)' >/dev/null 2>&1 &&
15103 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15104 as_expr=expr
15105else
15106 as_expr=false
15107fi
15108
81ecdfbb 15109if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15110 as_basename=basename
15111else
15112 as_basename=false
15113fi
15114
81ecdfbb
RW
15115if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15116 as_dirname=dirname
15117else
15118 as_dirname=false
15119fi
c6b750e1 15120
81ecdfbb 15121as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15122$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15123 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15124 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15125$as_echo X/"$0" |
15126 sed '/^.*\/\([^/][^/]*\)\/*$/{
15127 s//\1/
15128 q
15129 }
15130 /^X\/\(\/\/\)$/{
15131 s//\1/
15132 q
15133 }
15134 /^X\/\(\/\).*/{
15135 s//\1/
15136 q
15137 }
15138 s/.*/./; q'`
c6b750e1 15139
c6b750e1
DJ
15140# Avoid depending upon Character Ranges.
15141as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15142as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15143as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15144as_cr_digits='0123456789'
15145as_cr_alnum=$as_cr_Letters$as_cr_digits
15146
81ecdfbb
RW
15147ECHO_C= ECHO_N= ECHO_T=
15148case `echo -n x` in #(((((
15149-n*)
15150 case `echo 'xy\c'` in
15151 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15152 xy) ECHO_C='\c';;
15153 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15154 ECHO_T=' ';;
15155 esac;;
15156*)
15157 ECHO_N='-n';;
c6b750e1
DJ
15158esac
15159
81ecdfbb
RW
15160rm -f conf$$ conf$$.exe conf$$.file
15161if test -d conf$$.dir; then
15162 rm -f conf$$.dir/conf$$.file
c6b750e1 15163else
81ecdfbb
RW
15164 rm -f conf$$.dir
15165 mkdir conf$$.dir 2>/dev/null
c6b750e1 15166fi
81ecdfbb
RW
15167if (echo >conf$$.file) 2>/dev/null; then
15168 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15169 as_ln_s='ln -s'
81ecdfbb
RW
15170 # ... but there are two gotchas:
15171 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15172 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15173 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15174 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15175 as_ln_s='cp -pR'
81ecdfbb
RW
15176 elif ln conf$$.file conf$$ 2>/dev/null; then
15177 as_ln_s=ln
15178 else
d0ac1c44 15179 as_ln_s='cp -pR'
c6b750e1 15180 fi
c6b750e1 15181else
d0ac1c44 15182 as_ln_s='cp -pR'
c6b750e1 15183fi
81ecdfbb
RW
15184rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15185rmdir conf$$.dir 2>/dev/null
15186
15187
15188# as_fn_mkdir_p
15189# -------------
15190# Create "$as_dir" as a directory, including parents if necessary.
15191as_fn_mkdir_p ()
15192{
15193
15194 case $as_dir in #(
15195 -*) as_dir=./$as_dir;;
15196 esac
15197 test -d "$as_dir" || eval $as_mkdir_p || {
15198 as_dirs=
15199 while :; do
15200 case $as_dir in #(
15201 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15202 *) as_qdir=$as_dir;;
15203 esac
15204 as_dirs="'$as_qdir' $as_dirs"
15205 as_dir=`$as_dirname -- "$as_dir" ||
15206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15207 X"$as_dir" : 'X\(//\)[^/]' \| \
15208 X"$as_dir" : 'X\(//\)$' \| \
15209 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15210$as_echo X"$as_dir" |
15211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15212 s//\1/
15213 q
15214 }
15215 /^X\(\/\/\)[^/].*/{
15216 s//\1/
15217 q
15218 }
15219 /^X\(\/\/\)$/{
15220 s//\1/
15221 q
15222 }
15223 /^X\(\/\).*/{
15224 s//\1/
15225 q
15226 }
15227 s/.*/./; q'`
15228 test -d "$as_dir" && break
15229 done
15230 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15231 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15232
c6b750e1 15233
81ecdfbb 15234} # as_fn_mkdir_p
c6b750e1 15235if mkdir -p . 2>/dev/null; then
81ecdfbb 15236 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15237else
15238 test -d ./-p && rmdir ./-p
15239 as_mkdir_p=false
15240fi
15241
d0ac1c44
SM
15242
15243# as_fn_executable_p FILE
15244# -----------------------
15245# Test if FILE is an executable regular file.
15246as_fn_executable_p ()
15247{
15248 test -f "$1" && test -x "$1"
15249} # as_fn_executable_p
15250as_test_x='test -x'
15251as_executable_p=as_fn_executable_p
c6b750e1
DJ
15252
15253# Sed expression to map a string onto a valid CPP name.
15254as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15255
15256# Sed expression to map a string onto a valid variable name.
15257as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15258
15259
c6b750e1 15260exec 6>&1
81ecdfbb
RW
15261## ----------------------------------- ##
15262## Main body of $CONFIG_STATUS script. ##
15263## ----------------------------------- ##
15264_ASEOF
15265test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15266
15267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15268# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15269# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15270# values after options handling.
15271ac_log="
c6b750e1 15272This file was extended by $as_me, which was
d0ac1c44 15273generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
15274
15275 CONFIG_FILES = $CONFIG_FILES
15276 CONFIG_HEADERS = $CONFIG_HEADERS
15277 CONFIG_LINKS = $CONFIG_LINKS
15278 CONFIG_COMMANDS = $CONFIG_COMMANDS
15279 $ $0 $@
15280
81ecdfbb
RW
15281on `(hostname || uname -n) 2>/dev/null | sed 1q`
15282"
15283
c6b750e1
DJ
15284_ACEOF
15285
81ecdfbb
RW
15286case $ac_config_files in *"
15287"*) set x $ac_config_files; shift; ac_config_files=$*;;
15288esac
c6b750e1 15289
c6b750e1 15290
c6b750e1 15291
81ecdfbb
RW
15292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15293# Files that config.status was made for.
15294config_files="$ac_config_files"
c6b750e1 15295
81ecdfbb 15296_ACEOF
c6b750e1 15297
81ecdfbb 15298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15299ac_cs_usage="\
81ecdfbb
RW
15300\`$as_me' instantiates files and other configuration actions
15301from templates according to the current configuration. Unless the files
15302and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15303
81ecdfbb 15304Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15305
15306 -h, --help print this help, then exit
81ecdfbb 15307 -V, --version print version number and configuration settings, then exit
d0ac1c44 15308 --config print configuration, then exit
81ecdfbb
RW
15309 -q, --quiet, --silent
15310 do not print progress messages
c6b750e1
DJ
15311 -d, --debug don't remove temporary files
15312 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15313 --file=FILE[:TEMPLATE]
15314 instantiate the configuration file FILE
c6b750e1
DJ
15315
15316Configuration files:
15317$config_files
15318
81ecdfbb 15319Report bugs to the package provider."
c6b750e1 15320
81ecdfbb
RW
15321_ACEOF
15322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15323ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
15324ac_cs_version="\\
15325config.status
d0ac1c44
SM
15326configured by $0, generated by GNU Autoconf 2.69,
15327 with options \\"\$ac_cs_config\\"
c6b750e1 15328
d0ac1c44 15329Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
15330This config.status script is free software; the Free Software Foundation
15331gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15332
15333ac_pwd='$ac_pwd'
15334srcdir='$srcdir'
15335INSTALL='$INSTALL'
8e957354 15336AWK='$AWK'
81ecdfbb 15337test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15338_ACEOF
15339
81ecdfbb
RW
15340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15341# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15342ac_need_defaults=:
15343while test $# != 0
a0da8069 15344do
c6b750e1 15345 case $1 in
d0ac1c44 15346 --*=?*)
81ecdfbb
RW
15347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15349 ac_shift=:
15350 ;;
d0ac1c44
SM
15351 --*=)
15352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15353 ac_optarg=
15354 ac_shift=:
15355 ;;
81ecdfbb 15356 *)
c6b750e1
DJ
15357 ac_option=$1
15358 ac_optarg=$2
15359 ac_shift=shift
15360 ;;
c6b750e1
DJ
15361 esac
15362
15363 case $ac_option in
15364 # Handling of the options.
a0da8069 15365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15366 ac_cs_recheck=: ;;
81ecdfbb
RW
15367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15368 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15369 --config | --confi | --conf | --con | --co | --c )
15370 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15371 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15372 debug=: ;;
15373 --file | --fil | --fi | --f )
15374 $ac_shift
81ecdfbb
RW
15375 case $ac_optarg in
15376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15377 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15378 esac
15379 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15380 ac_need_defaults=false;;
81ecdfbb
RW
15381 --he | --h | --help | --hel | -h )
15382 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15384 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15385 ac_cs_silent=: ;;
15386
15387 # This is an error.
d0ac1c44 15388 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15389Try \`$0 --help' for more information." ;;
c6b750e1 15390
81ecdfbb
RW
15391 *) as_fn_append ac_config_targets " $1"
15392 ac_need_defaults=false ;;
c6b750e1 15393
376a0e54 15394 esac
c6b750e1 15395 shift
376a0e54
CM
15396done
15397
c6b750e1 15398ac_configure_extra_args=
376a0e54 15399
c6b750e1
DJ
15400if $ac_cs_silent; then
15401 exec 6>/dev/null
15402 ac_configure_extra_args="$ac_configure_extra_args --silent"
15403fi
376a0e54 15404
c6b750e1 15405_ACEOF
81ecdfbb 15406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15407if \$ac_cs_recheck; then
d0ac1c44 15408 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15409 shift
15410 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15411 CONFIG_SHELL='$SHELL'
15412 export CONFIG_SHELL
15413 exec "\$@"
c6b750e1
DJ
15414fi
15415
15416_ACEOF
81ecdfbb
RW
15417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15418exec 5>>config.log
15419{
15420 echo
15421 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15422## Running $as_me. ##
15423_ASBOX
15424 $as_echo "$ac_log"
15425} >&5
c6b750e1 15426
81ecdfbb
RW
15427_ACEOF
15428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15429#
15430# INIT-COMMANDS
15431#
15432extrasub_build="$extrasub_build"
15433 extrasub_host="$extrasub_host"
15434 extrasub_target="$extrasub_target"
15435
81ecdfbb 15436_ACEOF
c6b750e1 15437
81ecdfbb 15438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15439
81ecdfbb 15440# Handling of arguments.
c6b750e1
DJ
15441for ac_config_target in $ac_config_targets
15442do
81ecdfbb
RW
15443 case $ac_config_target in
15444 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15445
d0ac1c44 15446 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15447 esac
15448done
15449
81ecdfbb 15450
c6b750e1
DJ
15451# If the user did not use the arguments to specify the items to instantiate,
15452# then the envvar interface is used. Set only those that are not.
15453# We use the long form for the default assignment because of an extremely
15454# bizarre bug on SunOS 4.1.3.
15455if $ac_need_defaults; then
15456 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15457fi
15458
15459# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15460# simply because there is no reason against having it here, and in addition,
c6b750e1 15461# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15462# Hook for its removal unless debugging.
15463# Note that there is a small window in which the directory will not be cleaned:
15464# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15465$debug ||
15466{
d0ac1c44 15467 tmp= ac_tmp=
81ecdfbb 15468 trap 'exit_status=$?
d0ac1c44
SM
15469 : "${ac_tmp:=$tmp}"
15470 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15471' 0
15472 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15473}
c6b750e1
DJ
15474# Create a (secure) tmp directory for tmp files.
15475
15476{
81ecdfbb 15477 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15478 test -d "$tmp"
c6b750e1
DJ
15479} ||
15480{
81ecdfbb
RW
15481 tmp=./conf$$-$RANDOM
15482 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15483} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15484ac_tmp=$tmp
81ecdfbb
RW
15485
15486# Set up the scripts for CONFIG_FILES section.
15487# No need to generate them if there are no CONFIG_FILES.
15488# This happens for instance with `./config.status config.h'.
15489if test -n "$CONFIG_FILES"; then
15490
15491if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15492 ac_cs_awk_getline=:
15493 ac_cs_awk_pipe_init=
15494 ac_cs_awk_read_file='
15495 while ((getline aline < (F[key])) > 0)
15496 print(aline)
15497 close(F[key])'
15498 ac_cs_awk_pipe_fini=
15499else
15500 ac_cs_awk_getline=false
15501 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15502 ac_cs_awk_read_file='
15503 print "|#_!!_#|"
15504 print "cat " F[key] " &&"
15505 '$ac_cs_awk_pipe_init
15506 # The final `:' finishes the AND list.
15507 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15508fi
15509ac_cr=`echo X | tr X '\015'`
15510# On cygwin, bash can eat \r inside `` if the user requested igncr.
15511# But we know of no other shell where ac_cr would be empty at this
15512# point, so we can use a bashism as a fallback.
15513if test "x$ac_cr" = x; then
15514 eval ac_cr=\$\'\\r\'
15515fi
15516ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15517if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15518 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15519else
15520 ac_cs_awk_cr=$ac_cr
15521fi
15522
d0ac1c44 15523echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15524_ACEOF
15525
15526# Create commands to substitute file output variables.
c6b750e1 15527{
81ecdfbb 15528 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 15529 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
15530 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15531 echo "_ACAWK" &&
15532 echo "_ACEOF"
15533} >conf$$files.sh &&
15534. ./conf$$files.sh ||
d0ac1c44 15535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15536rm -f conf$$files.sh
c6b750e1 15537
81ecdfbb
RW
15538{
15539 echo "cat >conf$$subs.awk <<_ACEOF" &&
15540 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15541 echo "_ACEOF"
15542} >conf$$subs.sh ||
d0ac1c44
SM
15543 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15544ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15545ac_delim='%!_!# '
15546for ac_last_try in false false false false false :; do
15547 . ./conf$$subs.sh ||
d0ac1c44 15548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15549
15550 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15551 if test $ac_delim_n = $ac_delim_num; then
15552 break
15553 elif $ac_last_try; then
d0ac1c44 15554 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15555 else
15556 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15557 fi
15558done
15559rm -f conf$$subs.sh
15560
15561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15562cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15563_ACEOF
81ecdfbb
RW
15564sed -n '
15565h
15566s/^/S["/; s/!.*/"]=/
15567p
15568g
15569s/^[^!]*!//
15570:repl
15571t repl
15572s/'"$ac_delim"'$//
15573t delim
15574:nl
15575h
d0ac1c44 15576s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15577t more1
15578s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15579p
15580n
15581b repl
15582:more1
15583s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15584p
15585g
15586s/.\{148\}//
15587t nl
15588:delim
15589h
d0ac1c44 15590s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15591t more2
15592s/["\\]/\\&/g; s/^/"/; s/$/"/
15593p
15594b
15595:more2
15596s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15597p
15598g
15599s/.\{148\}//
15600t delim
15601' <conf$$subs.awk | sed '
15602/^[^""]/{
15603 N
15604 s/\n//
15605}
15606' >>$CONFIG_STATUS || ac_write_fail=1
15607rm -f conf$$subs.awk
15608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15609_ACAWK
d0ac1c44 15610cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15611 for (key in S) S_is_set[key] = 1
15612 FS = "\a"
15613 \$ac_cs_awk_pipe_init
15614}
15615{
15616 line = $ 0
15617 nfields = split(line, field, "@")
15618 substed = 0
15619 len = length(field[1])
15620 for (i = 2; i < nfields; i++) {
15621 key = field[i]
15622 keylen = length(key)
15623 if (S_is_set[key]) {
15624 value = S[key]
15625 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15626 len += length(value) + length(field[++i])
15627 substed = 1
15628 } else
15629 len += 1 + keylen
15630 }
15631 if (nfields == 3 && !substed) {
15632 key = field[2]
15633 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15634 \$ac_cs_awk_read_file
15635 next
15636 }
15637 }
15638 print line
15639}
15640\$ac_cs_awk_pipe_fini
15641_ACAWK
15642_ACEOF
15643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15644if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15645 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15646else
15647 cat
d0ac1c44
SM
15648fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15649 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
15650_ACEOF
15651
d0ac1c44
SM
15652# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15653# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15654# trailing colons and then remove the whole line if VPATH becomes empty
15655# (actually we leave an empty line to preserve line numbers).
15656if test "x$srcdir" = x.; then
d0ac1c44
SM
15657 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15658h
15659s///
15660s/^/:/
15661s/[ ]*$/:/
15662s/:\$(srcdir):/:/g
15663s/:\${srcdir}:/:/g
15664s/:@srcdir@:/:/g
15665s/^:*//
81ecdfbb 15666s/:*$//
d0ac1c44
SM
15667x
15668s/\(=[ ]*\).*/\1/
15669G
15670s/\n//
81ecdfbb
RW
15671s/^[^=]*=[ ]*$//
15672}'
15673fi
c6b750e1 15674
81ecdfbb
RW
15675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15676fi # test -n "$CONFIG_FILES"
c6b750e1 15677
c6b750e1 15678
81ecdfbb
RW
15679eval set X " :F $CONFIG_FILES "
15680shift
15681for ac_tag
15682do
15683 case $ac_tag in
15684 :[FHLC]) ac_mode=$ac_tag; continue;;
15685 esac
15686 case $ac_mode$ac_tag in
15687 :[FHL]*:*);;
d0ac1c44 15688 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15689 :[FH]-) ac_tag=-:-;;
15690 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15691 esac
15692 ac_save_IFS=$IFS
15693 IFS=:
15694 set x $ac_tag
15695 IFS=$ac_save_IFS
15696 shift
15697 ac_file=$1
15698 shift
252b5132 15699
81ecdfbb
RW
15700 case $ac_mode in
15701 :L) ac_source=$1;;
15702 :[FH])
15703 ac_file_inputs=
15704 for ac_f
15705 do
15706 case $ac_f in
d0ac1c44 15707 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15708 *) # Look for the file first in the build tree, then in the source tree
15709 # (if the path is not absolute). The absolute path cannot be DOS-style,
15710 # because $ac_f cannot contain `:'.
15711 test -f "$ac_f" ||
15712 case $ac_f in
15713 [\\/$]*) false;;
15714 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15715 esac ||
d0ac1c44 15716 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
15717 esac
15718 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15719 as_fn_append ac_file_inputs " '$ac_f'"
15720 done
c6b750e1 15721
81ecdfbb
RW
15722 # Let's still pretend it is `configure' which instantiates (i.e., don't
15723 # use $as_me), people would be surprised to read:
15724 # /* config.h. Generated by config.status. */
15725 configure_input='Generated from '`
15726 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15727 `' by configure.'
15728 if test x"$ac_file" != x-; then
15729 configure_input="$ac_file. $configure_input"
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15731$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15732 fi
81ecdfbb
RW
15733 # Neutralize special characters interpreted by sed in replacement strings.
15734 case $configure_input in #(
15735 *\&* | *\|* | *\\* )
15736 ac_sed_conf_input=`$as_echo "$configure_input" |
15737 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15738 *) ac_sed_conf_input=$configure_input;;
15739 esac
cac3d6c4 15740
81ecdfbb 15741 case $ac_tag in
d0ac1c44
SM
15742 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
15744 esac
15745 ;;
a0da8069 15746 esac
252b5132 15747
81ecdfbb 15748 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15749$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15750 X"$ac_file" : 'X\(//\)[^/]' \| \
15751 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15752 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15753$as_echo X"$ac_file" |
15754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15755 s//\1/
15756 q
15757 }
15758 /^X\(\/\/\)[^/].*/{
15759 s//\1/
15760 q
15761 }
15762 /^X\(\/\/\)$/{
15763 s//\1/
15764 q
15765 }
15766 /^X\(\/\).*/{
15767 s//\1/
15768 q
15769 }
15770 s/.*/./; q'`
15771 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15772 ac_builddir=.
252b5132 15773
81ecdfbb
RW
15774case "$ac_dir" in
15775.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15776*)
15777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15778 # A ".." for each directory in $ac_dir_suffix.
15779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15780 case $ac_top_builddir_sub in
15781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15783 esac ;;
15784esac
15785ac_abs_top_builddir=$ac_pwd
15786ac_abs_builddir=$ac_pwd$ac_dir_suffix
15787# for backward compatibility:
15788ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15789
15790case $srcdir in
81ecdfbb 15791 .) # We are building in place.
c6b750e1 15792 ac_srcdir=.
81ecdfbb
RW
15793 ac_top_srcdir=$ac_top_builddir_sub
15794 ac_abs_top_srcdir=$ac_pwd ;;
15795 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15796 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15797 ac_top_srcdir=$srcdir
15798 ac_abs_top_srcdir=$srcdir ;;
15799 *) # Relative name.
15800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15801 ac_top_srcdir=$ac_top_build_prefix$srcdir
15802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15803esac
81ecdfbb 15804ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15805
252b5132 15806
81ecdfbb
RW
15807 case $ac_mode in
15808 :F)
15809 #
15810 # CONFIG_FILE
15811 #
c6b750e1
DJ
15812
15813 case $INSTALL in
15814 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15815 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15816 esac
81ecdfbb 15817_ACEOF
252b5132 15818
81ecdfbb
RW
15819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15820# If the template does not know about datarootdir, expand it.
15821# FIXME: This hack should be removed a few years after 2.60.
15822ac_datarootdir_hack=; ac_datarootdir_seen=
15823ac_sed_dataroot='
15824/datarootdir/ {
15825 p
15826 q
15827}
15828/@datadir@/p
15829/@docdir@/p
15830/@infodir@/p
15831/@localedir@/p
15832/@mandir@/p'
15833case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15834*datarootdir*) ac_datarootdir_seen=yes;;
15835*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15837$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15838_ACEOF
81ecdfbb
RW
15839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15840 ac_datarootdir_hack='
15841 s&@datadir@&$datadir&g
15842 s&@docdir@&$docdir&g
15843 s&@infodir@&$infodir&g
15844 s&@localedir@&$localedir&g
15845 s&@mandir@&$mandir&g
15846 s&\\\${datarootdir}&$datarootdir&g' ;;
15847esac
15848_ACEOF
15849
15850# Neutralize VPATH when `$srcdir' = `.'.
15851# Shell code in configure.ac might set extrasub.
15852# FIXME: do we really want to maintain this feature?
15853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15854ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15855$extrasub
15856_ACEOF
81ecdfbb 15857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15858:t
15859/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15860s|@configure_input@|$ac_sed_conf_input|;t t
15861s&@top_builddir@&$ac_top_builddir_sub&;t t
15862s&@top_build_prefix@&$ac_top_build_prefix&;t t
15863s&@srcdir@&$ac_srcdir&;t t
15864s&@abs_srcdir@&$ac_abs_srcdir&;t t
15865s&@top_srcdir@&$ac_top_srcdir&;t t
15866s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15867s&@builddir@&$ac_builddir&;t t
15868s&@abs_builddir@&$ac_abs_builddir&;t t
15869s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15870s&@INSTALL@&$ac_INSTALL&;t t
15871$ac_datarootdir_hack
15872"
15873eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15874if $ac_cs_awk_getline; then
d0ac1c44 15875 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 15876else
d0ac1c44
SM
15877 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15878fi \
15879 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
15880
15881test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
15882 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15883 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15884 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 15885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15886which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 15887$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15888which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 15889
d0ac1c44 15890 rm -f "$ac_tmp/stdin"
81ecdfbb 15891 case $ac_file in
d0ac1c44
SM
15892 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15893 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 15894 esac \
d0ac1c44 15895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 15896 ;;
c148b4cb 15897
c148b4cb 15898
c148b4cb 15899
81ecdfbb
RW
15900 esac
15901
06a51eac
RW
15902
15903 case $ac_file$ac_mode in
15904 "Makefile":F) sed "$extrasub_build" Makefile |
15905 sed "$extrasub_host" |
15906 sed "$extrasub_target" > mf$$
15907 mv -f mf$$ Makefile ;;
15908
15909 esac
81ecdfbb
RW
15910done # for ac_tag
15911
15912
15913as_fn_exit 0
c6b750e1 15914_ACEOF
c6b750e1
DJ
15915ac_clean_files=$ac_clean_files_save
15916
81ecdfbb 15917test $ac_write_fail = 0 ||
d0ac1c44 15918 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15919
c6b750e1
DJ
15920
15921# configure is writing to config.log, and then calls config.status.
15922# config.status does its own redirection, appending to config.log.
15923# Unfortunately, on DOS this fails, as config.log is still kept open
15924# by configure, so config.status won't be able to write to it; its
15925# output is simply discarded. So we exec the FD to /dev/null,
15926# effectively closing config.log, so it can be properly (re)opened and
15927# appended to by config.status. When coming back to configure, we
15928# need to make the FD available again.
15929if test "$no_create" != yes; then
15930 ac_cs_success=:
15931 ac_config_status_args=
15932 test "$silent" = yes &&
15933 ac_config_status_args="$ac_config_status_args --quiet"
15934 exec 5>/dev/null
15935 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15936 exec 5>>config.log
15937 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15938 # would make configure fail if this is the last instruction.
d0ac1c44 15939 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
15940fi
15941if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15943$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15944fi
c148b4cb 15945