]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
Fix AMD64 return value ABI in expression evaluation
[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
b3676d82 805with_stage1_ldflags
81ecdfbb 806with_boot_libs
143754cd 807with_boot_ldflags
7ec59b9e
L
808with_isl
809with_isl_include
810with_isl_lib
811enable_isl_version_check
700d40ca 812enable_lto
1b6c0831
L
813enable_linker_plugin_configure_flags
814enable_linker_plugin_flags
bf41f30d 815enable_host_shared
81ecdfbb
RW
816enable_stage1_languages
817enable_objc_gc
05a13254
NC
818with_target_bdw_gc
819with_target_bdw_gc_include
820with_target_bdw_gc_lib
bf41f30d 821with_gcc_major_version_only
81ecdfbb
RW
822with_build_sysroot
823with_debug_prefix_map
96655cc4 824with_build_config
730af8ee 825enable_vtable_verify
81ecdfbb
RW
826enable_serial_configure
827with_build_time_tools
828enable_maintainer_mode
829enable_stage1_checking
830enable_werror
81ecdfbb
RW
831'
832 ac_precious_vars='build_alias
833host_alias
834target_alias
835CC
836CFLAGS
837LDFLAGS
838LIBS
839CPPFLAGS
840CXX
841CXXFLAGS
842CCC
4074d5f2
RW
843build_configargs
844host_configargs
845target_configargs
81ecdfbb
RW
846AR
847AS
848DLLTOOL
849LD
850LIPO
851NM
852RANLIB
853STRIP
854WINDRES
855WINDMC
856OBJCOPY
857OBJDUMP
b121d7d4 858READELF
81ecdfbb
RW
859CC_FOR_TARGET
860CXX_FOR_TARGET
861GCC_FOR_TARGET
81ecdfbb 862GFORTRAN_FOR_TARGET
e552509b 863GOC_FOR_TARGET
81ecdfbb
RW
864AR_FOR_TARGET
865AS_FOR_TARGET
866DLLTOOL_FOR_TARGET
867LD_FOR_TARGET
868LIPO_FOR_TARGET
869NM_FOR_TARGET
6b91c541 870OBJCOPY_FOR_TARGET
81ecdfbb
RW
871OBJDUMP_FOR_TARGET
872RANLIB_FOR_TARGET
b121d7d4 873READELF_FOR_TARGET
81ecdfbb
RW
874STRIP_FOR_TARGET
875WINDRES_FOR_TARGET
876WINDMC_FOR_TARGET'
877
a0da8069
NN
878
879# Initialize some variables set by options.
c6b750e1
DJ
880ac_init_help=
881ac_init_version=false
81ecdfbb
RW
882ac_unrecognized_opts=
883ac_unrecognized_sep=
a0da8069
NN
884# The variables have the same names as the options, with
885# dashes changed to underlines.
c6b750e1 886cache_file=/dev/null
a0da8069 887exec_prefix=NONE
a0da8069 888no_create=
a0da8069
NN
889no_recursion=
890prefix=NONE
891program_prefix=NONE
892program_suffix=NONE
893program_transform_name=s,x,x,
894silent=
895site=
896srcdir=
a0da8069
NN
897verbose=
898x_includes=NONE
899x_libraries=NONE
c6b750e1
DJ
900
901# Installation directory options.
902# These are left unexpanded so users can "make install exec_prefix=/foo"
903# and all the variables that are supposed to be based on exec_prefix
904# by default will actually change.
905# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 906# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
907bindir='${exec_prefix}/bin'
908sbindir='${exec_prefix}/sbin'
909libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
910datarootdir='${prefix}/share'
911datadir='${datarootdir}'
a0da8069
NN
912sysconfdir='${prefix}/etc'
913sharedstatedir='${prefix}/com'
914localstatedir='${prefix}/var'
a0da8069
NN
915includedir='${prefix}/include'
916oldincludedir='/usr/include'
81ecdfbb
RW
917docdir='${datarootdir}/doc/${PACKAGE}'
918infodir='${datarootdir}/info'
919htmldir='${docdir}'
920dvidir='${docdir}'
921pdfdir='${docdir}'
922psdir='${docdir}'
923libdir='${exec_prefix}/lib'
924localedir='${datarootdir}/locale'
925mandir='${datarootdir}/man'
252b5132 926
a0da8069 927ac_prev=
81ecdfbb 928ac_dashdash=
a0da8069
NN
929for ac_option
930do
a0da8069
NN
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
81ecdfbb 933 eval $ac_prev=\$ac_option
a0da8069
NN
934 ac_prev=
935 continue
936 fi
252b5132 937
81ecdfbb 938 case $ac_option in
d0ac1c44
SM
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *=) ac_optarg= ;;
941 *) ac_optarg=yes ;;
81ecdfbb 942 esac
a0da8069
NN
943
944 # Accept the important Cygnus configure options, so we can diagnose typos.
945
81ecdfbb
RW
946 case $ac_dashdash$ac_option in
947 --)
948 ac_dashdash=yes ;;
a0da8069
NN
949
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 953 bindir=$ac_optarg ;;
a0da8069
NN
954
955 -build | --build | --buil | --bui | --bu)
c6b750e1 956 ac_prev=build_alias ;;
a0da8069 957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 958 build_alias=$ac_optarg ;;
a0da8069
NN
959
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
965 cache_file=$ac_optarg ;;
966
967 --config-cache | -C)
968 cache_file=config.cache ;;
a0da8069 969
81ecdfbb 970 -datadir | --datadir | --datadi | --datad)
a0da8069 971 ac_prev=datadir ;;
81ecdfbb 972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 973 datadir=$ac_optarg ;;
a0da8069 974
81ecdfbb
RW
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
981
a0da8069 982 -disable-* | --disable-*)
81ecdfbb 983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 984 # Reject names that are not valid shell variable names.
81ecdfbb 985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 986 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991"enable_$ac_useropt"
992"*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
997
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1002
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
a0da8069
NN
1007
1008 -enable-* | --enable-*)
81ecdfbb 1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1010 # Reject names that are not valid shell variable names.
81ecdfbb 1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1012 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017"enable_$ac_useropt"
1018"*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
a0da8069 1021 esac
81ecdfbb 1022 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
c6b750e1 1031 exec_prefix=$ac_optarg ;;
a0da8069
NN
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
c6b750e1
DJ
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
a0da8069
NN
1043
1044 -host | --host | --hos | --ho)
c6b750e1 1045 ac_prev=host_alias ;;
a0da8069 1046 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1047 host_alias=$ac_optarg ;;
a0da8069 1048
81ecdfbb
RW
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
a0da8069
NN
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1060 includedir=$ac_optarg ;;
a0da8069
NN
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1065 infodir=$ac_optarg ;;
a0da8069
NN
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1070 libdir=$ac_optarg ;;
a0da8069
NN
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1077 libexecdir=$ac_optarg ;;
a0da8069 1078
81ecdfbb
RW
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
a0da8069 1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1085 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1089 localstatedir=$ac_optarg ;;
a0da8069
NN
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1094 mandir=$ac_optarg ;;
a0da8069
NN
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1101 | --no-cr | --no-c | -n)
a0da8069
NN
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1115 oldincludedir=$ac_optarg ;;
a0da8069
NN
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1120 prefix=$ac_optarg ;;
a0da8069
NN
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1127 program_prefix=$ac_optarg ;;
a0da8069
NN
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1134 program_suffix=$ac_optarg ;;
a0da8069
NN
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1151 program_transform_name=$ac_optarg ;;
a0da8069 1152
81ecdfbb
RW
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
a0da8069
NN
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
c6b750e1 1171 sbindir=$ac_optarg ;;
a0da8069
NN
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
c6b750e1 1182 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
c6b750e1 1187 site=$ac_optarg ;;
a0da8069
NN
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1192 srcdir=$ac_optarg ;;
a0da8069
NN
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1199 sysconfdir=$ac_optarg ;;
a0da8069
NN
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1202 ac_prev=target_alias ;;
a0da8069 1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1204 target_alias=$ac_optarg ;;
a0da8069
NN
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
c6b750e1
DJ
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
a0da8069
NN
1211
1212 -with-* | --with-*)
81ecdfbb 1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1214 # Reject names that are not valid shell variable names.
81ecdfbb 1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1216 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221"with_$ac_useropt"
1222"*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
a0da8069 1225 esac
81ecdfbb 1226 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1227
1228 -without-* | --without-*)
81ecdfbb 1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1230 # Reject names that are not valid shell variable names.
81ecdfbb 1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1232 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237"with_$ac_useropt"
1238"*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=no ;;
a0da8069
NN
1243
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1247
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1253 x_includes=$ac_optarg ;;
a0da8069
NN
1254
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1260 x_libraries=$ac_optarg ;;
a0da8069 1261
d0ac1c44
SM
1262 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263Try \`$0 --help' for more information"
a0da8069
NN
1264 ;;
1265
c6b750e1
DJ
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1272 esac
1273 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1274 export $ac_envvar ;;
1275
a0da8069 1276 *)
c6b750e1 1277 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1281 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
a0da8069
NN
1282 ;;
1283
1284 esac
1285done
1286
1287if test -n "$ac_prev"; then
c6b750e1 1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1289 as_fn_error $? "missing argument to $ac_option"
a0da8069 1290fi
a0da8069 1291
81ecdfbb
RW
1292if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1294 no) ;;
d0ac1c44 1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1297 esac
81ecdfbb 1298fi
a0da8069 1299
81ecdfbb
RW
1300# Check all directory arguments for consistency.
1301for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
a0da8069 1305do
81ecdfbb
RW
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
c6b750e1 1314 case $ac_val in
81ecdfbb
RW
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1317 esac
d0ac1c44 1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1319done
1320
c6b750e1
DJ
1321# There might be people who depend on the old broken behavior: `$host'
1322# used to hold the argument of --host etc.
1323# FIXME: To remove some day.
1324build=$build_alias
1325host=$host_alias
1326target=$target_alias
376a0e54 1327
c6b750e1
DJ
1328# FIXME: To remove some day.
1329if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
c6b750e1
DJ
1332 elif test "x$build_alias" != "x$host_alias"; then
1333 cross_compiling=yes
1334 fi
1335fi
1336
1337ac_tool_prefix=
1338test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340test "$silent" = yes && exec 6>/dev/null
a0da8069 1341
a0da8069 1342
81ecdfbb
RW
1343ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344ac_ls_di=`ls -di .` &&
1345ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1346 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1347test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1348 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1349
1350
a0da8069
NN
1351# Find the source files, if location was not specified.
1352if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
81ecdfbb
RW
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360$as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)[^/].*/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\).*/{
1374 s//\1/
1375 q
1376 }
1377 s/.*/./; q'`
a0da8069 1378 srcdir=$ac_confdir
81ecdfbb 1379 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1380 srcdir=..
1381 fi
1382else
1383 ac_srcdir_defaulted=no
1384fi
81ecdfbb
RW
1385if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1387 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1388fi
1389ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390ac_abs_confdir=`(
d0ac1c44 1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1392 pwd)`
1393# When building in place, set srcdir=.
1394if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1396fi
1397# Remove unnecessary trailing slashes from srcdir.
1398# Double slashes in file names in object file debugging info
1399# mess up M-x gdb in Emacs.
1400case $srcdir in
1401*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402esac
6d0cd39e
AM
1403case $srcdir in
1404 *" "*)
d0ac1c44 1405 as_fn_error $? "path to source, $srcdir, contains spaces"
6d0cd39e
AM
1406 ;;
1407esac
9cc8ae67
PB
1408ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1409
81ecdfbb
RW
1410for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415done
c6b750e1
DJ
1416
1417#
1418# Report the --help message.
1419#
1420if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424\`configure' configures this package to adapt to many kinds of systems.
1425
1426Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431Defaults for the options are specified in brackets.
1432
1433Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
d0ac1c44 1438 -q, --quiet, --silent do not print \`checking ...' messages
c6b750e1
DJ
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
c6b750e1
DJ
1444Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1446 [$ac_default_prefix]
c6b750e1 1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1448 [PREFIX]
c6b750e1
DJ
1449
1450By default, \`make install' will install all the files in
1451\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453for instance \`--prefix=\$HOME'.
1454
1455For better control, use the options below.
1456
1457Fine tuning of the installation directories:
81ecdfbb
RW
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1477_ACEOF
1478
1479 cat <<\_ACEOF
1480
1481Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 --target=TARGET configure for building compilers for TARGET [HOST]
1490_ACEOF
a0da8069 1491fi
a0da8069 1492
c6b750e1
DJ
1493if test -n "$ac_init_help"; then
1494
1495 cat <<\_ACEOF
1496
1497Optional Features:
81ecdfbb 1498 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1501 --enable-as-accelerator-for=ARG
1502 build as offload target compiler. Specify offload
1503 host triple by ARG
1504 --enable-offload-targets=LIST
1505 enable offloading to devices from comma-separated
1506 LIST of TARGET[=DIR]. Use optional path to find
1507 offload target compiler during the build
c7791212 1508 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1509 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
6c3bc0f8 1510 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1511 Enable compressed debug sections for gas, gold or ld
1512 by default
89a1e9c3
PB
1513 --disable-libquadmath do not build libquadmath directory
1514 --disable-libquadmath-support
1515 disable libquadmath support for Fortran
521ec477
DD
1516 --enable-libada build libada directory
1517 --enable-libssp build libssp directory
f66a9a70 1518 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1519 --enable-liboffloadmic=ARG
1520 build liboffloadmic [ARG={no,host,target}]
ffdd6afc 1521 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e 1522 --disable-isl-version-check
4849dfd8 1523 disable check for isl version
700d40ca 1524 --enable-lto enable link time optimization support
1b6c0831
L
1525 --enable-linker-plugin-configure-flags=FLAGS
1526 additional flags for configuring linker plugins
1527 [none]
1528 --enable-linker-plugin-flags=FLAGS
1529 additional flags for configuring and building linker
1530 plugins [none]
bf41f30d 1531 --enable-host-shared build host code as shared libraries
7837304f
AS
1532 --enable-stage1-languages[=all]
1533 choose additional languages to build during stage1.
1534 Mostly useful for compiler development
1535 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1536 Objective-C runtime
ce6c656d 1537 --enable-vtable-verify Enable vtable verification feature
521ec477 1538 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1539 force sequential configuration of sub-packages for
1540 the host, target or build machine, or all
1541 sub-packages
1542 --enable-maintainer-mode
1543 enable make rules and dependencies not useful (and
1544 sometimes confusing) to the casual installer
1545 --enable-stage1-checking[=all]
1546 choose additional checking for stage1 of the
1547 compiler
c6b750e1
DJ
1548 --enable-werror enable -Werror in bootstrap stage2 and later
1549
1550Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1554 --with-system-zlib use installed libz
7837304f
AS
1555 --with-mpc=PATH specify prefix directory for installed MPC package.
1556 Equivalent to --with-mpc-include=PATH/include plus
1557 --with-mpc-lib=PATH/lib
1558 --with-mpc-include=PATH specify directory for installed MPC include files
1559 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1560 --with-mpfr-dir=PATH this option has been REMOVED
1561 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1562 Equivalent to --with-mpfr-include=PATH/include plus
1563 --with-mpfr-lib=PATH/lib
c6b750e1 1564 --with-mpfr-include=PATH
521ec477
DD
1565 specify directory for installed MPFR include files
1566 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1567 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1568 --with-gmp=PATH specify prefix directory for the installed GMP
1569 package. Equivalent to
1570 --with-gmp-include=PATH/include plus
1571 --with-gmp-lib=PATH/lib
521ec477
DD
1572 --with-gmp-include=PATH specify directory for installed GMP include files
1573 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1574 --with-stage1-libs=LIBS libraries for stage1
7837304f
AS
1575 --with-stage1-ldflags=FLAGS
1576 linker flags for stage1
7837304f
AS
1577 --with-boot-libs=LIBS libraries for stage2 and later
1578 --with-boot-ldflags=FLAGS
1579 linker flags for stage2 and later
4849dfd8 1580 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1581 package. Equivalent to
7ec59b9e
L
1582 --with-isl-include=PATH/include plus
1583 --with-isl-lib=PATH/lib
4849dfd8
NC
1584 --with-isl-include=PATH Specify directory for installed isl include files
1585 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1586 --with-target-bdw-gc=PATHLIST
1587 specify prefix directory for installed bdw-gc
1588 package. Equivalent to
1589 --with-target-bdw-gc-include=PATH/include plus
1590 --with-target-bdw-gc-lib=PATH/lib
1591 --with-target-bdw-gc-include=PATHLIST
1592 specify directories for installed bdw-gc include
1593 files
1594 --with-target-bdw-gc-lib=PATHLIST
1595 specify directories for installed bdw-gc library
bf41f30d
NC
1596 --with-gcc-major-version-only
1597 use only GCC major number in filesystem paths
521ec477 1598 --with-build-sysroot=SYSROOT
c6b750e1 1599 use sysroot as the system root during the build
8a6ee3ab 1600 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1601 map A to B, C to D ... in debug information
1602 --with-build-config='NAME NAME2...'
1603 use config/NAME.mk build configuration
521ec477 1604 --with-build-time-tools=PATH
c6b750e1 1605 use given path to find target tools during the build
c6b750e1
DJ
1606
1607Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
81ecdfbb 1612 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1613 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1614 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1615 CXX C++ compiler command
1616 CXXFLAGS C++ compiler flags
4074d5f2
RW
1617 build_configargs
1618 additional configure arguments for build directories
1619 host_configargs
1620 additional configure arguments for host directories
1621 target_configargs
1622 additional configure arguments for target directories
9a819804
AO
1623 AR AR for the host
1624 AS AS for the host
1625 DLLTOOL DLLTOOL for the host
1626 LD LD for the host
1627 LIPO LIPO for the host
1628 NM NM for the host
1629 RANLIB RANLIB for the host
1630 STRIP STRIP for the host
1631 WINDRES WINDRES for the host
0c24b341 1632 WINDMC WINDMC for the host
9a819804
AO
1633 OBJCOPY OBJCOPY for the host
1634 OBJDUMP OBJDUMP for the host
b121d7d4 1635 READELF READELF for the host
9a819804
AO
1636 CC_FOR_TARGET
1637 CC for the target
1638 CXX_FOR_TARGET
1639 CXX for the target
1640 GCC_FOR_TARGET
1641 GCC for the target
9a819804
AO
1642 GFORTRAN_FOR_TARGET
1643 GFORTRAN for the target
e552509b
ILT
1644 GOC_FOR_TARGET
1645 GOC for the target
9a819804
AO
1646 AR_FOR_TARGET
1647 AR for the target
1648 AS_FOR_TARGET
1649 AS for the target
1650 DLLTOOL_FOR_TARGET
1651 DLLTOOL for the target
1652 LD_FOR_TARGET
1653 LD for the target
1654 LIPO_FOR_TARGET
1655 LIPO for the target
1656 NM_FOR_TARGET
1657 NM for the target
6b91c541
AP
1658 OBJCOPY_FOR_TARGET
1659 OBJCOPY for the target
9a819804
AO
1660 OBJDUMP_FOR_TARGET
1661 OBJDUMP for the target
1662 RANLIB_FOR_TARGET
1663 RANLIB for the target
b121d7d4
DD
1664 READELF_FOR_TARGET
1665 READELF for the target
9a819804
AO
1666 STRIP_FOR_TARGET
1667 STRIP for the target
1668 WINDRES_FOR_TARGET
1669 WINDRES for the target
0c24b341
NC
1670 WINDMC_FOR_TARGET
1671 WINDMC for the target
c6b750e1
DJ
1672
1673Use these variables to override the choices made by `configure' or to help
1674it to find libraries and programs with nonstandard names/locations.
1675
81ecdfbb 1676Report bugs to the package provider.
c6b750e1 1677_ACEOF
81ecdfbb 1678ac_status=$?
c6b750e1
DJ
1679fi
1680
1681if test "$ac_init_help" = "recursive"; then
1682 # If there are subdirs, report their specific --help.
c6b750e1 1683 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1684 test -d "$ac_dir" ||
1685 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1686 continue
c6b750e1
DJ
1687 ac_builddir=.
1688
81ecdfbb
RW
1689case "$ac_dir" in
1690.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691*)
1692 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1693 # A ".." for each directory in $ac_dir_suffix.
1694 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1695 case $ac_top_builddir_sub in
1696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1698 esac ;;
1699esac
1700ac_abs_top_builddir=$ac_pwd
1701ac_abs_builddir=$ac_pwd$ac_dir_suffix
1702# for backward compatibility:
1703ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1704
1705case $srcdir in
81ecdfbb 1706 .) # We are building in place.
c6b750e1 1707 ac_srcdir=.
81ecdfbb
RW
1708 ac_top_srcdir=$ac_top_builddir_sub
1709 ac_abs_top_srcdir=$ac_pwd ;;
1710 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1711 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1712 ac_top_srcdir=$srcdir
1713 ac_abs_top_srcdir=$srcdir ;;
1714 *) # Relative name.
1715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1716 ac_top_srcdir=$ac_top_build_prefix$srcdir
1717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1718esac
81ecdfbb
RW
1719ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1720
1721 cd "$ac_dir" || { ac_status=$?; continue; }
1722 # Check for guested configure.
1723 if test -f "$ac_srcdir/configure.gnu"; then
1724 echo &&
1725 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1726 elif test -f "$ac_srcdir/configure"; then
1727 echo &&
1728 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1729 else
81ecdfbb
RW
1730 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731 fi || ac_status=$?
1732 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1733 done
1734fi
1735
81ecdfbb 1736test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1737if $ac_init_version; then
1738 cat <<\_ACEOF
81ecdfbb 1739configure
d0ac1c44 1740generated by GNU Autoconf 2.69
c6b750e1 1741
d0ac1c44 1742Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
1743This configure script is free software; the Free Software Foundation
1744gives unlimited permission to copy, distribute and modify it.
1745_ACEOF
81ecdfbb 1746 exit
c6b750e1 1747fi
81ecdfbb
RW
1748
1749## ------------------------ ##
1750## Autoconf initialization. ##
1751## ------------------------ ##
1752
1753# ac_fn_c_try_compile LINENO
1754# --------------------------
1755# Try to compile conftest.$ac_ext, and return whether this succeeded.
1756ac_fn_c_try_compile ()
1757{
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext
1760 if { { ac_try="$ac_compile"
1761case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_compile") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest.$ac_objext; then :
1779 ac_retval=0
1780else
1781 $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785fi
d0ac1c44
SM
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
81ecdfbb
RW
1788
1789} # ac_fn_c_try_compile
1790
1791# ac_fn_cxx_try_compile LINENO
1792# ----------------------------
1793# Try to compile conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_cxx_try_compile ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1799case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_cxx_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823fi
d0ac1c44
SM
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
81ecdfbb
RW
1826
1827} # ac_fn_cxx_try_compile
1828
b3676d82
EB
1829# ac_fn_cxx_try_link LINENO
1830# -------------------------
1831# Try to link conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_cxx_try_link ()
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
d0ac1c44 1856 test -x conftest$ac_exeext
b3676d82
EB
1857 }; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864fi
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
b3676d82
EB
1872
1873} # ac_fn_cxx_try_link
1874
81ecdfbb
RW
1875# ac_fn_c_try_link LINENO
1876# -----------------------
1877# Try to link conftest.$ac_ext, and return whether this succeeded.
1878ac_fn_c_try_link ()
1879{
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1883case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
d0ac1c44 1902 test -x conftest$ac_exeext
81ecdfbb
RW
1903 }; then :
1904 ac_retval=0
1905else
1906 $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910fi
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
81ecdfbb
RW
1918
1919} # ac_fn_c_try_link
1920cat >config.log <<_ACEOF
c6b750e1
DJ
1921This file contains any messages produced by compilers while
1922running configure, to aid debugging if configure makes a mistake.
1923
1924It was created by $as_me, which was
d0ac1c44 1925generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
1926
1927 $ $0 $@
1928
1929_ACEOF
81ecdfbb 1930exec 5>>config.log
c6b750e1
DJ
1931{
1932cat <<_ASUNAME
1933## --------- ##
1934## Platform. ##
1935## --------- ##
1936
1937hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1938uname -m = `(uname -m) 2>/dev/null || echo unknown`
1939uname -r = `(uname -r) 2>/dev/null || echo unknown`
1940uname -s = `(uname -s) 2>/dev/null || echo unknown`
1941uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942
1943/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1944/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945
1946/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1947/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1948/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1949/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1950/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1951/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1952/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953
1954_ASUNAME
1955
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1961 $as_echo "PATH: $as_dir"
1962 done
1963IFS=$as_save_IFS
c6b750e1
DJ
1964
1965} >&5
1966
1967cat >&5 <<_ACEOF
1968
1969
1970## ----------- ##
1971## Core tests. ##
1972## ----------- ##
1973
1974_ACEOF
1975
1976
1977# Keep a trace of the command line.
1978# Strip out --no-create and --no-recursion so they do not pile up.
1979# Strip out --silent because we don't want to record it for future runs.
1980# Also quote any args containing shell meta-characters.
1981# Make two passes to allow for proper duplicate-argument suppression.
1982ac_configure_args=
1983ac_configure_args0=
1984ac_configure_args1=
c6b750e1
DJ
1985ac_must_keep_next=false
1986for ac_pass in 1 2
1987do
1988 for ac_arg
1989 do
1990 case $ac_arg in
1991 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1993 | -silent | --silent | --silen | --sile | --sil)
1994 continue ;;
81ecdfbb
RW
1995 *\'*)
1996 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1997 esac
1998 case $ac_pass in
81ecdfbb 1999 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2000 2)
81ecdfbb 2001 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2002 if test $ac_must_keep_next = true; then
2003 ac_must_keep_next=false # Got value, back to normal.
2004 else
2005 case $ac_arg in
2006 *=* | --config-cache | -C | -disable-* | --disable-* \
2007 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2008 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2009 | -with-* | --with-* | -without-* | --without-* | --x)
2010 case "$ac_configure_args0 " in
2011 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012 esac
2013 ;;
2014 -* ) ac_must_keep_next=true ;;
2015 esac
2016 fi
81ecdfbb 2017 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2018 ;;
2019 esac
2020 done
2021done
81ecdfbb
RW
2022{ ac_configure_args0=; unset ac_configure_args0;}
2023{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2024
2025# When interrupted or exit'd, cleanup temporary files, and complete
2026# config.log. We remove comments because anyway the quotes in there
2027# would cause problems or look ugly.
81ecdfbb
RW
2028# WARNING: Use '\'' to represent an apostrophe within the trap.
2029# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2030trap 'exit_status=$?
2031 # Save into config.log some information that might help in debugging.
2032 {
2033 echo
2034
d0ac1c44 2035 $as_echo "## ---------------- ##
c6b750e1 2036## Cache variables. ##
d0ac1c44 2037## ---------------- ##"
c6b750e1
DJ
2038 echo
2039 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2040(
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in #(
2044 *${as_nl}*)
2045 case $ac_var in #(
2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 esac
2049 case $ac_var in #(
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2053 esac ;;
2054 esac
2055 done
c6b750e1 2056 (set) 2>&1 |
81ecdfbb
RW
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
c6b750e1 2059 sed -n \
81ecdfbb
RW
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 ;; #(
c6b750e1 2063 *)
81ecdfbb 2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2065 ;;
81ecdfbb
RW
2066 esac |
2067 sort
2068)
c6b750e1
DJ
2069 echo
2070
d0ac1c44 2071 $as_echo "## ----------------- ##
c6b750e1 2072## Output variables. ##
d0ac1c44 2073## ----------------- ##"
c6b750e1
DJ
2074 echo
2075 for ac_var in $ac_subst_vars
2076 do
81ecdfbb
RW
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2082 done | sort
2083 echo
2084
2085 if test -n "$ac_subst_files"; then
d0ac1c44 2086 $as_echo "## ------------------- ##
81ecdfbb 2087## File substitutions. ##
d0ac1c44 2088## ------------------- ##"
c6b750e1
DJ
2089 echo
2090 for ac_var in $ac_subst_files
2091 do
81ecdfbb
RW
2092 eval ac_val=\$$ac_var
2093 case $ac_val in
2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095 esac
2096 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2097 done | sort
2098 echo
2099 fi
2100
2101 if test -s confdefs.h; then
d0ac1c44 2102 $as_echo "## ----------- ##
c6b750e1 2103## confdefs.h. ##
d0ac1c44 2104## ----------- ##"
c6b750e1 2105 echo
81ecdfbb 2106 cat confdefs.h
c6b750e1
DJ
2107 echo
2108 fi
2109 test "$ac_signal" != 0 &&
81ecdfbb
RW
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
c6b750e1 2112 } >&5
81ecdfbb
RW
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2115 exit $exit_status
81ecdfbb 2116' 0
c6b750e1 2117for ac_signal in 1 2 13 15; do
81ecdfbb 2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2119done
2120ac_signal=0
2121
2122# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2123rm -f -r conftest* confdefs.h
2124
2125$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2126
2127# Predefined preprocessor variables.
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_NAME "$PACKAGE_NAME"
2131_ACEOF
2132
c6b750e1
DJ
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135_ACEOF
2136
c6b750e1
DJ
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_VERSION "$PACKAGE_VERSION"
2139_ACEOF
2140
c6b750e1
DJ
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_STRING "$PACKAGE_STRING"
2143_ACEOF
2144
c6b750e1
DJ
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147_ACEOF
2148
81ecdfbb
RW
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_URL "$PACKAGE_URL"
2151_ACEOF
2152
c6b750e1
DJ
2153
2154# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2155# Prefer an explicitly selected file to automatically selected ones.
2156ac_site_file1=NONE
2157ac_site_file2=NONE
2158if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2159 # We do not want a PATH search for config.site.
2160 case $CONFIG_SITE in #((
2161 -*) ac_site_file1=./$CONFIG_SITE;;
2162 */*) ac_site_file1=$CONFIG_SITE;;
2163 *) ac_site_file1=./$CONFIG_SITE;;
2164 esac
81ecdfbb
RW
2165elif test "x$prefix" != xNONE; then
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
2168else
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2171fi
81ecdfbb
RW
2172for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2173do
2174 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2175 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2178 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2179 . "$ac_site_file" \
2180 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182as_fn_error $? "failed to load site script $ac_site_file
2183See \`config.log' for more details" "$LINENO" 5; }
a0da8069
NN
2184 fi
2185done
2186
2187if test -r "$cache_file"; then
d0ac1c44
SM
2188 # Some versions of bash will fail to source /dev/null (special files
2189 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2190 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2192$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2193 case $cache_file in
81ecdfbb
RW
2194 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2195 *) . "./$cache_file";;
c6b750e1
DJ
2196 esac
2197 fi
a0da8069 2198else
81ecdfbb
RW
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2200$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2201 >$cache_file
2202fi
2203
2204# Check that the precious variables saved in the cache have kept the same
2205# value.
2206ac_cache_corrupted=false
81ecdfbb 2207for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2208 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2209 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2210 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2211 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2212 case $ac_old_set,$ac_new_set in
2213 set,)
81ecdfbb
RW
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2215$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2216 ac_cache_corrupted=: ;;
2217 ,set)
81ecdfbb
RW
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2219$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2220 ac_cache_corrupted=: ;;
2221 ,);;
2222 *)
2223 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2224 # differences in whitespace do not lead to failure.
2225 ac_old_val_w=`echo x $ac_old_val`
2226 ac_new_val_w=`echo x $ac_new_val`
2227 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2229$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2230 ac_cache_corrupted=:
2231 else
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2233$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2234 eval $ac_var=\$ac_old_val
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2237$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2239$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2240 fi;;
2241 esac
2242 # Pass precious variables to config.status.
2243 if test "$ac_new_set" = set; then
2244 case $ac_new_val in
81ecdfbb 2245 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2246 *) ac_arg=$ac_var=$ac_new_val ;;
2247 esac
2248 case " $ac_configure_args " in
2249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2250 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2251 esac
2252 fi
2253done
2254if $ac_cache_corrupted; then
81ecdfbb
RW
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2258$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2259 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2260fi
81ecdfbb
RW
2261## -------------------- ##
2262## Main body of script. ##
2263## -------------------- ##
a0da8069
NN
2264
2265ac_ext=c
a0da8069 2266ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270
2271
2272
2273
c6b750e1
DJ
2274
2275
34a0f3cf 2276
c6b750e1 2277
5b553f7e
RW
2278progname=$0
2279# if PWD already has a value, it is probably wrong.
2280if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2281
2282# Export original configure arguments for use by sub-configures.
2283# Quote arguments with shell meta charatcers.
2284TOPLEVEL_CONFIGURE_ARGUMENTS=
2285set -- "$progname" "$@"
2286for ac_arg
2287do
2288 case "$ac_arg" in
2289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2290 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2291 # if the argument is of the form -foo=baz, quote the baz part only
2292 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2293 *) ;;
2294 esac
2295 # Add the quoted argument to the list.
2296 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2297done
2298if test "$silent" = yes; then
2299 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2300fi
2301# Remove the initial space we just introduced and, as these will be
2302# expanded by make, quote '$'.
2303TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2304
c6b750e1
DJ
2305
2306# Find the build, host, and target systems.
a0da8069 2307ac_aux_dir=
81ecdfbb 2308for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2309 if test -f "$ac_dir/install-sh"; then
2310 ac_aux_dir=$ac_dir
2311 ac_install_sh="$ac_aux_dir/install-sh -c"
2312 break
2313 elif 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/shtool"; then
2318 ac_aux_dir=$ac_dir
2319 ac_install_sh="$ac_aux_dir/shtool install -c"
2320 break
2321 fi
a0da8069
NN
2322done
2323if test -z "$ac_aux_dir"; then
d0ac1c44 2324 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2325fi
81ecdfbb
RW
2326
2327# These three variables are undocumented and unsupported,
2328# and are intended to be withdrawn in a future Autoconf release.
2329# They can cause serious problems if a builder's source tree is in a directory
2330# whose full name contains unusual characters.
2331ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2332ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2333ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2334
a0da8069 2335
c6b750e1 2336# Make sure we can run config.sub.
81ecdfbb 2337$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2338 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2339
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2341$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2342if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2343 $as_echo_n "(cached) " >&6
2344else
2345 ac_build_alias=$build_alias
2346test "x$ac_build_alias" = x &&
2347 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2348test "x$ac_build_alias" = x &&
d0ac1c44 2349 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2350ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2351 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2352
2353fi
2354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2355$as_echo "$ac_cv_build" >&6; }
2356case $ac_cv_build in
2357*-*-*) ;;
d0ac1c44 2358*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2359esac
c6b750e1 2360build=$ac_cv_build
81ecdfbb
RW
2361ac_save_IFS=$IFS; IFS='-'
2362set x $ac_cv_build
2363shift
2364build_cpu=$1
2365build_vendor=$2
2366shift; shift
2367# Remember, the first character of IFS is used to create $*,
2368# except with old shells:
2369build_os=$*
2370IFS=$ac_save_IFS
2371case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2372
a0da8069 2373
c6b750e1
DJ
2374 case ${build_alias} in
2375 "") build_noncanonical=${build} ;;
2376 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2377esac
2378
2379
cac3d6c4 2380
c6b750e1
DJ
2381 case ${host_alias} in
2382 "") host_noncanonical=${build_noncanonical} ;;
2383 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2384esac
2385
cac3d6c4 2386
c6b750e1
DJ
2387
2388 case ${target_alias} in
2389 "") target_noncanonical=${host_noncanonical} ;;
2390 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2391esac
2392
cac3d6c4 2393
c6b750e1
DJ
2394
2395
2396test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2397 test "$program_prefix$program_suffix$program_transform_name" = \
2398 NONENONEs,x,x, &&
c6b750e1 2399 program_transform_name=s,y,y,
cac3d6c4 2400
81ecdfbb
RW
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2402$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2403if ${ac_cv_host+:} false; then :
81ecdfbb 2404 $as_echo_n "(cached) " >&6
cac3d6c4 2405else
81ecdfbb
RW
2406 if test "x$host_alias" = x; then
2407 ac_cv_host=$ac_cv_build
2408else
2409 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2410 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2411fi
c6b750e1
DJ
2412
2413fi
81ecdfbb
RW
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2415$as_echo "$ac_cv_host" >&6; }
2416case $ac_cv_host in
2417*-*-*) ;;
d0ac1c44 2418*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2419esac
c6b750e1 2420host=$ac_cv_host
81ecdfbb
RW
2421ac_save_IFS=$IFS; IFS='-'
2422set x $ac_cv_host
2423shift
2424host_cpu=$1
2425host_vendor=$2
2426shift; shift
2427# Remember, the first character of IFS is used to create $*,
2428# except with old shells:
2429host_os=$*
2430IFS=$ac_save_IFS
2431case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2432
2433
81ecdfbb
RW
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2435$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2436if ${ac_cv_target+:} false; then :
81ecdfbb 2437 $as_echo_n "(cached) " >&6
c6b750e1 2438else
81ecdfbb
RW
2439 if test "x$target_alias" = x; then
2440 ac_cv_target=$ac_cv_host
2441else
2442 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2444fi
c6b750e1 2445
cac3d6c4 2446fi
81ecdfbb
RW
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2448$as_echo "$ac_cv_target" >&6; }
2449case $ac_cv_target in
2450*-*-*) ;;
d0ac1c44 2451*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2452esac
c6b750e1 2453target=$ac_cv_target
81ecdfbb
RW
2454ac_save_IFS=$IFS; IFS='-'
2455set x $ac_cv_target
2456shift
2457target_cpu=$1
2458target_vendor=$2
2459shift; shift
2460# Remember, the first character of IFS is used to create $*,
2461# except with old shells:
2462target_os=$*
2463IFS=$ac_save_IFS
2464case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2465
2466
2467# The aliases save the names the user supplied, while $host etc.
2468# will get canonicalized.
2469test -n "$target_alias" &&
2470 test "$program_prefix$program_suffix$program_transform_name" = \
2471 NONENONEs,x,x, &&
2472 program_prefix=${target_alias}-
81ecdfbb 2473
a0da8069 2474test "$program_prefix" != NONE &&
81ecdfbb 2475 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2476# Use a double $ so make ignores it.
2477test "$program_suffix" != NONE &&
81ecdfbb
RW
2478 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2479# Double any \ or $.
c6b750e1 2480# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2481ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2482program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2483
a0da8069
NN
2484
2485
e5c3f801
NN
2486# Get 'install' or 'install-sh' and its variants.
2487# Find a good install program. We prefer a C program (faster),
2488# so one script is as good as another. But avoid the broken or
2489# incompatible versions:
2490# SysV /etc/install, /usr/sbin/install
2491# SunOS /usr/etc/install
2492# IRIX /sbin/install
2493# AIX /bin/install
c6b750e1 2494# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2495# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2496# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2497# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2498# OS/2's system install, which has a completely different semantic
e5c3f801 2499# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2500# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2502$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2503if test -z "$INSTALL"; then
d0ac1c44 2504if ${ac_cv_path_install+:} false; then :
81ecdfbb 2505 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2506else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2512 # Account for people who put trailing slashes in PATH elements.
2513case $as_dir/ in #((
2514 ./ | .// | /[cC]/* | \
c6b750e1 2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2516 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2517 /usr/ucb/* ) ;;
2518 *)
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2521 # by default.
2522 for ac_prog in ginstall scoinst install; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2524 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 2525 if test $ac_prog = install &&
c6b750e1 2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2527 # AIX install. It has an incompatible calling convention.
2528 :
c6b750e1
DJ
2529 elif test $ac_prog = install &&
2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # program-specific install script used by HP pwplus--don't use.
2532 :
e5c3f801 2533 else
58c85be7
RW
2534 rm -rf conftest.one conftest.two conftest.dir
2535 echo one > conftest.one
2536 echo two > conftest.two
2537 mkdir conftest.dir
2538 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2539 test -s conftest.one && test -s conftest.two &&
2540 test -s conftest.dir/conftest.one &&
2541 test -s conftest.dir/conftest.two
2542 then
2543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2544 break 3
2545 fi
e5c3f801
NN
2546 fi
2547 fi
2548 done
c6b750e1
DJ
2549 done
2550 ;;
2551esac
81ecdfbb
RW
2552
2553 done
2554IFS=$as_save_IFS
c6b750e1 2555
58c85be7 2556rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2557
2558fi
2559 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2560 INSTALL=$ac_cv_path_install
e5c3f801 2561 else
58c85be7
RW
2562 # As a last resort, use the slow shell script. Don't cache a
2563 # value for INSTALL within a source directory, because that will
e5c3f801 2564 # break other packages using the cache if that directory is
58c85be7 2565 # removed, or if the value is a relative name.
c6b750e1 2566 INSTALL=$ac_install_sh
e5c3f801
NN
2567 fi
2568fi
81ecdfbb
RW
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2570$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2571
2572# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2573# It thinks the first close brace ends the variable substitution.
2574test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2575
c6b750e1 2576test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2577
2578test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2579
81ecdfbb
RW
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2581$as_echo_n "checking whether ln works... " >&6; }
d0ac1c44 2582if ${acx_cv_prog_LN+:} false; then :
81ecdfbb 2583 $as_echo_n "(cached) " >&6
656fdd47
PB
2584else
2585 rm -f conftestdata_t
2586echo >conftestdata_f
2587if ln conftestdata_f conftestdata_t 2>/dev/null
2588then
2589 acx_cv_prog_LN=ln
2590else
2591 acx_cv_prog_LN=no
2592fi
2593rm -f conftestdata_f conftestdata_t
2594
2595fi
2596if test $acx_cv_prog_LN = no; then
2597 LN="cp"
81ecdfbb
RW
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2599$as_echo "no, using $LN" >&6; }
656fdd47
PB
2600else
2601 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2603$as_echo "yes" >&6; }
656fdd47
PB
2604fi
2605
81ecdfbb
RW
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2607$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2608LN_S=$as_ln_s
2609if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2611$as_echo "yes" >&6; }
cac3d6c4 2612else
81ecdfbb
RW
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2614$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2615fi
2616
8e957354
PB
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2618$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 2619if ${ac_cv_path_SED+:} false; then :
8e957354
PB
2620 $as_echo_n "(cached) " >&6
2621else
2622 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2623 for ac_i in 1 2 3 4 5 6 7; do
2624 ac_script="$ac_script$as_nl$ac_script"
2625 done
2626 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2627 { ac_script=; unset ac_script;}
2628 if test -z "$SED"; then
2629 ac_path_SED_found=false
2630 # Loop through the user's path and test for each of PROGNAME-LIST
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_prog in sed gsed; do
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 2639 as_fn_executable_p "$ac_path_SED" || continue
8e957354
PB
2640# Check for GNU ac_path_SED and select it if it is found.
2641 # Check for GNU $ac_path_SED
2642case `"$ac_path_SED" --version 2>&1` in
2643*GNU*)
2644 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2645*)
2646 ac_count=0
2647 $as_echo_n 0123456789 >"conftest.in"
2648 while :
2649 do
2650 cat "conftest.in" "conftest.in" >"conftest.tmp"
2651 mv "conftest.tmp" "conftest.in"
2652 cp "conftest.in" "conftest.nl"
2653 $as_echo '' >> "conftest.nl"
2654 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2656 as_fn_arith $ac_count + 1 && ac_count=$as_val
2657 if test $ac_count -gt ${ac_path_SED_max-0}; then
2658 # Best one so far, save it but keep looking for a better one
2659 ac_cv_path_SED="$ac_path_SED"
2660 ac_path_SED_max=$ac_count
2661 fi
2662 # 10*(2^10) chars as input seems more than enough
2663 test $ac_count -gt 10 && break
2664 done
2665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2666esac
2667
2668 $ac_path_SED_found && break 3
2669 done
2670 done
2671 done
2672IFS=$as_save_IFS
2673 if test -z "$ac_cv_path_SED"; then
d0ac1c44 2674 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8e957354
PB
2675 fi
2676else
2677 ac_cv_path_SED=$SED
2678fi
2679
2680fi
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2682$as_echo "$ac_cv_path_SED" >&6; }
2683 SED="$ac_cv_path_SED"
2684 rm -f conftest.sed
2685
2686for ac_prog in gawk mawk nawk awk
2687do
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689set dummy $ac_prog; ac_word=$2
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2692if ${ac_cv_prog_AWK+:} false; then :
8e957354
PB
2693 $as_echo_n "(cached) " >&6
2694else
2695 if test -n "$AWK"; then
2696 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8e957354
PB
2705 ac_cv_prog_AWK="$ac_prog"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709done
2710 done
2711IFS=$as_save_IFS
2712
2713fi
2714fi
2715AWK=$ac_cv_prog_AWK
2716if test -n "$AWK"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2718$as_echo "$AWK" >&6; }
2719else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721$as_echo "no" >&6; }
2722fi
2723
2724
2725 test -n "$AWK" && break
2726done
2727
e5c3f801 2728
0fdbe983
DJ
2729srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2730
2731# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2732# a relative path.
2733if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2734 INSTALL="${srcpwd}/install-sh -c"
2735fi
2736
a0da8069
NN
2737# Set srcdir to "." if that's what it is.
2738# This is important for multilib support.
2739pwd=`${PWDCMD-pwd}`
a0da8069
NN
2740if test "${pwd}" = "${srcpwd}" ; then
2741 srcdir=.
252b5132
RH
2742fi
2743
a0da8069 2744topsrcdir=$srcpwd
252b5132 2745
a0da8069 2746extra_host_args=
afefada0 2747
a0da8069
NN
2748### To add a new directory to the tree, first choose whether it is a target
2749### or a host dependent tool. Then put it into the appropriate list
2750### (library or tools, host or target), doing a dependency sort.
252b5132 2751
c6b750e1 2752# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2753# configdirs, or target_configdirs; see the serialization section below.
252b5132 2754
c6b750e1
DJ
2755# Dependency sorting is only needed when *configuration* must be done in
2756# a particular order. In all cases a dependency should be specified in
a0da8069 2757# the Makefile, whether or not it's implicitly specified here.
252b5132 2758
a0da8069
NN
2759# Double entries in build_configdirs, configdirs, or target_configdirs may
2760# cause circular dependencies and break everything horribly.
252b5132 2761
6a9cf61e
PB
2762# these library is used by various programs built for the build
2763# environment
2764#
1b6c0831 2765build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2766
2767# these tools are built for the build environment
a90ef4bf 2768build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2769
a0da8069 2770# these libraries are used by various programs built for the host environment
1b6c0831
L
2771#f
2772host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
a0da8069 2773
a0da8069
NN
2774# these tools are built for the host environment
2775# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2776# know that we are building the simulator.
2777# binutils, gas and ld appear in that order because it makes sense to run
2778# "make check" in that particular order.
e6de499b 2779# If --enable-gold is used, "gold" may replace "ld".
1b6c0831 2780host_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 2781
a0da8069
NN
2782# these libraries are built for the target environment, and are built after
2783# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2784# Note that libiberty is not a target library.
b1299c4e 2785target_libraries="target-libgcc \
2bf680c4 2786 target-libbacktrace \
a0da8069
NN
2787 target-libgloss \
2788 target-newlib \
cff87f51 2789 target-libgomp \
1b6c0831 2790 target-liboffloadmic \
bf41f30d 2791 target-libhsail-rt \
7ec59b9e 2792 target-libatomic \
d32e2926 2793 target-libitm \
b9459e83 2794 target-libstdc++-v3 \
5286fdef 2795 target-libsanitizer \
95e43135 2796 target-libvtv \
bb780410 2797 target-libssp \
e552509b 2798 target-libquadmath \
4b1cb4fe 2799 target-libgfortran \
05a13254 2800 target-libffi \
a2592b1b 2801 target-libobjc \
e552509b
ILT
2802 target-libada \
2803 target-libgo"
a0da8069 2804
9c14acb8
NN
2805# these tools are built using the target libraries, and are intended to
2806# run only in the target environment
a0da8069 2807#
9c14acb8 2808# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2809# list belongs in this list.
a0da8069 2810#
a90ef4bf 2811target_tools="target-rda"
252b5132 2812
a0da8069 2813################################################################################
252b5132 2814
a0da8069
NN
2815## All tools belong in one of the four categories, and are assigned above
2816## We assign ${configdirs} this way to remove all embedded newlines. This
2817## is important because configure will choke if they ever get through.
2818## ${configdirs} is directories we build using the host tools.
2819## ${target_configdirs} is directories we build using the target tools.
a0da8069 2820configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2821target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2822build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2823
9cc8ae67
PB
2824
2825
a0da8069 2826################################################################################
252b5132 2827
a0da8069 2828srcname="gnu development package"
252b5132 2829
a0da8069
NN
2830# This gets set non-empty for some net releases of packages.
2831appdirs=""
252b5132 2832
a0da8069
NN
2833# Define is_cross_compiler to save on calls to 'test'.
2834is_cross_compiler=
2835if test x"${host}" = x"${target}" ; then
2836 is_cross_compiler=no
252b5132 2837else
a0da8069 2838 is_cross_compiler=yes
c6b750e1 2839fi
252b5132 2840
9175bfc0 2841# Find the build and target subdir names.
dd12c3a8 2842
66a79c16
DJ
2843# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2844# have matching libraries, they should use host libraries: Makefile.tpl
2845# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2846# However, they still use the build modules, because the corresponding
2847# host modules (e.g. bison) are only built for the host when bootstrap
2848# finishes. So:
2849# - build_subdir is where we find build modules, and never changes.
2850# - build_libsubdir is where we find build libraries, and can be overridden.
2851
2852# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2853build_subdir="build-${build_noncanonical}"
c6b750e1 2854
81ecdfbb
RW
2855# Check whether --with-build-libsubdir was given.
2856if test "${with_build_libsubdir+set}" = set; then :
2857 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2858else
2859 build_libsubdir="$build_subdir"
81ecdfbb
RW
2860fi
2861
b00612cc
PB
2862# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2863if ( test $srcdir = . && test -d gcc ) \
2864 || test -d $srcdir/../host-${host_noncanonical}; then
2865 host_subdir="host-${host_noncanonical}"
2866else
2867 host_subdir=.
2868fi
dd12c3a8
NN
2869# No prefix.
2870target_subdir=${target_noncanonical}
c6b750e1 2871
2fd0b40b
RW
2872# Be sure to cover against remnants of an in-tree build.
2873if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
d0ac1c44 2874 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2fd0b40b
RW
2875Use a pristine source tree when building in a separate tree" "$LINENO" 5
2876fi
252b5132 2877
a0da8069
NN
2878# Skipdirs are removed silently.
2879skipdirs=
2880# Noconfigdirs are removed loudly.
2881noconfigdirs=""
252b5132 2882
a0da8069
NN
2883use_gnu_ld=
2884# Make sure we don't let GNU ld be added if we didn't want it.
2885if test x$with_gnu_ld = xno ; then
2886 use_gnu_ld=no
93f9b408 2887 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2888fi
2889
a0da8069
NN
2890use_gnu_as=
2891# Make sure we don't let GNU as be added if we didn't want it.
2892if test x$with_gnu_as = xno ; then
2893 use_gnu_as=no
2894 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2895fi
2896
700d40ca 2897use_included_zlib=
cf39cfc5
L
2898
2899# Check whether --with-system-zlib was given.
2900if test "${with_system_zlib+set}" = set; then :
2901 withval=$with_system_zlib;
2902fi
2903
700d40ca
ILT
2904# Make sure we don't let ZLIB be added if we didn't want it.
2905if test x$with_system_zlib = xyes ; then
2906 use_included_zlib=no
2907 noconfigdirs="$noconfigdirs zlib"
2908fi
2909
69961a84
ДП
2910# Don't compile the bundled readline/libreadline.a if --with-system-readline
2911# is provided.
2912if test x$with_system_readline = xyes ; then
2913 noconfigdirs="$noconfigdirs readline"
2914fi
2915
c6b750e1 2916# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2917# it's not even worth trying to configure, much less build, that tool.
252b5132 2918
a0da8069
NN
2919case ${with_x} in
2920 yes | "") ;; # the default value for this tree is that X11 is available
2921 no)
675c6968 2922 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2923 # We won't be able to build gdbtk without X.
c6b750e1 2924 enable_gdbtk=no
a0da8069
NN
2925 ;;
2926 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2927esac
252b5132 2928
0377a422 2929# Some are only suitable for cross toolchains.
a0da8069
NN
2930# Remove these if host=target.
2931cross_only="target-libgloss target-newlib target-opcodes"
2932
2933case $is_cross_compiler in
2934 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2935esac
252b5132 2936
a0da8069
NN
2937# If both --with-headers and --with-libs are specified, default to
2938# --without-newlib.
32be62b5
RS
2939if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2940 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2941 if test x"${with_newlib}" = x ; then
2942 with_newlib=no
2943 fi
252b5132
RH
2944fi
2945
a0da8069
NN
2946# Recognize --with-newlib/--without-newlib.
2947case ${with_newlib} in
2948 no) skipdirs="${skipdirs} target-newlib" ;;
2949 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2950esac
252b5132 2951
1b6c0831
L
2952# Check whether --enable-as-accelerator-for was given.
2953if test "${enable_as_accelerator_for+set}" = set; then :
2954 enableval=$enable_as_accelerator_for;
2955fi
2956
2957
2958# Check whether --enable-offload-targets was given.
2959if test "${enable_offload_targets+set}" = set; then :
2960 enableval=$enable_offload_targets;
2961 if test x"$enable_offload_targets" = x; then
d0ac1c44 2962 as_fn_error $? "no offload targets specified" "$LINENO" 5
1b6c0831
L
2963 fi
2964
2965else
2966 enable_offload_targets=
2967fi
2968
2969
c7791212
NC
2970# Handle --enable-gold, --enable-ld.
2971# --disable-gold [--enable-ld]
2972# Build only ld. Default option.
d3b50760
L
2973# --enable-gold [--enable-ld]
2974# Build both gold and ld. Install gold as "ld.gold", install ld
2975# as "ld.bfd" and "ld".
2976# --enable-gold=default [--enable-ld]
c7791212
NC
2977# Build both gold and ld. Install gold as "ld.gold" and "ld",
2978# install ld as "ld.bfd".
2979# --enable-gold[=default] --disable-ld
2980# Build only gold, which is then installed as both "ld.gold" and "ld".
2981# --enable-gold --enable-ld=default
d3b50760
L
2982# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2983# and ld.bfd).
c7791212
NC
2984# In other words, ld is default
2985# --enable-gold=default --enable-ld=default
2986# Error.
2987
2988default_ld=
81ecdfbb
RW
2989# Check whether --enable-gold was given.
2990if test "${enable_gold+set}" = set; then :
2991 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2992else
2993 ENABLE_GOLD=no
81ecdfbb
RW
2994fi
2995
c7791212
NC
2996case "${ENABLE_GOLD}" in
2997 yes|default)
e6de499b
NC
2998 # Check for ELF target.
2999 is_elf=no
3000 case "${target}" in
3001 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 3002 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 3003 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
bf41f30d 3004 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
3005 case "${target}" in
3006 *-*-linux*aout* | *-*-linux*oldld*)
3007 ;;
3008 *)
3009 is_elf=yes
3010 ;;
3011 esac
3012 esac
3013
3014 if test "$is_elf" = "yes"; then
3015 # Check for target supported by gold.
93f9b408 3016 case "${target}" in
6d26190c 3017 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 3018 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
3019 configdirs="$configdirs gold"
3020 if test x${ENABLE_GOLD} = xdefault; then
3021 default_ld=gold
3022 fi
e6de499b 3023 ENABLE_GOLD=yes
93f9b408
ILT
3024 ;;
3025 esac
e6de499b
NC
3026 fi
3027 ;;
3028 no)
3029 ;;
3030 *)
d0ac1c44 3031 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3032 ;;
c7791212
NC
3033esac
3034
3035# Check whether --enable-ld was given.
3036if test "${enable_ld+set}" = set; then :
3037 enableval=$enable_ld; ENABLE_LD=$enableval
3038else
3039 ENABLE_LD=yes
3040fi
3041
3042
3043case "${ENABLE_LD}" in
3044 default)
d3b50760 3045 if test x${default_ld} != x; then
d0ac1c44 3046 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3047 fi
3048 ;;
3049 yes)
3050 ;;
3051 no)
3052 if test x${ENABLE_GOLD} != xyes; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3054$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3055 fi
3056 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3057 ;;
3058 *)
d0ac1c44 3059 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3060 ;;
3061esac
93f9b408 3062
edeefb67
L
3063# PR gas/19109
3064# Decide the default method for compressing debug sections.
3065# Provide a configure time option to override our default.
3066# Check whether --enable-compressed_debug_sections was given.
3067if test "${enable_compressed_debug_sections+set}" = set; then :
3068 enableval=$enable_compressed_debug_sections;
3069 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3070 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3071 fi
3072
3073else
3074 enable_compressed_debug_sections=
3075fi
3076
3077
a0da8069 3078# Configure extra directories which are host specific
252b5132 3079
a0da8069
NN
3080case "${host}" in
3081 *-cygwin*)
3082 configdirs="$configdirs libtermcap" ;;
3083esac
252b5132 3084
59f7ec45
HPN
3085# A target can indicate whether a language isn't supported for some reason.
3086# Only spaces may be used in this macro; not newlines or tabs.
3087unsupported_languages=
3088
c6b750e1 3089# Remove more programs from consideration, based on the host or
a0da8069
NN
3090# target this usually means that a port of the program doesn't
3091# exist yet.
252b5132 3092
a0da8069 3093case "${host}" in
3516a403 3094 i[3456789]86-*-msdosdjgpp*)
6a608608 3095 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3096 ;;
a0da8069 3097esac
252b5132 3098
4b1cb4fe 3099
89a1e9c3
PB
3100# Check whether --enable-libquadmath was given.
3101if test "${enable_libquadmath+set}" = set; then :
3102 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3103else
3104 ENABLE_LIBQUADMATH=yes
3105fi
3106
3107if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3108 noconfigdirs="$noconfigdirs target-libquadmath"
3109fi
3110
3111
3112# Check whether --enable-libquadmath-support was given.
3113if test "${enable_libquadmath_support+set}" = set; then :
3114 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3115else
3116 ENABLE_LIBQUADMATH_SUPPORT=yes
3117fi
3118
3119enable_libquadmath_support=
3120if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3121 enable_libquadmath_support=no
3122fi
3123
3124
81ecdfbb
RW
3125# Check whether --enable-libada was given.
3126if test "${enable_libada+set}" = set; then :
3127 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3128else
3129 ENABLE_LIBADA=yes
81ecdfbb
RW
3130fi
3131
a2592b1b 3132if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3133 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3134fi
3135
81ecdfbb
RW
3136# Check whether --enable-libssp was given.
3137if test "${enable_libssp+set}" = set; then :
3138 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3139else
3140 ENABLE_LIBSSP=yes
81ecdfbb
RW
3141fi
3142
5f128533 3143
f66a9a70
L
3144# Check whether --enable-libstdcxx was given.
3145if test "${enable_libstdcxx+set}" = set; then :
3146 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3147else
3148 ENABLE_LIBSTDCXX=default
3149fi
3150
3151if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3152 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3153fi
3154
3155# If this is accelerator compiler and its target is intelmic we enable
3156# target liboffloadmic by default. If this is compiler with offloading
3157# for intelmic we enable host liboffloadmic by default. Otherwise
3158# liboffloadmic is disabled by default.
3159# Check whether --enable-liboffloadmic was given.
3160if test "${enable_liboffloadmic+set}" = set; then :
3161 enableval=$enable_liboffloadmic; case "$enableval" in
3162 no | host | target)
3163 enable_liboffloadmic=$enableval ;;
3164 *)
d0ac1c44 3165 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
1b6c0831
L
3166esac
3167else
3168 if test x"$enable_as_accelerator_for" != x; then
3169 case "${target}" in
3170 *-intelmic-* | *-intelmicemul-*)
3171 enable_liboffloadmic=target
3172 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3173 ;;
3174 *)
3175 enable_liboffloadmic=no
3176 ;;
3177 esac
3178else
3179 case "${enable_offload_targets}" in
3180 *-intelmic-* | *-intelmicemul-*)
3181 enable_liboffloadmic=host
3182 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3183 ;;
3184 *)
3185 enable_liboffloadmic=no
3186 ;;
3187 esac
3188fi
f66a9a70
L
3189fi
3190
1b6c0831
L
3191
3192
68996839 3193# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3194if test x$enable_libgomp = x ; then
b3ded179 3195 case "${target}" in
29383458 3196 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3197 ;;
5b806d27 3198 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3199 ;;
2479f722 3200 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3201 ;;
3202 *-*-darwin* | *-*-aix*)
3203 ;;
68996839
NC
3204 nvptx*-*-*)
3205 ;;
b3ded179
PB
3206 *)
3207 noconfigdirs="$noconfigdirs target-libgomp"
3208 ;;
3209 esac
a6df5a19 3210fi
b3ded179 3211
7ec59b9e
L
3212# Disable libatomic on unsupported systems.
3213if test -d ${srcdir}/libatomic; then
3214 if test x$enable_libatomic = x; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3216$as_echo_n "checking for libatomic support... " >&6; }
3217 if (srcdir=${srcdir}/libatomic; \
3218 . ${srcdir}/configure.tgt; \
3219 test -n "$UNSUPPORTED")
3220 then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222$as_echo "no" >&6; }
3223 noconfigdirs="$noconfigdirs target-libatomic"
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226$as_echo "yes" >&6; }
3227 fi
3228 fi
3229fi
3230
1b6c0831
L
3231# Disable liboffloadmic on unsupported systems.
3232if test -d ${srcdir}/liboffloadmic; then
3233 if test x$enable_liboffloadmic != xno; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3235$as_echo_n "checking for liboffloadmic support... " >&6; }
3236 if (srcdir=${srcdir}/liboffloadmic; \
3237 . ${srcdir}/configure.tgt; \
3238 test -n "$UNSUPPORTED")
3239 then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241$as_echo "no" >&6; }
3242 noconfigdirs="$noconfigdirs target-liboffloadmic"
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3245$as_echo "yes" >&6; }
3246 fi
3247 fi
3248fi
3249
d32e2926
RH
3250# Disable libitm on unsupported systems.
3251if test -d ${srcdir}/libitm; then
3252 if test x$enable_libitm = x; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3254$as_echo_n "checking for libitm support... " >&6; }
3255 if (srcdir=${srcdir}/libitm; \
3256 . ${srcdir}/configure.tgt; \
3257 test -n "$UNSUPPORTED")
3258 then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260$as_echo "no" >&6; }
3261 noconfigdirs="$noconfigdirs target-libitm"
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264$as_echo "yes" >&6; }
3265 fi
3266 fi
3267fi
3268
5286fdef
L
3269# Disable libsanitizer on unsupported systems.
3270if test -d ${srcdir}/libsanitizer; then
3271 if test x$enable_libsanitizer = x; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3273$as_echo_n "checking for libsanitizer support... " >&6; }
3274 if (srcdir=${srcdir}/libsanitizer; \
3275 . ${srcdir}/configure.tgt; \
3276 test -n "$UNSUPPORTED")
3277 then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279$as_echo "no" >&6; }
3280 noconfigdirs="$noconfigdirs target-libsanitizer"
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283$as_echo "yes" >&6; }
3284 fi
3285 fi
3286fi
3287
95e43135
JBG
3288# Disable libvtv on unsupported systems.
3289if test -d ${srcdir}/libvtv; then
3290 if test x$enable_libvtv = x; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3292$as_echo_n "checking for libvtv support... " >&6; }
3293 if (srcdir=${srcdir}/libvtv; \
3294 . ${srcdir}/configure.tgt; \
3295 test "$VTV_SUPPORTED" != "yes")
3296 then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
3299 noconfigdirs="$noconfigdirs target-libvtv"
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302$as_echo "yes" >&6; }
3303 fi
3304 fi
3305fi
3306
1b6c0831 3307
bf41f30d
NC
3308# Disable libhsail-rt on unsupported systems.
3309if test -d ${srcdir}/libhsail-rt; then
3310 if test x$enable_libhsail_rt = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3312$as_echo_n "checking for libhsail-rt support... " >&6; }
3313 if (srcdir=${srcdir}/libhsail-rt; \
3314 . ${srcdir}/configure.tgt; \
3315 test -n "$UNSUPPORTED")
3316 then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319 unsupported_languages="$unsupported_languages brig"
3320 # This implicitly disables also target-libhsail-rt as it won't
3321 # get added to the build without BRIG FE.
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324$as_echo "yes" >&6; }
3325 fi
3326 fi
3327fi
1b6c0831
L
3328
3329
1488e230
DE
3330# Disable libquadmath for some systems.
3331case "${target}" in
5286fdef
L
3332 avr-*-*)
3333 noconfigdirs="$noconfigdirs target-libquadmath"
3334 ;;
1488e230
DE
3335 # libquadmath is unused on AIX and libquadmath build process use of
3336 # LD_LIBRARY_PATH can break AIX bootstrap.
3337 powerpc-*-aix* | rs6000-*-aix*)
3338 noconfigdirs="$noconfigdirs target-libquadmath"
3339 ;;
3340esac
3341
065a5627
JM
3342# Disable libssp for some systems.
3343case "${target}" in
3344 avr-*-*)
c5f5c3c2 3345 # No hosted I/O support.
065a5627
JM
3346 noconfigdirs="$noconfigdirs target-libssp"
3347 ;;
3348 powerpc-*-aix* | rs6000-*-aix*)
3349 noconfigdirs="$noconfigdirs target-libssp"
3350 ;;
99c513f6 3351 rl78-*-*)
202e2356
NC
3352 # libssp uses a misaligned load to trigger a fault, but the RL78
3353 # doesn't fault for those - instead, it gives a build-time error
3354 # for explicit misaligned loads.
99c513f6
DD
3355 noconfigdirs="$noconfigdirs target-libssp"
3356 ;;
1b6c0831
L
3357 visium-*-*)
3358 # No hosted I/O support.
3359 noconfigdirs="$noconfigdirs target-libssp"
3360 ;;
065a5627
JM
3361esac
3362
065a5627 3363# Disable libstdc++-v3 for some systems.
f66a9a70
L
3364# Allow user to override this if they pass --enable-libstdc++-v3
3365if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3366 case "${target}" in
3367 *-*-vxworks*)
3368 # VxWorks uses the Dinkumware C++ library.
3369 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3370 ;;
3371 arm*-wince-pe*)
3372 # the C++ libraries don't build on top of CE's C libraries
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 ;;
3375 avr-*-*)
3376 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3377 ;;
969b1713
L
3378 ft32-*-*)
3379 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3380 ;;
f66a9a70
L
3381 esac
3382fi
065a5627
JM
3383
3384# Disable Fortran for some systems.
3385case "${target}" in
3386 mmix-*-*)
3387 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3388 unsupported_languages="$unsupported_languages fortran"
3389 ;;
3390esac
3391
05a13254 3392# Disable libffi for some systems.
0827f9a6 3393case "${target}" in
9863d716
JM
3394 powerpc-*-darwin*)
3395 ;;
3396 i[3456789]86-*-darwin*)
3397 ;;
3398 x86_64-*-darwin[912]*)
3399 ;;
3400 *-*-darwin*)
05a13254 3401 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3402 ;;
9863d716 3403 *-*-netware*)
05a13254
NC
3404 noconfigdirs="$noconfigdirs target-libffi"
3405 ;;
3406 *-*-phoenix*)
3407 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3408 ;;
3409 *-*-rtems*)
05a13254 3410 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3411 ;;
3412 *-*-tpf*)
05a13254 3413 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3414 ;;
3415 *-*-uclinux*)
05a13254 3416 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3417 ;;
3418 *-*-vxworks*)
05a13254
NC
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 aarch64*-*-freebsd*)
3422 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3423 ;;
9863d716 3424 alpha*-*-*vms*)
05a13254 3425 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3426 ;;
1b6c0831 3427 arm*-*-freebsd*)
05a13254 3428 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3429 ;;
0827f9a6 3430 arm-wince-pe)
05a13254 3431 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3432 ;;
9863d716 3433 arm*-*-symbianelf*)
05a13254 3434 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3435 ;;
9863d716 3436 cris-*-* | crisv32-*-*)
9863d716
JM
3437 case "${target}" in
3438 *-*-linux*)
3439 ;;
3440 *) # See PR46792 regarding target-libffi.
05a13254 3441 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3442 esac
3443 ;;
82ae827f 3444 hppa*64*-*-hpux*)
05a13254 3445 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3446 ;;
3447 hppa*-hp-hpux11*)
3448 ;;
82ae827f 3449 hppa*-*-hpux*)
05a13254 3450 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3451 ;;
9863d716 3452 ia64*-*-*vms*)
05a13254 3453 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3454 ;;
9863d716 3455 i[3456789]86-w64-mingw*)
05a13254 3456 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3457 ;;
3458 i[3456789]86-*-mingw*)
05a13254 3459 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3460 ;;
3461 x86_64-*-mingw*)
05a13254 3462 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3463 ;;
9863d716 3464 mmix-*-*)
05a13254 3465 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3466 ;;
3467 powerpc-*-aix*)
9863d716 3468 ;;
9863d716 3469 rs6000-*-aix*)
9863d716 3470 ;;
3f8107ab 3471 ft32-*-*)
05a13254 3472 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3473 ;;
9863d716 3474 *-*-lynxos*)
05a13254 3475 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3476 ;;
9863d716
JM
3477esac
3478
1b6c0831
L
3479# Disable the go frontend on systems where it is known to not work. Please keep
3480# this in sync with contrib/config-list.mk.
3481case "${target}" in
bf41f30d 3482*-*-darwin* | *-*-cygwin* | *-*-mingw*)
1b6c0831
L
3483 unsupported_languages="$unsupported_languages go"
3484 ;;
3485esac
3486
a413f71a
ILT
3487# Disable libgo for some systems where it is known to not work.
3488# For testing, you can easily override this with --enable-libgo.
3489if test x$enable_libgo = x; then
3490 case "${target}" in
3491 *-*-darwin*)
3492 # PR 46986
3493 noconfigdirs="$noconfigdirs target-libgo"
3494 ;;
3495 *-*-cygwin* | *-*-mingw*)
3496 noconfigdirs="$noconfigdirs target-libgo"
3497 ;;
a413f71a
ILT
3498 esac
3499fi
3500
691bb5a1
DD
3501# Default libgloss CPU subdirectory.
3502libgloss_dir="$target_cpu"
4b1cb4fe 3503
ff46fb8f
JM
3504case "${target}" in
3505 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3506 libgloss_dir=wince
3507 ;;
f1dd87fc
YZ
3508 aarch64*-*-* )
3509 libgloss_dir=aarch64
3510 ;;
ff46fb8f
JM
3511 arm*-*-*)
3512 libgloss_dir=arm
3513 ;;
3514 cris-*-* | crisv32-*-*)
3515 libgloss_dir=cris
3516 ;;
3517 hppa*-*-*)
3518 libgloss_dir=pa
3519 ;;
3520 i[3456789]86-*-*)
3521 libgloss_dir=i386
3522 ;;
3523 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3524 libgloss_dir=m68hc11
3525 ;;
3526 m68*-*-* | fido-*-*)
3527 libgloss_dir=m68k
3528 ;;
3529 mips*-*-*)
3530 libgloss_dir=mips
3531 ;;
3532 powerpc*-*-*)
3533 libgloss_dir=rs6000
3534 ;;
3535 sparc*-*-*)
3536 libgloss_dir=sparc
3537 ;;
3538esac
3539
c7e4b184 3540# Disable newlib and libgloss for various target OSes.
a0da8069 3541case "${target}" in
c7e4b184
JM
3542 alpha*-dec-osf*)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3544 ;;
3545 i[3456789]86-*-linux*)
3546 # This section makes it possible to build newlib natively on linux.
3547 # If we are using a cross compiler then don't configure newlib.
3548 if test x${is_cross_compiler} != xno ; then
3549 noconfigdirs="$noconfigdirs target-newlib"
3550 fi
3551 noconfigdirs="$noconfigdirs target-libgloss"
3552 # If we are not using a cross compiler, do configure newlib.
3553 # Note however, that newlib will only be configured in this situation
3554 # if the --with-newlib option has been given, because otherwise
3555 # 'target-newlib' will appear in skipdirs.
3556 ;;
3557 i[3456789]86-*-rdos*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 ;;
3560 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3562 ;;
3563 sparc-*-sunos4*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 ;;
3566 *-*-aix*)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3568 ;;
3569 *-*-beos*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3571 ;;
a0da8069 3572 *-*-chorusos)
b2f14e4a 3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3574 ;;
c7e4b184
JM
3575 *-*-dragonfly*)
3576 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3577 ;;
3578 *-*-freebsd*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3580 ;;
3581 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3583 ;;
3584 *-*-lynxos*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3586 ;;
3587 *-*-mingw*)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3589 ;;
3590 *-*-netbsd*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3592 ;;
3593 *-*-netware*)
3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3595 ;;
3596 *-*-tpf*)
3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3598 ;;
3599 *-*-uclinux*)
3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3601 ;;
3602 *-*-vxworks*)
3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3604 ;;
3605esac
3606
3607case "${target}" in
3608 *-*-chorusos)
3609 ;;
f075eb5e
TG
3610 aarch64-*-darwin*)
3611 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3612 noconfigdirs="$noconfigdirs sim target-rda"
3613 ;;
3614 arm-*-darwin*)
3615 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3616 noconfigdirs="$noconfigdirs sim target-rda"
3617 ;;
24741ab2 3618 powerpc-*-darwin*)
9d39db92 3619 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3620 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3621 ;;
85bd1942
TG
3622 i[3456789]86-*-darwin*)
3623 noconfigdirs="$noconfigdirs ld gprof"
3624 noconfigdirs="$noconfigdirs sim target-rda"
3625 ;;
e8a5fa9c 3626 x86_64-*-darwin[912]*)
652dec25
TG
3627 noconfigdirs="$noconfigdirs ld gas gprof"
3628 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3629 ;;
04d1ab34 3630 *-*-darwin*)
d320aacb 3631 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3632 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3633 ;;
5b806d27 3634 *-*-dragonfly*)
5b806d27 3635 ;;
de0b4a87 3636 *-*-freebsd*)
4b1cb4fe
DD
3637 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3638 && test -f /usr/local/include/gmp.h; then
3639 with_gmp=/usr/local
3640 fi
4b1cb4fe 3641 ;;
f8a495c8
NC
3642 *-*-kaos*)
3643 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3644 noconfigdirs="$noconfigdirs target-libgloss"
3645 ;;
a0da8069 3646 *-*-netbsd*)
a0da8069 3647 ;;
2a3124ca 3648 *-*-netware*)
a0da8069 3649 ;;
05a13254
NC
3650 *-*-phoenix*)
3651 noconfigdirs="$noconfigdirs target-libgloss"
3652 ;;
a0da8069 3653 *-*-rtems*)
9863d716 3654 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3655 ;;
1587117a
EC
3656 # The tpf target doesn't support gdb yet.
3657 *-*-tpf*)
c7e4b184 3658 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3659 ;;
c1968181 3660 *-*-uclinux*)
c7e4b184 3661 noconfigdirs="$noconfigdirs target-rda"
c1968181 3662 ;;
a0da8069 3663 *-*-vxworks*)
a0da8069
NN
3664 ;;
3665 alpha*-dec-osf*)
3666 # ld works, but does not support shared libraries.
a0da8069 3667 # gas doesn't generate exception information.
c7e4b184 3668 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3669 ;;
3670 alpha*-*-*vms*)
9863d716 3671 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3672 ;;
a0da8069
NN
3673 alpha*-*-*)
3674 # newlib is not 64 bit ready
9863d716 3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3676 ;;
a0da8069 3677 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3678 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3679 ;;
05a13254
NC
3680 arc*-*-*)
3681 noconfigdirs="$noconfigdirs sim"
a0da8069 3682 ;;
a0da8069 3683 arm-*-pe*)
9863d716 3684 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3685 ;;
a0da8069 3686 arm-*-riscix*)
b2f14e4a 3687 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3688 ;;
8e71395b
L
3689 avr-*-*)
3690 if test x${with_avrlibc} != xno; then
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 fi
3693 ;;
a0da8069 3694 c4x-*-* | tic4x-*-*)
b2f14e4a 3695 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3696 ;;
b2f14e4a
JM
3697 tic54x-*-*)
3698 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3699 ;;
a0da8069 3700 d10v-*-*)
b2f14e4a 3701 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3702 ;;
3703 d30v-*-*)
b2f14e4a 3704 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3705 ;;
3706 fr30-*-elf*)
9863d716 3707 noconfigdirs="$noconfigdirs gdb"
a0da8069 3708 ;;
3f8107ab
AM
3709 ft32-*-*)
3710 noconfigdirs="$noconfigdirs target-rda gprof"
3711 ;;
20135e4c 3712 moxie-*-*)
10b8fe5e 3713 noconfigdirs="$noconfigdirs"
20135e4c 3714 ;;
a0da8069 3715 h8300*-*-*)
9863d716 3716 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3717 ;;
3718 h8500-*-*)
b2f14e4a 3719 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3720 ;;
caeba88f 3721 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3722 ;;
5569a85f
JDA
3723 hppa*64*-*-hpux*)
3724 noconfigdirs="$noconfigdirs gdb"
3725 ;;
3726 hppa*-*-hpux11*)
3727 noconfigdirs="$noconfigdirs gdb ld"
3728 ;;
93cc359e 3729 hppa*64*-*-linux*)
a0da8069 3730 ;;
f0ff0f90 3731 hppa*-*-linux*)
5dcac624 3732 ;;
a0da8069 3733 hppa*-*-*elf* | \
a0da8069
NN
3734 hppa*-*-lites* | \
3735 hppa*-*-openbsd* | \
3736 hppa*64*-*-*)
4f0ef2d8 3737 ;;
691bb5a1 3738 hppa*-*-pro*)
691bb5a1 3739 ;;
a0da8069 3740 hppa*-*-*)
9863d716 3741 noconfigdirs="$noconfigdirs ld"
a0da8069 3742 ;;
b07c2aad 3743 i960-*-*)
b2f14e4a 3744 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3745 ;;
a0da8069
NN
3746 ia64*-*-elf*)
3747 # No gdb support yet.
0377a422 3748 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3749 ;;
3750 ia64*-**-hpux*)
92c9a463 3751 # No ld support yet.
5569a85f 3752 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3753 ;;
19e99079 3754 ia64*-*-*vms*)
7ec59b9e
L
3755 # No ld support yet.
3756 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3757 ;;
1f53ca9a 3758 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3759 ;;
3760 i[3456789]86-*-mingw*)
45055374 3761 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3762 ;;
a0da8069
NN
3763 *-*-cygwin*)
3764 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3765 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3766 # always build newlib if winsup directory is present.
45055374 3767 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3768 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3769 elif test -d "$srcdir/newlib"; then
45055374 3770 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3771 fi
c6b750e1 3772 ;;
ec11bdc6 3773 i[3456789]86-*-pe)
782cb41f 3774 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3775 ;;
ec11bdc6 3776 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3777 # The linker does not yet know about weak symbols in COFF,
3778 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3779 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3780 ;;
ec11bdc6 3781 i[3456789]86-*-sco*)
b2f14e4a 3782 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3783 ;;
cff32a7c 3784 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3785 noconfigdirs="$noconfigdirs target-libgloss"
3786 ;;
ec11bdc6 3787 i[3456789]86-*-sysv4*)
b2f14e4a 3788 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3789 ;;
ec11bdc6 3790 i[3456789]86-*-beos*)
c7e4b184 3791 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3792 ;;
b59bea8a 3793 i[3456789]86-*-rdos*)
c7e4b184 3794 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3795 ;;
a0da8069 3796 mmix-*-*)
9863d716 3797 noconfigdirs="$noconfigdirs gdb"
a0da8069 3798 ;;
4970f871 3799 mt-*-*)
cdb9b172
AH
3800 noconfigdirs="$noconfigdirs sim"
3801 ;;
1063beb5
FT
3802 nfp-*-*)
3803 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3804 noconfigdirs="$noconfigdirs $target_libraries"
3805 ;;
a0da8069
NN
3806 powerpc-*-aix*)
3807 # copied from rs6000-*-* entry
c7e4b184 3808 noconfigdirs="$noconfigdirs gprof"
a0da8069 3809 ;;
93cc359e 3810 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3811 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3812 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3813 # always build newlib.
3814 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3815 ;;
3816 # This is temporary until we can link against shared libraries
3817 powerpcle-*-solaris*)
b2f14e4a 3818 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3819 ;;
3820 powerpc-*-beos*)
c7e4b184 3821 noconfigdirs="$noconfigdirs gdb"
a0da8069 3822 ;;
a0da8069 3823 rs6000-*-lynxos*)
c7e4b184 3824 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3825 ;;
3826 rs6000-*-aix*)
c7e4b184 3827 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3828 ;;
3829 rs6000-*-*)
9863d716 3830 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3831 ;;
3832 m68k-apollo-*)
b2f14e4a 3833 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3834 ;;
25a07265 3835 microblaze*)
9863d716 3836 noconfigdirs="$noconfigdirs gprof"
25a07265 3837 ;;
a9d58c06 3838 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3839 if test x$with_newlib = xyes; then
3840 noconfigdirs="$noconfigdirs gprof"
3841 fi
5bd8be13 3842 ;;
a0da8069 3843 mips*-*-irix5*)
b2f14e4a 3844 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3845 ;;
3846 mips*-*-irix6*)
9863d716 3847 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3848 ;;
a0da8069 3849 mips*-*-bsd*)
e8044f35 3850 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3851 ;;
a0da8069 3852 mips*-*-linux*)
a0da8069 3853 ;;
e8044f35
RS
3854 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3855 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3856 noconfigdirs="$noconfigdirs ld gas gprof"
3857 ;;
a0da8069 3858 mips*-*-*)
9863d716 3859 noconfigdirs="$noconfigdirs gprof"
a0da8069 3860 ;;
1b6c0831 3861 nvptx*-*-*)
1b6c0831
L
3862 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3863 ;;
05a13254 3864 sh-*-*)
e8a5fa9c
RW
3865 case "${target}" in
3866 sh*-*-elf)
9863d716 3867 ;;
e8a5fa9c 3868 *)
9863d716 3869 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3870 esac
a0da8069 3871 ;;
a0da8069 3872 sparc-*-sunos4*)
c7e4b184 3873 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3874 use_gnu_ld=no
3875 fi
3876 ;;
619a3713 3877 tic6x-*-*)
40ae9136 3878 noconfigdirs="$noconfigdirs sim"
619a3713 3879 ;;
05a13254 3880 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3881 noconfigdirs="$noconfigdirs sim"
3882 ;;
a0da8069 3883 v810-*-*)
b2f14e4a 3884 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3885 ;;
3886 vax-*-*)
9863d716 3887 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3888 ;;
b29d2641
MR
3889 wasm32-*-*)
3890 noconfigdirs="$noconfigdirs ld"
3891 ;;
a0da8069 3892esac
252b5132 3893
a0da8069
NN
3894# If we aren't building newlib, then don't build libgloss, since libgloss
3895# depends upon some newlib header files.
3896case "${noconfigdirs}" in
3897 *target-libgloss*) ;;
3898 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3899esac
3900
a0da8069 3901# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3902host_makefile_frag=/dev/null
3903if test -d ${srcdir}/config ; then
3904case "${host}" in
ec11bdc6 3905 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3906 host_makefile_frag="config/mh-djgpp"
3907 ;;
3908 *-cygwin*)
e33b51a6 3909
81ecdfbb
RW
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3911$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3912echo a >cygwin-cat-check
1f53ca9a 3913if test `cat cygwin-cat-check` = a ; then
8ade07e9 3914 rm cygwin-cat-check
81ecdfbb
RW
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3916$as_echo "yes" >&6; }
e33b51a6 3917else
8ade07e9 3918 rm cygwin-cat-check
81ecdfbb
RW
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920$as_echo "no" >&6; }
d0ac1c44 3921 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
3922 Please either mount the build directory in binary mode or run the following
3923 commands before running any configure script:
3924set -o igncr
3925export SHELLOPTS
81ecdfbb 3926 " "$LINENO" 5
e33b51a6 3927fi
e33b51a6 3928
a0da8069
NN
3929 host_makefile_frag="config/mh-cygwin"
3930 ;;
8a1599ab 3931 *-mingw*)
84e7906e 3932 host_makefile_frag="config/mh-mingw"
2d1e8239 3933 ;;
ce6c656d
L
3934 alpha*-linux*)
3935 host_makefile_frag="config/mh-alpha-linux"
3936 ;;
da888c87 3937 hppa*-hp-hpux10*)
da888c87 3938 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3939 ;;
3516a403 3940 hppa*-hp-hpux*)
da888c87
PB
3941 host_makefile_frag="config/mh-pa"
3942 ;;
3943 hppa*-*)
3944 host_makefile_frag="config/mh-pa"
3945 ;;
e552509b
ILT
3946 *-*-darwin*)
3947 host_makefile_frag="config/mh-darwin"
0df3d27f 3948 ;;
f6d183c0
PB
3949 powerpc-*-aix*)
3950 host_makefile_frag="config/mh-ppc-aix"
3951 ;;
3952 rs6000-*-aix*)
3953 host_makefile_frag="config/mh-ppc-aix"
3954 ;;
a0da8069
NN
3955esac
3956fi
3957
9e07f89d 3958if test "${build}" != "${host}" ; then
1576798e
PB
3959 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3960 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3961 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e 3962 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
1576798e 3963 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3964 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3965 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3966 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3967 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3968 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3969 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3970 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3971else
3972 AR_FOR_BUILD="\$(AR)"
3973 AS_FOR_BUILD="\$(AS)"
512b7dfb 3974 CC_FOR_BUILD="\$(CC)"
1576798e 3975 CXX_FOR_BUILD="\$(CXX)"
1576798e 3976 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3977 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3978 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3979 LD_FOR_BUILD="\$(LD)"
3980 NM_FOR_BUILD="\$(NM)"
3981 RANLIB_FOR_BUILD="\$(RANLIB)"
3982 WINDRES_FOR_BUILD="\$(WINDRES)"
3983 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3984fi
3985
3986ac_ext=c
c6b750e1
DJ
3987ac_cpp='$CPP $CPPFLAGS'
3988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991if test -n "$ac_tool_prefix"; then
3992 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3993set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3996if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3997 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3998else
3999 if test -n "$CC"; then
4000 ac_cv_prog_CC="$CC" # Let the user override the test.
4001else
4002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH
4004do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
81ecdfbb 4007 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4009 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4011 break 2
4012 fi
4013done
81ecdfbb
RW
4014 done
4015IFS=$as_save_IFS
c6b750e1
DJ
4016
4017fi
4018fi
4019CC=$ac_cv_prog_CC
4020if test -n "$CC"; then
81ecdfbb
RW
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4022$as_echo "$CC" >&6; }
c6b750e1 4023else
81ecdfbb
RW
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025$as_echo "no" >&6; }
c6b750e1
DJ
4026fi
4027
81ecdfbb 4028
c6b750e1
DJ
4029fi
4030if test -z "$ac_cv_prog_CC"; then
4031 ac_ct_CC=$CC
6a9cf61e 4032 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4033set dummy gcc; ac_word=$2
81ecdfbb
RW
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4036if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4037 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4038else
4039 if test -n "$ac_ct_CC"; then
4040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4041else
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
81ecdfbb 4047 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4049 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4051 break 2
4052 fi
4053done
81ecdfbb
RW
4054 done
4055IFS=$as_save_IFS
c6b750e1
DJ
4056
4057fi
4058fi
4059ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4062$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4063else
81ecdfbb
RW
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
c6b750e1
DJ
4066fi
4067
81ecdfbb
RW
4068 if test "x$ac_ct_CC" = x; then
4069 CC=""
4070 else
4071 case $cross_compiling:$ac_tool_warned in
4072yes:)
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4075ac_tool_warned=yes ;;
4076esac
4077 CC=$ac_ct_CC
4078 fi
c6b750e1
DJ
4079else
4080 CC="$ac_cv_prog_CC"
4081fi
4082
4083if test -z "$CC"; then
81ecdfbb
RW
4084 if test -n "$ac_tool_prefix"; then
4085 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4086set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4089if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4090 $as_echo_n "(cached) " >&6
9e07f89d
NN
4091else
4092 if test -n "$CC"; then
4093 ac_cv_prog_CC="$CC" # Let the user override the test.
4094else
c6b750e1
DJ
4095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
81ecdfbb 4100 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4102 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4104 break 2
4105 fi
4106done
81ecdfbb
RW
4107 done
4108IFS=$as_save_IFS
c6b750e1 4109
9e07f89d
NN
4110fi
4111fi
c6b750e1 4112CC=$ac_cv_prog_CC
9e07f89d 4113if test -n "$CC"; then
81ecdfbb
RW
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4115$as_echo "$CC" >&6; }
c6b750e1 4116else
81ecdfbb
RW
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
c6b750e1
DJ
4119fi
4120
c6b750e1 4121
81ecdfbb 4122 fi
c6b750e1 4123fi
9e07f89d
NN
4124if test -z "$CC"; then
4125 # Extract the first word of "cc", so it can be a program name with args.
4126set dummy cc; ac_word=$2
81ecdfbb
RW
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4129if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4130 $as_echo_n "(cached) " >&6
9e07f89d
NN
4131else
4132 if test -n "$CC"; then
4133 ac_cv_prog_CC="$CC" # Let the user override the test.
4134else
9e07f89d 4135 ac_prog_rejected=no
c6b750e1
DJ
4136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH
4138do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
81ecdfbb 4141 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4143 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4144 ac_prog_rejected=yes
4145 continue
4146 fi
4147 ac_cv_prog_CC="cc"
81ecdfbb 4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4149 break 2
4150 fi
4151done
81ecdfbb
RW
4152 done
4153IFS=$as_save_IFS
c6b750e1 4154
9e07f89d
NN
4155if test $ac_prog_rejected = yes; then
4156 # We found a bogon in the path, so make sure we never use it.
4157 set dummy $ac_cv_prog_CC
4158 shift
c6b750e1 4159 if test $# != 0; then
9e07f89d
NN
4160 # We chose a different compiler from the bogus one.
4161 # However, it has the same basename, so the bogon will be chosen
4162 # first if we set CC to just the basename; use the full file name.
4163 shift
c6b750e1 4164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4165 fi
4166fi
4167fi
4168fi
c6b750e1 4169CC=$ac_cv_prog_CC
9e07f89d 4170if test -n "$CC"; then
81ecdfbb
RW
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4172$as_echo "$CC" >&6; }
9e07f89d 4173else
81ecdfbb
RW
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175$as_echo "no" >&6; }
9e07f89d
NN
4176fi
4177
81ecdfbb 4178
c6b750e1
DJ
4179fi
4180if test -z "$CC"; then
4181 if test -n "$ac_tool_prefix"; then
81ecdfbb 4182 for ac_prog in cl.exe
c6b750e1
DJ
4183 do
4184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4185set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4188if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4189 $as_echo_n "(cached) " >&6
9e07f89d
NN
4190else
4191 if test -n "$CC"; then
4192 ac_cv_prog_CC="$CC" # Let the user override the test.
4193else
c6b750e1
DJ
4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
81ecdfbb 4199 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4203 break 2
376a0e54 4204 fi
c6b750e1 4205done
81ecdfbb
RW
4206 done
4207IFS=$as_save_IFS
cac3d6c4 4208
c6b750e1
DJ
4209fi
4210fi
4211CC=$ac_cv_prog_CC
4212if test -n "$CC"; then
81ecdfbb
RW
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4214$as_echo "$CC" >&6; }
cac3d6c4 4215else
81ecdfbb
RW
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217$as_echo "no" >&6; }
9e07f89d 4218fi
cac3d6c4 4219
81ecdfbb 4220
c6b750e1
DJ
4221 test -n "$CC" && break
4222 done
cac3d6c4 4223fi
c6b750e1
DJ
4224if test -z "$CC"; then
4225 ac_ct_CC=$CC
81ecdfbb 4226 for ac_prog in cl.exe
c6b750e1
DJ
4227do
4228 # Extract the first word of "$ac_prog", so it can be a program name with args.
4229set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4232if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4233 $as_echo_n "(cached) " >&6
cac3d6c4 4234else
c6b750e1
DJ
4235 if test -n "$ac_ct_CC"; then
4236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4237else
c6b750e1
DJ
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
81ecdfbb 4243 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4245 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4247 break 2
4248 fi
4249done
81ecdfbb
RW
4250 done
4251IFS=$as_save_IFS
c6b750e1 4252
cac3d6c4
CM
4253fi
4254fi
c6b750e1
DJ
4255ac_ct_CC=$ac_cv_prog_ac_ct_CC
4256if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4258$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4259else
81ecdfbb
RW
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261$as_echo "no" >&6; }
cac3d6c4 4262fi
376a0e54 4263
81ecdfbb 4264
c6b750e1
DJ
4265 test -n "$ac_ct_CC" && break
4266done
4267
81ecdfbb
RW
4268 if test "x$ac_ct_CC" = x; then
4269 CC=""
4270 else
4271 case $cross_compiling:$ac_tool_warned in
4272yes:)
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4275ac_tool_warned=yes ;;
4276esac
4277 CC=$ac_ct_CC
4278 fi
c6b750e1
DJ
4279fi
4280
4281fi
4282
4283
81ecdfbb
RW
4284test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4286as_fn_error $? "no acceptable C compiler found in \$PATH
4287See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4288
4289# Provide some information about the compiler.
81ecdfbb
RW
4290$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4291set X $ac_compile
4292ac_compiler=$2
4293for ac_option in --version -v -V -qversion; do
4294 { { ac_try="$ac_compiler $ac_option >&5"
4295case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298esac
4299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300$as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4302 ac_status=$?
81ecdfbb
RW
4303 if test -s conftest.err; then
4304 sed '10a\
4305... rest of stderr output deleted ...
4306 10q' conftest.err >conftest.er1
4307 cat conftest.er1 >&5
81ecdfbb 4308 fi
d0ac1c44 4309 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }
4312done
c6b750e1 4313
81ecdfbb 4314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4315/* end confdefs.h. */
4316
4317int
4318main ()
4319{
4320
4321 ;
4322 return 0;
4323}
4324_ACEOF
4325ac_clean_files_save=$ac_clean_files
d0ac1c44 4326ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4327# Try to create an executable without -o first, disregard a.out.
4328# It will help us diagnose broken compilers, and finding out an intuition
4329# of exeext.
d0ac1c44
SM
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4331$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4332ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4333
4334# The possible output files:
4335ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4336
4337ac_rmfiles=
4338for ac_file in $ac_files
4339do
4340 case $ac_file in
4341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4342 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4343 esac
4344done
4345rm -f $ac_rmfiles
4346
4347if { { ac_try="$ac_link_default"
4348case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351esac
4352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353$as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_link_default") 2>&5
c6b750e1 4355 ac_status=$?
81ecdfbb
RW
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }; then :
4358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4359# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4360# in a Makefile. We should not override ac_cv_exeext if it was cached,
4361# so that the user can short-circuit this test for compilers unknown to
4362# Autoconf.
4363for ac_file in $ac_files ''
c6b750e1
DJ
4364do
4365 test -f "$ac_file" || continue
4366 case $ac_file in
81ecdfbb 4367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4368 ;;
4369 [ab].out )
4370 # We found the default executable, but exeext='' is most
4371 # certainly right.
4372 break;;
4373 *.* )
81ecdfbb
RW
4374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4375 then :; else
4376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4377 fi
4378 # We set ac_cv_exeext here because the later test for it is not
4379 # safe: cross compilers may not add the suffix if given an `-o'
4380 # argument, so we may need to know it at that point already.
4381 # Even if this section looks crufty: it has the advantage of
4382 # actually working.
c6b750e1
DJ
4383 break;;
4384 * )
4385 break;;
4386 esac
4387done
81ecdfbb
RW
4388test "$ac_cv_exeext" = no && ac_cv_exeext=
4389
c6b750e1 4390else
81ecdfbb
RW
4391 ac_file=''
4392fi
81ecdfbb 4393if test -z "$ac_file"; then :
d0ac1c44
SM
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395$as_echo "no" >&6; }
4396$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4397sed 's/^/| /' conftest.$ac_ext >&5
4398
81ecdfbb
RW
4399{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4401as_fn_error 77 "C compiler cannot create executables
4402See \`config.log' for more details" "$LINENO" 5; }
4403else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405$as_echo "yes" >&6; }
c6b750e1 4406fi
d0ac1c44
SM
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4408$as_echo_n "checking for C compiler default output file name... " >&6; }
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4410$as_echo "$ac_file" >&6; }
c6b750e1 4411ac_exeext=$ac_cv_exeext
c6b750e1 4412
d0ac1c44 4413rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4414ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4416$as_echo_n "checking for suffix of executables... " >&6; }
4417if { { ac_try="$ac_link"
4418case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421esac
4422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423$as_echo "$ac_try_echo"; } >&5
4424 (eval "$ac_link") 2>&5
c6b750e1 4425 ac_status=$?
81ecdfbb
RW
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }; then :
c6b750e1
DJ
4428 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4429# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4430# work properly (i.e., refer to `conftest.exe'), while it won't with
4431# `rm'.
4432for ac_file in conftest.exe conftest conftest.*; do
4433 test -f "$ac_file" || continue
4434 case $ac_file in
81ecdfbb 4435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4436 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4437 break;;
4438 * ) break;;
4439 esac
4440done
4441else
81ecdfbb
RW
4442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4444as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4445See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4446fi
d0ac1c44 4447rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4449$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4450
4451rm -f conftest.$ac_ext
4452EXEEXT=$ac_cv_exeext
4453ac_exeext=$EXEEXT
d0ac1c44
SM
4454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455/* end confdefs.h. */
4456#include <stdio.h>
4457int
4458main ()
4459{
4460FILE *f = fopen ("conftest.out", "w");
4461 return ferror (f) || fclose (f) != 0;
4462
4463 ;
4464 return 0;
4465}
4466_ACEOF
4467ac_clean_files="$ac_clean_files conftest.out"
4468# Check that the compiler produces executables we can run. If not, either
4469# the compiler is broken, or we cross compile.
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4471$as_echo_n "checking whether we are cross compiling... " >&6; }
4472if test "$cross_compiling" != yes; then
4473 { { ac_try="$ac_link"
4474case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477esac
4478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4479$as_echo "$ac_try_echo"; } >&5
4480 (eval "$ac_link") 2>&5
4481 ac_status=$?
4482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4483 test $ac_status = 0; }
4484 if { ac_try='./conftest$ac_cv_exeext'
4485 { { case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488esac
4489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490$as_echo "$ac_try_echo"; } >&5
4491 (eval "$ac_try") 2>&5
4492 ac_status=$?
4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494 test $ac_status = 0; }; }; then
4495 cross_compiling=no
4496 else
4497 if test "$cross_compiling" = maybe; then
4498 cross_compiling=yes
4499 else
4500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4502as_fn_error $? "cannot run C compiled programs.
4503If you meant to cross compile, use \`--host'.
4504See \`config.log' for more details" "$LINENO" 5; }
4505 fi
4506 fi
4507fi
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4509$as_echo "$cross_compiling" >&6; }
4510
4511rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4512ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4514$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4515if ${ac_cv_objext+:} false; then :
81ecdfbb 4516 $as_echo_n "(cached) " >&6
c6b750e1 4517else
81ecdfbb 4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4519/* end confdefs.h. */
4520
4521int
4522main ()
4523{
4524
4525 ;
4526 return 0;
4527}
4528_ACEOF
4529rm -f conftest.o conftest.obj
81ecdfbb
RW
4530if { { ac_try="$ac_compile"
4531case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534esac
4535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536$as_echo "$ac_try_echo"; } >&5
4537 (eval "$ac_compile") 2>&5
c6b750e1 4538 ac_status=$?
81ecdfbb
RW
4539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540 test $ac_status = 0; }; then :
4541 for ac_file in conftest.o conftest.obj conftest.*; do
4542 test -f "$ac_file" || continue;
c6b750e1 4543 case $ac_file in
81ecdfbb 4544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4545 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4546 break;;
4547 esac
4548done
cac3d6c4 4549else
81ecdfbb 4550 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
81ecdfbb
RW
4553{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4555as_fn_error $? "cannot compute suffix of object files: cannot compile
4556See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4557fi
c6b750e1
DJ
4558rm -f conftest.$ac_cv_objext conftest.$ac_ext
4559fi
81ecdfbb
RW
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4561$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4562OBJEXT=$ac_cv_objext
4563ac_objext=$OBJEXT
81ecdfbb
RW
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4565$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4566if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4567 $as_echo_n "(cached) " >&6
c6b750e1 4568else
81ecdfbb 4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4570/* end confdefs.h. */
4571
4572int
4573main ()
4574{
4575#ifndef __GNUC__
4576 choke me
4577#endif
4578
4579 ;
4580 return 0;
4581}
4582_ACEOF
81ecdfbb 4583if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4584 ac_compiler_gnu=yes
4585else
81ecdfbb 4586 ac_compiler_gnu=no
c6b750e1 4587fi
81ecdfbb 4588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4589ac_cv_c_compiler_gnu=$ac_compiler_gnu
4590
4591fi
81ecdfbb
RW
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4593$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4594if test $ac_compiler_gnu = yes; then
4595 GCC=yes
4596else
4597 GCC=
4598fi
c6b750e1
DJ
4599ac_test_CFLAGS=${CFLAGS+set}
4600ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4602$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4603if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4604 $as_echo_n "(cached) " >&6
4605else
4606 ac_save_c_werror_flag=$ac_c_werror_flag
4607 ac_c_werror_flag=yes
4608 ac_cv_prog_cc_g=no
4609 CFLAGS="-g"
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4611/* end confdefs.h. */
4612
4613int
4614main ()
4615{
4616
4617 ;
4618 return 0;
4619}
4620_ACEOF
81ecdfbb 4621if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4622 ac_cv_prog_cc_g=yes
4623else
81ecdfbb
RW
4624 CFLAGS=""
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626/* end confdefs.h. */
4627
4628int
4629main ()
4630{
4631
4632 ;
4633 return 0;
4634}
4635_ACEOF
4636if ac_fn_c_try_compile "$LINENO"; then :
4637
4638else
4639 ac_c_werror_flag=$ac_save_c_werror_flag
4640 CFLAGS="-g"
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642/* end confdefs.h. */
cac3d6c4 4643
81ecdfbb
RW
4644int
4645main ()
4646{
4647
4648 ;
4649 return 0;
4650}
4651_ACEOF
4652if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_g=yes
4654fi
4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4656fi
81ecdfbb 4657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4658fi
81ecdfbb
RW
4659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_c_werror_flag=$ac_save_c_werror_flag
4661fi
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4663$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4664if test "$ac_test_CFLAGS" = set; then
c6b750e1 4665 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4666elif test $ac_cv_prog_cc_g = yes; then
4667 if test "$GCC" = yes; then
4668 CFLAGS="-g -O2"
4669 else
4670 CFLAGS="-g"
4671 fi
4672else
4673 if test "$GCC" = yes; then
4674 CFLAGS="-O2"
4675 else
4676 CFLAGS=
4677 fi
4678fi
81ecdfbb
RW
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4680$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4681if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4682 $as_echo_n "(cached) " >&6
c6b750e1 4683else
81ecdfbb 4684 ac_cv_prog_cc_c89=no
c6b750e1 4685ac_save_CC=$CC
81ecdfbb 4686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4687/* end confdefs.h. */
4688#include <stdarg.h>
4689#include <stdio.h>
d0ac1c44 4690struct stat;
c6b750e1
DJ
4691/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4692struct buf { int x; };
4693FILE * (*rcsopen) (struct buf *, struct stat *, int);
4694static char *e (p, i)
4695 char **p;
4696 int i;
4697{
4698 return p[i];
4699}
4700static char *f (char * (*g) (char **, int), char **p, ...)
4701{
4702 char *s;
4703 va_list v;
4704 va_start (v,p);
4705 s = g (p, va_arg (v,int));
4706 va_end (v);
4707 return s;
4708}
4709
4710/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4711 function prototypes and stuff, but not '\xHH' hex character constants.
4712 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4713 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4714 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4715 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4716 that's true only with -std. */
c6b750e1
DJ
4717int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4718
81ecdfbb
RW
4719/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4720 inside strings and character constants. */
4721#define FOO(x) 'x'
4722int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4723
c6b750e1
DJ
4724int test (int i, double x);
4725struct s1 {int (*f) (int a);};
4726struct s2 {int (*f) (double a);};
4727int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4728int argc;
4729char **argv;
4730int
4731main ()
4732{
4733return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4734 ;
4735 return 0;
4736}
4737_ACEOF
81ecdfbb
RW
4738for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4739 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4740do
4741 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4744fi
81ecdfbb
RW
4745rm -f core conftest.err conftest.$ac_objext
4746 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4747done
81ecdfbb 4748rm -f conftest.$ac_ext
c6b750e1
DJ
4749CC=$ac_save_CC
4750
4751fi
81ecdfbb
RW
4752# AC_CACHE_VAL
4753case "x$ac_cv_prog_cc_c89" in
4754 x)
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4756$as_echo "none needed" >&6; } ;;
4757 xno)
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4759$as_echo "unsupported" >&6; } ;;
c6b750e1 4760 *)
81ecdfbb
RW
4761 CC="$CC $ac_cv_prog_cc_c89"
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4763$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4764esac
81ecdfbb 4765if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4766
c6b750e1
DJ
4767fi
4768
c6b750e1
DJ
4769ac_ext=c
4770ac_cpp='$CPP $CPPFLAGS'
4771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4774
81ecdfbb 4775ac_ext=cpp
18f6b6ee
PB
4776ac_cpp='$CXXCPP $CPPFLAGS'
4777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4780if test -z "$CXX"; then
4781 if test -n "$CCC"; then
4782 CXX=$CCC
4783 else
4784 if test -n "$ac_tool_prefix"; then
4785 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4786 do
4787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4788set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4791if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 4792 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4793else
4794 if test -n "$CXX"; then
4795 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4796else
4797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in $PATH
4799do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
81ecdfbb 4802 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4804 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4806 break 2
4807 fi
4808done
81ecdfbb
RW
4809 done
4810IFS=$as_save_IFS
512b7dfb 4811
18f6b6ee
PB
4812fi
4813fi
4814CXX=$ac_cv_prog_CXX
4815if test -n "$CXX"; then
81ecdfbb
RW
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4817$as_echo "$CXX" >&6; }
18f6b6ee 4818else
81ecdfbb
RW
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820$as_echo "no" >&6; }
18f6b6ee
PB
4821fi
4822
81ecdfbb 4823
18f6b6ee
PB
4824 test -n "$CXX" && break
4825 done
4826fi
4827if test -z "$CXX"; then
4828 ac_ct_CXX=$CXX
81ecdfbb 4829 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4830do
4831 # Extract the first word of "$ac_prog", so it can be a program name with args.
4832set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4835if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 4836 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4837else
4838 if test -n "$ac_ct_CXX"; then
4839 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4840else
4841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842for as_dir in $PATH
4843do
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
81ecdfbb 4846 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 4848 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4850 break 2
512b7dfb 4851 fi
18f6b6ee 4852done
81ecdfbb
RW
4853 done
4854IFS=$as_save_IFS
512b7dfb 4855
18f6b6ee
PB
4856fi
4857fi
4858ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4859if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4861$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4862else
81ecdfbb
RW
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864$as_echo "no" >&6; }
18f6b6ee
PB
4865fi
4866
81ecdfbb 4867
18f6b6ee
PB
4868 test -n "$ac_ct_CXX" && break
4869done
18f6b6ee 4870
81ecdfbb
RW
4871 if test "x$ac_ct_CXX" = x; then
4872 CXX="g++"
4873 else
4874 case $cross_compiling:$ac_tool_warned in
4875yes:)
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4878ac_tool_warned=yes ;;
4879esac
4880 CXX=$ac_ct_CXX
4881 fi
18f6b6ee
PB
4882fi
4883
81ecdfbb
RW
4884 fi
4885fi
18f6b6ee 4886# Provide some information about the compiler.
81ecdfbb
RW
4887$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4888set X $ac_compile
4889ac_compiler=$2
4890for ac_option in --version -v -V -qversion; do
4891 { { ac_try="$ac_compiler $ac_option >&5"
4892case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895esac
4896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4897$as_echo "$ac_try_echo"; } >&5
4898 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4899 ac_status=$?
81ecdfbb
RW
4900 if test -s conftest.err; then
4901 sed '10a\
4902... rest of stderr output deleted ...
4903 10q' conftest.err >conftest.er1
4904 cat conftest.er1 >&5
81ecdfbb 4905 fi
d0ac1c44 4906 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4908 test $ac_status = 0; }
4909done
18f6b6ee 4910
81ecdfbb
RW
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4912$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 4913if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 4914 $as_echo_n "(cached) " >&6
18f6b6ee 4915else
81ecdfbb 4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4917/* end confdefs.h. */
4918
4919int
4920main ()
4921{
4922#ifndef __GNUC__
4923 choke me
4924#endif
4925
4926 ;
4927 return 0;
4928}
4929_ACEOF
81ecdfbb 4930if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4931 ac_compiler_gnu=yes
4932else
81ecdfbb 4933 ac_compiler_gnu=no
18f6b6ee 4934fi
81ecdfbb 4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4936ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4937
4938fi
81ecdfbb
RW
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4940$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4941if test $ac_compiler_gnu = yes; then
4942 GXX=yes
4943else
4944 GXX=
4945fi
18f6b6ee
PB
4946ac_test_CXXFLAGS=${CXXFLAGS+set}
4947ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4949$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 4950if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
4951 $as_echo_n "(cached) " >&6
4952else
4953 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4954 ac_cxx_werror_flag=yes
4955 ac_cv_prog_cxx_g=no
4956 CXXFLAGS="-g"
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4958/* end confdefs.h. */
4959
4960int
4961main ()
4962{
4963
4964 ;
4965 return 0;
4966}
4967_ACEOF
81ecdfbb 4968if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4969 ac_cv_prog_cxx_g=yes
4970else
81ecdfbb
RW
4971 CXXFLAGS=""
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4973/* end confdefs.h. */
81ecdfbb 4974
18f6b6ee
PB
4975int
4976main ()
4977{
81ecdfbb 4978
18f6b6ee
PB
4979 ;
4980 return 0;
4981}
4982_ACEOF
81ecdfbb 4983if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4984
81ecdfbb
RW
4985else
4986 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4987 CXXFLAGS="-g"
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4989/* end confdefs.h. */
81ecdfbb 4990
18f6b6ee
PB
4991int
4992main ()
4993{
81ecdfbb 4994
18f6b6ee
PB
4995 ;
4996 return 0;
4997}
4998_ACEOF
81ecdfbb
RW
4999if ac_fn_cxx_try_compile "$LINENO"; then :
5000 ac_cv_prog_cxx_g=yes
18f6b6ee 5001fi
81ecdfbb
RW
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003fi
5004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005fi
5006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5008fi
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5010$as_echo "$ac_cv_prog_cxx_g" >&6; }
5011if test "$ac_test_CXXFLAGS" = set; then
5012 CXXFLAGS=$ac_save_CXXFLAGS
5013elif test $ac_cv_prog_cxx_g = yes; then
5014 if test "$GXX" = yes; then
5015 CXXFLAGS="-g -O2"
5016 else
5017 CXXFLAGS="-g"
5018 fi
5019else
5020 if test "$GXX" = yes; then
5021 CXXFLAGS="-O2"
5022 else
5023 CXXFLAGS=
5024 fi
18f6b6ee 5025fi
18f6b6ee
PB
5026ac_ext=c
5027ac_cpp='$CPP $CPPFLAGS'
5028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031
5032
5033# We must set the default linker to the linker used by gcc for the correct
5034# operation of libtool. If LD is not defined and we are using gcc, try to
5035# set the LD default to the ld used by gcc.
5036if test -z "$LD"; then
5037 if test "$GCC" = yes; then
5038 case $build in
5039 *-*-mingw*)
5040 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5041 *)
5042 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5043 esac
5044 case $gcc_prog_ld in
5045 # Accept absolute paths.
5046 [\\/]* | [A-Za-z]:[\\/]*)
5047 LD="$gcc_prog_ld" ;;
5048 esac
5049 fi
512b7dfb
PB
5050fi
5051
b3676d82
EB
5052# Check whether -static-libstdc++ -static-libgcc is supported.
5053have_static_libs=no
5054if test "$GCC" = yes; then
5055 saved_LDFLAGS="$LDFLAGS"
5056
5057 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5059$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5060 ac_ext=cpp
5061ac_cpp='$CXXCPP $CPPFLAGS'
5062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5065
5066
5067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068/* end confdefs.h. */
a882be68
EB
5069
5070#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5071#error -static-libstdc++ not implemented
5072#endif
b3676d82
EB
5073int main() {}
5074_ACEOF
5075if ac_fn_cxx_try_link "$LINENO"; then :
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5077$as_echo "yes" >&6; }; have_static_libs=yes
5078else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080$as_echo "no" >&6; }
5081fi
5082rm -f core conftest.err conftest.$ac_objext \
5083 conftest$ac_exeext conftest.$ac_ext
5084 ac_ext=c
5085ac_cpp='$CPP $CPPFLAGS'
5086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089
5090
5091 LDFLAGS="$saved_LDFLAGS"
5092fi
5093
512b7dfb
PB
5094
5095
5096
c6b750e1 5097if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5098 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5099set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5102if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5103 $as_echo_n "(cached) " >&6
9e07f89d 5104else
512b7dfb
PB
5105 if test -n "$GNATBIND"; then
5106 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5107else
c6b750e1
DJ
5108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
81ecdfbb 5113 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5115 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5117 break 2
5118 fi
5119done
81ecdfbb
RW
5120 done
5121IFS=$as_save_IFS
c6b750e1 5122
9e07f89d
NN
5123fi
5124fi
512b7dfb
PB
5125GNATBIND=$ac_cv_prog_GNATBIND
5126if test -n "$GNATBIND"; then
81ecdfbb
RW
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5128$as_echo "$GNATBIND" >&6; }
9e07f89d 5129else
81ecdfbb
RW
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131$as_echo "no" >&6; }
9e07f89d
NN
5132fi
5133
81ecdfbb 5134
c6b750e1 5135fi
512b7dfb
PB
5136if test -z "$ac_cv_prog_GNATBIND"; then
5137 ac_ct_GNATBIND=$GNATBIND
5138 # Extract the first word of "gnatbind", so it can be a program name with args.
5139set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5142if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5143 $as_echo_n "(cached) " >&6
9e07f89d 5144else
512b7dfb
PB
5145 if test -n "$ac_ct_GNATBIND"; then
5146 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5147else
c6b750e1
DJ
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
81ecdfbb 5153 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5155 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5157 break 2
5158 fi
5159done
81ecdfbb
RW
5160 done
5161IFS=$as_save_IFS
c6b750e1 5162
9e07f89d
NN
5163fi
5164fi
512b7dfb
PB
5165ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5166if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5168$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5169else
81ecdfbb
RW
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
9e07f89d
NN
5172fi
5173
81ecdfbb
RW
5174 if test "x$ac_ct_GNATBIND" = x; then
5175 GNATBIND="no"
5176 else
5177 case $cross_compiling:$ac_tool_warned in
5178yes:)
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5181ac_tool_warned=yes ;;
5182esac
5183 GNATBIND=$ac_ct_GNATBIND
5184 fi
24ff9987 5185else
512b7dfb 5186 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5187fi
5188
7df2cd5d 5189if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5190 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5191set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5194if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5195 $as_echo_n "(cached) " >&6
7df2cd5d 5196else
512b7dfb
PB
5197 if test -n "$GNATMAKE"; then
5198 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5199else
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
81ecdfbb 5205 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5207 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5209 break 2
5210 fi
5211done
81ecdfbb
RW
5212 done
5213IFS=$as_save_IFS
7df2cd5d
PB
5214
5215fi
5216fi
512b7dfb
PB
5217GNATMAKE=$ac_cv_prog_GNATMAKE
5218if test -n "$GNATMAKE"; then
81ecdfbb
RW
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5220$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5221else
81ecdfbb
RW
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223$as_echo "no" >&6; }
7df2cd5d
PB
5224fi
5225
81ecdfbb 5226
7df2cd5d 5227fi
512b7dfb
PB
5228if test -z "$ac_cv_prog_GNATMAKE"; then
5229 ac_ct_GNATMAKE=$GNATMAKE
5230 # Extract the first word of "gnatmake", so it can be a program name with args.
5231set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5234if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5235 $as_echo_n "(cached) " >&6
7df2cd5d 5236else
512b7dfb
PB
5237 if test -n "$ac_ct_GNATMAKE"; then
5238 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
81ecdfbb 5245 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5247 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5249 break 2
5250 fi
5251done
81ecdfbb
RW
5252 done
5253IFS=$as_save_IFS
7df2cd5d 5254
7df2cd5d
PB
5255fi
5256fi
512b7dfb
PB
5257ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5258if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5260$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5261else
81ecdfbb
RW
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263$as_echo "no" >&6; }
7df2cd5d
PB
5264fi
5265
81ecdfbb
RW
5266 if test "x$ac_ct_GNATMAKE" = x; then
5267 GNATMAKE="no"
5268 else
5269 case $cross_compiling:$ac_tool_warned in
5270yes:)
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5273ac_tool_warned=yes ;;
5274esac
5275 GNATMAKE=$ac_ct_GNATMAKE
5276 fi
7df2cd5d 5277else
512b7dfb 5278 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5279fi
5280
81ecdfbb
RW
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5282$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
d0ac1c44 5283if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5284 $as_echo_n "(cached) " >&6
9e07f89d
NN
5285else
5286 cat >conftest.adb <<EOF
5287procedure conftest is begin null; end conftest;
5288EOF
5289acx_cv_cc_gcc_supports_ada=no
5290# There is a bug in old released versions of GCC which causes the
5291# driver to exit successfully when the appropriate language module
5292# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5293# Therefore we must check for the error message as well as an
5294# unsuccessful exit.
b8908782
DD
5295# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5296# given a .adb file, but produce no object file. So we must check
5297# if an object file was really produced to guard against this.
9e07f89d 5298errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5299if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5300 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5301fi
5302rm -f conftest.*
5303fi
81ecdfbb
RW
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5305$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5306
64b986c0 5307if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5308 have_gnat=yes
5309else
5310 have_gnat=no
5311fi
5312
81ecdfbb
RW
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5314$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5315if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5316 $as_echo_n "(cached) " >&6
b8908782
DD
5317else
5318 echo abfoo >t1
5319 echo cdfoo >t2
da17fe9d 5320 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5321 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5322 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5323 :
5324 else
5325 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5326 fi
5327 fi
b8908782
DD
5328 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5329 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5330 :
b8908782
DD
5331 else
5332 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5333 fi
5334 fi
5335 rm t1 t2
5336
5337fi
81ecdfbb
RW
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5339$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5340do_compare="$gcc_cv_prog_cmp_skip"
5341
5342
9e07f89d 5343
ffdd6afc
ILT
5344# Check whether --enable-bootstrap was given.
5345if test "${enable_bootstrap+set}" = set; then :
5346 enableval=$enable_bootstrap;
5347else
5348 enable_bootstrap=default
5349fi
5350
5351
5352# Issue errors and warnings for invalid/strange bootstrap combinations.
5353if test -r $srcdir/gcc/configure; then
5354 have_compiler=yes
5355else
5356 have_compiler=no
5357fi
5358
5359case "$have_compiler:$host:$target:$enable_bootstrap" in
5360 *:*:*:no) ;;
5361
5362 # Default behavior. Enable bootstrap if we have a compiler
5363 # and we are in a native configuration.
5364 yes:$build:$build:default)
5365 enable_bootstrap=yes ;;
5366
5367 *:*:*:default)
5368 enable_bootstrap=no ;;
5369
5370 # We have a compiler and we are in a native configuration, bootstrap is ok
5371 yes:$build:$build:yes)
5372 ;;
5373
5374 # Other configurations, but we have a compiler. Assume the user knows
5375 # what he's doing.
5376 yes:*:*:yes)
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5378$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5379 ;;
5380
5381 # No compiler: if they passed --enable-bootstrap explicitly, fail
5382 no:*:*:yes)
d0ac1c44 5383 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5384
5385 # Fail if wrong command line
5386 *)
d0ac1c44 5387 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5388 ;;
5389esac
5390
ce6c656d
L
5391# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5392# C++98 compiler can still start the bootstrap.
5393if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5394 CXX="$CXX -std=gnu++98"
5395fi
5396
d5f2ee2e
KG
5397# Used for setting $lt_cv_objdir
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5399$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 5400if ${lt_cv_objdir+:} false; then :
d5f2ee2e
KG
5401 $as_echo_n "(cached) " >&6
5402else
5403 rm -f .libs 2>/dev/null
5404mkdir .libs 2>/dev/null
5405if test -d .libs; then
5406 lt_cv_objdir=.libs
5407else
5408 # MS-DOS does not allow filenames that begin with a dot.
5409 lt_cv_objdir=_libs
5410fi
5411rmdir .libs 2>/dev/null
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5414$as_echo "$lt_cv_objdir" >&6; }
5415objdir=$lt_cv_objdir
5416
5417
5418
5419
5420
5421cat >>confdefs.h <<_ACEOF
5422#define LT_OBJDIR "$lt_cv_objdir/"
5423_ACEOF
5424
5425
5426
e8a5fa9c 5427# Check for GMP, MPFR and MPC
d9b76ff9 5428gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5429gmpinc=
4b900473 5430have_gmp=no
e8a5fa9c
RW
5431
5432# Specify a location for mpc
5433# check for this first so it ends up on the link line before mpfr.
5434
81ecdfbb
RW
5435# Check whether --with-mpc was given.
5436if test "${with_mpc+set}" = set; then :
5437 withval=$with_mpc;
5438fi
e8a5fa9c 5439
e8a5fa9c 5440
e552509b 5441# Check whether --with-mpc-include was given.
81ecdfbb
RW
5442if test "${with_mpc_include+set}" = set; then :
5443 withval=$with_mpc_include;
5444fi
e8a5fa9c 5445
e8a5fa9c 5446
e552509b 5447# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5448if test "${with_mpc_lib+set}" = set; then :
5449 withval=$with_mpc_lib;
5450fi
e8a5fa9c 5451
e8a5fa9c
RW
5452
5453if test "x$with_mpc" != x; then
d9b76ff9
KG
5454 gmplibs="-L$with_mpc/lib $gmplibs"
5455 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5456fi
5457if test "x$with_mpc_include" != x; then
d9b76ff9 5458 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5459fi
5460if test "x$with_mpc_lib" != x; then
d9b76ff9 5461 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5462fi
5463if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5464 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5465 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5466 # Do not test the mpc version. Assume that it is sufficient, since
5467 # it is in the source tree, and the library has not been built yet
5468 # but it would be included on the link line in the version check below
5469 # hence making the test fail.
d9b76ff9 5470 have_gmp=yes
e8a5fa9c 5471fi
4b900473 5472
11b04d1f
DD
5473# Specify a location for mpfr
5474# check for this first so it ends up on the link line before gmp.
c6b750e1 5475
81ecdfbb
RW
5476# Check whether --with-mpfr-dir was given.
5477if test "${with_mpfr_dir+set}" = set; then :
d0ac1c44 5478 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
81ecdfbb
RW
5479Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5480fi
5481
11b04d1f
DD
5482
5483
81ecdfbb
RW
5484# Check whether --with-mpfr was given.
5485if test "${with_mpfr+set}" = set; then :
5486 withval=$with_mpfr;
5487fi
c6b750e1 5488
11b04d1f 5489
e552509b 5490# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5491if test "${with_mpfr_include+set}" = set; then :
5492 withval=$with_mpfr_include;
5493fi
c6b750e1 5494
8a0d8a5c 5495
e552509b 5496# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5497if test "${with_mpfr_lib+set}" = set; then :
5498 withval=$with_mpfr_lib;
5499fi
8a0d8a5c 5500
11b04d1f
DD
5501
5502if test "x$with_mpfr" != x; then
5503 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5504 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5505fi
8a0d8a5c 5506if test "x$with_mpfr_include" != x; then
d9b76ff9 5507 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5508fi
5509if test "x$with_mpfr_lib" != x; then
5510 gmplibs="-L$with_mpfr_lib $gmplibs"
5511fi
4b900473 5512if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5513 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 5514 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 5515 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5516 fi
05a13254
NC
5517 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5518 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5519 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5520 # Do not test the mpfr version. Assume that it is sufficient, since
5521 # it is in the source tree, and the library has not been built yet
5522 # but it would be included on the link line in the version check below
5523 # hence making the test fail.
5524 have_gmp=yes
5525fi
11b04d1f 5526
4b1cb4fe 5527# Specify a location for gmp
c6b750e1 5528
81ecdfbb
RW
5529# Check whether --with-gmp-dir was given.
5530if test "${with_gmp_dir+set}" = set; then :
d0ac1c44 5531 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
81ecdfbb
RW
5532Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5533fi
5534
4b1cb4fe
DD
5535
5536
81ecdfbb
RW
5537# Check whether --with-gmp was given.
5538if test "${with_gmp+set}" = set; then :
5539 withval=$with_gmp;
5540fi
c6b750e1 5541
4b1cb4fe 5542
e552509b 5543# Check whether --with-gmp-include was given.
81ecdfbb
RW
5544if test "${with_gmp_include+set}" = set; then :
5545 withval=$with_gmp_include;
5546fi
c6b750e1 5547
8a0d8a5c 5548
e552509b 5549# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5550if test "${with_gmp_lib+set}" = set; then :
5551 withval=$with_gmp_lib;
5552fi
8a0d8a5c
PB
5553
5554
4b1cb4fe 5555
11b04d1f
DD
5556if test "x$with_gmp" != x; then
5557 gmplibs="-L$with_gmp/lib $gmplibs"
5558 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5559fi
8a0d8a5c
PB
5560if test "x$with_gmp_include" != x; then
5561 gmpinc="-I$with_gmp_include $gmpinc"
5562fi
5563if test "x$with_gmp_lib" != x; then
5564 gmplibs="-L$with_gmp_lib $gmplibs"
5565fi
4b900473 5566if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5567 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5568 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5569 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5570 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5571 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5572 # Do not test the gmp version. Assume that it is sufficient, since
5573 # it is in the source tree, and the library has not been built yet
5574 # but it would be included on the link line in the version check below
5575 # hence making the test fail.
5576 have_gmp=yes
5577fi
4b1cb4fe 5578
ceb92e78 5579if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5580 have_gmp=yes
5581 saved_CFLAGS="$CFLAGS"
5582 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5583 # Check for the recommended and required versions of GMP.
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5585$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5586
5587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5588/* end confdefs.h. */
5589#include "gmp.h"
5590int
5591main ()
5592{
5593
5594 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5595 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5596 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5597 choke me
5598 #endif
5599
5600 ;
5601 return 0;
5602}
5603_ACEOF
5604if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5606/* end confdefs.h. */
a6b5846e 5607#include <gmp.h>
c6b750e1
DJ
5608int
5609main ()
5610{
4b1cb4fe 5611
a6b5846e
KG
5612 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5613 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5614 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5615 choke me
5616 #endif
c6b750e1
DJ
5617
5618 ;
5619 return 0;
5620}
5621_ACEOF
81ecdfbb
RW
5622if ac_fn_c_try_compile "$LINENO"; then :
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5624$as_echo "yes" >&6; }
a6b5846e
KG
5625else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5627$as_echo "buggy but acceptable" >&6; }
5628fi
5629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5630else
81ecdfbb
RW
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5633fi
81ecdfbb 5634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5635
e8a5fa9c 5636 # If we have GMP, check the MPFR version.
4b900473 5637 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5638 # Check for the recommended and required versions of MPFR.
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5640$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5642/* end confdefs.h. */
9b134994 5643#include <gmp.h>
4b900473 5644 #include <mpfr.h>
c6b750e1
DJ
5645int
5646main ()
5647{
9b134994 5648
7ec59b9e 5649 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5650 choke me
5651 #endif
c6b750e1
DJ
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
81ecdfbb
RW
5657if ac_fn_c_try_compile "$LINENO"; then :
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5659/* end confdefs.h. */
4b1cb4fe 5660#include <gmp.h>
4b900473 5661 #include <mpfr.h>
c6b750e1
DJ
5662int
5663main ()
5664{
9dbaa842 5665
a6b5846e 5666 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5667 choke me
5668 #endif
e8a5fa9c
RW
5669
5670 ;
5671 return 0;
5672}
5673_ACEOF
81ecdfbb
RW
5674if ac_fn_c_try_compile "$LINENO"; then :
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676$as_echo "yes" >&6; }
e8a5fa9c 5677else
81ecdfbb
RW
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5679$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5680fi
81ecdfbb 5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5682else
81ecdfbb
RW
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5685fi
81ecdfbb 5686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5687 fi
5688
5689 # Check for the MPC header version.
d9b76ff9 5690 if test x"$have_gmp" = xyes ; then
a6b5846e 5691 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5693$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5695/* end confdefs.h. */
5696#include <mpc.h>
5697int
5698main ()
5699{
5700
a6b5846e
KG
5701 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5702 choke me
5703 #endif
5704
5705 ;
5706 return 0;
5707}
5708_ACEOF
5709if ac_fn_c_try_compile "$LINENO"; then :
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h. */
5712#include <mpc.h>
5713int
5714main ()
5715{
5716
5717 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5718 choke me
5719 #endif
5720
5721 ;
5722 return 0;
5723}
5724_ACEOF
81ecdfbb
RW
5725if ac_fn_c_try_compile "$LINENO"; then :
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5727$as_echo "yes" >&6; }
a6b5846e
KG
5728else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5730$as_echo "buggy but acceptable" >&6; }
5731fi
5732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5733else
81ecdfbb 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5735$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5736fi
81ecdfbb 5737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5738 fi
5739
5740 # Now check the MPFR library.
5741 if test x"$have_gmp" = xyes; then
5742 saved_LIBS="$LIBS"
5743 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5745$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5747/* end confdefs.h. */
d9b76ff9 5748#include <mpc.h>
e8a5fa9c
RW
5749int
5750main ()
5751{
5752
5753 mpfr_t n;
5754 mpfr_t x;
d9b76ff9 5755 mpc_t c;
e8a5fa9c
RW
5756 int t;
5757 mpfr_init (n);
5758 mpfr_init (x);
5759 mpfr_atan2 (n, n, x, GMP_RNDN);
5760 mpfr_erfc (n, x, GMP_RNDN);
5761 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5762 mpfr_clear(n);
5763 mpfr_clear(x);
5764 mpc_init2 (c, 53);
5765 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5766 mpc_cosh (c, c, MPC_RNDNN);
5767 mpc_pow (c, c, c, MPC_RNDNN);
5768 mpc_acosh (c, c, MPC_RNDNN);
5769 mpc_clear (c);
c6b750e1
DJ
5770
5771 ;
5772 return 0;
5773}
5774_ACEOF
81ecdfbb
RW
5775if ac_fn_c_try_link "$LINENO"; then :
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5777$as_echo "yes" >&6; }
c6b750e1 5778else
81ecdfbb
RW
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5781fi
81ecdfbb
RW
5782rm -f core conftest.err conftest.$ac_objext \
5783 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5784 LIBS="$saved_LIBS"
5785 fi
5786
4b900473 5787 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5788
a6b5846e
KG
5789# The library versions listed in the error message below should match
5790# the HARD-minimums enforced above.
4b900473 5791 if test x$have_gmp != xyes; then
d0ac1c44 5792 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5793Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5794their locations. Source code for these libraries can be found at
5795their respective hosting sites as well as at
5796ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5797http://gcc.gnu.org/install/prerequisites.html for additional info. If
5798you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5799make sure that you have installed both the libraries and the header
5800files. They may be located in separate packages." "$LINENO" 5
4b900473 5801 fi
9dbaa842
DD
5802fi
5803
e8a5fa9c
RW
5804# Flags needed for both GMP, MPFR and/or MPC.
5805
5806
5807
4b1cb4fe
DD
5808
5809
5810
7ec59b9e 5811
b3676d82 5812# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5813
b3676d82
EB
5814# Check whether --with-stage1-libs was given.
5815if test "${with_stage1_libs+set}" = set; then :
5816 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5817 stage1_libs=
e8a5fa9c 5818 else
b3676d82 5819 stage1_libs=$withval
e8a5fa9c
RW
5820 fi
5821else
68996839 5822 stage1_libs=
81ecdfbb
RW
5823fi
5824
e8a5fa9c
RW
5825
5826
b3676d82 5827# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5828
b3676d82
EB
5829# Check whether --with-stage1-ldflags was given.
5830if test "${with_stage1_ldflags+set}" = set; then :
5831 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5832 stage1_ldflags=
e8a5fa9c 5833 else
b3676d82 5834 stage1_ldflags=$withval
e8a5fa9c
RW
5835 fi
5836else
b3676d82
EB
5837 stage1_ldflags=
5838 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5839 # if supported. But if the user explicitly specified the libraries to use,
5840 # trust that they are doing what they want.
5841 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5842 stage1_ldflags="-static-libstdc++ -static-libgcc"
5843 fi
81ecdfbb
RW
5844fi
5845
e8a5fa9c
RW
5846
5847
68996839 5848# Libraries to use for stage2 and later builds.
e8a5fa9c 5849
81ecdfbb
RW
5850# Check whether --with-boot-libs was given.
5851if test "${with_boot_libs+set}" = set; then :
5852 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5853 poststage1_libs=
5854 else
5855 poststage1_libs=$withval
5856 fi
5857else
68996839 5858 poststage1_libs=
81ecdfbb
RW
5859fi
5860
e8a5fa9c
RW
5861
5862
143754cd
NC
5863# Linker flags to use for stage2 and later builds.
5864
5865# Check whether --with-boot-ldflags was given.
5866if test "${with_boot_ldflags+set}" = set; then :
5867 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5868 poststage1_ldflags=
5869 else
5870 poststage1_ldflags=$withval
5871 fi
5872else
5873 poststage1_ldflags=
4f11b223
ILT
5874 # In stages 2 and 3, default to linking libstdc++ and libgcc
5875 # statically. But if the user explicitly specified the libraries to
5876 # use, trust that they are doing what they want.
5877 if test "$poststage1_libs" = ""; then
143754cd
NC
5878 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5879 fi
5880fi
5881
5882
5883
4849dfd8 5884# GCC GRAPHITE dependency isl.
1b6c0831 5885# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
5886
5887
7ec59b9e
L
5888# Check whether --with-isl was given.
5889if test "${with_isl+set}" = set; then :
5890 withval=$with_isl;
81ecdfbb 5891fi
e28c595f 5892
e28c595f 5893
1b6c0831 5894# Treat --without-isl as a request to disable
8e71395b 5895# GRAPHITE support and skip all following checks.
1b6c0831 5896if test "x$with_isl" != "xno"; then
4849dfd8 5897 # Check for isl
8e71395b
L
5898
5899
7ec59b9e
L
5900# Check whether --with-isl-include was given.
5901if test "${with_isl_include+set}" = set; then :
5902 withval=$with_isl_include;
81ecdfbb
RW
5903fi
5904
e28c595f 5905
7ec59b9e
L
5906# Check whether --with-isl-lib was given.
5907if test "${with_isl_lib+set}" = set; then :
5908 withval=$with_isl_lib;
81ecdfbb 5909fi
e28c595f 5910
e28c595f 5911
7ec59b9e
L
5912 # Check whether --enable-isl-version-check was given.
5913if test "${enable_isl_version_check+set}" = set; then :
5914 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5915else
5916 ENABLE_ISL_CHECK=yes
b123da99
SP
5917fi
5918
5919
7ec59b9e
L
5920 # Initialize isllibs and islinc.
5921 case $with_isl in
5922 no)
5923 isllibs=
5924 islinc=
5925 ;;
5926 "" | yes)
5927 ;;
5928 *)
5929 isllibs="-L$with_isl/lib"
5930 islinc="-I$with_isl/include"
5931 ;;
5932 esac
5933 if test "x${with_isl_include}" != x ; then
5934 islinc="-I$with_isl_include"
5935 fi
5936 if test "x${with_isl_lib}" != x; then
5937 isllibs="-L$with_isl_lib"
5938 fi
5939 if test "x${islinc}" = x && test "x${isllibs}" = x \
5940 && test -d ${srcdir}/isl; then
5941 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5942 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5943 ENABLE_ISL_CHECK=no
4849dfd8
NC
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5945$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 5946 fi
b123da99 5947
1b6c0831 5948 isllibs="${isllibs} -lisl"
b123da99 5949
e28c595f 5950
b3fc79f8
JBG
5951
5952 if test "${ENABLE_ISL_CHECK}" = yes ; then
5953 _isl_saved_CFLAGS=$CFLAGS
5954 _isl_saved_LDFLAGS=$LDFLAGS
5955 _isl_saved_LIBS=$LIBS
5956
5957 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
5958 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5959 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 5960
bf41f30d
NC
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
5962$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 5964/* end confdefs.h. */
bf41f30d 5965#include <isl/schedule.h>
b3fc79f8
JBG
5966int
5967main ()
5968{
bf41f30d 5969isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
5970 ;
5971 return 0;
5972}
5973_ACEOF
1b6c0831 5974if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
5975 gcc_cv_isl=yes
5976else
5977 gcc_cv_isl=no
5978fi
1b6c0831
L
5979rm -f core conftest.err conftest.$ac_objext \
5980 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5982$as_echo "$gcc_cv_isl" >&6; }
5983
4849dfd8 5984 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
5986$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
5987 fi
5988
b3fc79f8
JBG
5989 CFLAGS=$_isl_saved_CFLAGS
5990 LDFLAGS=$_isl_saved_LDFLAGS
5991 LIBS=$_isl_saved_LIBS
5992 fi
5993
5994
e28c595f 5995
e28c595f 5996
7ec59b9e
L
5997
5998
7ec59b9e
L
5999 if test "x${with_isl}" = xno; then
6000 graphite_requested=no
6001 elif test "x${with_isl}" != x \
6002 || test "x${with_isl_include}" != x \
6003 || test "x${with_isl_lib}" != x ; then
6004 graphite_requested=yes
6005 else
6006 graphite_requested=no
b123da99 6007 fi
e28c595f 6008
e28c595f
JM
6009
6010
7ec59b9e
L
6011 if test "${gcc_cv_isl}" = no ; then
6012 isllibs=
6013 islinc=
6014 fi
e28c595f 6015
7ec59b9e
L
6016 if test "${graphite_requested}" = yes \
6017 && test "x${isllibs}" = x \
6018 && test "x${islinc}" = x ; then
e28c595f 6019
d0ac1c44 6020 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6021 fi
e552509b 6022
e28c595f 6023
e552509b
ILT
6024fi
6025
4849dfd8 6026# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6027if test "x$with_isl" = xno ||
8e71395b 6028 test "x$gcc_cv_isl" = xno; then
1b6c0831 6029 noconfigdirs="$noconfigdirs isl"
8e71395b 6030 islinc=
7ec59b9e
L
6031fi
6032
8e71395b
L
6033
6034
6035
700d40ca
ILT
6036# Check for LTO support.
6037# Check whether --enable-lto was given.
6038if test "${enable_lto+set}" = set; then :
6039 enableval=$enable_lto; enable_lto=$enableval
6040else
6041 enable_lto=yes; default_enable_lto=yes
6042fi
6043
6044
143754cd 6045
e49e5c92
DK
6046
6047
6048target_elf=no
6049case $target in
6050 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6051 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6052 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6053 nvptx-*-none)
e49e5c92
DK
6054 target_elf=no
6055 ;;
6056 *)
6057 target_elf=yes
6058 ;;
6059esac
6060
6061if test $target_elf = yes; then :
74cea91b
DK
6062 # ELF platforms build the lto-plugin always.
6063 build_lto_plugin=yes
e49e5c92 6064
e49e5c92
DK
6065else
6066 if test x"$default_enable_lto" = x"yes" ; then
29821356 6067 case $target in
bf41f30d 6068 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6069 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6070 *) enable_lto=no ;;
6071 esac
e49e5c92 6072 else
29821356
RW
6073 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6074 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6075 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6076 # warn during gcc/ subconfigure; unless you're bootstrapping with
6077 # -flto it won't be needed until after installation anyway.
6078 case $target in
52cf9762 6079 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 6080 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 6081 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
6082 fi
6083 ;;
6084 esac
6085 fi
a8eb3f0a 6086 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6087 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6088 case $target in
74cea91b 6089 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6090 *) ;;
6091 esac
74cea91b 6092
e49e5c92
DK
6093fi
6094
700d40ca 6095
1b6c0831
L
6096# Check whether --enable-linker-plugin-configure-flags was given.
6097if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6098 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6099else
6100 extra_linker_plugin_configure_flags=
6101fi
6102
6103
6104# Check whether --enable-linker-plugin-flags was given.
6105if test "${enable_linker_plugin_flags+set}" = set; then :
6106 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6107else
6108 extra_linker_plugin_flags=
6109fi
6110
6111
6112
bf41f30d
NC
6113# Enable --enable-host-shared.
6114# Checked early to determine whether jit is an 'all' language
6115# Check whether --enable-host-shared was given.
6116if test "${enable_host_shared+set}" = set; then :
6117 enableval=$enable_host_shared; host_shared=$enableval
6118else
6119 host_shared=no
6120fi
6121
6122
e28c595f 6123
7ec59b9e 6124# By default, C and C++ are the only stage 1 languages.
9b134994 6125stage1_languages=,c,
1d39f329 6126
e8a5fa9c 6127# Target libraries that we bootstrap.
2aa2364a 6128bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6129
9e07f89d
NN
6130# Figure out what language subdirectories are present.
6131# Look if the user specified --enable-languages="..."; if not, use
6132# the environment variable $LANGUAGES if defined. $LANGUAGES might
6133# go away some day.
6134# NB: embedded tabs in this IF block -- do not untabify
6135if test -d ${srcdir}/gcc; then
6136 if test x"${enable_languages+set}" != xset; then
6137 if test x"${LANGUAGES+set}" = xset; then
6138 enable_languages="${LANGUAGES}"
136bb21f 6139 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 6140 else
bf41f30d 6141 enable_languages=default
9e07f89d
NN
6142 fi
6143 else
6144 if test x"${enable_languages}" = x ||
6145 test x"${enable_languages}" = xyes;
6146 then
136bb21f 6147 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6148 exit 1
6149 fi
6150 fi
6151 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6152
096f7d00
DE
6153 # 'f95' is the old name for the 'fortran' language. We issue a warning
6154 # and make the substitution.
6155 case ,${enable_languages}, in
6156 *,f95,*)
136bb21f 6157 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6158 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6159 ;;
6160 esac
6161
7ec59b9e
L
6162 # If bootstrapping, C++ must be enabled.
6163 case ",$enable_languages,:$enable_bootstrap" in
6164 *,c++,*:*) ;;
6165 *:yes)
ffdd6afc
ILT
6166 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6167 enable_languages="${enable_languages},c++"
6168 else
d0ac1c44 6169 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6170 fi
6171 ;;
6172 esac
6173
9e07f89d
NN
6174 # First scan to see if an enabled language requires some other language.
6175 # We assume that a given config-lang.in will list all the language
6176 # front ends it requires, even if some are required indirectly.
6177 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6178 case ${lang_frag} in
6179 ..) ;;
6180 # The odd quoting in the next line works around
6181 # an apparent bug in bash 1.12 on linux.
6182 ${srcdir}/gcc/[*]/config-lang.in) ;;
6183 *)
e552509b
ILT
6184 # From the config-lang.in, get $language, $lang_requires, and
6185 # $lang_requires_boot_languages.
9e07f89d
NN
6186 language=
6187 lang_requires=
e552509b 6188 lang_requires_boot_languages=
bf41f30d
NC
6189 # set srcdir during sourcing lang_frag to the gcc dir.
6190 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6191 # polutes this shell
6192 saved_srcdir=${srcdir}
6193 srcdir=${srcdir}/gcc . ${lang_frag}
6194 srcdir=${saved_srcdir}
e552509b 6195 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6196 case ,${enable_languages}, in
6197 *,$other,*) ;;
bf41f30d 6198 *,default,*) ;;
9e07f89d
NN
6199 *,all,*) ;;
6200 *,$language,*)
6201 echo " \`$other' language required by \`$language'; enabling" 1>&2
6202 enable_languages="${enable_languages},${other}"
6203 ;;
6204 esac
6205 done
e552509b
ILT
6206 for other in ${lang_requires_boot_languages} ; do
6207 if test "$other" != "c"; then
6208 case ,${enable_stage1_languages}, in
6209 *,$other,*) ;;
bf41f30d 6210 *,default,*) ;;
e552509b
ILT
6211 *,all,*) ;;
6212 *)
6213 case ,${enable_languages}, in
6214 *,$language,*)
6215 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6216 enable_stage1_languages="$enable_stage1_languages,${other}"
6217 ;;
6218 esac
6219 ;;
6220 esac
6221 fi
6222 done
9e07f89d
NN
6223 ;;
6224 esac
6225 done
6226
9b134994 6227 new_enable_languages=,c,
700d40ca
ILT
6228
6229 # If LTO is enabled, add the LTO front end.
700d40ca 6230 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6231 case ,${enable_languages}, in
6232 *,lto,*) ;;
6233 *) enable_languages="${enable_languages},lto" ;;
6234 esac
a8eb3f0a 6235 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6236 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6237 fi
6238 fi
6239
1b6c0831
L
6240 # If we're building an offloading compiler, add the LTO front end.
6241 if test x"$enable_as_accelerator_for" != x ; then
6242 case ,${enable_languages}, in
6243 *,lto,*) ;;
6244 *) enable_languages="${enable_languages},lto" ;;
6245 esac
6246 fi
700d40ca 6247
bf41f30d 6248 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6249 potential_languages=,c,
9e07f89d 6250
9e1a94f4
ILT
6251 enabled_target_libs=
6252 disabled_target_libs=
6253
9e07f89d
NN
6254 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6255 case ${lang_frag} in
6256 ..) ;;
6257 # The odd quoting in the next line works around
6258 # an apparent bug in bash 1.12 on linux.
6259 ${srcdir}/gcc/[*]/config-lang.in) ;;
6260 *)
c6b750e1 6261 # From the config-lang.in, get $language, $target_libs,
1d39f329 6262 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6263 language=
6264 target_libs=
6265 lang_dirs=
64ce424c 6266 subdir_requires=
9b134994
PB
6267 boot_language=no
6268 build_by_default=yes
bf41f30d
NC
6269 # set srcdir during sourcing. See above about save & restore
6270 saved_srcdir=${srcdir}
6271 srcdir=${srcdir}/gcc . ${lang_frag}
6272 srcdir=${saved_srcdir}
9b134994
PB
6273 if test x${language} = x; then
6274 echo "${lang_frag} doesn't set \$language." 1>&2
6275 exit 1
6276 fi
6277
ffdd6afc 6278 if test "$language" = "c++"; then
7ec59b9e 6279 boot_language=yes
e8a5fa9c
RW
6280 fi
6281
8e71395b 6282 add_this_lang=no
bf41f30d
NC
6283 # C is always enabled, so no need to add it again
6284 if test "$language" != "c"; then
6285 case ,${enable_languages}, in
6286 *,${language},*)
6287 # Language was explicitly selected; include it
7ec59b9e 6288 add_this_lang=yes
bf41f30d
NC
6289 ;;
6290 *,all,*)
6291 # All languages are enabled
6292 add_this_lang=all
6293 ;;
6294 *,default,*)
6295 # 'default' was selected, select it if it is a default language
8e71395b 6296 add_this_lang=${build_by_default}
bf41f30d
NC
6297 ;;
6298 esac
6299 fi
4b1cb4fe 6300
64ce424c 6301 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6302 for i in $subdir_requires; do
3d3adb43 6303 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
6304 case ${add_this_lang} in
6305 yes)
64ce424c 6306 # Specifically requested language; tell them.
d0ac1c44 6307 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 6308 ;;
bf41f30d
NC
6309 all)
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6311$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6312 add_this_lang=unsupported
6313 ;;
64ce424c
PB
6314 *)
6315 # Silently disable.
9b134994 6316 add_this_lang=unsupported
64ce424c
PB
6317 ;;
6318 esac
6319 done
6320
9b134994 6321 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
6322 case ${add_this_lang}:${language}:${have_gnat} in
6323 yes:ada:no)
9b134994 6324 # Specifically requested language; tell them.
d0ac1c44 6325 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 6326 ;;
bf41f30d
NC
6327 all:ada:no)
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6329$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6330 add_this_lang=unsupported
6331 ;;
9b134994
PB
6332 *:ada:no)
6333 # Silently disable.
6334 add_this_lang=unsupported
6335 ;;
6336 esac
6337
bf41f30d
NC
6338 # Disable jit if -enable-host-shared not specified
6339 case ${add_this_lang}:${language}:${host_shared} in
6340 yes:jit:no)
6341 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 6342 as_fn_error $? "
bf41f30d
NC
6343Enabling language \"jit\" requires --enable-host-shared.
6344
6345--enable-host-shared typically slows the rest of the compiler down by
6346a few %, so you must explicitly enable it.
6347
6348If you want to build both the jit and the regular compiler, it is often
6349best to do this via two separate configure/builds, in separate
6350directories, to avoid imposing the performance cost of
6351--enable-host-shared on the regular compiler." "$LINENO" 5
6352 ;;
6353 all:jit:no)
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6355$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6356 add_this_lang=unsupported
6357 ;;
6358 *:jit:no)
6359 # Silently disable.
6360 add_this_lang=unsupported
6361 ;;
6362 esac
6363
6364 # Disable a language that is unsupported by the target.
6365 case "${add_this_lang}: $unsupported_languages " in
6366 no:*) ;;
6367 unsupported:*) ;;
6368 *:*" $language "*)
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6370$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 6371 add_this_lang=unsupported
59f7ec45
HPN
6372 ;;
6373 esac
6374
4b1cb4fe 6375 case $add_this_lang in
9b134994 6376 unsupported)
9e07f89d 6377 # Remove language-dependent dirs.
9e1a94f4
ILT
6378 disabled_target_libs="$disabled_target_libs $target_libs"
6379 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6380 ;;
9b134994
PB
6381 no)
6382 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6383 disabled_target_libs="$disabled_target_libs $target_libs"
6384 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6385 potential_languages="${potential_languages}${language},"
6386 ;;
bf41f30d 6387 all|yes)
9b134994
PB
6388 new_enable_languages="${new_enable_languages}${language},"
6389 potential_languages="${potential_languages}${language},"
1d39f329 6390 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6391 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6392 case "${boot_language}:,$enable_stage1_languages," in
6393 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6394 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6395 case ",$stage1_languages," in
6396 *,$language,* | ,yes, | ,all,) ;;
6397 *) stage1_languages="${stage1_languages}${language}," ;;
6398 esac
e8a5fa9c
RW
6399 # We need to bootstrap any supporting libraries.
6400 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6401 ;;
6402 esac
6403 ;;
9e07f89d
NN
6404 esac
6405 ;;
6406 esac
6407 done
6408
9e1a94f4
ILT
6409 # Add target libraries which are only needed for disabled languages
6410 # to noconfigdirs.
6411 if test -n "$disabled_target_libs"; then
6412 for dir in $disabled_target_libs; do
6413 case " $enabled_target_libs " in
6414 *" ${dir} "*) ;;
6415 *) noconfigdirs="$noconfigdirs $dir" ;;
6416 esac
6417 done
6418 fi
6419
81ecdfbb
RW
6420 # Check whether --enable-stage1-languages was given.
6421if test "${enable_stage1_languages+set}" = set; then :
6422 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6423 ,no,|,,)
6424 # Set it to something that will have no effect in the loop below
6425 enable_stage1_languages=c ;;
6426 ,yes,)
6427 enable_stage1_languages=`echo $new_enable_languages | \
6428 sed -e "s/^,//" -e "s/,$//" ` ;;
6429 *,all,*)
6430 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6431 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6432 esac
6433
6434 # Add "good" languages from enable_stage1_languages to stage1_languages,
6435 # while "bad" languages go in missing_languages. Leave no duplicates.
6436 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6437 case $potential_languages in
6438 *,$i,*)
6439 case $stage1_languages in
6440 *,$i,*) ;;
6441 *) stage1_languages="$stage1_languages$i," ;;
6442 esac ;;
6443 *)
6444 case $missing_languages in
6445 *,$i,*) ;;
6446 *) missing_languages="$missing_languages$i," ;;
6447 esac ;;
6448 esac
6449 done
81ecdfbb
RW
6450fi
6451
9b134994
PB
6452
6453 # Remove leading/trailing commas that were added for simplicity
6454 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6455 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6456 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6457 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6458
9e07f89d 6459 if test "x$missing_languages" != x; then
d0ac1c44 6460 as_fn_error $? "
27258dd4 6461The following requested languages could not be built: ${missing_languages}
81ecdfbb 6462Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6463 fi
9e07f89d
NN
6464 if test "x$new_enable_languages" != "x$enable_languages"; then
6465 echo The following languages will be built: ${new_enable_languages}
9b134994 6466 enable_languages="$new_enable_languages"
9e07f89d 6467 fi
9b134994 6468
c6b750e1 6469
81ec575a 6470 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6471fi
6472
a6df5a19
PB
6473# Handle --disable-<component> generically.
6474for dir in $configdirs $build_configdirs $target_configdirs ; do
6475 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6476 varname=`echo $dirname | sed -e s/+/_/g`
6477 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6478 noconfigdirs="$noconfigdirs $dir"
6479 fi
6480done
6481
4f0ef2d8 6482# Check for Boehm's garbage collector
81ecdfbb
RW
6483# Check whether --enable-objc-gc was given.
6484if test "${enable_objc_gc+set}" = set; then :
05a13254 6485 enableval=$enable_objc_gc;
81ecdfbb
RW
6486fi
6487
4f0ef2d8 6488
05a13254
NC
6489# Check whether --with-target-bdw-gc was given.
6490if test "${with_target_bdw_gc+set}" = set; then :
6491 withval=$with_target_bdw_gc;
6492fi
6493
6494
6495# Check whether --with-target-bdw-gc-include was given.
6496if test "${with_target_bdw_gc_include+set}" = set; then :
6497 withval=$with_target_bdw_gc_include;
6498fi
6499
6500
6501# Check whether --with-target-bdw-gc-lib was given.
6502if test "${with_target_bdw_gc_lib+set}" = set; then :
6503 withval=$with_target_bdw_gc_lib;
6504fi
6505
6506
6507case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6509$as_echo_n "checking for bdw garbage collector... " >&6; }
6510 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6512$as_echo "using bdw-gc in default locations" >&6; }
6513 else
6514 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 6515 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 6516 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 6517 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
6518 else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6520$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6521 fi
05a13254 6522 fi
4f0ef2d8
CD
6523esac
6524
bf41f30d 6525# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6526case ,${enable_languages}, in
1b6c0831 6527 *,c++,*)
bf41f30d 6528 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
6529 case "${noconfigdirs}" in
6530 *target-libstdc++-v3*)
bf41f30d 6531 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
6532 ;;
6533 *) ;;
6534 esac
6535 ;;
7ec59b9e 6536 *)
bf41f30d 6537 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6538 ;;
6539esac
6540
caeba88f
AL
6541# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6542# $build_configdirs and $target_configdirs.
9e07f89d
NN
6543# If we have the source for $noconfigdirs entries, add them to $notsupp.
6544
6545notsupp=""
6546for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6547 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6548 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6549 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6550 if test -r $srcdir/$dirname/configure ; then
6551 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6552 true
6553 else
6554 notsupp="$notsupp $dir"
6555 fi
6556 fi
6557 fi
caeba88f
AL
6558 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6559 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6560 if test -r $srcdir/$dirname/configure ; then
6561 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6562 true
6563 else
6564 notsupp="$notsupp $dir"
6565 fi
6566 fi
6567 fi
9e07f89d
NN
6568 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6569 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6570 if test -r $srcdir/$dirname/configure ; then
6571 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6572 true
6573 else
6574 notsupp="$notsupp $dir"
6575 fi
6576 fi
6577 fi
6578done
6579
9e07f89d
NN
6580# Quietly strip out all directories which aren't configurable in this tree.
6581# This relies on all configurable subdirectories being autoconfiscated, which
6582# is now the case.
6a9cf61e
PB
6583build_configdirs_all="$build_configdirs"
6584build_configdirs=
6585for i in ${build_configdirs_all} ; do
c6b750e1 6586 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6587 if test -f ${srcdir}/$j/configure ; then
6588 build_configdirs="${build_configdirs} $i"
6589 fi
6590done
6591
9e07f89d
NN
6592configdirs_all="$configdirs"
6593configdirs=
6594for i in ${configdirs_all} ; do
6595 if test -f ${srcdir}/$i/configure ; then
6596 configdirs="${configdirs} $i"
6597 fi
6598done
6a9cf61e 6599
9e07f89d
NN
6600target_configdirs_all="$target_configdirs"
6601target_configdirs=
6602for i in ${target_configdirs_all} ; do
c6b750e1 6603 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6604 if test -f ${srcdir}/$j/configure ; then
6605 target_configdirs="${target_configdirs} $i"
6606 fi
6607done
6608
1b6c0831
L
6609# libiberty-linker-plugin is special: it doesn't have its own source directory,
6610# so we have to add it after the preceding checks.
6611if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6612then
6613 case " $configdirs " in
6614 *" libiberty "*)
6615 # If we can build libiberty, we can also build libiberty-linker-plugin.
6616 configdirs="$configdirs libiberty-linker-plugin"
6617 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6618 --with-libiberty=../libiberty-linker-plugin";;
6619 *)
d0ac1c44 6620 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
6621 esac
6622fi
6623
6624# Sometimes we have special requirements for the host libiberty.
6625extra_host_libiberty_configure_flags=
e81d5d05 6626extra_host_zlib_configure_flags=
1b6c0831
L
6627case " $configdirs " in
6628 *" lto-plugin "* | *" libcc1 "*)
6629 # When these are to be built as shared libraries, the same applies to
6630 # libiberty.
6631 extra_host_libiberty_configure_flags=--enable-shared
6632 ;;
e81d5d05
L
6633 *" bfd "*)
6634 # When bfd is to be built as a shared library, the same applies to
6635 # zlib.
6636 if test "$enable_shared" = "yes"; then
6637 extra_host_zlib_configure_flags=--enable-host-shared
6638 fi
6639 ;;
1b6c0831
L
6640esac
6641
6642
e81d5d05 6643
9e07f89d
NN
6644# Produce a warning message for the subdirs we can't configure.
6645# This isn't especially interesting in the Cygnus tree, but in the individual
6646# FSF releases, it's important to let people know when their machine isn't
6647# supported by the one or two programs in a package.
6648
6649if test -n "${notsupp}" && test -z "${norecursion}" ; then
6650 # If $appdirs is non-empty, at least one of those directories must still
6651 # be configured, or we error out. (E.g., if the gas release supports a
6652 # specified target in some subdirs but not the gas subdir, we shouldn't
6653 # pretend that all is well.)
6654 if test -n "$appdirs" ; then
6655 for dir in $appdirs ; do
6656 if test -r $dir/Makefile.in ; then
6657 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6658 appdirs=""
6659 break
6660 fi
6a9cf61e 6661 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6662 appdirs=""
6663 break
6664 fi
6665 fi
6666 done
6667 if test -n "$appdirs" ; then
6668 echo "*** This configuration is not supported by this package." 1>&2
6669 exit 1
6670 fi
6671 fi
6672 # Okay, some application will build, or we don't care to check. Still
6673 # notify of subdirs not getting built.
6674 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6675 echo " ${notsupp}" 1>&2
6676 echo " (Any other directories should still work fine.)" 1>&2
6677fi
6678
6679case "$host" in
6680 *msdosdjgpp*)
6681 enable_gdbtk=no ;;
6682esac
6683
18f6b6ee
PB
6684# To find our prefix, in gcc_cv_tool_prefix.
6685
6686# The user is always right.
6687if test "${PATH_SEPARATOR+set}" != set; then
6688 echo "#! /bin/sh" >conf$$.sh
6689 echo "exit 0" >>conf$$.sh
6690 chmod +x conf$$.sh
6691 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6692 PATH_SEPARATOR=';'
6693 else
6694 PATH_SEPARATOR=:
6695 fi
6696 rm -f conf$$.sh
6697fi
6698
6699
bf41f30d
NC
6700 get_gcc_base_ver="cat"
6701
6702# Check whether --with-gcc-major-version-only was given.
6703if test "${with_gcc_major_version_only+set}" = set; then :
6704 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 6705 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
6706 fi
6707
6708fi
6709
6710
6711
6712
6713
18f6b6ee
PB
6714
6715if test "x$exec_prefix" = xNONE; then
6716 if test "x$prefix" = xNONE; then
6717 gcc_cv_tool_prefix=$ac_default_prefix
6718 else
6719 gcc_cv_tool_prefix=$prefix
6720 fi
6721else
6722 gcc_cv_tool_prefix=$exec_prefix
6723fi
6724
6725# If there is no compiler in the tree, use the PATH only. In any
6726# case, if there is no compiler in the tree nobody should use
6727# AS_FOR_TARGET and LD_FOR_TARGET.
6728if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
6729 if test x$with_gcc_major_version_only = xyes ; then
6730 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6731 else
6732 gcc_version=`cat $srcdir/gcc/BASE-VER`
6733 fi
18f6b6ee
PB
6734 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6735 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6736 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6737 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6738 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6739 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6740else
6741 gcc_cv_tool_dirs=
6742fi
6743
6744if test x$build = x$target && test -n "$md_exec_prefix"; then
6745 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6746fi
6747
6748
6749
9e07f89d
NN
6750copy_dirs=
6751
c6b750e1 6752
81ecdfbb
RW
6753# Check whether --with-build-sysroot was given.
6754if test "${with_build_sysroot+set}" = set; then :
6755 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6756 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6757 fi
6758else
6759 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6760fi
a19b6204
MM
6761
6762
8a6ee3ab 6763
81ecdfbb
RW
6764
6765# Check whether --with-debug-prefix-map was given.
6766if test "${with_debug_prefix_map+set}" = set; then :
6767 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6768 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6769 for debug_map in $withval; do
6770 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6771 done
6772 fi
6773else
6774 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6775fi
6776
8a6ee3ab
JM
6777
6778
7f6ef0c0
PB
6779# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6780# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6781# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6782# We want to ensure that TARGET libraries (which we know are built with
6783# gcc) are built with "-O2 -g", so include those options when setting
6784# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6785if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6786 if test "x${is_cross_compiler}" = xyes; then
6787 CFLAGS_FOR_TARGET="-g -O2"
6788 else
6789 CFLAGS_FOR_TARGET=$CFLAGS
6790 case " $CFLAGS " in
6791 *" -O2 "*) ;;
6792 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6793 esac
6794 case " $CFLAGS " in
6795 *" -g "* | *" -g3 "*) ;;
6796 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6797 esac
6798 fi
7f6ef0c0
PB
6799fi
6800
6801
6802if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6803 if test "x${is_cross_compiler}" = xyes; then
6804 CXXFLAGS_FOR_TARGET="-g -O2"
6805 else
6806 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6807 case " $CXXFLAGS " in
6808 *" -O2 "*) ;;
6809 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6810 esac
6811 case " $CXXFLAGS " in
6812 *" -g "* | *" -g3 "*) ;;
6813 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6814 esac
6815 fi
7f6ef0c0
PB
6816fi
6817
6818
91c1f14c
DK
6819
6820
9e07f89d
NN
6821# Handle --with-headers=XXX. If the value is not "yes", the contents of
6822# the named directory are copied to $(tooldir)/sys-include.
6823if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6824 if test x${is_cross_compiler} = xno ; then
6825 echo 1>&2 '***' --with-headers is only supported when cross compiling
6826 exit 1
6827 fi
6828 if test x"${with_headers}" != xyes ; then
18f6b6ee 6829 x=${gcc_cv_tool_prefix}
c6b750e1 6830 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6831 fi
6832fi
6833
6834# Handle --with-libs=XXX. If the value is not "yes", the contents of
6835# the name directories are copied to $(tooldir)/lib. Multiple directories
6836# are permitted.
6837if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6838 if test x${is_cross_compiler} = xno ; then
6839 echo 1>&2 '***' --with-libs is only supported when cross compiling
6840 exit 1
6841 fi
6842 if test x"${with_libs}" != xyes ; then
6843 # Copy the libraries in reverse order, so that files in the first named
6844 # library override files in subsequent libraries.
18f6b6ee 6845 x=${gcc_cv_tool_prefix}
9e07f89d 6846 for l in ${with_libs}; do
c6b750e1 6847 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6848 done
6849 fi
6850fi
6851
700d40ca 6852# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6853#
6854# This is done by determining whether or not the appropriate directory
6855# is available, and by checking whether or not specific configurations
6856# have requested that this magic not happen.
c6b750e1
DJ
6857#
6858# The command line options always override the explicit settings in
136bb21f 6859# configure.ac, and the settings in configure.ac override this magic.
2429c060 6860#
c6b750e1 6861# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6862# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6863# --without-gnu-ld options for the configure script. Similarly, if
6864# the default is to use the included zlib and you don't want to do that,
6865# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6866
6867if test x${use_gnu_as} = x &&
6868 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6869 with_gnu_as=yes
6870 extra_host_args="$extra_host_args --with-gnu-as"
6871fi
6872
6873if test x${use_gnu_ld} = x &&
93f9b408 6874 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6875 with_gnu_ld=yes
6876 extra_host_args="$extra_host_args --with-gnu-ld"
6877fi
6878
700d40ca
ILT
6879if test x${use_included_zlib} = x &&
6880 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6881 :
6882else
6883 with_system_zlib=yes
6884 extra_host_args="$extra_host_args --with-system-zlib"
6885fi
6886
2429c060
PB
6887# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6888# can detect this case.
6889
6890if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6891 with_newlib=yes
6892 extra_host_args="$extra_host_args --with-newlib"
6893fi
6894
9e07f89d
NN
6895# Handle ${copy_dirs}
6896set fnord ${copy_dirs}
6897shift
6898while test $# != 0 ; do
6899 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6900 :
6901 else
6902 echo Copying $1 to $2
6903
6904 # Use the install script to create the directory and all required
6905 # parent directories.
6906 if test -d $2 ; then
6907 :
6908 else
6909 echo >config.temp
6910 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6911 fi
6912
6913 # Copy the directory, assuming we have tar.
6914 # FIXME: Should we use B in the second tar? Not all systems support it.
6915 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6916
6917 # It is the responsibility of the user to correctly adjust all
6918 # symlinks. If somebody can figure out how to handle them correctly
6919 # here, feel free to add the code.
6920
6921 echo $1 > $2/COPIED
6922 fi
6923 shift; shift
6924done
6925
2429c060
PB
6926# Determine a target-dependent exec_prefix that the installed
6927# gcc will search in. Keep this list sorted by triplet, with
6928# the *-*-osname triplets last.
6929md_exec_prefix=
6930case "${target}" in
521ec477 6931 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6932 md_exec_prefix=/dev/env/DJDIR/bin
6933 ;;
2429c060 6934 *-*-hpux* | \
2429c060 6935 *-*-nto-qnx* | \
1f111696 6936 *-*-solaris2*)
2429c060
PB
6937 md_exec_prefix=/usr/ccs/bin
6938 ;;
6939esac
6940
a0da8069
NN
6941extra_arflags_for_target=
6942extra_nmflags_for_target=
6943extra_ranlibflags_for_target=
6944target_makefile_frag=/dev/null
6945case "${target}" in
77d7106f
AM
6946 spu-*-*)
6947 target_makefile_frag="config/mt-spu"
6948 ;;
a9d58c06 6949 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
6950 target_makefile_frag="config/mt-sde"
6951 ;;
f3b1e08e
RS
6952 mipsisa*-*-elfoabi*)
6953 target_makefile_frag="config/mt-mips-elfoabi"
6954 ;;
e7c8859c
RS
6955 mips*-*-*linux* | mips*-*-gnu*)
6956 target_makefile_frag="config/mt-mips-gnu"
6957 ;;
d9e042ac
SL
6958 nios2-*-elf*)
6959 target_makefile_frag="config/mt-nios2-elf"
6960 ;;
bf41f30d
NC
6961 *-*-linux-android*)
6962 target_makefile_frag="config/mt-android"
6963 ;;
29383458 6964 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6965 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6966 ;;
6967 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6968 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6969 # commands to handle both 32-bit and 64-bit objects. These flags are
6970 # harmless if we're using GNU nm or ar.
6971 extra_arflags_for_target=" -X32_64"
6972 extra_nmflags_for_target=" -B -X32_64"
6973 ;;
a0da8069
NN
6974esac
6975
6976alphaieee_frag=/dev/null
6977case $target in
6978 alpha*-*-*)
6979 # This just makes sure to use the -mieee option to build target libs.
6980 # This should probably be set individually by each library.
6981 alphaieee_frag="config/mt-alphaieee"
6982 ;;
6983esac
6984
6985# If --enable-target-optspace always use -Os instead of -O2 to build
6986# the target libraries, similarly if it is not specified, use -Os
6987# on selected platforms.
6988ospace_frag=/dev/null
6989case "${enable_target_optspace}:${target}" in
6990 yes:*)
6991 ospace_frag="config/mt-ospace"
6992 ;;
6993 :d30v-*)
6994 ospace_frag="config/mt-d30v"
6995 ;;
16beab3d 6996 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
6997 ospace_frag="config/mt-ospace"
6998 ;;
6999 no:* | :*)
7000 ;;
7001 *)
7002 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7003 ;;
7004esac
7005
a0da8069
NN
7006# Some systems (e.g., one of the i386-aix systems the gas testers are
7007# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7008tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7009build_tooldir=${tooldir}
7010
a0da8069
NN
7011# Create a .gdbinit file which runs the one in srcdir
7012# and tells GDB to look there for source files.
7013
7014if test -r ${srcdir}/.gdbinit ; then
7015 case ${srcdir} in
7016 .) ;;
7017 *) cat > ./.gdbinit <<EOF
7018# ${NO_EDIT}
7019dir ${srcdir}
7020dir .
7021source ${srcdir}/.gdbinit
7022EOF
7023 ;;
7024 esac
7025fi
7026
a0da8069
NN
7027# Make sure that the compiler is able to generate an executable. If it
7028# can't, we are probably in trouble. We don't care whether we can run the
7029# executable--we might be using a cross compiler--we only care whether it
7030# can be created. At this point the main configure script has set CC.
7031we_are_ok=no
7032echo "int main () { return 0; }" > conftest.c
7033${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7034if test $? = 0 ; then
7035 if test -s conftest || test -s conftest.exe ; then
7036 we_are_ok=yes
7037 fi
c6b750e1 7038fi
a0da8069
NN
7039case $we_are_ok in
7040 no)
7041 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7042 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7043 rm -f conftest*
7044 exit 1
7045 ;;
7046esac
7047rm -f conftest*
7048
3bbd2f8f 7049# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7050case "${host}" in
7051 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7052 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7053 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7054 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7055esac
7056
3bbd2f8f 7057# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7058# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7059# built executables to PATH.
3bbd2f8f
AL
7060if test "$RPATH_ENVVAR" = PATH; then
7061 GCC_SHLIB_SUBDIR=/shlib
7062else
7063 GCC_SHLIB_SUBDIR=
7064fi
7065
730af8ee 7066# Adjust the toplevel makefile according to whether bootstrap was selected.
7067case $enable_bootstrap in
7068 yes)
7069 bootstrap_suffix=bootstrap
7070 BUILD_CONFIG=bootstrap-debug
7071 ;;
7072 no)
7073 bootstrap_suffix=no-bootstrap
7074 BUILD_CONFIG=
7075 ;;
7076esac
7077
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7079$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7080
7081
7082# Check whether --with-build-config was given.
7083if test "${with_build_config+set}" = set; then :
7084 withval=$with_build_config; case $with_build_config in
7085 yes) with_build_config= ;;
7086 no) with_build_config= BUILD_CONFIG= ;;
7087 esac
7088fi
7089
7090
7091if test "x${with_build_config}" != x; then
7092 BUILD_CONFIG=$with_build_config
7093else
7094 case $BUILD_CONFIG in
7095 bootstrap-debug)
7096 if echo "int f (void) { return 0; }" > conftest.c &&
7097 ${CC} -c conftest.c &&
7098 mv conftest.o conftest.o.g0 &&
7099 ${CC} -c -g conftest.c &&
7100 mv conftest.o conftest.o.g &&
7101 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7102 :
7103 else
7104 BUILD_CONFIG=
7105 fi
7106 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7107 ;;
7108 esac
7109fi
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7111$as_echo "$BUILD_CONFIG" >&6; }
7112
7113
7114# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7116$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7117# Check whether --enable-vtable-verify was given.
7118if test "${enable_vtable_verify+set}" = set; then :
7119 enableval=$enable_vtable_verify; case "$enableval" in
7120 yes) enable_vtable_verify=yes ;;
7121 no) enable_vtable_verify=no ;;
7122 *) enable_vtable_verify=no;;
7123 esac
7124else
7125 enable_vtable_verify=no
7126fi
7127
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7129$as_echo "$enable_vtable_verify" >&6; }
7130
a0da8069
NN
7131# Record target_configdirs and the configure arguments for target and
7132# build configuration in Makefile.
7133target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7134build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7135bootstrap_fixincludes=no
a0da8069 7136
2aa2364a
JR
7137# If we are building libgomp, bootstrap it.
7138if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7139 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7140fi
7141
730af8ee 7142# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7143# or bootstrap-ubsan, bootstrap it.
7144if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7145 case "$BUILD_CONFIG" in
7146 *bootstrap-asan* | *bootstrap-ubsan* )
7147 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7148 bootstrap_fixincludes=yes
730af8ee 7149 ;;
7150 esac
5eb08693
L
7151fi
7152
730af8ee 7153# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7154if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7155 test "$enable_vtable_verify" != no; then
95e43135
JBG
7156 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7157fi
7158
a0da8069
NN
7159# Determine whether gdb needs tk/tcl or not.
7160# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7161# and in that case we want gdb to be built without tk. Ugh!
7162# In fact I believe gdb is the *only* package directly dependent on tk,
7163# so we should be able to put the 'maybe's in unconditionally and
7164# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7165# 100% sure that that's safe though.
c180f501 7166
675c6968 7167gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7168case "$enable_gdbtk" in
7169 no)
7170 GDB_TK="" ;;
c180f501
AC
7171 yes)
7172 GDB_TK="${gdb_tk}" ;;
a0da8069 7173 *)
c180f501
AC
7174 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7175 # distro. Eventually someone will fix this and move Insight, nee
7176 # gdbtk to a separate directory.
7177 if test -d ${srcdir}/gdb/gdbtk ; then
7178 GDB_TK="${gdb_tk}"
7179 else
7180 GDB_TK=""
7181 fi
7182 ;;
a0da8069 7183esac
907be67c
DJ
7184CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7185INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7186
6bd3dfaa 7187# Strip out unwanted targets.
dd12c3a8
NN
7188
7189# While at that, we remove Makefiles if we were started for recursive
7190# configuration, so that the top-level Makefile reconfigures them,
7191# like we used to do when configure itself was recursive.
dd12c3a8 7192
06a51eac
RW
7193# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7194# but now we're fixing up the Makefile ourselves with the additional
7195# commands passed to AC_CONFIG_FILES. Use separate variables
7196# extrasub-{build,host,target} not because there is any reason to split
7197# the substitutions up that way, but only to remain below the limit of
7198# 99 commands in a script, for HP-UX sed.
4119873a
AO
7199
7200# Do not nest @if/@endif or @unless/@endunless pairs, because
7201# configure will not warn you at all.
dd12c3a8 7202
16b1ad29
RW
7203case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7204 yes:yes:*\ gold\ *:*,c++,*) ;;
7205 yes:yes:*\ gold\ *:*)
d0ac1c44 7206 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
7207 ;;
7208esac
7209
06a51eac 7210extrasub_build=
6a9cf61e 7211for module in ${build_configdirs} ; do
498d4a71
CF
7212 if test -z "${no_recursion}" \
7213 && test -f ${build_subdir}/${module}/Makefile; then
7214 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7215 rm -f ${build_subdir}/${module}/Makefile
7216 fi
06a51eac 7217 extrasub_build="$extrasub_build
498d4a71
CF
7218/^@if build-$module\$/d
7219/^@endif build-$module\$/d
4119873a 7220/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 7221/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
7222/^@endif build-$module-$bootstrap_suffix\$/d
7223/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 7224done
06a51eac 7225extrasub_host=
498d4a71 7226for module in ${configdirs} ; do
80911fe1 7227 if test -z "${no_recursion}"; then
8cf39b1b 7228 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7229 if test -f ${file}; then
7230 echo 1>&2 "*** removing ${file} to force reconfigure"
7231 rm -f ${file}
7232 fi
7233 done
498d4a71 7234 fi
201f096f 7235 case ${module},${bootstrap_fixincludes} in
7236 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7237 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7238 esac
06a51eac 7239 extrasub_host="$extrasub_host
498d4a71
CF
7240/^@if $module\$/d
7241/^@endif $module\$/d
4119873a 7242/^@unless $module\$/,/^@endunless $module\$/d
201f096f 7243/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
7244/^@endif $module-$host_bootstrap_suffix\$/d
7245/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 7246done
06a51eac 7247extrasub_target=
498d4a71
CF
7248for module in ${target_configdirs} ; do
7249 if test -z "${no_recursion}" \
7250 && test -f ${target_subdir}/${module}/Makefile; then
7251 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7252 rm -f ${target_subdir}/${module}/Makefile
7253 fi
e8a5fa9c
RW
7254
7255 # We only bootstrap target libraries listed in bootstrap_target_libs.
7256 case $bootstrap_target_libs in
7257 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7258 *) target_bootstrap_suffix=no-bootstrap ;;
7259 esac
7260
06a51eac 7261 extrasub_target="$extrasub_target
498d4a71
CF
7262/^@if target-$module\$/d
7263/^@endif target-$module\$/d
4119873a 7264/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 7265/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
7266/^@endif target-$module-$target_bootstrap_suffix\$/d
7267/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7268done
7269
06a51eac
RW
7270# Do the final fixup along with target modules.
7271extrasub_target="$extrasub_target
4119873a
AO
7272/^@if /,/^@endif /d
7273/^@unless /d
7274/^@endunless /d"
a0da8069
NN
7275
7276# Create the serialization dependencies. This uses a temporary file.
7277
81ecdfbb
RW
7278# Check whether --enable-serial-configure was given.
7279if test "${enable_serial_configure+set}" = set; then :
7280 enableval=$enable_serial_configure;
7281fi
e6bfb94a
AO
7282
7283
1047cb91
DD
7284case ${enable_serial_configure} in
7285 yes)
7286 enable_serial_build_configure=yes
7287 enable_serial_host_configure=yes
7288 enable_serial_target_configure=yes
7289 ;;
7290esac
7291
a0da8069
NN
7292# These force 'configure's to be done one at a time, to avoid problems
7293# with contention over a shared config.cache.
7294rm -f serdep.tmp
e6bfb94a 7295echo '# serdep.tmp' > serdep.tmp
a0da8069 7296olditem=
1047cb91 7297test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7298for item in ${build_configdirs} ; do
7299 case ${olditem} in
7300 "") ;;
e6bfb94a 7301 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7302 esac
7303 olditem=${item}
7304done
7305olditem=
1047cb91 7306test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7307for item in ${configdirs} ; do
7308 case ${olditem} in
7309 "") ;;
e6bfb94a 7310 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7311 esac
7312 olditem=${item}
7313done
7314olditem=
1047cb91 7315test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7316for item in ${target_configdirs} ; do
7317 case ${olditem} in
7318 "") ;;
e6bfb94a 7319 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7320 esac
7321 olditem=${item}
7322done
7323serialization_dependencies=serdep.tmp
7324
7325
e6bfb94a 7326# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7327# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7328# might not want to pass down to subconfigures. The exception being
7329# --cache-file=/dev/null, which is used to turn off the use of cache
7330# files altogether, and which should be passed on to subconfigures.
7331# Also strip program-prefix, program-suffix, and program-transform-name,
7332# so that we can pass down a consistent program-transform-name.
c6b750e1 7333baseargs=
65b4571a 7334tbaseargs=
c6b750e1
DJ
7335keep_next=no
7336skip_next=no
7337eval "set -- $ac_configure_args"
18f6b6ee
PB
7338for ac_arg
7339do
c6b750e1
DJ
7340 if test X"$skip_next" = X"yes"; then
7341 skip_next=no
7342 continue
7343 fi
7344 if test X"$keep_next" = X"yes"; then
7345 case $ac_arg in
7346 *\'*)
7347 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7348 esac
7349 baseargs="$baseargs '$ac_arg'"
65b4571a 7350 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7351 keep_next=no
7352 continue
7353 fi
7354
7355 # Handle separated arguments. Based on the logic generated by
7356 # autoconf 2.59.
7357 case $ac_arg in
7358 *=* | --config-cache | -C | -disable-* | --disable-* \
7359 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7360 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7361 | -with-* | --with-* | -without-* | --without-* | --x)
7362 separate_arg=no
7363 ;;
7364 -*)
7365 separate_arg=yes
7366 ;;
7367 *)
7368 separate_arg=no
7369 ;;
7370 esac
7371
65b4571a
AO
7372 skip_targ=no
7373 case $ac_arg in
7374
7375 --with-* | --without-*)
7376 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7377
7378 case $libopt in
7379 *[-_]include)
7380 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7381 ;;
7382 *[-_]lib)
7383 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7384 ;;
7385 *)
7386 lib=$libopt
7387 ;;
7388 esac
7389
7390
7391 case $lib in
1b6c0831 7392 mpc | mpfr | gmp | isl)
65b4571a
AO
7393 # If we're processing --with-$lib, --with-$lib-include or
7394 # --with-$lib-lib, for one of the libs above, and target is
7395 # different from host, don't pass the current argument to any
7396 # target library's configure.
7397 if test x$is_cross_compiler = xyes; then
7398 skip_targ=yes
7399 fi
7400 ;;
7401 esac
7402 ;;
7403 esac
7404
c6b750e1 7405 case "$ac_arg" in
30167e0a
NC
7406 --cache-file=/dev/null | \
7407 -cache-file=/dev/null )
7408 # Handled here to avoid the test to skip args below.
7409 baseargs="$baseargs '$ac_arg'"
65b4571a 7410 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7411 # Assert: $separate_arg should always be no.
7412 keep_next=$separate_arg
7413 ;;
c6b750e1
DJ
7414 --no*)
7415 continue
7416 ;;
7417 --c* | \
7418 --sr* | \
7419 --ho* | \
7420 --bu* | \
7421 --t* | \
7422 --program-* | \
7423 -cache_file* | \
7424 -srcdir* | \
7425 -host* | \
7426 -build* | \
7427 -target* | \
7428 -program-prefix* | \
7429 -program-suffix* | \
7430 -program-transform-name* )
7431 skip_next=$separate_arg
7432 continue
7433 ;;
7434 -*)
7435 # An option. Add it.
7436 case $ac_arg in
7437 *\'*)
7438 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7439 esac
7440 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7441 if test X"$skip_targ" = Xno; then
7442 tbaseargs="$tbaseargs '$ac_arg'"
7443 fi
c6b750e1
DJ
7444 keep_next=$separate_arg
7445 ;;
7446 *)
7447 # Either a variable assignment, or a nonopt (triplet). Don't
7448 # pass it down; let the Makefile handle this.
7449 continue
7450 ;;
7451 esac
7452done
7453# Remove the initial space we just introduced and, as these will be
7454# expanded by make, quote '$'.
7455baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7456
f27d4f92
DJ
7457# Add in --program-transform-name, after --program-prefix and
7458# --program-suffix have been applied to it. Autoconf has already
7459# doubled dollar signs and backslashes in program_transform_name; we want
7460# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7461# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7462# Also, because we want to override the logic in subdir configure scripts to
7463# choose program_transform_name, replace any s,x,x, with s,y,y,.
7464sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7465${program_transform_name}
7466EOF_SED
7467gcc_transform_name=`cat conftestsed.out`
7468rm -f conftestsed.out
7469baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7470tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7471if test "$silent" = yes; then
7472 baseargs="$baseargs --silent"
65b4571a 7473 tbaseargs="$tbaseargs --silent"
2444379b 7474fi
34a0f3cf 7475baseargs="$baseargs --disable-option-checking"
65b4571a 7476tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7477
4074d5f2
RW
7478# Record and document user additions to sub configure arguments.
7479
7480
7481
7482
a0da8069
NN
7483# For the build-side libraries, we just need to pretend we're native,
7484# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7485# desired. We can't even use the same cache file for all build-side
7486# libraries, as they're compiled differently; some with C, some with
7487# C++ or with different feature-enabling options.
7488build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7489
7490# For host modules, accept cache file option, or specification as blank.
7491case "${cache_file}" in
7492"") # empty
7493 cache_file_option="" ;;
7494/* | [A-Za-z]:[\\/]* ) # absolute path
7495 cache_file_option="--cache-file=${cache_file}" ;;
7496*) # relative path
7497 cache_file_option="--cache-file=../${cache_file}" ;;
7498esac
7499
82252c06
NN
7500# Host dirs don't like to share a cache file either, horribly enough.
7501# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7502host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7503
65b4571a 7504target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7505
7506# Passing a --with-cross-host argument lets the target libraries know
7507# whether they are being built with a cross-compiler or being built
7508# native. However, it would be better to use other mechanisms to make the
7509# sorts of decisions they want to make on this basis. Please consider
7510# this option to be deprecated. FIXME.
7511if test x${is_cross_compiler} = xyes ; then
c6b750e1 7512 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7513fi
7514
afc0578d 7515# Special user-friendly check for native x86_64-linux build, if
7516# multilib is not explicitly enabled.
7517case "$target:$have_compiler:$host:$target:$enable_multilib" in
7518 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7519 # Make sure we have a development environment that handles 32-bit
afc0578d 7520 dev64=no
7521 echo "int main () { return 0; }" > conftest.c
7522 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7523 if test $? = 0 ; then
7524 if test -s conftest || test -s conftest.exe ; then
7525 dev64=yes
7526 fi
7527 fi
7528 rm -f conftest*
7529 if test x${dev64} != xyes ; then
d0ac1c44 7530 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 7531 fi
7532 ;;
7533esac
7534
938d2b74
RW
7535# Default to --enable-multilib.
7536if test x${enable_multilib} = x ; then
a0da8069 7537 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7538fi
a0da8069
NN
7539
7540# Pass --with-newlib if appropriate. Note that target_configdirs has
7541# changed from the earlier setting of with_newlib.
7542if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7543 target_configargs="--with-newlib ${target_configargs}"
7544fi
7545
95036d20
NN
7546# Different target subdirs use different values of certain variables
7547# (notably CXX). Worse, multilibs use *lots* of different values.
7548# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7549# it doesn't automatically accept command-line overrides of them.
7550# This means it's not safe for target subdirs to share a cache file,
7551# which is disgusting, but there you have it. Hopefully this can be
7552# fixed in future. It's still worthwhile to use a cache file for each
7553# directory. I think.
7554
ae380b45
MS
7555# Pass the appropriate --build, --host, --target and --cache-file arguments.
7556# We need to pass --target, as newer autoconf's requires consistency
7557# for target_alias and gcc doesn't manage it consistently.
4b900473 7558target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7559
a0da8069
NN
7560FLAGS_FOR_TARGET=
7561case " $target_configdirs " in
7562 *" newlib "*)
7563 case " $target_configargs " in
7564 *" --with-newlib "*)
7565 case "$target" in
1f53ca9a 7566 *-cygwin*)
6d94c122 7567 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7568 ;;
a0da8069
NN
7569 esac
7570
7571 # If we're not building GCC, don't discard standard headers.
7572 if test -d ${srcdir}/gcc; then
7573 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7574
7575 if test "${build}" != "${host}"; then
7576 # On Canadian crosses, CC_FOR_TARGET will have already been set
7577 # by `configure', so we won't have an opportunity to add -Bgcc/
7578 # to it. This is right: we don't want to search that directory
7579 # for binaries, but we want the header files in there, so add
7580 # them explicitly.
e552509b 7581 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7582
7583 # Someone might think of using the pre-installed headers on
7584 # Canadian crosses, in case the installed compiler is not fully
7585 # compatible with the compiler being built. In this case, it
7586 # would be better to flag an error than risking having
7587 # incompatible object files being constructed. We can't
7588 # guarantee that an error will be flagged, but let's hope the
7589 # compiler will do it, when presented with incompatible header
7590 # files.
7591 fi
7592 fi
7593
7594 case "${target}-${is_cross_compiler}" in
ec11bdc6 7595 i[3456789]86-*-linux*-no)
a0da8069
NN
7596 # Here host == target, so we don't need to build gcc,
7597 # so we don't want to discard standard headers.
7598 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7599 ;;
7600 *)
7601 # If we're building newlib, use its generic headers last, but search
7602 # for any libc-related directories first (so make it the last -B
7603 # switch).
7604 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
7605
7606 # If we're building libgloss, find the startup file, simulator library
7607 # and linker script.
7608 case " $target_configdirs " in
7609 *" libgloss "*)
7610 # Look for startup file, simulator library and maybe linker script.
7611 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7612 # Look for libnosys.a in case the target needs it.
7613 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7614 # Most targets have the linker script in the source directory.
7615 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7616 ;;
7617 esac
a0da8069
NN
7618 ;;
7619 esac
7620 ;;
7621 esac
7622 ;;
7623esac
1f53ca9a 7624
45055374 7625case "$target" in
1f53ca9a
AO
7626 x86_64-*mingw* | *-w64-mingw*)
7627 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7628 # however, use a symlink named 'mingw' in ${prefix} .
7629 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7630 ;;
7631 *-mingw*)
7632 # MinGW can't be handled as Cygwin above since it does not use newlib.
7633 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'
7634 ;;
45055374 7635esac
a0da8069 7636
5fbad20a
DD
7637# Allow the user to override the flags for
7638# our build compiler if desired.
c66487f8
NC
7639if test x"${build}" = x"${host}" ; then
7640 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7641 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7642 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7643fi
5fbad20a 7644
a0da8069
NN
7645# On Canadian crosses, we'll be searching the right directories for
7646# the previously-installed cross compiler, so don't bother to add
7647# flags for directories within the install tree of the compiler
7648# being built; programs in there won't even run.
7649if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7650 # Search for pre-installed headers if nothing else fits.
bba45b8b 7651 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
7652fi
7653
7654if test "x${use_gnu_ld}" = x &&
7655 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7656 # Arrange for us to find uninstalled linker scripts.
b00612cc 7657 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7658fi
7659
a481dbb7
DD
7660# Search for other target-specific linker scripts and such.
7661case "${target}" in
4e206d7e
DB
7662 mep*)
7663 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7664 ;;
7665esac
7666
a0da8069 7667# Makefile fragments.
3e707e94
PB
7668for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7669do
7670 eval fragval=\$$frag
7671 if test $fragval != /dev/null; then
7672 eval $frag=${srcdir}/$fragval
7673 fi
7674done
a0da8069
NN
7675
7676
7677
7678
7679
7680# Miscellanea: directories, flags, etc.
7681
7682
7683
7684
7685
7686
7687
3bbd2f8f 7688
6a9cf61e 7689# Build module lists & subconfigure args.
a0da8069
NN
7690
7691
7692
be01d343
PB
7693# Host module lists & subconfigure args.
7694
7695
7696
911e63d0 7697
be01d343
PB
7698# Target module lists & subconfigure args.
7699
7700
7701
7702# Build tools.
7703
7704
7705
1576798e
PB
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
be01d343
PB
7719# Generate default definitions for YACC, M4, LEX and other programs that run
7720# on the build machine. These are used if the Makefile can't locate these
7721# programs in objdir.
7722MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7723
7724for ac_prog in 'bison -y' byacc yacc
7725do
c6b750e1 7726 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7727set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7730if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 7731 $as_echo_n "(cached) " >&6
be01d343
PB
7732else
7733 if test -n "$YACC"; then
7734 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7735else
c6b750e1
DJ
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
81ecdfbb 7741 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7743 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7745 break 2
7746 fi
7747done
81ecdfbb
RW
7748 done
7749IFS=$as_save_IFS
c6b750e1 7750
be01d343
PB
7751fi
7752fi
c6b750e1 7753YACC=$ac_cv_prog_YACC
be01d343 7754if test -n "$YACC"; then
81ecdfbb
RW
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7756$as_echo "$YACC" >&6; }
be01d343 7757else
81ecdfbb
RW
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759$as_echo "no" >&6; }
be01d343
PB
7760fi
7761
81ecdfbb 7762
c6b750e1 7763 test -n "$YACC" && break
be01d343
PB
7764done
7765test -n "$YACC" || YACC="$MISSING bison -y"
7766
7767case " $build_configdirs " in
7768 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7769esac
7770
7771for ac_prog in bison
7772do
c6b750e1 7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7774set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7777if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 7778 $as_echo_n "(cached) " >&6
be01d343
PB
7779else
7780 if test -n "$BISON"; then
7781 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7782else
c6b750e1
DJ
7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $PATH
7785do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
81ecdfbb 7788 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7790 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7792 break 2
7793 fi
7794done
81ecdfbb
RW
7795 done
7796IFS=$as_save_IFS
c6b750e1 7797
be01d343
PB
7798fi
7799fi
c6b750e1 7800BISON=$ac_cv_prog_BISON
be01d343 7801if test -n "$BISON"; then
81ecdfbb
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7803$as_echo "$BISON" >&6; }
be01d343 7804else
81ecdfbb
RW
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
be01d343
PB
7807fi
7808
81ecdfbb 7809
c6b750e1 7810 test -n "$BISON" && break
be01d343
PB
7811done
7812test -n "$BISON" || BISON="$MISSING bison"
7813
7814case " $build_configdirs " in
7815 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7816esac
7817
7818for ac_prog in gm4 gnum4 m4
7819do
c6b750e1 7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7821set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7824if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 7825 $as_echo_n "(cached) " >&6
be01d343
PB
7826else
7827 if test -n "$M4"; then
7828 ac_cv_prog_M4="$M4" # Let the user override the test.
7829else
c6b750e1
DJ
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
81ecdfbb 7835 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7837 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7839 break 2
7840 fi
7841done
81ecdfbb
RW
7842 done
7843IFS=$as_save_IFS
c6b750e1 7844
be01d343
PB
7845fi
7846fi
c6b750e1 7847M4=$ac_cv_prog_M4
be01d343 7848if test -n "$M4"; then
81ecdfbb
RW
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7850$as_echo "$M4" >&6; }
be01d343 7851else
81ecdfbb
RW
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853$as_echo "no" >&6; }
be01d343
PB
7854fi
7855
81ecdfbb 7856
c6b750e1 7857 test -n "$M4" && break
be01d343
PB
7858done
7859test -n "$M4" || M4="$MISSING m4"
7860
7861case " $build_configdirs " in
7862 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7863esac
7864
7865for ac_prog in flex lex
7866do
c6b750e1 7867 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7868set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7871if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 7872 $as_echo_n "(cached) " >&6
be01d343
PB
7873else
7874 if test -n "$LEX"; then
7875 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7876else
c6b750e1
DJ
7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
81ecdfbb 7882 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7884 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7886 break 2
7887 fi
7888done
81ecdfbb
RW
7889 done
7890IFS=$as_save_IFS
c6b750e1 7891
be01d343
PB
7892fi
7893fi
c6b750e1 7894LEX=$ac_cv_prog_LEX
be01d343 7895if test -n "$LEX"; then
81ecdfbb
RW
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7897$as_echo "$LEX" >&6; }
be01d343 7898else
81ecdfbb
RW
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900$as_echo "no" >&6; }
be01d343
PB
7901fi
7902
81ecdfbb 7903
c6b750e1 7904 test -n "$LEX" && break
be01d343
PB
7905done
7906test -n "$LEX" || LEX="$MISSING flex"
7907
7908case " $build_configdirs " in
7909 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7910 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7911esac
7912
7913for ac_prog in flex
7914do
c6b750e1 7915 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7916set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7919if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 7920 $as_echo_n "(cached) " >&6
be01d343
PB
7921else
7922 if test -n "$FLEX"; then
7923 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7924else
c6b750e1
DJ
7925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926for as_dir in $PATH
7927do
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
81ecdfbb 7930 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7932 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7934 break 2
7935 fi
7936done
81ecdfbb
RW
7937 done
7938IFS=$as_save_IFS
c6b750e1 7939
be01d343
PB
7940fi
7941fi
c6b750e1 7942FLEX=$ac_cv_prog_FLEX
be01d343 7943if test -n "$FLEX"; then
81ecdfbb
RW
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7945$as_echo "$FLEX" >&6; }
be01d343 7946else
81ecdfbb
RW
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948$as_echo "no" >&6; }
be01d343
PB
7949fi
7950
81ecdfbb 7951
c6b750e1 7952 test -n "$FLEX" && break
be01d343
PB
7953done
7954test -n "$FLEX" || FLEX="$MISSING flex"
7955
7956case " $build_configdirs " in
7957 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7958esac
7959
7960for ac_prog in makeinfo
7961do
c6b750e1 7962 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7963set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7966if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 7967 $as_echo_n "(cached) " >&6
be01d343
PB
7968else
7969 if test -n "$MAKEINFO"; then
7970 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7971else
c6b750e1
DJ
7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973for as_dir in $PATH
7974do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
81ecdfbb 7977 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 7979 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7981 break 2
7982 fi
7983done
81ecdfbb
RW
7984 done
7985IFS=$as_save_IFS
c6b750e1 7986
be01d343
PB
7987fi
7988fi
c6b750e1 7989MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7990if test -n "$MAKEINFO"; then
81ecdfbb
RW
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7992$as_echo "$MAKEINFO" >&6; }
be01d343 7993else
81ecdfbb
RW
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }
be01d343
PB
7996fi
7997
81ecdfbb 7998
c6b750e1 7999 test -n "$MAKEINFO" && break
be01d343
PB
8000done
8001test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8002
8003case " $build_configdirs " in
8004 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8005 *)
8006
10ad8ef3 8007 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8008 # higher, else we use the "missing" dummy.
8009 if ${MAKEINFO} --version \
10ad8ef3 8010 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8011 :
8012 else
8013 MAKEINFO="$MISSING makeinfo"
8014 fi
8015 ;;
8016
8017esac
a0da8069 8018
be01d343 8019# FIXME: expect and dejagnu may become build tools?
a0da8069 8020
be01d343
PB
8021for ac_prog in expect
8022do
c6b750e1 8023 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8024set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8027if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 8028 $as_echo_n "(cached) " >&6
be01d343
PB
8029else
8030 if test -n "$EXPECT"; then
8031 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8032else
c6b750e1
DJ
8033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034for as_dir in $PATH
8035do
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
81ecdfbb 8038 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8040 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8042 break 2
8043 fi
8044done
81ecdfbb
RW
8045 done
8046IFS=$as_save_IFS
c6b750e1 8047
be01d343
PB
8048fi
8049fi
c6b750e1 8050EXPECT=$ac_cv_prog_EXPECT
be01d343 8051if test -n "$EXPECT"; then
81ecdfbb
RW
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8053$as_echo "$EXPECT" >&6; }
be01d343 8054else
81ecdfbb
RW
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056$as_echo "no" >&6; }
be01d343 8057fi
a0da8069 8058
81ecdfbb 8059
c6b750e1 8060 test -n "$EXPECT" && break
be01d343
PB
8061done
8062test -n "$EXPECT" || EXPECT="expect"
a0da8069 8063
be01d343
PB
8064case " $configdirs " in
8065 *" expect "*)
8066 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8067 ;;
8068esac
a0da8069 8069
be01d343
PB
8070for ac_prog in runtest
8071do
c6b750e1 8072 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8073set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8076if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 8077 $as_echo_n "(cached) " >&6
be01d343
PB
8078else
8079 if test -n "$RUNTEST"; then
8080 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8081else
c6b750e1
DJ
8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
81ecdfbb 8087 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8089 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8091 break 2
8092 fi
8093done
81ecdfbb
RW
8094 done
8095IFS=$as_save_IFS
c6b750e1 8096
be01d343
PB
8097fi
8098fi
c6b750e1 8099RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8100if test -n "$RUNTEST"; then
81ecdfbb
RW
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8102$as_echo "$RUNTEST" >&6; }
be01d343 8103else
81ecdfbb
RW
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105$as_echo "no" >&6; }
be01d343 8106fi
a0da8069 8107
81ecdfbb 8108
c6b750e1 8109 test -n "$RUNTEST" && break
be01d343
PB
8110done
8111test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8112
be01d343
PB
8113case " $configdirs " in
8114 *" dejagnu "*)
6b89cc21 8115 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8116 ;;
8117esac
a0da8069
NN
8118
8119
a0da8069 8120# Host tools.
859789af
AC
8121ncn_tool_prefix=
8122test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8123ncn_target_tool_prefix=
8124test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8125
9a819804
AO
8126
8127
8128if test -n "$AR"; then
8129 ac_cv_prog_AR=$AR
8130elif test -n "$ac_cv_prog_AR"; then
8131 AR=$ac_cv_prog_AR
8132fi
8133
8134if test -n "$ac_cv_prog_AR"; then
8135 for ncn_progname in ar; do
8136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8137set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8140if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8141 $as_echo_n "(cached) " >&6
9a819804
AO
8142else
8143 if test -n "$AR"; then
8144 ac_cv_prog_AR="$AR" # Let the user override the test.
8145else
8146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
81ecdfbb 8151 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8153 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8155 break 2
8156 fi
8157done
81ecdfbb
RW
8158 done
8159IFS=$as_save_IFS
9a819804
AO
8160
8161fi
8162fi
8163AR=$ac_cv_prog_AR
8164if test -n "$AR"; then
81ecdfbb
RW
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8166$as_echo "$AR" >&6; }
9a819804 8167else
81ecdfbb
RW
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169$as_echo "no" >&6; }
9a819804
AO
8170fi
8171
81ecdfbb 8172
9a819804
AO
8173 done
8174fi
8175
8176for ncn_progname in ar; do
05cbd757
PB
8177 if test -n "$ncn_tool_prefix"; then
8178 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8179set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8182if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8183 $as_echo_n "(cached) " >&6
859789af
AC
8184else
8185 if test -n "$AR"; then
8186 ac_cv_prog_AR="$AR" # Let the user override the test.
8187else
c6b750e1
DJ
8188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
81ecdfbb 8193 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8195 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8197 break 2
8198 fi
8199done
81ecdfbb
RW
8200 done
8201IFS=$as_save_IFS
c6b750e1 8202
859789af
AC
8203fi
8204fi
c6b750e1 8205AR=$ac_cv_prog_AR
859789af 8206if test -n "$AR"; then
81ecdfbb
RW
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8208$as_echo "$AR" >&6; }
859789af 8209else
81ecdfbb
RW
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211$as_echo "no" >&6; }
859789af
AC
8212fi
8213
81ecdfbb 8214
05cbd757
PB
8215 fi
8216 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8218set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8221if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 8222 $as_echo_n "(cached) " >&6
859789af 8223else
05cbd757
PB
8224 if test -n "$AR"; then
8225 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8226else
c6b750e1
DJ
8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
81ecdfbb 8232 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8234 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8236 break 2
8237 fi
8238done
81ecdfbb
RW
8239 done
8240IFS=$as_save_IFS
c6b750e1 8241
859789af
AC
8242fi
8243fi
c6b750e1 8244AR=$ac_cv_prog_AR
05cbd757 8245if test -n "$AR"; then
81ecdfbb
RW
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8247$as_echo "$AR" >&6; }
859789af 8248else
81ecdfbb
RW
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250$as_echo "no" >&6; }
859789af 8251fi
c6b750e1 8252
81ecdfbb 8253
05cbd757
PB
8254 fi
8255 test -n "$ac_cv_prog_AR" && break
8256done
8257
8258if test -z "$ac_cv_prog_AR" ; then
8259 set dummy ar
8260 if test $build = $host ; then
8261 AR="$2"
859789af 8262 else
05cbd757 8263 AR="${ncn_tool_prefix}$2"
859789af 8264 fi
859789af
AC
8265fi
8266
9a819804
AO
8267
8268
8269if test -n "$AS"; then
8270 ac_cv_prog_AS=$AS
8271elif test -n "$ac_cv_prog_AS"; then
8272 AS=$ac_cv_prog_AS
8273fi
8274
8275if test -n "$ac_cv_prog_AS"; then
8276 for ncn_progname in as; do
8277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8278set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8281if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8282 $as_echo_n "(cached) " >&6
9a819804
AO
8283else
8284 if test -n "$AS"; then
8285 ac_cv_prog_AS="$AS" # Let the user override the test.
8286else
8287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288for as_dir in $PATH
8289do
8290 IFS=$as_save_IFS
8291 test -z "$as_dir" && as_dir=.
81ecdfbb 8292 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8294 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8296 break 2
8297 fi
8298done
81ecdfbb
RW
8299 done
8300IFS=$as_save_IFS
9a819804
AO
8301
8302fi
8303fi
8304AS=$ac_cv_prog_AS
8305if test -n "$AS"; then
81ecdfbb
RW
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8307$as_echo "$AS" >&6; }
9a819804 8308else
81ecdfbb
RW
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310$as_echo "no" >&6; }
9a819804
AO
8311fi
8312
81ecdfbb 8313
9a819804
AO
8314 done
8315fi
8316
8317for ncn_progname in as; do
05cbd757
PB
8318 if test -n "$ncn_tool_prefix"; then
8319 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8320set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8323if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8324 $as_echo_n "(cached) " >&6
859789af
AC
8325else
8326 if test -n "$AS"; then
8327 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8328else
8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
81ecdfbb 8334 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8336 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8338 break 2
8339 fi
8340done
81ecdfbb
RW
8341 done
8342IFS=$as_save_IFS
c6b750e1 8343
859789af
AC
8344fi
8345fi
c6b750e1 8346AS=$ac_cv_prog_AS
859789af 8347if test -n "$AS"; then
81ecdfbb
RW
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8349$as_echo "$AS" >&6; }
859789af 8350else
81ecdfbb
RW
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352$as_echo "no" >&6; }
859789af
AC
8353fi
8354
81ecdfbb 8355
05cbd757
PB
8356 fi
8357 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8359set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8362if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 8363 $as_echo_n "(cached) " >&6
859789af 8364else
05cbd757
PB
8365 if test -n "$AS"; then
8366 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8367else
c6b750e1
DJ
8368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369for as_dir in $PATH
8370do
8371 IFS=$as_save_IFS
8372 test -z "$as_dir" && as_dir=.
81ecdfbb 8373 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8375 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8377 break 2
8378 fi
8379done
81ecdfbb
RW
8380 done
8381IFS=$as_save_IFS
c6b750e1 8382
859789af
AC
8383fi
8384fi
c6b750e1 8385AS=$ac_cv_prog_AS
05cbd757 8386if test -n "$AS"; then
81ecdfbb
RW
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8388$as_echo "$AS" >&6; }
859789af 8389else
81ecdfbb
RW
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391$as_echo "no" >&6; }
859789af 8392fi
c6b750e1 8393
81ecdfbb 8394
05cbd757
PB
8395 fi
8396 test -n "$ac_cv_prog_AS" && break
8397done
8398
8399if test -z "$ac_cv_prog_AS" ; then
8400 set dummy as
8401 if test $build = $host ; then
8402 AS="$2"
859789af 8403 else
05cbd757 8404 AS="${ncn_tool_prefix}$2"
859789af 8405 fi
859789af
AC
8406fi
8407
9a819804
AO
8408
8409
8410if test -n "$DLLTOOL"; then
8411 ac_cv_prog_DLLTOOL=$DLLTOOL
8412elif test -n "$ac_cv_prog_DLLTOOL"; then
8413 DLLTOOL=$ac_cv_prog_DLLTOOL
8414fi
8415
8416if test -n "$ac_cv_prog_DLLTOOL"; then
8417 for ncn_progname in dlltool; do
8418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8419set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8422if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8423 $as_echo_n "(cached) " >&6
9a819804
AO
8424else
8425 if test -n "$DLLTOOL"; then
8426 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8427else
8428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429for as_dir in $PATH
8430do
8431 IFS=$as_save_IFS
8432 test -z "$as_dir" && as_dir=.
81ecdfbb 8433 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8435 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8437 break 2
8438 fi
8439done
81ecdfbb
RW
8440 done
8441IFS=$as_save_IFS
9a819804
AO
8442
8443fi
8444fi
8445DLLTOOL=$ac_cv_prog_DLLTOOL
8446if test -n "$DLLTOOL"; then
81ecdfbb
RW
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8448$as_echo "$DLLTOOL" >&6; }
9a819804 8449else
81ecdfbb
RW
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451$as_echo "no" >&6; }
9a819804
AO
8452fi
8453
81ecdfbb 8454
9a819804
AO
8455 done
8456fi
8457
8458for ncn_progname in dlltool; do
05cbd757
PB
8459 if test -n "$ncn_tool_prefix"; then
8460 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8461set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8464if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8465 $as_echo_n "(cached) " >&6
859789af
AC
8466else
8467 if test -n "$DLLTOOL"; then
8468 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8469else
c6b750e1
DJ
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
81ecdfbb 8475 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8477 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8479 break 2
8480 fi
8481done
81ecdfbb
RW
8482 done
8483IFS=$as_save_IFS
c6b750e1 8484
859789af
AC
8485fi
8486fi
c6b750e1 8487DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8488if test -n "$DLLTOOL"; then
81ecdfbb
RW
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8490$as_echo "$DLLTOOL" >&6; }
859789af 8491else
81ecdfbb
RW
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
859789af
AC
8494fi
8495
81ecdfbb 8496
05cbd757
PB
8497 fi
8498 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8500set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8503if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 8504 $as_echo_n "(cached) " >&6
859789af 8505else
05cbd757
PB
8506 if test -n "$DLLTOOL"; then
8507 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8508else
c6b750e1
DJ
8509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510for as_dir in $PATH
8511do
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
81ecdfbb 8514 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8516 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8518 break 2
8519 fi
8520done
81ecdfbb
RW
8521 done
8522IFS=$as_save_IFS
c6b750e1 8523
859789af
AC
8524fi
8525fi
c6b750e1 8526DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8527if test -n "$DLLTOOL"; then
81ecdfbb
RW
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8529$as_echo "$DLLTOOL" >&6; }
859789af 8530else
81ecdfbb
RW
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532$as_echo "no" >&6; }
859789af 8533fi
c6b750e1 8534
81ecdfbb 8535
05cbd757
PB
8536 fi
8537 test -n "$ac_cv_prog_DLLTOOL" && break
8538done
8539
8540if test -z "$ac_cv_prog_DLLTOOL" ; then
8541 set dummy dlltool
8542 if test $build = $host ; then
8543 DLLTOOL="$2"
859789af 8544 else
05cbd757 8545 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8546 fi
859789af
AC
8547fi
8548
9a819804
AO
8549
8550
8551if test -n "$LD"; then
8552 ac_cv_prog_LD=$LD
8553elif test -n "$ac_cv_prog_LD"; then
8554 LD=$ac_cv_prog_LD
8555fi
8556
8557if test -n "$ac_cv_prog_LD"; then
8558 for ncn_progname in ld; do
8559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8560set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8563if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8564 $as_echo_n "(cached) " >&6
9a819804
AO
8565else
8566 if test -n "$LD"; then
8567 ac_cv_prog_LD="$LD" # Let the user override the test.
8568else
8569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570for as_dir in $PATH
8571do
8572 IFS=$as_save_IFS
8573 test -z "$as_dir" && as_dir=.
81ecdfbb 8574 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8576 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8578 break 2
8579 fi
8580done
81ecdfbb
RW
8581 done
8582IFS=$as_save_IFS
9a819804
AO
8583
8584fi
8585fi
8586LD=$ac_cv_prog_LD
8587if test -n "$LD"; then
81ecdfbb
RW
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8589$as_echo "$LD" >&6; }
9a819804 8590else
81ecdfbb
RW
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592$as_echo "no" >&6; }
9a819804
AO
8593fi
8594
81ecdfbb 8595
9a819804
AO
8596 done
8597fi
8598
8599for ncn_progname in ld; do
05cbd757
PB
8600 if test -n "$ncn_tool_prefix"; then
8601 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8602set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8605if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8606 $as_echo_n "(cached) " >&6
859789af
AC
8607else
8608 if test -n "$LD"; then
8609 ac_cv_prog_LD="$LD" # Let the user override the test.
8610else
c6b750e1
DJ
8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
81ecdfbb 8616 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8618 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8620 break 2
8621 fi
8622done
81ecdfbb
RW
8623 done
8624IFS=$as_save_IFS
c6b750e1 8625
859789af
AC
8626fi
8627fi
c6b750e1 8628LD=$ac_cv_prog_LD
859789af 8629if test -n "$LD"; then
81ecdfbb
RW
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8631$as_echo "$LD" >&6; }
859789af 8632else
81ecdfbb
RW
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634$as_echo "no" >&6; }
859789af
AC
8635fi
8636
81ecdfbb 8637
05cbd757
PB
8638 fi
8639 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8641set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8644if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 8645 $as_echo_n "(cached) " >&6
859789af 8646else
05cbd757
PB
8647 if test -n "$LD"; then
8648 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8649else
c6b750e1
DJ
8650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651for as_dir in $PATH
8652do
8653 IFS=$as_save_IFS
8654 test -z "$as_dir" && as_dir=.
81ecdfbb 8655 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8657 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8659 break 2
8660 fi
8661done
81ecdfbb
RW
8662 done
8663IFS=$as_save_IFS
c6b750e1 8664
859789af
AC
8665fi
8666fi
c6b750e1 8667LD=$ac_cv_prog_LD
05cbd757 8668if test -n "$LD"; then
81ecdfbb
RW
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8670$as_echo "$LD" >&6; }
859789af 8671else
81ecdfbb
RW
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673$as_echo "no" >&6; }
859789af 8674fi
c6b750e1 8675
81ecdfbb 8676
05cbd757
PB
8677 fi
8678 test -n "$ac_cv_prog_LD" && break
8679done
8680
8681if test -z "$ac_cv_prog_LD" ; then
8682 set dummy ld
8683 if test $build = $host ; then
8684 LD="$2"
859789af 8685 else
05cbd757 8686 LD="${ncn_tool_prefix}$2"
859789af 8687 fi
859789af
AC
8688fi
8689
9a819804
AO
8690
8691
8692if test -n "$LIPO"; then
8693 ac_cv_prog_LIPO=$LIPO
8694elif test -n "$ac_cv_prog_LIPO"; then
8695 LIPO=$ac_cv_prog_LIPO
8696fi
8697
8698if test -n "$ac_cv_prog_LIPO"; then
8699 for ncn_progname in lipo; do
8700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8701set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8703$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8704if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8705 $as_echo_n "(cached) " >&6
9a819804
AO
8706else
8707 if test -n "$LIPO"; then
8708 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8709else
8710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711for as_dir in $PATH
8712do
8713 IFS=$as_save_IFS
8714 test -z "$as_dir" && as_dir=.
81ecdfbb 8715 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8717 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8719 break 2
8720 fi
8721done
81ecdfbb
RW
8722 done
8723IFS=$as_save_IFS
9a819804
AO
8724
8725fi
8726fi
8727LIPO=$ac_cv_prog_LIPO
8728if test -n "$LIPO"; then
81ecdfbb
RW
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8730$as_echo "$LIPO" >&6; }
9a819804 8731else
81ecdfbb
RW
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733$as_echo "no" >&6; }
9a819804
AO
8734fi
8735
81ecdfbb 8736
9a819804
AO
8737 done
8738fi
8739
8740for ncn_progname in lipo; do
be01d343
PB
8741 if test -n "$ncn_tool_prefix"; then
8742 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8743set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8746if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8747 $as_echo_n "(cached) " >&6
be01d343
PB
8748else
8749 if test -n "$LIPO"; then
8750 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8751else
c6b750e1
DJ
8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
81ecdfbb 8757 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8759 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8761 break 2
8762 fi
8763done
81ecdfbb
RW
8764 done
8765IFS=$as_save_IFS
c6b750e1 8766
be01d343
PB
8767fi
8768fi
c6b750e1 8769LIPO=$ac_cv_prog_LIPO
be01d343 8770if test -n "$LIPO"; then
81ecdfbb
RW
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8772$as_echo "$LIPO" >&6; }
be01d343 8773else
81ecdfbb
RW
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775$as_echo "no" >&6; }
be01d343
PB
8776fi
8777
81ecdfbb 8778
be01d343
PB
8779 fi
8780 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8782set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8785if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8786 $as_echo_n "(cached) " >&6
be01d343
PB
8787else
8788 if test -n "$LIPO"; then
8789 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8790else
c6b750e1
DJ
8791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792for as_dir in $PATH
8793do
8794 IFS=$as_save_IFS
8795 test -z "$as_dir" && as_dir=.
81ecdfbb 8796 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 8798 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8800 break 2
8801 fi
8802done
81ecdfbb
RW
8803 done
8804IFS=$as_save_IFS
c6b750e1 8805
be01d343
PB
8806fi
8807fi
c6b750e1 8808LIPO=$ac_cv_prog_LIPO
be01d343 8809if test -n "$LIPO"; then
81ecdfbb
RW
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8811$as_echo "$LIPO" >&6; }
be01d343 8812else
81ecdfbb
RW
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814$as_echo "no" >&6; }
be01d343 8815fi
c6b750e1 8816
81ecdfbb 8817
be01d343
PB
8818 fi
8819 test -n "$ac_cv_prog_LIPO" && break
8820done
8821
8822if test -z "$ac_cv_prog_LIPO" ; then
8823 set dummy lipo
8824 if test $build = $host ; then
8825 LIPO="$2"
8826 else
8827 LIPO="${ncn_tool_prefix}$2"
8828 fi
8829fi
8830
9a819804
AO
8831
8832
8833if test -n "$NM"; then
8834 ac_cv_prog_NM=$NM
8835elif test -n "$ac_cv_prog_NM"; then
8836 NM=$ac_cv_prog_NM
8837fi
8838
8839if test -n "$ac_cv_prog_NM"; then
8840 for ncn_progname in nm; do
8841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8842set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8845if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8846 $as_echo_n "(cached) " >&6
859789af
AC
8847else
8848 if test -n "$NM"; then
8849 ac_cv_prog_NM="$NM" # Let the user override the test.
8850else
c6b750e1
DJ
8851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852for as_dir in $PATH
8853do
8854 IFS=$as_save_IFS
8855 test -z "$as_dir" && as_dir=.
81ecdfbb 8856 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8858 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8860 break 2
8861 fi
8862done
81ecdfbb
RW
8863 done
8864IFS=$as_save_IFS
c6b750e1 8865
859789af
AC
8866fi
8867fi
c6b750e1 8868NM=$ac_cv_prog_NM
859789af 8869if test -n "$NM"; then
81ecdfbb
RW
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8871$as_echo "$NM" >&6; }
859789af 8872else
81ecdfbb
RW
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874$as_echo "no" >&6; }
859789af
AC
8875fi
8876
81ecdfbb 8877
9a819804
AO
8878 done
8879fi
8880
8881for ncn_progname in nm; do
8882 if test -n "$ncn_tool_prefix"; then
8883 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8884set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8887if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8888 $as_echo_n "(cached) " >&6
859789af 8889else
05cbd757
PB
8890 if test -n "$NM"; then
8891 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8892else
c6b750e1
DJ
8893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894for as_dir in $PATH
8895do
8896 IFS=$as_save_IFS
8897 test -z "$as_dir" && as_dir=.
81ecdfbb 8898 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8900 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8902 break 2
8903 fi
8904done
81ecdfbb
RW
8905 done
8906IFS=$as_save_IFS
c6b750e1 8907
859789af
AC
8908fi
8909fi
c6b750e1 8910NM=$ac_cv_prog_NM
05cbd757 8911if test -n "$NM"; then
81ecdfbb
RW
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8913$as_echo "$NM" >&6; }
859789af 8914else
81ecdfbb
RW
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916$as_echo "no" >&6; }
859789af 8917fi
c6b750e1 8918
81ecdfbb 8919
05cbd757 8920 fi
9a819804
AO
8921 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8923set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8925$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8926if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 8927 $as_echo_n "(cached) " >&6
9a819804
AO
8928else
8929 if test -n "$NM"; then
8930 ac_cv_prog_NM="$NM" # Let the user override the test.
8931else
8932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933for as_dir in $PATH
8934do
8935 IFS=$as_save_IFS
8936 test -z "$as_dir" && as_dir=.
81ecdfbb 8937 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8939 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8941 break 2
8942 fi
8943done
81ecdfbb
RW
8944 done
8945IFS=$as_save_IFS
9a819804
AO
8946
8947fi
8948fi
8949NM=$ac_cv_prog_NM
8950if test -n "$NM"; then
81ecdfbb
RW
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8952$as_echo "$NM" >&6; }
9a819804 8953else
81ecdfbb
RW
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955$as_echo "no" >&6; }
9a819804
AO
8956fi
8957
81ecdfbb 8958
9a819804
AO
8959 fi
8960 test -n "$ac_cv_prog_NM" && break
8961done
8962
8963if test -z "$ac_cv_prog_NM" ; then
8964 set dummy nm
8965 if test $build = $host ; then
8966 NM="$2"
8967 else
8968 NM="${ncn_tool_prefix}$2"
8969 fi
8970fi
8971
8972
8973
8974if test -n "$RANLIB"; then
8975 ac_cv_prog_RANLIB=$RANLIB
8976elif test -n "$ac_cv_prog_RANLIB"; then
8977 RANLIB=$ac_cv_prog_RANLIB
8978fi
8979
8980if test -n "$ac_cv_prog_RANLIB"; then
8981 for ncn_progname in ranlib; do
8982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8983set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8986if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 8987 $as_echo_n "(cached) " >&6
9a819804
AO
8988else
8989 if test -n "$RANLIB"; then
8990 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8991else
8992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993for as_dir in $PATH
8994do
8995 IFS=$as_save_IFS
8996 test -z "$as_dir" && as_dir=.
81ecdfbb 8997 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8999 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9001 break 2
9002 fi
9003done
81ecdfbb
RW
9004 done
9005IFS=$as_save_IFS
9a819804
AO
9006
9007fi
9008fi
9009RANLIB=$ac_cv_prog_RANLIB
9010if test -n "$RANLIB"; then
81ecdfbb
RW
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9012$as_echo "$RANLIB" >&6; }
9a819804 9013else
81ecdfbb
RW
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015$as_echo "no" >&6; }
9a819804
AO
9016fi
9017
81ecdfbb 9018
9a819804
AO
9019 done
9020fi
859789af 9021
9a819804 9022for ncn_progname in ranlib; do
05cbd757
PB
9023 if test -n "$ncn_tool_prefix"; then
9024 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9025set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9027$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9028if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9029 $as_echo_n "(cached) " >&6
859789af
AC
9030else
9031 if test -n "$RANLIB"; then
9032 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9033else
c6b750e1
DJ
9034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035for as_dir in $PATH
9036do
9037 IFS=$as_save_IFS
9038 test -z "$as_dir" && as_dir=.
81ecdfbb 9039 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9041 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9043 break 2
9044 fi
9045done
81ecdfbb
RW
9046 done
9047IFS=$as_save_IFS
c6b750e1 9048
859789af
AC
9049fi
9050fi
c6b750e1 9051RANLIB=$ac_cv_prog_RANLIB
859789af 9052if test -n "$RANLIB"; then
81ecdfbb
RW
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9054$as_echo "$RANLIB" >&6; }
859789af 9055else
81ecdfbb
RW
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057$as_echo "no" >&6; }
859789af
AC
9058fi
9059
81ecdfbb 9060
05cbd757
PB
9061 fi
9062 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9064set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9066$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9067if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 9068 $as_echo_n "(cached) " >&6
859789af 9069else
05cbd757
PB
9070 if test -n "$RANLIB"; then
9071 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9072else
c6b750e1
DJ
9073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074for as_dir in $PATH
9075do
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
81ecdfbb 9078 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9080 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9082 break 2
9083 fi
9084done
81ecdfbb
RW
9085 done
9086IFS=$as_save_IFS
c6b750e1 9087
859789af
AC
9088fi
9089fi
c6b750e1 9090RANLIB=$ac_cv_prog_RANLIB
05cbd757 9091if test -n "$RANLIB"; then
81ecdfbb
RW
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9093$as_echo "$RANLIB" >&6; }
859789af 9094else
81ecdfbb
RW
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096$as_echo "no" >&6; }
859789af 9097fi
c6b750e1 9098
81ecdfbb 9099
859789af 9100 fi
05cbd757
PB
9101 test -n "$ac_cv_prog_RANLIB" && break
9102done
9103
9104if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9105 RANLIB="true"
859789af
AC
9106fi
9107
9a819804
AO
9108
9109
9110if test -n "$STRIP"; then
9111 ac_cv_prog_STRIP=$STRIP
9112elif test -n "$ac_cv_prog_STRIP"; then
9113 STRIP=$ac_cv_prog_STRIP
9114fi
9115
9116if test -n "$ac_cv_prog_STRIP"; then
9117 for ncn_progname in strip; do
9118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9119set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9122if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9123 $as_echo_n "(cached) " >&6
9a819804
AO
9124else
9125 if test -n "$STRIP"; then
9126 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9127else
9128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129for as_dir in $PATH
9130do
9131 IFS=$as_save_IFS
9132 test -z "$as_dir" && as_dir=.
81ecdfbb 9133 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9135 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9137 break 2
9138 fi
9139done
81ecdfbb
RW
9140 done
9141IFS=$as_save_IFS
9a819804
AO
9142
9143fi
9144fi
9145STRIP=$ac_cv_prog_STRIP
9146if test -n "$STRIP"; then
81ecdfbb
RW
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9148$as_echo "$STRIP" >&6; }
9a819804 9149else
81ecdfbb
RW
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151$as_echo "no" >&6; }
9a819804
AO
9152fi
9153
81ecdfbb 9154
9a819804
AO
9155 done
9156fi
9157
9158for ncn_progname in strip; do
be01d343
PB
9159 if test -n "$ncn_tool_prefix"; then
9160 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9161set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9164if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9165 $as_echo_n "(cached) " >&6
be01d343
PB
9166else
9167 if test -n "$STRIP"; then
9168 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9169else
c6b750e1
DJ
9170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171for as_dir in $PATH
9172do
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
81ecdfbb 9175 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9177 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9179 break 2
9180 fi
9181done
81ecdfbb
RW
9182 done
9183IFS=$as_save_IFS
c6b750e1 9184
be01d343
PB
9185fi
9186fi
c6b750e1 9187STRIP=$ac_cv_prog_STRIP
be01d343 9188if test -n "$STRIP"; then
81ecdfbb
RW
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9190$as_echo "$STRIP" >&6; }
be01d343 9191else
81ecdfbb
RW
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193$as_echo "no" >&6; }
be01d343
PB
9194fi
9195
81ecdfbb 9196
be01d343
PB
9197 fi
9198 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9200set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9203if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 9204 $as_echo_n "(cached) " >&6
be01d343
PB
9205else
9206 if test -n "$STRIP"; then
9207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9208else
c6b750e1
DJ
9209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210for as_dir in $PATH
9211do
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
81ecdfbb 9214 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9216 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9218 break 2
9219 fi
9220done
81ecdfbb
RW
9221 done
9222IFS=$as_save_IFS
c6b750e1 9223
be01d343
PB
9224fi
9225fi
c6b750e1 9226STRIP=$ac_cv_prog_STRIP
be01d343 9227if test -n "$STRIP"; then
81ecdfbb
RW
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9229$as_echo "$STRIP" >&6; }
be01d343 9230else
81ecdfbb
RW
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232$as_echo "no" >&6; }
be01d343 9233fi
c6b750e1 9234
81ecdfbb 9235
be01d343
PB
9236 fi
9237 test -n "$ac_cv_prog_STRIP" && break
9238done
9239
9240if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9241 STRIP="true"
be01d343
PB
9242fi
9243
9a819804
AO
9244
9245
9246if test -n "$WINDRES"; then
9247 ac_cv_prog_WINDRES=$WINDRES
9248elif test -n "$ac_cv_prog_WINDRES"; then
9249 WINDRES=$ac_cv_prog_WINDRES
9250fi
9251
9252if test -n "$ac_cv_prog_WINDRES"; then
9253 for ncn_progname in windres; do
9254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9255set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9257$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9258if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9259 $as_echo_n "(cached) " >&6
9a819804
AO
9260else
9261 if test -n "$WINDRES"; then
9262 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9263else
9264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265for as_dir in $PATH
9266do
9267 IFS=$as_save_IFS
9268 test -z "$as_dir" && as_dir=.
81ecdfbb 9269 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9271 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9273 break 2
9274 fi
9275done
81ecdfbb
RW
9276 done
9277IFS=$as_save_IFS
9a819804
AO
9278
9279fi
9280fi
9281WINDRES=$ac_cv_prog_WINDRES
9282if test -n "$WINDRES"; then
81ecdfbb
RW
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9284$as_echo "$WINDRES" >&6; }
9a819804 9285else
81ecdfbb
RW
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9287$as_echo "no" >&6; }
9a819804
AO
9288fi
9289
81ecdfbb 9290
9a819804
AO
9291 done
9292fi
9293
9294for ncn_progname in windres; do
05cbd757
PB
9295 if test -n "$ncn_tool_prefix"; then
9296 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9297set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9300if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9301 $as_echo_n "(cached) " >&6
859789af
AC
9302else
9303 if test -n "$WINDRES"; then
9304 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9305else
c6b750e1
DJ
9306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307for as_dir in $PATH
9308do
9309 IFS=$as_save_IFS
9310 test -z "$as_dir" && as_dir=.
81ecdfbb 9311 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9313 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9315 break 2
9316 fi
9317done
81ecdfbb
RW
9318 done
9319IFS=$as_save_IFS
c6b750e1 9320
859789af
AC
9321fi
9322fi
c6b750e1 9323WINDRES=$ac_cv_prog_WINDRES
859789af 9324if test -n "$WINDRES"; then
81ecdfbb
RW
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9326$as_echo "$WINDRES" >&6; }
859789af 9327else
81ecdfbb
RW
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329$as_echo "no" >&6; }
859789af
AC
9330fi
9331
81ecdfbb 9332
05cbd757
PB
9333 fi
9334 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9336set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9338$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9339if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 9340 $as_echo_n "(cached) " >&6
859789af 9341else
05cbd757
PB
9342 if test -n "$WINDRES"; then
9343 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9344else
c6b750e1
DJ
9345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346for as_dir in $PATH
9347do
9348 IFS=$as_save_IFS
9349 test -z "$as_dir" && as_dir=.
81ecdfbb 9350 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9352 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9354 break 2
9355 fi
9356done
81ecdfbb
RW
9357 done
9358IFS=$as_save_IFS
c6b750e1 9359
859789af
AC
9360fi
9361fi
c6b750e1 9362WINDRES=$ac_cv_prog_WINDRES
05cbd757 9363if test -n "$WINDRES"; then
81ecdfbb
RW
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9365$as_echo "$WINDRES" >&6; }
859789af 9366else
81ecdfbb
RW
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368$as_echo "no" >&6; }
859789af 9369fi
c6b750e1 9370
81ecdfbb 9371
05cbd757
PB
9372 fi
9373 test -n "$ac_cv_prog_WINDRES" && break
9374done
9375
9376if test -z "$ac_cv_prog_WINDRES" ; then
9377 set dummy windres
9378 if test $build = $host ; then
9379 WINDRES="$2"
859789af 9380 else
05cbd757 9381 WINDRES="${ncn_tool_prefix}$2"
859789af 9382 fi
859789af
AC
9383fi
9384
9a819804
AO
9385
9386
0c24b341
NC
9387if test -n "$WINDMC"; then
9388 ac_cv_prog_WINDMC=$WINDMC
9389elif test -n "$ac_cv_prog_WINDMC"; then
9390 WINDMC=$ac_cv_prog_WINDMC
9391fi
9392
9393if test -n "$ac_cv_prog_WINDMC"; then
9394 for ncn_progname in windmc; do
9395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9396set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9398$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9399if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9400 $as_echo_n "(cached) " >&6
0c24b341
NC
9401else
9402 if test -n "$WINDMC"; then
9403 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9404else
9405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406for as_dir in $PATH
9407do
9408 IFS=$as_save_IFS
9409 test -z "$as_dir" && as_dir=.
81ecdfbb 9410 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9412 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9414 break 2
9415 fi
9416done
81ecdfbb
RW
9417 done
9418IFS=$as_save_IFS
0c24b341
NC
9419
9420fi
9421fi
9422WINDMC=$ac_cv_prog_WINDMC
9423if test -n "$WINDMC"; then
81ecdfbb
RW
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9425$as_echo "$WINDMC" >&6; }
0c24b341 9426else
81ecdfbb
RW
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428$as_echo "no" >&6; }
0c24b341
NC
9429fi
9430
81ecdfbb 9431
0c24b341
NC
9432 done
9433fi
9434
9435for ncn_progname in windmc; do
9436 if test -n "$ncn_tool_prefix"; then
9437 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9438set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9441if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9442 $as_echo_n "(cached) " >&6
0c24b341
NC
9443else
9444 if test -n "$WINDMC"; then
9445 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9446else
9447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448for as_dir in $PATH
9449do
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
81ecdfbb 9452 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9454 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9456 break 2
9457 fi
9458done
81ecdfbb
RW
9459 done
9460IFS=$as_save_IFS
0c24b341
NC
9461
9462fi
9463fi
9464WINDMC=$ac_cv_prog_WINDMC
9465if test -n "$WINDMC"; then
81ecdfbb
RW
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9467$as_echo "$WINDMC" >&6; }
0c24b341 9468else
81ecdfbb
RW
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470$as_echo "no" >&6; }
0c24b341
NC
9471fi
9472
81ecdfbb 9473
0c24b341
NC
9474 fi
9475 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9477set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9479$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9480if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 9481 $as_echo_n "(cached) " >&6
0c24b341
NC
9482else
9483 if test -n "$WINDMC"; then
9484 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9485else
9486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9487for as_dir in $PATH
9488do
9489 IFS=$as_save_IFS
9490 test -z "$as_dir" && as_dir=.
81ecdfbb 9491 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 9493 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9495 break 2
9496 fi
9497done
81ecdfbb
RW
9498 done
9499IFS=$as_save_IFS
0c24b341
NC
9500
9501fi
9502fi
9503WINDMC=$ac_cv_prog_WINDMC
9504if test -n "$WINDMC"; then
81ecdfbb
RW
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9506$as_echo "$WINDMC" >&6; }
0c24b341 9507else
81ecdfbb
RW
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509$as_echo "no" >&6; }
0c24b341
NC
9510fi
9511
81ecdfbb 9512
0c24b341
NC
9513 fi
9514 test -n "$ac_cv_prog_WINDMC" && break
9515done
9516
9517if test -z "$ac_cv_prog_WINDMC" ; then
9518 set dummy windmc
9519 if test $build = $host ; then
9520 WINDMC="$2"
9521 else
9522 WINDMC="${ncn_tool_prefix}$2"
9523 fi
9524fi
9525
9526
9527
9a819804
AO
9528if test -n "$OBJCOPY"; then
9529 ac_cv_prog_OBJCOPY=$OBJCOPY
9530elif test -n "$ac_cv_prog_OBJCOPY"; then
9531 OBJCOPY=$ac_cv_prog_OBJCOPY
9532fi
9533
9534if test -n "$ac_cv_prog_OBJCOPY"; then
9535 for ncn_progname in objcopy; do
9536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9537set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9539$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9540if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9541 $as_echo_n "(cached) " >&6
9a819804
AO
9542else
9543 if test -n "$OBJCOPY"; then
9544 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9545else
9546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9547for as_dir in $PATH
9548do
9549 IFS=$as_save_IFS
9550 test -z "$as_dir" && as_dir=.
81ecdfbb 9551 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9553 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9555 break 2
9556 fi
9557done
81ecdfbb
RW
9558 done
9559IFS=$as_save_IFS
9a819804
AO
9560
9561fi
9562fi
9563OBJCOPY=$ac_cv_prog_OBJCOPY
9564if test -n "$OBJCOPY"; then
81ecdfbb
RW
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9566$as_echo "$OBJCOPY" >&6; }
9a819804 9567else
81ecdfbb
RW
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9569$as_echo "no" >&6; }
9a819804
AO
9570fi
9571
81ecdfbb 9572
9a819804
AO
9573 done
9574fi
9575
9576for ncn_progname in objcopy; do
05cbd757
PB
9577 if test -n "$ncn_tool_prefix"; then
9578 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9579set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9582if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9583 $as_echo_n "(cached) " >&6
859789af
AC
9584else
9585 if test -n "$OBJCOPY"; then
9586 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9587else
c6b750e1
DJ
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
81ecdfbb 9593 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9595 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9597 break 2
9598 fi
9599done
81ecdfbb
RW
9600 done
9601IFS=$as_save_IFS
c6b750e1 9602
859789af
AC
9603fi
9604fi
c6b750e1 9605OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9606if test -n "$OBJCOPY"; then
81ecdfbb
RW
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9608$as_echo "$OBJCOPY" >&6; }
859789af 9609else
81ecdfbb
RW
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
859789af
AC
9612fi
9613
81ecdfbb 9614
05cbd757
PB
9615 fi
9616 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9618set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9620$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9621if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 9622 $as_echo_n "(cached) " >&6
859789af 9623else
05cbd757
PB
9624 if test -n "$OBJCOPY"; then
9625 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9626else
c6b750e1
DJ
9627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628for as_dir in $PATH
9629do
9630 IFS=$as_save_IFS
9631 test -z "$as_dir" && as_dir=.
81ecdfbb 9632 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9634 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9636 break 2
9637 fi
9638done
81ecdfbb
RW
9639 done
9640IFS=$as_save_IFS
c6b750e1 9641
859789af
AC
9642fi
9643fi
c6b750e1 9644OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9645if test -n "$OBJCOPY"; then
81ecdfbb
RW
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9647$as_echo "$OBJCOPY" >&6; }
859789af 9648else
81ecdfbb
RW
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650$as_echo "no" >&6; }
859789af 9651fi
c6b750e1 9652
81ecdfbb 9653
05cbd757
PB
9654 fi
9655 test -n "$ac_cv_prog_OBJCOPY" && break
9656done
9657
9658if test -z "$ac_cv_prog_OBJCOPY" ; then
9659 set dummy objcopy
9660 if test $build = $host ; then
9661 OBJCOPY="$2"
859789af 9662 else
05cbd757 9663 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9664 fi
859789af
AC
9665fi
9666
9a819804
AO
9667
9668
9669if test -n "$OBJDUMP"; then
9670 ac_cv_prog_OBJDUMP=$OBJDUMP
9671elif test -n "$ac_cv_prog_OBJDUMP"; then
9672 OBJDUMP=$ac_cv_prog_OBJDUMP
9673fi
9674
9675if test -n "$ac_cv_prog_OBJDUMP"; then
9676 for ncn_progname in objdump; do
9677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9678set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9681if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9682 $as_echo_n "(cached) " >&6
9a819804
AO
9683else
9684 if test -n "$OBJDUMP"; then
9685 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9686else
9687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688for as_dir in $PATH
9689do
9690 IFS=$as_save_IFS
9691 test -z "$as_dir" && as_dir=.
81ecdfbb 9692 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9694 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9696 break 2
9697 fi
9698done
81ecdfbb
RW
9699 done
9700IFS=$as_save_IFS
9a819804
AO
9701
9702fi
9703fi
9704OBJDUMP=$ac_cv_prog_OBJDUMP
9705if test -n "$OBJDUMP"; then
81ecdfbb
RW
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9707$as_echo "$OBJDUMP" >&6; }
9a819804 9708else
81ecdfbb
RW
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710$as_echo "no" >&6; }
9a819804
AO
9711fi
9712
81ecdfbb 9713
9a819804
AO
9714 done
9715fi
9716
9717for ncn_progname in objdump; do
05cbd757
PB
9718 if test -n "$ncn_tool_prefix"; then
9719 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9720set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9723if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9724 $as_echo_n "(cached) " >&6
859789af
AC
9725else
9726 if test -n "$OBJDUMP"; then
9727 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9728else
c6b750e1
DJ
9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730for as_dir in $PATH
9731do
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
81ecdfbb 9734 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9736 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9738 break 2
9739 fi
9740done
81ecdfbb
RW
9741 done
9742IFS=$as_save_IFS
c6b750e1 9743
859789af
AC
9744fi
9745fi
c6b750e1 9746OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9747if test -n "$OBJDUMP"; then
81ecdfbb
RW
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9749$as_echo "$OBJDUMP" >&6; }
859789af 9750else
81ecdfbb
RW
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752$as_echo "no" >&6; }
859789af
AC
9753fi
9754
81ecdfbb 9755
05cbd757
PB
9756 fi
9757 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9759set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9762if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 9763 $as_echo_n "(cached) " >&6
859789af 9764else
05cbd757
PB
9765 if test -n "$OBJDUMP"; then
9766 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9767else
c6b750e1
DJ
9768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769for as_dir in $PATH
9770do
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
81ecdfbb 9773 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 9775 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9777 break 2
9778 fi
9779done
81ecdfbb
RW
9780 done
9781IFS=$as_save_IFS
c6b750e1 9782
859789af
AC
9783fi
9784fi
c6b750e1 9785OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9786if test -n "$OBJDUMP"; then
81ecdfbb
RW
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9788$as_echo "$OBJDUMP" >&6; }
859789af 9789else
81ecdfbb
RW
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791$as_echo "no" >&6; }
859789af 9792fi
c6b750e1 9793
81ecdfbb 9794
05cbd757
PB
9795 fi
9796 test -n "$ac_cv_prog_OBJDUMP" && break
9797done
9798
9799if test -z "$ac_cv_prog_OBJDUMP" ; then
9800 set dummy objdump
9801 if test $build = $host ; then
9802 OBJDUMP="$2"
859789af 9803 else
05cbd757 9804 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9805 fi
859789af
AC
9806fi
9807
a0da8069
NN
9808
9809
b121d7d4
DD
9810if test -n "$READELF"; then
9811 ac_cv_prog_READELF=$READELF
9812elif test -n "$ac_cv_prog_READELF"; then
9813 READELF=$ac_cv_prog_READELF
9814fi
9815
9816if test -n "$ac_cv_prog_READELF"; then
9817 for ncn_progname in readelf; do
9818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9819set dummy ${ncn_progname}; ac_word=$2
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9821$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9822if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9823 $as_echo_n "(cached) " >&6
9824else
9825 if test -n "$READELF"; then
9826 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9827else
9828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829for as_dir in $PATH
9830do
9831 IFS=$as_save_IFS
9832 test -z "$as_dir" && as_dir=.
9833 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9835 ac_cv_prog_READELF="${ncn_progname}"
9836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9837 break 2
9838 fi
9839done
9840 done
9841IFS=$as_save_IFS
9842
9843fi
9844fi
9845READELF=$ac_cv_prog_READELF
9846if test -n "$READELF"; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9848$as_echo "$READELF" >&6; }
9849else
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851$as_echo "no" >&6; }
9852fi
9853
9854
9855 done
9856fi
9857
9858for ncn_progname in readelf; do
9859 if test -n "$ncn_tool_prefix"; then
9860 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9861set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9864if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9865 $as_echo_n "(cached) " >&6
9866else
9867 if test -n "$READELF"; then
9868 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9869else
9870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871for as_dir in $PATH
9872do
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9877 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9880 fi
9881done
9882 done
9883IFS=$as_save_IFS
9884
9885fi
9886fi
9887READELF=$ac_cv_prog_READELF
9888if test -n "$READELF"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9890$as_echo "$READELF" >&6; }
9891else
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893$as_echo "no" >&6; }
9894fi
9895
9896
9897 fi
9898 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9900set dummy ${ncn_progname}; ac_word=$2
9901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9903if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
9904 $as_echo_n "(cached) " >&6
9905else
9906 if test -n "$READELF"; then
9907 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9908else
9909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910for as_dir in $PATH
9911do
9912 IFS=$as_save_IFS
9913 test -z "$as_dir" && as_dir=.
9914 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
9916 ac_cv_prog_READELF="${ncn_progname}"
9917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9918 break 2
9919 fi
9920done
9921 done
9922IFS=$as_save_IFS
9923
9924fi
9925fi
9926READELF=$ac_cv_prog_READELF
9927if test -n "$READELF"; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9929$as_echo "$READELF" >&6; }
9930else
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932$as_echo "no" >&6; }
9933fi
9934
9935
9936 fi
9937 test -n "$ac_cv_prog_READELF" && break
9938done
9939
9940if test -z "$ac_cv_prog_READELF" ; then
9941 set dummy readelf
9942 if test $build = $host ; then
9943 READELF="$2"
9944 else
9945 READELF="${ncn_tool_prefix}$2"
9946 fi
9947fi
9948
9949
9950
a0da8069
NN
9951
9952
9953
be01d343 9954# Target tools.
c6b750e1 9955
81ecdfbb
RW
9956# Check whether --with-build-time-tools was given.
9957if test "${with_build_time_tools+set}" = set; then :
9958 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9959 x/*) ;;
9960 *)
9961 with_build_time_tools=
81ecdfbb
RW
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9963$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9964 ;;
9965 esac
859789af 9966else
2429c060 9967 with_build_time_tools=
81ecdfbb
RW
9968fi
9969
859789af 9970
9a819804
AO
9971
9972
9973if test -n "$CC_FOR_TARGET"; then
9974 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9975elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9976 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9977fi
9978
9979if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9980 for ncn_progname in cc gcc; do
9981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9982set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 9985if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 9986 $as_echo_n "(cached) " >&6
9a819804
AO
9987else
9988 if test -n "$CC_FOR_TARGET"; then
9989 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9990else
9991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992for as_dir in $PATH
9993do
9994 IFS=$as_save_IFS
9995 test -z "$as_dir" && as_dir=.
81ecdfbb 9996 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 9997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9998 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10000 break 2
10001 fi
10002done
81ecdfbb
RW
10003 done
10004IFS=$as_save_IFS
9a819804
AO
10005
10006fi
10007fi
10008CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10009if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10011$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10012else
81ecdfbb
RW
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014$as_echo "no" >&6; }
9a819804
AO
10015fi
10016
81ecdfbb 10017
9a819804
AO
10018 done
10019fi
10020
10021if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10022 for ncn_progname in cc gcc; do
81ecdfbb
RW
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10024$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10025 if test -x $with_build_time_tools/${ncn_progname}; then
10026 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10028$as_echo "yes" >&6; }
cac3d6c4 10029 break
2429c060 10030 else
81ecdfbb
RW
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032$as_echo "no" >&6; }
cac3d6c4
CM
10033 fi
10034 done
55db4b87
PB
10035fi
10036
2429c060
PB
10037if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10038 for ncn_progname in cc gcc; do
10039 if test -n "$ncn_target_tool_prefix"; then
10040 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10041set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10044if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10045 $as_echo_n "(cached) " >&6
55db4b87
PB
10046else
10047 if test -n "$CC_FOR_TARGET"; then
10048 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10049else
c6b750e1
DJ
10050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051for as_dir in $PATH
10052do
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
81ecdfbb 10055 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10057 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10059 break 2
10060 fi
10061done
81ecdfbb
RW
10062 done
10063IFS=$as_save_IFS
c6b750e1 10064
55db4b87
PB
10065fi
10066fi
c6b750e1 10067CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10068if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10070$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10071else
81ecdfbb
RW
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073$as_echo "no" >&6; }
55db4b87
PB
10074fi
10075
81ecdfbb 10076
2429c060
PB
10077 fi
10078 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10080set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10083if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 10084 $as_echo_n "(cached) " >&6
55db4b87 10085else
05cbd757
PB
10086 if test -n "$CC_FOR_TARGET"; then
10087 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10088else
c6b750e1
DJ
10089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090for as_dir in $PATH
10091do
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
81ecdfbb 10094 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10096 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10098 break 2
10099 fi
10100done
81ecdfbb
RW
10101 done
10102IFS=$as_save_IFS
c6b750e1 10103
55db4b87
PB
10104fi
10105fi
c6b750e1 10106CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10107if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10109$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10110else
81ecdfbb
RW
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112$as_echo "no" >&6; }
55db4b87 10113fi
c6b750e1 10114
81ecdfbb 10115
2429c060
PB
10116 fi
10117 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10118 done
10119fi
c6b750e1 10120
05cbd757
PB
10121if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10122 set dummy cc gcc
10123 if test $build = $target ; then
10124 CC_FOR_TARGET="$2"
55db4b87 10125 else
05cbd757 10126 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10127 fi
d3f5afc4
MS
10128else
10129 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10130fi
10131
9a819804
AO
10132
10133
10134if test -n "$CXX_FOR_TARGET"; then
10135 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10136elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10137 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10138fi
10139
10140if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10141 for ncn_progname in c++ g++ cxx gxx; do
10142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10143set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10146if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10147 $as_echo_n "(cached) " >&6
9a819804
AO
10148else
10149 if test -n "$CXX_FOR_TARGET"; then
10150 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10151else
10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
81ecdfbb 10157 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10159 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10161 break 2
10162 fi
10163done
81ecdfbb
RW
10164 done
10165IFS=$as_save_IFS
9a819804
AO
10166
10167fi
10168fi
10169CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10170if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10172$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10173else
81ecdfbb
RW
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175$as_echo "no" >&6; }
9a819804
AO
10176fi
10177
81ecdfbb 10178
9a819804
AO
10179 done
10180fi
10181
10182if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10183 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10185$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10186 if test -x $with_build_time_tools/${ncn_progname}; then
10187 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10189$as_echo "yes" >&6; }
2429c060
PB
10190 break
10191 else
81ecdfbb
RW
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193$as_echo "no" >&6; }
2429c060
PB
10194 fi
10195 done
10196fi
10197
10198if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10199 for ncn_progname in c++ g++ cxx gxx; do
10200 if test -n "$ncn_target_tool_prefix"; then
10201 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10202set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10204$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10205if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10206 $as_echo_n "(cached) " >&6
55db4b87
PB
10207else
10208 if test -n "$CXX_FOR_TARGET"; then
10209 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10210else
c6b750e1
DJ
10211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212for as_dir in $PATH
10213do
10214 IFS=$as_save_IFS
10215 test -z "$as_dir" && as_dir=.
81ecdfbb 10216 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10218 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10220 break 2
10221 fi
10222done
81ecdfbb
RW
10223 done
10224IFS=$as_save_IFS
c6b750e1 10225
55db4b87
PB
10226fi
10227fi
c6b750e1 10228CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10229if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10231$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10232else
81ecdfbb
RW
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234$as_echo "no" >&6; }
55db4b87
PB
10235fi
10236
81ecdfbb 10237
2429c060
PB
10238 fi
10239 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10241set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10244if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 10245 $as_echo_n "(cached) " >&6
55db4b87 10246else
05cbd757
PB
10247 if test -n "$CXX_FOR_TARGET"; then
10248 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10249else
c6b750e1
DJ
10250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251for as_dir in $PATH
10252do
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
81ecdfbb 10255 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10257 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10259 break 2
10260 fi
10261done
81ecdfbb
RW
10262 done
10263IFS=$as_save_IFS
c6b750e1 10264
55db4b87
PB
10265fi
10266fi
c6b750e1 10267CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10268if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10270$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10271else
81ecdfbb
RW
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273$as_echo "no" >&6; }
55db4b87 10274fi
c6b750e1 10275
81ecdfbb 10276
2429c060
PB
10277 fi
10278 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10279 done
10280fi
c6b750e1 10281
05cbd757
PB
10282if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10283 set dummy c++ g++ cxx gxx
10284 if test $build = $target ; then
10285 CXX_FOR_TARGET="$2"
55db4b87 10286 else
05cbd757 10287 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10288 fi
d3f5afc4
MS
10289else
10290 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10291fi
10292
9a819804
AO
10293
10294
10295if test -n "$GCC_FOR_TARGET"; then
10296 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10297elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10298 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10299fi
10300
10301if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10302 for ncn_progname in gcc; do
10303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10304set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10307if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10308 $as_echo_n "(cached) " >&6
9a819804
AO
10309else
10310 if test -n "$GCC_FOR_TARGET"; then
10311 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10312else
10313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314for as_dir in $PATH
10315do
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
81ecdfbb 10318 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10320 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10322 break 2
10323 fi
10324done
81ecdfbb
RW
10325 done
10326IFS=$as_save_IFS
9a819804
AO
10327
10328fi
10329fi
10330GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10331if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10333$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10334else
81ecdfbb
RW
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336$as_echo "no" >&6; }
9a819804
AO
10337fi
10338
81ecdfbb 10339
9a819804
AO
10340 done
10341fi
10342
10343if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10344 for ncn_progname in gcc; do
81ecdfbb
RW
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10346$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10347 if test -x $with_build_time_tools/${ncn_progname}; then
10348 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10350$as_echo "yes" >&6; }
2429c060
PB
10351 break
10352 else
81ecdfbb
RW
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354$as_echo "no" >&6; }
2429c060
PB
10355 fi
10356 done
10357fi
10358
10359if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10360 for ncn_progname in gcc; do
10361 if test -n "$ncn_target_tool_prefix"; then
10362 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10363set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10365$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10366if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10367 $as_echo_n "(cached) " >&6
859789af 10368else
2429c060
PB
10369 if test -n "$GCC_FOR_TARGET"; then
10370 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10371else
c6b750e1
DJ
10372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373for as_dir in $PATH
10374do
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
81ecdfbb 10377 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10379 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10381 break 2
10382 fi
10383done
81ecdfbb
RW
10384 done
10385IFS=$as_save_IFS
c6b750e1 10386
55db4b87
PB
10387fi
10388fi
c6b750e1 10389GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10390if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10392$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10393else
81ecdfbb
RW
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395$as_echo "no" >&6; }
55db4b87
PB
10396fi
10397
81ecdfbb 10398
2429c060
PB
10399 fi
10400 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10402set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10404$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10405if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 10406 $as_echo_n "(cached) " >&6
55db4b87 10407else
05cbd757
PB
10408 if test -n "$GCC_FOR_TARGET"; then
10409 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10410else
c6b750e1
DJ
10411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412for as_dir in $PATH
10413do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
81ecdfbb 10416 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10418 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10420 break 2
10421 fi
10422done
81ecdfbb
RW
10423 done
10424IFS=$as_save_IFS
c6b750e1 10425
55db4b87
PB
10426fi
10427fi
c6b750e1 10428GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10429if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10431$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10432else
81ecdfbb
RW
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434$as_echo "no" >&6; }
55db4b87 10435fi
c6b750e1 10436
81ecdfbb 10437
2429c060
PB
10438 fi
10439 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10440 done
10441fi
c6b750e1 10442
05cbd757
PB
10443if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10444 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10445else
10446 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10447fi
10448
9a819804
AO
10449
10450
9a819804
AO
10451if test -n "$GFORTRAN_FOR_TARGET"; then
10452 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10453elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10454 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10455fi
10456
9a819804
AO
10457if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10458 for ncn_progname in gfortran; do
10459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10460set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10462$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10463if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10464 $as_echo_n "(cached) " >&6
55db4b87 10465else
9a819804
AO
10466 if test -n "$GFORTRAN_FOR_TARGET"; then
10467 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10468else
c6b750e1
DJ
10469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470for as_dir in $PATH
10471do
10472 IFS=$as_save_IFS
10473 test -z "$as_dir" && as_dir=.
81ecdfbb 10474 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10476 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10478 break 2
10479 fi
10480done
81ecdfbb
RW
10481 done
10482IFS=$as_save_IFS
c6b750e1 10483
55db4b87
PB
10484fi
10485fi
9a819804
AO
10486GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10487if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10489$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10490else
81ecdfbb
RW
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492$as_echo "no" >&6; }
55db4b87 10493fi
c6b750e1 10494
81ecdfbb 10495
2429c060
PB
10496 done
10497fi
c6b750e1 10498
9a819804 10499if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10500 for ncn_progname in gfortran; do
81ecdfbb
RW
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10502$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10503 if test -x $with_build_time_tools/${ncn_progname}; then
10504 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10506$as_echo "yes" >&6; }
2429c060
PB
10507 break
10508 else
81ecdfbb
RW
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510$as_echo "no" >&6; }
2429c060
PB
10511 fi
10512 done
10513fi
10514
10515if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10516 for ncn_progname in gfortran; do
10517 if test -n "$ncn_target_tool_prefix"; then
10518 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10519set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10521$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10522if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10523 $as_echo_n "(cached) " >&6
55db4b87
PB
10524else
10525 if test -n "$GFORTRAN_FOR_TARGET"; then
10526 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10527else
c6b750e1
DJ
10528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529for as_dir in $PATH
10530do
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
81ecdfbb 10533 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10535 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10537 break 2
10538 fi
10539done
81ecdfbb
RW
10540 done
10541IFS=$as_save_IFS
c6b750e1 10542
55db4b87
PB
10543fi
10544fi
c6b750e1 10545GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10546if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10548$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10549else
81ecdfbb
RW
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551$as_echo "no" >&6; }
55db4b87
PB
10552fi
10553
81ecdfbb 10554
2429c060
PB
10555 fi
10556 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10558set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10561if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 10562 $as_echo_n "(cached) " >&6
55db4b87 10563else
05cbd757 10564 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10565 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10566else
10567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568for as_dir in $PATH
10569do
10570 IFS=$as_save_IFS
10571 test -z "$as_dir" && as_dir=.
81ecdfbb 10572 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10574 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10576 break 2
10577 fi
10578done
81ecdfbb
RW
10579 done
10580IFS=$as_save_IFS
c6b750e1 10581
55db4b87
PB
10582fi
10583fi
c6b750e1 10584GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10585if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10587$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10588else
81ecdfbb
RW
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590$as_echo "no" >&6; }
55db4b87 10591fi
c6b750e1 10592
81ecdfbb 10593
2429c060
PB
10594 fi
10595 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10596 done
10597fi
c6b750e1 10598
05cbd757
PB
10599if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10600 set dummy gfortran
10601 if test $build = $target ; then
10602 GFORTRAN_FOR_TARGET="$2"
55db4b87 10603 else
05cbd757 10604 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10605 fi
d3f5afc4
MS
10606else
10607 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10608fi
10609
2429c060
PB
10610
10611
e552509b
ILT
10612if test -n "$GOC_FOR_TARGET"; then
10613 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10614elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10615 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10616fi
10617
10618if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10619 for ncn_progname in gccgo; do
10620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10621set dummy ${ncn_progname}; ac_word=$2
10622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10623$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10624if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10625 $as_echo_n "(cached) " >&6
10626else
10627 if test -n "$GOC_FOR_TARGET"; then
10628 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10629else
10630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631for as_dir in $PATH
10632do
10633 IFS=$as_save_IFS
10634 test -z "$as_dir" && as_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10637 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 break 2
10640 fi
10641done
10642 done
10643IFS=$as_save_IFS
10644
10645fi
10646fi
10647GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10648if test -n "$GOC_FOR_TARGET"; then
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10650$as_echo "$GOC_FOR_TARGET" >&6; }
10651else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653$as_echo "no" >&6; }
10654fi
10655
10656
10657 done
10658fi
10659
10660if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10661 for ncn_progname in gccgo; do
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10663$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10664 if test -x $with_build_time_tools/${ncn_progname}; then
10665 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10667$as_echo "yes" >&6; }
10668 break
10669 else
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671$as_echo "no" >&6; }
10672 fi
10673 done
10674fi
10675
10676if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10677 for ncn_progname in gccgo; do
10678 if test -n "$ncn_target_tool_prefix"; then
10679 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10680set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10682$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10683if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10684 $as_echo_n "(cached) " >&6
10685else
10686 if test -n "$GOC_FOR_TARGET"; then
10687 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10688else
10689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690for as_dir in $PATH
10691do
10692 IFS=$as_save_IFS
10693 test -z "$as_dir" && as_dir=.
10694 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10696 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 break 2
10699 fi
10700done
10701 done
10702IFS=$as_save_IFS
10703
10704fi
10705fi
10706GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10707if test -n "$GOC_FOR_TARGET"; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10709$as_echo "$GOC_FOR_TARGET" >&6; }
10710else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712$as_echo "no" >&6; }
10713fi
10714
10715
10716 fi
10717 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10719set dummy ${ncn_progname}; ac_word=$2
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10721$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10722if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
e552509b
ILT
10723 $as_echo_n "(cached) " >&6
10724else
10725 if test -n "$GOC_FOR_TARGET"; then
10726 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10727else
10728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729for as_dir in $PATH
10730do
10731 IFS=$as_save_IFS
10732 test -z "$as_dir" && as_dir=.
10733 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e552509b
ILT
10735 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10737 break 2
10738 fi
10739done
10740 done
10741IFS=$as_save_IFS
10742
10743fi
10744fi
10745GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10746if test -n "$GOC_FOR_TARGET"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10748$as_echo "$GOC_FOR_TARGET" >&6; }
10749else
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751$as_echo "no" >&6; }
10752fi
10753
10754
10755 fi
10756 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10757 done
10758fi
10759
10760if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10761 set dummy gccgo
10762 if test $build = $target ; then
10763 GOC_FOR_TARGET="$2"
10764 else
10765 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10766 fi
10767else
10768 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10769fi
10770
10771
10772
2429c060
PB
10773cat > conftest.c << \EOF
10774#ifdef __GNUC__
10775 gcc_yay;
10776#endif
10777EOF
10778if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10779 have_gcc_for_target=yes
859789af 10780else
2429c060
PB
10781 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10782 have_gcc_for_target=no
859789af 10783fi
2429c060
PB
10784rm conftest.c
10785
10786
10787
859789af 10788
2429c060
PB
10789if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10790 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10792$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10793 if test -x $with_build_time_tools/ar; then
10794 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10795 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10797$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10798 else
81ecdfbb
RW
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800$as_echo "no" >&6; }
3a35eeb3 10801 fi
2429c060
PB
10802 elif test $build != $host && test $have_gcc_for_target = yes; then
10803 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10804 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10805 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10806 fi
2429c060 10807fi
c6b750e1 10808if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10809 # Extract the first word of "ar", so it can be a program name with args.
10810set dummy ar; ac_word=$2
81ecdfbb
RW
10811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10812$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10813if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 10814 $as_echo_n "(cached) " >&6
859789af 10815else
c6b750e1
DJ
10816 case $AR_FOR_TARGET in
10817 [\\/]* | ?:[\\/]*)
2429c060
PB
10818 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10819 ;;
2429c060 10820 *)
c6b750e1
DJ
10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822for as_dir in $gcc_cv_tool_dirs
10823do
10824 IFS=$as_save_IFS
10825 test -z "$as_dir" && as_dir=.
81ecdfbb 10826 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10828 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10830 break 2
10831 fi
10832done
81ecdfbb
RW
10833 done
10834IFS=$as_save_IFS
c6b750e1 10835
2429c060
PB
10836 ;;
10837esac
859789af 10838fi
c6b750e1 10839AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10840if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10842$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10843else
81ecdfbb
RW
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845$as_echo "no" >&6; }
859789af 10846fi
05cbd757 10847
81ecdfbb 10848
2429c060
PB
10849fi
10850if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10851
10852
10853if test -n "$AR_FOR_TARGET"; then
10854 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10855elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10856 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10857fi
10858
10859if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10860 for ncn_progname in ar; do
10861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10862set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10865if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 10866 $as_echo_n "(cached) " >&6
9a819804
AO
10867else
10868 if test -n "$AR_FOR_TARGET"; then
10869 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10870else
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
81ecdfbb 10876 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10878 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10880 break 2
10881 fi
10882done
81ecdfbb
RW
10883 done
10884IFS=$as_save_IFS
9a819804
AO
10885
10886fi
10887fi
10888AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10889if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10891$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10892else
81ecdfbb
RW
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894$as_echo "no" >&6; }
9a819804
AO
10895fi
10896
81ecdfbb 10897
9a819804
AO
10898 done
10899fi
10900
10901if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10902 for ncn_progname in ar; do
81ecdfbb
RW
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10904$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10905 if test -x $with_build_time_tools/${ncn_progname}; then
10906 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10908$as_echo "yes" >&6; }
2429c060
PB
10909 break
10910 else
81ecdfbb
RW
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10912$as_echo "no" >&6; }
2429c060
PB
10913 fi
10914 done
859789af
AC
10915fi
10916
2429c060
PB
10917if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10918 for ncn_progname in ar; do
10919 if test -n "$ncn_target_tool_prefix"; then
10920 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10921set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10924if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 10925 $as_echo_n "(cached) " >&6
7e0f7140 10926else
2429c060
PB
10927 if test -n "$AR_FOR_TARGET"; then
10928 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10929else
c6b750e1
DJ
10930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931for as_dir in $PATH
10932do
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
81ecdfbb 10935 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10937 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10939 break 2
10940 fi
10941done
81ecdfbb
RW
10942 done
10943IFS=$as_save_IFS
c6b750e1 10944
7e0f7140
GK
10945fi
10946fi
c6b750e1 10947AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10948if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10950$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10951else
81ecdfbb
RW
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953$as_echo "no" >&6; }
7e0f7140
GK
10954fi
10955
81ecdfbb 10956
2429c060
PB
10957 fi
10958 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10960set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10963if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 10964 $as_echo_n "(cached) " >&6
7e0f7140 10965else
2429c060
PB
10966 if test -n "$AR_FOR_TARGET"; then
10967 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10968else
c6b750e1
DJ
10969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970for as_dir in $PATH
10971do
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
81ecdfbb 10974 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10976 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10978 break 2
10979 fi
10980done
81ecdfbb
RW
10981 done
10982IFS=$as_save_IFS
c6b750e1 10983
7e0f7140
GK
10984fi
10985fi
c6b750e1 10986AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10987if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10989$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10990else
81ecdfbb
RW
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992$as_echo "no" >&6; }
7e0f7140 10993fi
c6b750e1 10994
81ecdfbb 10995
2429c060
PB
10996 fi
10997 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10998 done
10999fi
c6b750e1 11000
2429c060
PB
11001if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11002 set dummy ar
7e0f7140 11003 if test $build = $target ; then
2429c060 11004 AR_FOR_TARGET="$2"
7e0f7140 11005 else
2429c060 11006 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11007 fi
d3f5afc4
MS
11008else
11009 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11010fi
11011
3a35eeb3
PB
11012else
11013 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11014fi
11015
11016
11017
11018
11019if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11020 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11022$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11023 if test -x $with_build_time_tools/as; then
11024 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11025 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11027$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11028 else
81ecdfbb
RW
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030$as_echo "no" >&6; }
3a35eeb3 11031 fi
2429c060
PB
11032 elif test $build != $host && test $have_gcc_for_target = yes; then
11033 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11034 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11035 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11036 fi
11037fi
c6b750e1 11038if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11039 # Extract the first word of "as", so it can be a program name with args.
11040set dummy as; ac_word=$2
81ecdfbb
RW
11041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11042$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11043if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 11044 $as_echo_n "(cached) " >&6
2429c060 11045else
c6b750e1
DJ
11046 case $AS_FOR_TARGET in
11047 [\\/]* | ?:[\\/]*)
2429c060
PB
11048 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11049 ;;
2429c060 11050 *)
c6b750e1
DJ
11051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11052for as_dir in $gcc_cv_tool_dirs
11053do
11054 IFS=$as_save_IFS
11055 test -z "$as_dir" && as_dir=.
81ecdfbb 11056 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11058 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11060 break 2
11061 fi
11062done
81ecdfbb
RW
11063 done
11064IFS=$as_save_IFS
c6b750e1 11065
2429c060
PB
11066 ;;
11067esac
11068fi
c6b750e1 11069AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11070if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11072$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11073else
81ecdfbb
RW
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075$as_echo "no" >&6; }
2429c060
PB
11076fi
11077
81ecdfbb 11078
2429c060
PB
11079fi
11080if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11081
11082
11083if test -n "$AS_FOR_TARGET"; then
11084 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11085elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11086 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11087fi
11088
11089if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11090 for ncn_progname in as; do
11091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11092set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11095if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11096 $as_echo_n "(cached) " >&6
9a819804
AO
11097else
11098 if test -n "$AS_FOR_TARGET"; then
11099 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11100else
11101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102for as_dir in $PATH
11103do
11104 IFS=$as_save_IFS
11105 test -z "$as_dir" && as_dir=.
81ecdfbb 11106 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11108 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11110 break 2
11111 fi
11112done
81ecdfbb
RW
11113 done
11114IFS=$as_save_IFS
9a819804
AO
11115
11116fi
11117fi
11118AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11119if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11121$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11122else
81ecdfbb
RW
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124$as_echo "no" >&6; }
9a819804
AO
11125fi
11126
81ecdfbb 11127
9a819804
AO
11128 done
11129fi
11130
11131if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11132 for ncn_progname in as; do
81ecdfbb
RW
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11134$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11135 if test -x $with_build_time_tools/${ncn_progname}; then
11136 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11138$as_echo "yes" >&6; }
2429c060
PB
11139 break
11140 else
81ecdfbb
RW
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142$as_echo "no" >&6; }
2429c060
PB
11143 fi
11144 done
11145fi
11146
11147if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11148 for ncn_progname in as; do
11149 if test -n "$ncn_target_tool_prefix"; then
11150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11151set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11153$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11154if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11155 $as_echo_n "(cached) " >&6
2429c060
PB
11156else
11157 if test -n "$AS_FOR_TARGET"; then
11158 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11159else
c6b750e1
DJ
11160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161for as_dir in $PATH
11162do
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
81ecdfbb 11165 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11167 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11169 break 2
11170 fi
11171done
81ecdfbb
RW
11172 done
11173IFS=$as_save_IFS
c6b750e1 11174
2429c060
PB
11175fi
11176fi
c6b750e1 11177AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11178if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11180$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11181else
81ecdfbb
RW
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183$as_echo "no" >&6; }
2429c060
PB
11184fi
11185
81ecdfbb 11186
2429c060
PB
11187 fi
11188 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11190set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11193if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 11194 $as_echo_n "(cached) " >&6
2429c060
PB
11195else
11196 if test -n "$AS_FOR_TARGET"; then
11197 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11198else
c6b750e1
DJ
11199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200for as_dir in $PATH
11201do
11202 IFS=$as_save_IFS
11203 test -z "$as_dir" && as_dir=.
81ecdfbb 11204 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11206 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11208 break 2
11209 fi
11210done
81ecdfbb
RW
11211 done
11212IFS=$as_save_IFS
c6b750e1 11213
2429c060
PB
11214fi
11215fi
c6b750e1 11216AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11217if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11219$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11220else
81ecdfbb
RW
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222$as_echo "no" >&6; }
2429c060 11223fi
c6b750e1 11224
81ecdfbb 11225
2429c060
PB
11226 fi
11227 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11228 done
11229fi
c6b750e1 11230
2429c060
PB
11231if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11232 set dummy as
11233 if test $build = $target ; then
11234 AS_FOR_TARGET="$2"
11235 else
11236 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11237 fi
d3f5afc4
MS
11238else
11239 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11240fi
11241
3a35eeb3
PB
11242else
11243 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11244fi
11245
11246
11247
11248
11249if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11250 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11252$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11253 if test -x $with_build_time_tools/dlltool; then
11254 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11255 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11257$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11258 else
81ecdfbb
RW
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260$as_echo "no" >&6; }
3a35eeb3 11261 fi
2429c060
PB
11262 elif test $build != $host && test $have_gcc_for_target = yes; then
11263 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11264 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11265 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11266 fi
11267fi
c6b750e1 11268if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11269 # Extract the first word of "dlltool", so it can be a program name with args.
11270set dummy dlltool; ac_word=$2
81ecdfbb
RW
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11272$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11273if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11274 $as_echo_n "(cached) " >&6
2429c060 11275else
c6b750e1
DJ
11276 case $DLLTOOL_FOR_TARGET in
11277 [\\/]* | ?:[\\/]*)
2429c060
PB
11278 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11279 ;;
2429c060 11280 *)
c6b750e1
DJ
11281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11282for as_dir in $gcc_cv_tool_dirs
11283do
11284 IFS=$as_save_IFS
11285 test -z "$as_dir" && as_dir=.
81ecdfbb 11286 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11288 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11290 break 2
11291 fi
11292done
81ecdfbb
RW
11293 done
11294IFS=$as_save_IFS
c6b750e1 11295
2429c060
PB
11296 ;;
11297esac
11298fi
c6b750e1 11299DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11300if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11302$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11303else
81ecdfbb
RW
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305$as_echo "no" >&6; }
2429c060
PB
11306fi
11307
81ecdfbb 11308
2429c060
PB
11309fi
11310if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11311
11312
11313if test -n "$DLLTOOL_FOR_TARGET"; then
11314 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11315elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11316 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11317fi
11318
11319if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11320 for ncn_progname in dlltool; do
11321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11322set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11324$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11325if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11326 $as_echo_n "(cached) " >&6
9a819804
AO
11327else
11328 if test -n "$DLLTOOL_FOR_TARGET"; then
11329 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11330else
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
81ecdfbb 11336 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11338 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11340 break 2
11341 fi
11342done
81ecdfbb
RW
11343 done
11344IFS=$as_save_IFS
9a819804
AO
11345
11346fi
11347fi
11348DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11349if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11351$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11352else
81ecdfbb
RW
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354$as_echo "no" >&6; }
9a819804
AO
11355fi
11356
81ecdfbb 11357
9a819804
AO
11358 done
11359fi
11360
11361if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11362 for ncn_progname in dlltool; do
81ecdfbb
RW
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11364$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11365 if test -x $with_build_time_tools/${ncn_progname}; then
11366 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11368$as_echo "yes" >&6; }
2429c060
PB
11369 break
11370 else
81ecdfbb
RW
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372$as_echo "no" >&6; }
2429c060
PB
11373 fi
11374 done
11375fi
11376
11377if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11378 for ncn_progname in dlltool; do
11379 if test -n "$ncn_target_tool_prefix"; then
11380 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11381set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11383$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11384if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11385 $as_echo_n "(cached) " >&6
2429c060
PB
11386else
11387 if test -n "$DLLTOOL_FOR_TARGET"; then
11388 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11389else
c6b750e1
DJ
11390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391for as_dir in $PATH
11392do
11393 IFS=$as_save_IFS
11394 test -z "$as_dir" && as_dir=.
81ecdfbb 11395 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11397 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11399 break 2
11400 fi
11401done
81ecdfbb
RW
11402 done
11403IFS=$as_save_IFS
c6b750e1 11404
2429c060
PB
11405fi
11406fi
c6b750e1 11407DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11408if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11410$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11411else
81ecdfbb
RW
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413$as_echo "no" >&6; }
2429c060
PB
11414fi
11415
81ecdfbb 11416
2429c060
PB
11417 fi
11418 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11420set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11422$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11423if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 11424 $as_echo_n "(cached) " >&6
2429c060
PB
11425else
11426 if test -n "$DLLTOOL_FOR_TARGET"; then
11427 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11428else
c6b750e1
DJ
11429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430for as_dir in $PATH
11431do
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
81ecdfbb 11434 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11436 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11438 break 2
11439 fi
11440done
81ecdfbb
RW
11441 done
11442IFS=$as_save_IFS
c6b750e1 11443
2429c060
PB
11444fi
11445fi
c6b750e1 11446DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11447if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11449$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11450else
81ecdfbb
RW
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452$as_echo "no" >&6; }
2429c060 11453fi
c6b750e1 11454
81ecdfbb 11455
2429c060
PB
11456 fi
11457 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11458 done
11459fi
c6b750e1 11460
2429c060
PB
11461if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11462 set dummy dlltool
11463 if test $build = $target ; then
11464 DLLTOOL_FOR_TARGET="$2"
11465 else
11466 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11467 fi
d3f5afc4
MS
11468else
11469 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11470fi
11471
3a35eeb3
PB
11472else
11473 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11474fi
11475
11476
11477
11478
11479if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11480 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11482$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11483 if test -x $with_build_time_tools/ld; then
11484 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11485 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11487$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11488 else
81ecdfbb
RW
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490$as_echo "no" >&6; }
3a35eeb3 11491 fi
2429c060
PB
11492 elif test $build != $host && test $have_gcc_for_target = yes; then
11493 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11494 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11495 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11496 fi
11497fi
c6b750e1 11498if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11499 # Extract the first word of "ld", so it can be a program name with args.
11500set dummy ld; ac_word=$2
81ecdfbb
RW
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11503if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 11504 $as_echo_n "(cached) " >&6
2429c060 11505else
c6b750e1
DJ
11506 case $LD_FOR_TARGET in
11507 [\\/]* | ?:[\\/]*)
2429c060
PB
11508 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11509 ;;
2429c060 11510 *)
c6b750e1
DJ
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512for as_dir in $gcc_cv_tool_dirs
11513do
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
81ecdfbb 11516 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11518 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11520 break 2
11521 fi
11522done
81ecdfbb
RW
11523 done
11524IFS=$as_save_IFS
c6b750e1 11525
2429c060
PB
11526 ;;
11527esac
11528fi
c6b750e1 11529LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11530if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11532$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11533else
81ecdfbb
RW
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535$as_echo "no" >&6; }
2429c060
PB
11536fi
11537
81ecdfbb 11538
2429c060
PB
11539fi
11540if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11541
11542
11543if test -n "$LD_FOR_TARGET"; then
11544 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11545elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11546 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11547fi
11548
11549if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11550 for ncn_progname in ld; do
11551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11552set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11554$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11555if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11556 $as_echo_n "(cached) " >&6
9a819804
AO
11557else
11558 if test -n "$LD_FOR_TARGET"; then
11559 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11560else
11561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562for as_dir in $PATH
11563do
11564 IFS=$as_save_IFS
11565 test -z "$as_dir" && as_dir=.
81ecdfbb 11566 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11568 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11570 break 2
11571 fi
11572done
81ecdfbb
RW
11573 done
11574IFS=$as_save_IFS
9a819804
AO
11575
11576fi
11577fi
11578LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11579if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11581$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11582else
81ecdfbb
RW
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584$as_echo "no" >&6; }
9a819804
AO
11585fi
11586
81ecdfbb 11587
9a819804
AO
11588 done
11589fi
11590
11591if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11592 for ncn_progname in ld; do
81ecdfbb
RW
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11594$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11595 if test -x $with_build_time_tools/${ncn_progname}; then
11596 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11598$as_echo "yes" >&6; }
2429c060
PB
11599 break
11600 else
81ecdfbb
RW
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602$as_echo "no" >&6; }
2429c060
PB
11603 fi
11604 done
11605fi
11606
11607if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11608 for ncn_progname in ld; do
11609 if test -n "$ncn_target_tool_prefix"; then
11610 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11611set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11614if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11615 $as_echo_n "(cached) " >&6
2429c060
PB
11616else
11617 if test -n "$LD_FOR_TARGET"; then
11618 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11619else
c6b750e1
DJ
11620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11621for as_dir in $PATH
11622do
11623 IFS=$as_save_IFS
11624 test -z "$as_dir" && as_dir=.
81ecdfbb 11625 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11627 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11629 break 2
11630 fi
11631done
81ecdfbb
RW
11632 done
11633IFS=$as_save_IFS
c6b750e1 11634
2429c060
PB
11635fi
11636fi
c6b750e1 11637LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11638if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11640$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11641else
81ecdfbb
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643$as_echo "no" >&6; }
2429c060
PB
11644fi
11645
81ecdfbb 11646
2429c060
PB
11647 fi
11648 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11650set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11653if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 11654 $as_echo_n "(cached) " >&6
2429c060
PB
11655else
11656 if test -n "$LD_FOR_TARGET"; then
11657 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11658else
c6b750e1
DJ
11659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $PATH
11661do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
81ecdfbb 11664 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11666 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11668 break 2
11669 fi
11670done
81ecdfbb
RW
11671 done
11672IFS=$as_save_IFS
c6b750e1 11673
2429c060
PB
11674fi
11675fi
c6b750e1 11676LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11677if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11679$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11680else
81ecdfbb
RW
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682$as_echo "no" >&6; }
2429c060 11683fi
c6b750e1 11684
81ecdfbb 11685
2429c060
PB
11686 fi
11687 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11688 done
11689fi
c6b750e1 11690
2429c060
PB
11691if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11692 set dummy ld
11693 if test $build = $target ; then
11694 LD_FOR_TARGET="$2"
11695 else
11696 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11697 fi
d3f5afc4
MS
11698else
11699 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11700fi
11701
3a35eeb3
PB
11702else
11703 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11704fi
11705
11706
11707
11708
11709if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11710 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11712$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11713 if test -x $with_build_time_tools/lipo; then
11714 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11715 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11717$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11718 else
81ecdfbb
RW
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720$as_echo "no" >&6; }
3a35eeb3 11721 fi
2429c060
PB
11722 elif test $build != $host && test $have_gcc_for_target = yes; then
11723 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11724 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11725 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11726 fi
11727fi
9a819804
AO
11728if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11729 # Extract the first word of "lipo", so it can be a program name with args.
11730set dummy lipo; ac_word=$2
81ecdfbb
RW
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11732$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11733if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11734 $as_echo_n "(cached) " >&6
9a819804
AO
11735else
11736 case $LIPO_FOR_TARGET in
11737 [\\/]* | ?:[\\/]*)
11738 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11739 ;;
11740 *)
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742for as_dir in $gcc_cv_tool_dirs
11743do
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
81ecdfbb 11746 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11748 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11750 break 2
11751 fi
11752done
81ecdfbb
RW
11753 done
11754IFS=$as_save_IFS
9a819804
AO
11755
11756 ;;
11757esac
11758fi
11759LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11760if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11762$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11763else
81ecdfbb
RW
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765$as_echo "no" >&6; }
9a819804
AO
11766fi
11767
81ecdfbb 11768
9a819804
AO
11769fi
11770if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11771
11772
11773if test -n "$LIPO_FOR_TARGET"; then
11774 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11775elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11776 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11777fi
11778
11779if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11780 for ncn_progname in lipo; do
11781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11782set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11785if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11786 $as_echo_n "(cached) " >&6
2429c060 11787else
9a819804
AO
11788 if test -n "$LIPO_FOR_TARGET"; then
11789 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11790else
11791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792for as_dir in $PATH
c6b750e1
DJ
11793do
11794 IFS=$as_save_IFS
11795 test -z "$as_dir" && as_dir=.
81ecdfbb 11796 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11798 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11800 break 2
11801 fi
11802done
81ecdfbb
RW
11803 done
11804IFS=$as_save_IFS
c6b750e1 11805
2429c060 11806fi
9a819804
AO
11807fi
11808LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11809if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11811$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11812else
81ecdfbb
RW
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814$as_echo "no" >&6; }
2429c060
PB
11815fi
11816
81ecdfbb 11817
9a819804 11818 done
2429c060 11819fi
9a819804
AO
11820
11821if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11822 for ncn_progname in lipo; do
81ecdfbb
RW
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11824$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11825 if test -x $with_build_time_tools/${ncn_progname}; then
11826 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11828$as_echo "yes" >&6; }
2429c060
PB
11829 break
11830 else
81ecdfbb
RW
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832$as_echo "no" >&6; }
2429c060
PB
11833 fi
11834 done
11835fi
11836
11837if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11838 for ncn_progname in lipo; do
11839 if test -n "$ncn_target_tool_prefix"; then
11840 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11841set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11843$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11844if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11845 $as_echo_n "(cached) " >&6
2429c060
PB
11846else
11847 if test -n "$LIPO_FOR_TARGET"; then
11848 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11849else
c6b750e1
DJ
11850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851for as_dir in $PATH
11852do
11853 IFS=$as_save_IFS
11854 test -z "$as_dir" && as_dir=.
81ecdfbb 11855 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11857 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11859 break 2
11860 fi
11861done
81ecdfbb
RW
11862 done
11863IFS=$as_save_IFS
c6b750e1 11864
2429c060
PB
11865fi
11866fi
c6b750e1 11867LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11868if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11870$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11871else
81ecdfbb
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873$as_echo "no" >&6; }
2429c060
PB
11874fi
11875
81ecdfbb 11876
2429c060
PB
11877 fi
11878 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11880set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11883if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 11884 $as_echo_n "(cached) " >&6
2429c060
PB
11885else
11886 if test -n "$LIPO_FOR_TARGET"; then
11887 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11888else
c6b750e1
DJ
11889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11890for as_dir in $PATH
11891do
11892 IFS=$as_save_IFS
11893 test -z "$as_dir" && as_dir=.
81ecdfbb 11894 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11896 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11898 break 2
11899 fi
11900done
81ecdfbb
RW
11901 done
11902IFS=$as_save_IFS
c6b750e1 11903
2429c060
PB
11904fi
11905fi
c6b750e1 11906LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11907if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11909$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11910else
81ecdfbb
RW
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912$as_echo "no" >&6; }
2429c060 11913fi
c6b750e1 11914
81ecdfbb 11915
2429c060
PB
11916 fi
11917 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11918 done
11919fi
c6b750e1 11920
2429c060
PB
11921if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11922 set dummy lipo
11923 if test $build = $target ; then
11924 LIPO_FOR_TARGET="$2"
11925 else
11926 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11927 fi
d3f5afc4
MS
11928else
11929 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11930fi
11931
3a35eeb3
PB
11932else
11933 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11934fi
11935
11936
11937
11938
11939if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11940 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11942$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11943 if test -x $with_build_time_tools/nm; then
11944 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11945 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11947$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11948 else
81ecdfbb
RW
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950$as_echo "no" >&6; }
3a35eeb3 11951 fi
2429c060
PB
11952 elif test $build != $host && test $have_gcc_for_target = yes; then
11953 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11954 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11955 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11956 fi
11957fi
c6b750e1 11958if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11959 # Extract the first word of "nm", so it can be a program name with args.
11960set dummy nm; ac_word=$2
81ecdfbb
RW
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11962$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11963if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 11964 $as_echo_n "(cached) " >&6
2429c060 11965else
c6b750e1
DJ
11966 case $NM_FOR_TARGET in
11967 [\\/]* | ?:[\\/]*)
2429c060
PB
11968 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11969 ;;
2429c060 11970 *)
c6b750e1
DJ
11971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972for as_dir in $gcc_cv_tool_dirs
11973do
11974 IFS=$as_save_IFS
11975 test -z "$as_dir" && as_dir=.
81ecdfbb 11976 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11978 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11980 break 2
11981 fi
11982done
81ecdfbb
RW
11983 done
11984IFS=$as_save_IFS
c6b750e1 11985
2429c060
PB
11986 ;;
11987esac
11988fi
c6b750e1 11989NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11990if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11992$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11993else
81ecdfbb
RW
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995$as_echo "no" >&6; }
2429c060
PB
11996fi
11997
81ecdfbb 11998
2429c060
PB
11999fi
12000if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12001
12002
12003if test -n "$NM_FOR_TARGET"; then
12004 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12005elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12006 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12007fi
12008
12009if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12010 for ncn_progname in nm; do
12011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12012set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12014$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12015if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12016 $as_echo_n "(cached) " >&6
9a819804
AO
12017else
12018 if test -n "$NM_FOR_TARGET"; then
12019 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12020else
12021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022for as_dir in $PATH
12023do
12024 IFS=$as_save_IFS
12025 test -z "$as_dir" && as_dir=.
81ecdfbb 12026 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12028 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12030 break 2
12031 fi
12032done
81ecdfbb
RW
12033 done
12034IFS=$as_save_IFS
9a819804
AO
12035
12036fi
12037fi
12038NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12039if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12041$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12042else
81ecdfbb
RW
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044$as_echo "no" >&6; }
9a819804
AO
12045fi
12046
81ecdfbb 12047
9a819804
AO
12048 done
12049fi
12050
12051if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12052 for ncn_progname in nm; do
81ecdfbb
RW
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12054$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12055 if test -x $with_build_time_tools/${ncn_progname}; then
12056 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12058$as_echo "yes" >&6; }
2429c060
PB
12059 break
12060 else
81ecdfbb
RW
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062$as_echo "no" >&6; }
2429c060
PB
12063 fi
12064 done
12065fi
12066
12067if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12068 for ncn_progname in nm; do
12069 if test -n "$ncn_target_tool_prefix"; then
12070 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12071set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12074if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12075 $as_echo_n "(cached) " >&6
859789af 12076else
55db4b87
PB
12077 if test -n "$NM_FOR_TARGET"; then
12078 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12079else
c6b750e1
DJ
12080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081for as_dir in $PATH
12082do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
81ecdfbb 12085 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12087 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12089 break 2
12090 fi
12091done
81ecdfbb
RW
12092 done
12093IFS=$as_save_IFS
c6b750e1 12094
859789af
AC
12095fi
12096fi
c6b750e1 12097NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12098if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12100$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12101else
81ecdfbb
RW
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
859789af
AC
12104fi
12105
81ecdfbb 12106
2429c060
PB
12107 fi
12108 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12110set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12113if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 12114 $as_echo_n "(cached) " >&6
859789af 12115else
05cbd757
PB
12116 if test -n "$NM_FOR_TARGET"; then
12117 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12118else
c6b750e1
DJ
12119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120for as_dir in $PATH
12121do
12122 IFS=$as_save_IFS
12123 test -z "$as_dir" && as_dir=.
81ecdfbb 12124 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12126 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12128 break 2
12129 fi
12130done
81ecdfbb
RW
12131 done
12132IFS=$as_save_IFS
c6b750e1 12133
859789af
AC
12134fi
12135fi
c6b750e1 12136NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12137if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12139$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12140else
81ecdfbb
RW
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142$as_echo "no" >&6; }
859789af 12143fi
c6b750e1 12144
81ecdfbb 12145
2429c060
PB
12146 fi
12147 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12148 done
12149fi
c6b750e1 12150
05cbd757
PB
12151if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12152 set dummy nm
12153 if test $build = $target ; then
12154 NM_FOR_TARGET="$2"
859789af 12155 else
05cbd757 12156 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12157 fi
d3f5afc4
MS
12158else
12159 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12160fi
12161
3a35eeb3
PB
12162else
12163 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12164fi
12165
12166
12167
12168
6b91c541
AP
12169if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12170 if test -n "$with_build_time_tools"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12172$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12173 if test -x $with_build_time_tools/objcopy; then
12174 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12175 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12177$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180$as_echo "no" >&6; }
12181 fi
12182 elif test $build != $host && test $have_gcc_for_target = yes; then
12183 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12184 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12185 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12186 fi
12187fi
12188if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12189 # Extract the first word of "objcopy", so it can be a program name with args.
12190set dummy objcopy; ac_word=$2
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12192$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12193if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12194 $as_echo_n "(cached) " >&6
12195else
12196 case $OBJCOPY_FOR_TARGET in
12197 [\\/]* | ?:[\\/]*)
12198 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12199 ;;
12200 *)
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202for as_dir in $gcc_cv_tool_dirs
12203do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12208 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12211 fi
12212done
12213 done
12214IFS=$as_save_IFS
12215
12216 ;;
12217esac
12218fi
12219OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12220if test -n "$OBJCOPY_FOR_TARGET"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12222$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12223else
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225$as_echo "no" >&6; }
12226fi
12227
12228
12229fi
12230if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12231
12232
12233if test -n "$OBJCOPY_FOR_TARGET"; then
12234 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12235elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12236 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12237fi
12238
12239if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12240 for ncn_progname in objcopy; do
12241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12242set dummy ${ncn_progname}; ac_word=$2
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12245if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12246 $as_echo_n "(cached) " >&6
12247else
12248 if test -n "$OBJCOPY_FOR_TARGET"; then
12249 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12250else
12251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252for as_dir in $PATH
12253do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
12256 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12258 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260 break 2
12261 fi
12262done
12263 done
12264IFS=$as_save_IFS
12265
12266fi
12267fi
12268OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12269if test -n "$OBJCOPY_FOR_TARGET"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12271$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12272else
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274$as_echo "no" >&6; }
12275fi
12276
12277
12278 done
12279fi
12280
12281if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12282 for ncn_progname in objcopy; do
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12284$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12285 if test -x $with_build_time_tools/${ncn_progname}; then
12286 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12288$as_echo "yes" >&6; }
12289 break
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292$as_echo "no" >&6; }
12293 fi
12294 done
12295fi
12296
12297if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12298 for ncn_progname in objcopy; do
12299 if test -n "$ncn_target_tool_prefix"; then
12300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12301set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12304if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12305 $as_echo_n "(cached) " >&6
12306else
12307 if test -n "$OBJCOPY_FOR_TARGET"; then
12308 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12309else
12310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311for as_dir in $PATH
12312do
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12317 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 break 2
12320 fi
12321done
12322 done
12323IFS=$as_save_IFS
12324
12325fi
12326fi
12327OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12328if test -n "$OBJCOPY_FOR_TARGET"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12330$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12331else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333$as_echo "no" >&6; }
12334fi
12335
12336
12337 fi
12338 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12340set dummy ${ncn_progname}; ac_word=$2
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12342$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12343if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
12344 $as_echo_n "(cached) " >&6
12345else
12346 if test -n "$OBJCOPY_FOR_TARGET"; then
12347 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12348else
12349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350for as_dir in $PATH
12351do
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
12354 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
12356 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358 break 2
12359 fi
12360done
12361 done
12362IFS=$as_save_IFS
12363
12364fi
12365fi
12366OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12367if test -n "$OBJCOPY_FOR_TARGET"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12369$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12370else
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372$as_echo "no" >&6; }
12373fi
12374
12375
12376 fi
12377 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12378 done
12379fi
12380
12381if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12382 set dummy objcopy
12383 if test $build = $target ; then
12384 OBJCOPY_FOR_TARGET="$2"
12385 else
12386 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12387 fi
12388else
12389 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12390fi
12391
12392else
12393 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12394fi
12395
12396
12397
12398
2429c060
PB
12399if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12400 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12402$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12403 if test -x $with_build_time_tools/objdump; then
12404 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12405 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12407$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12408 else
81ecdfbb
RW
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410$as_echo "no" >&6; }
3a35eeb3 12411 fi
2429c060
PB
12412 elif test $build != $host && test $have_gcc_for_target = yes; then
12413 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12414 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12415 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12416 fi
12417fi
c6b750e1 12418if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12419 # Extract the first word of "objdump", so it can be a program name with args.
12420set dummy objdump; ac_word=$2
81ecdfbb
RW
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12422$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12423if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12424 $as_echo_n "(cached) " >&6
2429c060 12425else
c6b750e1
DJ
12426 case $OBJDUMP_FOR_TARGET in
12427 [\\/]* | ?:[\\/]*)
2429c060
PB
12428 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12429 ;;
2429c060 12430 *)
c6b750e1
DJ
12431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12432for as_dir in $gcc_cv_tool_dirs
12433do
12434 IFS=$as_save_IFS
12435 test -z "$as_dir" && as_dir=.
81ecdfbb 12436 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12438 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12440 break 2
12441 fi
12442done
81ecdfbb
RW
12443 done
12444IFS=$as_save_IFS
c6b750e1 12445
2429c060
PB
12446 ;;
12447esac
12448fi
c6b750e1 12449OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12450if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12452$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12453else
81ecdfbb
RW
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455$as_echo "no" >&6; }
2429c060
PB
12456fi
12457
81ecdfbb 12458
2429c060
PB
12459fi
12460if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12461
12462
12463if test -n "$OBJDUMP_FOR_TARGET"; then
12464 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12465elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12466 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12467fi
12468
12469if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12470 for ncn_progname in objdump; do
12471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12472set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12474$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12475if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12476 $as_echo_n "(cached) " >&6
9a819804
AO
12477else
12478 if test -n "$OBJDUMP_FOR_TARGET"; then
12479 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12480else
12481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482for as_dir in $PATH
12483do
12484 IFS=$as_save_IFS
12485 test -z "$as_dir" && as_dir=.
81ecdfbb 12486 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12488 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12490 break 2
12491 fi
12492done
81ecdfbb
RW
12493 done
12494IFS=$as_save_IFS
9a819804
AO
12495
12496fi
12497fi
12498OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12499if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12501$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12502else
81ecdfbb
RW
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504$as_echo "no" >&6; }
9a819804
AO
12505fi
12506
81ecdfbb 12507
9a819804
AO
12508 done
12509fi
12510
12511if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12512 for ncn_progname in objdump; do
81ecdfbb
RW
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12514$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12515 if test -x $with_build_time_tools/${ncn_progname}; then
12516 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12518$as_echo "yes" >&6; }
2429c060
PB
12519 break
12520 else
81ecdfbb
RW
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522$as_echo "no" >&6; }
2429c060
PB
12523 fi
12524 done
12525fi
12526
12527if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12528 for ncn_progname in objdump; do
12529 if test -n "$ncn_target_tool_prefix"; then
12530 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12531set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12533$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12534if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12535 $as_echo_n "(cached) " >&6
5ae72758
DJ
12536else
12537 if test -n "$OBJDUMP_FOR_TARGET"; then
12538 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12539else
c6b750e1
DJ
12540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541for as_dir in $PATH
12542do
12543 IFS=$as_save_IFS
12544 test -z "$as_dir" && as_dir=.
81ecdfbb 12545 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12547 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12549 break 2
12550 fi
12551done
81ecdfbb
RW
12552 done
12553IFS=$as_save_IFS
c6b750e1 12554
5ae72758
DJ
12555fi
12556fi
c6b750e1 12557OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12558if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12560$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12561else
81ecdfbb
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563$as_echo "no" >&6; }
5ae72758
DJ
12564fi
12565
81ecdfbb 12566
2429c060
PB
12567 fi
12568 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12570set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12572$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12573if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 12574 $as_echo_n "(cached) " >&6
5ae72758
DJ
12575else
12576 if test -n "$OBJDUMP_FOR_TARGET"; then
12577 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12578else
c6b750e1
DJ
12579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12580for as_dir in $PATH
12581do
12582 IFS=$as_save_IFS
12583 test -z "$as_dir" && as_dir=.
81ecdfbb 12584 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12586 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12588 break 2
12589 fi
12590done
81ecdfbb
RW
12591 done
12592IFS=$as_save_IFS
c6b750e1 12593
5ae72758
DJ
12594fi
12595fi
c6b750e1 12596OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12597if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12599$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12600else
81ecdfbb
RW
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602$as_echo "no" >&6; }
5ae72758 12603fi
c6b750e1 12604
81ecdfbb 12605
2429c060
PB
12606 fi
12607 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12608 done
12609fi
c6b750e1 12610
5ae72758
DJ
12611if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12612 set dummy objdump
12613 if test $build = $target ; then
12614 OBJDUMP_FOR_TARGET="$2"
12615 else
12616 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12617 fi
d3f5afc4
MS
12618else
12619 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12620fi
12621
3a35eeb3
PB
12622else
12623 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12624fi
12625
12626
12627
12628
12629if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12630 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12632$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12633 if test -x $with_build_time_tools/ranlib; then
12634 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12635 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12637$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12638 else
81ecdfbb
RW
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640$as_echo "no" >&6; }
3a35eeb3 12641 fi
2429c060
PB
12642 elif test $build != $host && test $have_gcc_for_target = yes; then
12643 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12644 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12645 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12646 fi
12647fi
c6b750e1 12648if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12649 # Extract the first word of "ranlib", so it can be a program name with args.
12650set dummy ranlib; ac_word=$2
81ecdfbb
RW
12651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12652$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12653if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12654 $as_echo_n "(cached) " >&6
2429c060 12655else
c6b750e1
DJ
12656 case $RANLIB_FOR_TARGET in
12657 [\\/]* | ?:[\\/]*)
2429c060
PB
12658 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12659 ;;
2429c060 12660 *)
c6b750e1
DJ
12661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12662for as_dir in $gcc_cv_tool_dirs
12663do
12664 IFS=$as_save_IFS
12665 test -z "$as_dir" && as_dir=.
81ecdfbb 12666 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12668 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12670 break 2
12671 fi
12672done
81ecdfbb
RW
12673 done
12674IFS=$as_save_IFS
c6b750e1 12675
2429c060
PB
12676 ;;
12677esac
12678fi
c6b750e1 12679RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12680if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12682$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12683else
81ecdfbb
RW
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685$as_echo "no" >&6; }
2429c060
PB
12686fi
12687
81ecdfbb 12688
2429c060
PB
12689fi
12690if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12691
12692
12693if test -n "$RANLIB_FOR_TARGET"; then
12694 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12695elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12696 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12697fi
12698
12699if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12700 for ncn_progname in ranlib; do
12701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12702set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12704$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12705if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12706 $as_echo_n "(cached) " >&6
9a819804
AO
12707else
12708 if test -n "$RANLIB_FOR_TARGET"; then
12709 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12710else
12711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12712for as_dir in $PATH
12713do
12714 IFS=$as_save_IFS
12715 test -z "$as_dir" && as_dir=.
81ecdfbb 12716 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12718 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12720 break 2
12721 fi
12722done
81ecdfbb
RW
12723 done
12724IFS=$as_save_IFS
9a819804
AO
12725
12726fi
12727fi
12728RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12729if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12731$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12732else
81ecdfbb
RW
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734$as_echo "no" >&6; }
9a819804
AO
12735fi
12736
81ecdfbb 12737
9a819804
AO
12738 done
12739fi
12740
12741if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12742 for ncn_progname in ranlib; do
81ecdfbb
RW
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12744$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12745 if test -x $with_build_time_tools/${ncn_progname}; then
12746 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12748$as_echo "yes" >&6; }
2429c060
PB
12749 break
12750 else
81ecdfbb
RW
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752$as_echo "no" >&6; }
2429c060
PB
12753 fi
12754 done
12755fi
12756
12757if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12758 for ncn_progname in ranlib; do
12759 if test -n "$ncn_target_tool_prefix"; then
12760 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12761set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12764if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12765 $as_echo_n "(cached) " >&6
859789af 12766else
55db4b87
PB
12767 if test -n "$RANLIB_FOR_TARGET"; then
12768 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12769else
c6b750e1
DJ
12770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771for as_dir in $PATH
12772do
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
81ecdfbb 12775 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12777 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12779 break 2
12780 fi
12781done
81ecdfbb
RW
12782 done
12783IFS=$as_save_IFS
c6b750e1 12784
859789af
AC
12785fi
12786fi
c6b750e1 12787RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12788if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12790$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12791else
81ecdfbb
RW
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793$as_echo "no" >&6; }
859789af
AC
12794fi
12795
81ecdfbb 12796
2429c060
PB
12797 fi
12798 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12800set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12803if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 12804 $as_echo_n "(cached) " >&6
859789af 12805else
05cbd757
PB
12806 if test -n "$RANLIB_FOR_TARGET"; then
12807 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12808else
c6b750e1
DJ
12809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810for as_dir in $PATH
12811do
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
81ecdfbb 12814 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12816 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12818 break 2
12819 fi
12820done
81ecdfbb
RW
12821 done
12822IFS=$as_save_IFS
c6b750e1 12823
859789af
AC
12824fi
12825fi
c6b750e1 12826RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12827if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12829$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12830else
81ecdfbb
RW
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832$as_echo "no" >&6; }
859789af 12833fi
c6b750e1 12834
81ecdfbb 12835
2429c060
PB
12836 fi
12837 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12838 done
12839fi
c6b750e1 12840
2429c060
PB
12841if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12842 set dummy ranlib
12843 if test $build = $target ; then
12844 RANLIB_FOR_TARGET="$2"
12845 else
12846 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12847 fi
d3f5afc4
MS
12848else
12849 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12850fi
05cbd757 12851
3a35eeb3
PB
12852else
12853 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12854fi
12855
2429c060
PB
12856
12857
12858
b121d7d4
DD
12859if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12860 if test -n "$with_build_time_tools"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12862$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12863 if test -x $with_build_time_tools/readelf; then
12864 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12865 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12867$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12868 else
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870$as_echo "no" >&6; }
12871 fi
12872 elif test $build != $host && test $have_gcc_for_target = yes; then
12873 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12874 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12875 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12876 fi
12877fi
12878if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12879 # Extract the first word of "readelf", so it can be a program name with args.
12880set dummy readelf; ac_word=$2
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12883if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
12884 $as_echo_n "(cached) " >&6
12885else
12886 case $READELF_FOR_TARGET in
12887 [\\/]* | ?:[\\/]*)
12888 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12889 ;;
12890 *)
12891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892for as_dir in $gcc_cv_tool_dirs
12893do
12894 IFS=$as_save_IFS
12895 test -z "$as_dir" && as_dir=.
12896 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12898 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900 break 2
12901 fi
12902done
12903 done
12904IFS=$as_save_IFS
12905
12906 ;;
12907esac
12908fi
12909READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12910if test -n "$READELF_FOR_TARGET"; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12912$as_echo "$READELF_FOR_TARGET" >&6; }
12913else
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915$as_echo "no" >&6; }
12916fi
12917
12918
12919fi
12920if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12921
12922
12923if test -n "$READELF_FOR_TARGET"; then
12924 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12925elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12926 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12927fi
12928
12929if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12930 for ncn_progname in readelf; do
12931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12932set dummy ${ncn_progname}; ac_word=$2
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12934$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12935if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
12936 $as_echo_n "(cached) " >&6
12937else
12938 if test -n "$READELF_FOR_TARGET"; then
12939 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12940else
12941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12942for as_dir in $PATH
12943do
12944 IFS=$as_save_IFS
12945 test -z "$as_dir" && as_dir=.
12946 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12948 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12950 break 2
12951 fi
12952done
12953 done
12954IFS=$as_save_IFS
12955
12956fi
12957fi
12958READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12959if test -n "$READELF_FOR_TARGET"; then
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12961$as_echo "$READELF_FOR_TARGET" >&6; }
12962else
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12964$as_echo "no" >&6; }
12965fi
12966
12967
12968 done
12969fi
12970
12971if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12972 for ncn_progname in readelf; do
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12974$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12975 if test -x $with_build_time_tools/${ncn_progname}; then
12976 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12978$as_echo "yes" >&6; }
12979 break
12980 else
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982$as_echo "no" >&6; }
12983 fi
12984 done
12985fi
12986
12987if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12988 for ncn_progname in readelf; do
12989 if test -n "$ncn_target_tool_prefix"; then
12990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12991set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12993$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12994if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
12995 $as_echo_n "(cached) " >&6
12996else
12997 if test -n "$READELF_FOR_TARGET"; then
12998 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12999else
13000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001for as_dir in $PATH
13002do
13003 IFS=$as_save_IFS
13004 test -z "$as_dir" && as_dir=.
13005 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13007 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13009 break 2
13010 fi
13011done
13012 done
13013IFS=$as_save_IFS
13014
13015fi
13016fi
13017READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13018if test -n "$READELF_FOR_TARGET"; then
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13020$as_echo "$READELF_FOR_TARGET" >&6; }
13021else
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023$as_echo "no" >&6; }
13024fi
13025
13026
13027 fi
13028 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13030set dummy ${ncn_progname}; ac_word=$2
13031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13032$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13033if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
13034 $as_echo_n "(cached) " >&6
13035else
13036 if test -n "$READELF_FOR_TARGET"; then
13037 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13038else
13039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040for as_dir in $PATH
13041do
13042 IFS=$as_save_IFS
13043 test -z "$as_dir" && as_dir=.
13044 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13046 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13048 break 2
13049 fi
13050done
13051 done
13052IFS=$as_save_IFS
13053
13054fi
13055fi
13056READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13057if test -n "$READELF_FOR_TARGET"; then
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13059$as_echo "$READELF_FOR_TARGET" >&6; }
13060else
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13062$as_echo "no" >&6; }
13063fi
13064
13065
13066 fi
13067 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13068 done
13069fi
13070
13071if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13072 set dummy readelf
13073 if test $build = $target ; then
13074 READELF_FOR_TARGET="$2"
13075 else
13076 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13077 fi
13078else
13079 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13080fi
13081
13082else
13083 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13084fi
13085
13086
13087
13088
2429c060
PB
13089if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13090 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13092$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13093 if test -x $with_build_time_tools/strip; then
13094 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13095 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13097$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 13098 else
81ecdfbb
RW
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100$as_echo "no" >&6; }
3a35eeb3 13101 fi
2429c060
PB
13102 elif test $build != $host && test $have_gcc_for_target = yes; then
13103 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13104 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13105 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13106 fi
13107fi
c6b750e1 13108if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13109 # Extract the first word of "strip", so it can be a program name with args.
13110set dummy strip; ac_word=$2
81ecdfbb
RW
13111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13112$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13113if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13114 $as_echo_n "(cached) " >&6
2429c060 13115else
c6b750e1
DJ
13116 case $STRIP_FOR_TARGET in
13117 [\\/]* | ?:[\\/]*)
2429c060
PB
13118 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13119 ;;
2429c060 13120 *)
c6b750e1
DJ
13121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122for as_dir in $gcc_cv_tool_dirs
13123do
13124 IFS=$as_save_IFS
13125 test -z "$as_dir" && as_dir=.
81ecdfbb 13126 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13128 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13130 break 2
13131 fi
13132done
81ecdfbb
RW
13133 done
13134IFS=$as_save_IFS
c6b750e1 13135
2429c060
PB
13136 ;;
13137esac
13138fi
c6b750e1 13139STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13140if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13142$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13143else
81ecdfbb
RW
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145$as_echo "no" >&6; }
2429c060
PB
13146fi
13147
81ecdfbb 13148
2429c060
PB
13149fi
13150if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13151
13152
13153if test -n "$STRIP_FOR_TARGET"; then
13154 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13155elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13156 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13157fi
13158
13159if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13160 for ncn_progname in strip; do
13161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13162set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13164$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13165if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13166 $as_echo_n "(cached) " >&6
9a819804
AO
13167else
13168 if test -n "$STRIP_FOR_TARGET"; then
13169 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13170else
13171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172for as_dir in $PATH
13173do
13174 IFS=$as_save_IFS
13175 test -z "$as_dir" && as_dir=.
81ecdfbb 13176 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13178 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13180 break 2
13181 fi
13182done
81ecdfbb
RW
13183 done
13184IFS=$as_save_IFS
9a819804
AO
13185
13186fi
13187fi
13188STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13189if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13191$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13192else
81ecdfbb
RW
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194$as_echo "no" >&6; }
9a819804
AO
13195fi
13196
81ecdfbb 13197
9a819804
AO
13198 done
13199fi
13200
13201if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13202 for ncn_progname in strip; do
81ecdfbb
RW
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13204$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13205 if test -x $with_build_time_tools/${ncn_progname}; then
13206 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13208$as_echo "yes" >&6; }
2429c060
PB
13209 break
13210 else
81ecdfbb
RW
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212$as_echo "no" >&6; }
2429c060
PB
13213 fi
13214 done
13215fi
13216
13217if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13218 for ncn_progname in strip; do
13219 if test -n "$ncn_target_tool_prefix"; then
13220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13221set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13224if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13225 $as_echo_n "(cached) " >&6
7e0f7140
GK
13226else
13227 if test -n "$STRIP_FOR_TARGET"; then
13228 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13229else
13230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231for as_dir in $PATH
13232do
13233 IFS=$as_save_IFS
13234 test -z "$as_dir" && as_dir=.
81ecdfbb 13235 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13237 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13239 break 2
13240 fi
13241done
81ecdfbb
RW
13242 done
13243IFS=$as_save_IFS
c6b750e1 13244
7e0f7140
GK
13245fi
13246fi
c6b750e1 13247STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13248if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13250$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13251else
81ecdfbb
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253$as_echo "no" >&6; }
7e0f7140
GK
13254fi
13255
81ecdfbb 13256
2429c060
PB
13257 fi
13258 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13260set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13262$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13263if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 13264 $as_echo_n "(cached) " >&6
7e0f7140
GK
13265else
13266 if test -n "$STRIP_FOR_TARGET"; then
13267 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13268else
c6b750e1
DJ
13269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270for as_dir in $PATH
13271do
13272 IFS=$as_save_IFS
13273 test -z "$as_dir" && as_dir=.
81ecdfbb 13274 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13276 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13278 break 2
13279 fi
13280done
81ecdfbb
RW
13281 done
13282IFS=$as_save_IFS
c6b750e1 13283
7e0f7140
GK
13284fi
13285fi
c6b750e1 13286STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13287if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13289$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13290else
81ecdfbb
RW
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292$as_echo "no" >&6; }
7e0f7140 13293fi
c6b750e1 13294
81ecdfbb 13295
2429c060
PB
13296 fi
13297 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13298 done
13299fi
c6b750e1 13300
7e0f7140
GK
13301if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13302 set dummy strip
13303 if test $build = $target ; then
13304 STRIP_FOR_TARGET="$2"
13305 else
13306 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13307 fi
d3f5afc4
MS
13308else
13309 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13310fi
13311
3a35eeb3
PB
13312else
13313 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13314fi
13315
13316
13317
13318
13319if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13320 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13322$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13323 if test -x $with_build_time_tools/windres; then
13324 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13325 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13327$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13328 else
81ecdfbb
RW
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330$as_echo "no" >&6; }
3a35eeb3 13331 fi
2429c060
PB
13332 elif test $build != $host && test $have_gcc_for_target = yes; then
13333 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13334 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13335 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13336 fi
13337fi
c6b750e1 13338if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13339 # Extract the first word of "windres", so it can be a program name with args.
13340set dummy windres; ac_word=$2
81ecdfbb
RW
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13343if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13344 $as_echo_n "(cached) " >&6
2429c060 13345else
c6b750e1
DJ
13346 case $WINDRES_FOR_TARGET in
13347 [\\/]* | ?:[\\/]*)
2429c060
PB
13348 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13349 ;;
2429c060 13350 *)
c6b750e1
DJ
13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352for as_dir in $gcc_cv_tool_dirs
13353do
13354 IFS=$as_save_IFS
13355 test -z "$as_dir" && as_dir=.
81ecdfbb 13356 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13358 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13360 break 2
13361 fi
13362done
81ecdfbb
RW
13363 done
13364IFS=$as_save_IFS
c6b750e1 13365
2429c060
PB
13366 ;;
13367esac
13368fi
c6b750e1 13369WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13370if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13372$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13373else
81ecdfbb
RW
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375$as_echo "no" >&6; }
2429c060
PB
13376fi
13377
81ecdfbb 13378
2429c060
PB
13379fi
13380if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13381
13382
13383if test -n "$WINDRES_FOR_TARGET"; then
13384 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13385elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13386 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13387fi
13388
13389if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13390 for ncn_progname in windres; do
13391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13392set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13394$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13395if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13396 $as_echo_n "(cached) " >&6
9a819804
AO
13397else
13398 if test -n "$WINDRES_FOR_TARGET"; then
13399 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13400else
13401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13402for as_dir in $PATH
13403do
13404 IFS=$as_save_IFS
13405 test -z "$as_dir" && as_dir=.
81ecdfbb 13406 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13408 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13410 break 2
13411 fi
13412done
81ecdfbb
RW
13413 done
13414IFS=$as_save_IFS
9a819804
AO
13415
13416fi
13417fi
13418WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13419if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13421$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13422else
81ecdfbb
RW
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424$as_echo "no" >&6; }
9a819804
AO
13425fi
13426
81ecdfbb 13427
9a819804
AO
13428 done
13429fi
13430
13431if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13432 for ncn_progname in windres; do
81ecdfbb
RW
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13434$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13435 if test -x $with_build_time_tools/${ncn_progname}; then
13436 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13438$as_echo "yes" >&6; }
2429c060
PB
13439 break
13440 else
81ecdfbb
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442$as_echo "no" >&6; }
2429c060
PB
13443 fi
13444 done
13445fi
13446
13447if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13448 for ncn_progname in windres; do
13449 if test -n "$ncn_target_tool_prefix"; then
13450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13451set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13453$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13454if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13455 $as_echo_n "(cached) " >&6
859789af 13456else
55db4b87
PB
13457 if test -n "$WINDRES_FOR_TARGET"; then
13458 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13459else
c6b750e1
DJ
13460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13461for as_dir in $PATH
13462do
13463 IFS=$as_save_IFS
13464 test -z "$as_dir" && as_dir=.
81ecdfbb 13465 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13467 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13469 break 2
13470 fi
13471done
81ecdfbb
RW
13472 done
13473IFS=$as_save_IFS
c6b750e1 13474
859789af
AC
13475fi
13476fi
c6b750e1 13477WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13478if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13480$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13481else
81ecdfbb
RW
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483$as_echo "no" >&6; }
859789af
AC
13484fi
13485
81ecdfbb 13486
2429c060
PB
13487 fi
13488 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13490set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13493if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 13494 $as_echo_n "(cached) " >&6
859789af 13495else
05cbd757
PB
13496 if test -n "$WINDRES_FOR_TARGET"; then
13497 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13498else
c6b750e1
DJ
13499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13500for as_dir in $PATH
13501do
13502 IFS=$as_save_IFS
13503 test -z "$as_dir" && as_dir=.
81ecdfbb 13504 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13506 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13508 break 2
13509 fi
13510done
81ecdfbb
RW
13511 done
13512IFS=$as_save_IFS
c6b750e1 13513
859789af
AC
13514fi
13515fi
c6b750e1 13516WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13517if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13519$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13520else
81ecdfbb
RW
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522$as_echo "no" >&6; }
859789af 13523fi
c6b750e1 13524
81ecdfbb 13525
2429c060
PB
13526 fi
13527 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13528 done
13529fi
c6b750e1 13530
05cbd757
PB
13531if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13532 set dummy windres
13533 if test $build = $target ; then
13534 WINDRES_FOR_TARGET="$2"
859789af 13535 else
05cbd757 13536 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13537 fi
d3f5afc4
MS
13538else
13539 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13540fi
13541
3a35eeb3
PB
13542else
13543 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13544fi
13545
852e5f18 13546
0c24b341
NC
13547
13548
13549if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13550 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13552$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13553 if test -x $with_build_time_tools/windmc; then
13554 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13555 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13557$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13558 else
81ecdfbb
RW
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13560$as_echo "no" >&6; }
0c24b341
NC
13561 fi
13562 elif test $build != $host && test $have_gcc_for_target = yes; then
13563 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13564 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13565 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13566 fi
13567fi
13568if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13569 # Extract the first word of "windmc", so it can be a program name with args.
13570set dummy windmc; ac_word=$2
81ecdfbb
RW
13571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13573if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13574 $as_echo_n "(cached) " >&6
0c24b341
NC
13575else
13576 case $WINDMC_FOR_TARGET in
13577 [\\/]* | ?:[\\/]*)
13578 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13579 ;;
13580 *)
13581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13582for as_dir in $gcc_cv_tool_dirs
13583do
13584 IFS=$as_save_IFS
13585 test -z "$as_dir" && as_dir=.
81ecdfbb 13586 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13588 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13590 break 2
13591 fi
13592done
81ecdfbb
RW
13593 done
13594IFS=$as_save_IFS
0c24b341
NC
13595
13596 ;;
13597esac
13598fi
13599WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13600if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13602$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13603else
81ecdfbb
RW
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605$as_echo "no" >&6; }
0c24b341
NC
13606fi
13607
81ecdfbb 13608
0c24b341
NC
13609fi
13610if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13611
13612
13613if test -n "$WINDMC_FOR_TARGET"; then
13614 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13615elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13616 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13617fi
13618
13619if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13620 for ncn_progname in windmc; do
13621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13622set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13624$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13625if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13626 $as_echo_n "(cached) " >&6
0c24b341
NC
13627else
13628 if test -n "$WINDMC_FOR_TARGET"; then
13629 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13630else
13631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13632for as_dir in $PATH
13633do
13634 IFS=$as_save_IFS
13635 test -z "$as_dir" && as_dir=.
81ecdfbb 13636 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13638 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13640 break 2
13641 fi
13642done
81ecdfbb
RW
13643 done
13644IFS=$as_save_IFS
0c24b341
NC
13645
13646fi
13647fi
13648WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13649if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13651$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13652else
81ecdfbb
RW
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654$as_echo "no" >&6; }
0c24b341
NC
13655fi
13656
81ecdfbb 13657
0c24b341
NC
13658 done
13659fi
13660
13661if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13662 for ncn_progname in windmc; do
81ecdfbb
RW
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13664$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13665 if test -x $with_build_time_tools/${ncn_progname}; then
13666 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13668$as_echo "yes" >&6; }
0c24b341
NC
13669 break
13670 else
81ecdfbb
RW
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13672$as_echo "no" >&6; }
0c24b341
NC
13673 fi
13674 done
13675fi
13676
13677if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13678 for ncn_progname in windmc; do
13679 if test -n "$ncn_target_tool_prefix"; then
13680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13681set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13683$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13684if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13685 $as_echo_n "(cached) " >&6
0c24b341
NC
13686else
13687 if test -n "$WINDMC_FOR_TARGET"; then
13688 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13689else
13690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13691for as_dir in $PATH
13692do
13693 IFS=$as_save_IFS
13694 test -z "$as_dir" && as_dir=.
81ecdfbb 13695 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13697 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13699 break 2
13700 fi
13701done
81ecdfbb
RW
13702 done
13703IFS=$as_save_IFS
0c24b341
NC
13704
13705fi
13706fi
13707WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13708if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13710$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13711else
81ecdfbb
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13713$as_echo "no" >&6; }
0c24b341
NC
13714fi
13715
81ecdfbb 13716
0c24b341
NC
13717 fi
13718 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13720set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13722$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13723if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 13724 $as_echo_n "(cached) " >&6
0c24b341
NC
13725else
13726 if test -n "$WINDMC_FOR_TARGET"; then
13727 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13728else
13729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730for as_dir in $PATH
13731do
13732 IFS=$as_save_IFS
13733 test -z "$as_dir" && as_dir=.
81ecdfbb 13734 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 13736 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13738 break 2
13739 fi
13740done
81ecdfbb
RW
13741 done
13742IFS=$as_save_IFS
0c24b341
NC
13743
13744fi
13745fi
13746WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13747if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13749$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13750else
81ecdfbb
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752$as_echo "no" >&6; }
0c24b341
NC
13753fi
13754
81ecdfbb 13755
0c24b341
NC
13756 fi
13757 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13758 done
13759fi
13760
13761if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13762 set dummy windmc
13763 if test $build = $target ; then
13764 WINDMC_FOR_TARGET="$2"
13765 else
13766 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13767 fi
13768else
13769 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13770fi
13771
13772else
13773 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13774fi
13775
13776
be01d343
PB
13777RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13778
81ecdfbb
RW
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13780$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13781if test "x${build}" != "x${host}" ; then
2429c060
PB
13782 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13783 # We already found the complete path
b8025f34 13784 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13786$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13787 else
13788 # Canadian cross, just use what we found
81ecdfbb
RW
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13790$as_echo "pre-installed" >&6; }
2429c060 13791 fi
be01d343
PB
13792else
13793 ok=yes
13794 case " ${configdirs} " in
13795 *" binutils "*) ;;
13796 *) ok=no ;;
13797 esac
c6b750e1 13798
be01d343
PB
13799 if test $ok = yes; then
13800 # An in-tree tool is available and we can use it
13801 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13803$as_echo "just compiled" >&6; }
2429c060
PB
13804 elif 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; }
be01d343
PB
13809 elif test "x$target" = "x$host"; then
13810 # We can use an host tool
13811 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13813$as_echo "host tool" >&6; }
be01d343
PB
13814 else
13815 # We need a cross tool
81ecdfbb
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817$as_echo "pre-installed" >&6; }
be01d343
PB
13818 fi
13819fi
4b900473 13820
81ecdfbb
RW
13821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13822$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13823if test "x${build}" != "x${host}" ; then
2429c060
PB
13824 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13825 # We already found the complete path
b8025f34 13826 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13828$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13829 else
13830 # Canadian cross, just use what we found
81ecdfbb
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13832$as_echo "pre-installed" >&6; }
2429c060 13833 fi
be01d343
PB
13834else
13835 ok=yes
13836 case " ${configdirs} " in
13837 *" gas "*) ;;
13838 *) ok=no ;;
13839 esac
c6b750e1 13840
be01d343
PB
13841 if test $ok = yes; then
13842 # An in-tree tool is available and we can use it
13843 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13845$as_echo "just compiled" >&6; }
2429c060
PB
13846 elif 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; }
be01d343
PB
13851 elif test "x$target" = "x$host"; then
13852 # We can use an host tool
13853 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13855$as_echo "host tool" >&6; }
be01d343
PB
13856 else
13857 # We need a cross tool
81ecdfbb
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13859$as_echo "pre-installed" >&6; }
be01d343
PB
13860 fi
13861fi
4b900473 13862
81ecdfbb
RW
13863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13864$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13865if test "x${build}" != "x${host}" ; then
2429c060
PB
13866 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13867 # We already found the complete path
b8025f34 13868 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13870$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13871 else
13872 # Canadian cross, just use what we found
81ecdfbb
RW
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13874$as_echo "pre-installed" >&6; }
2429c060 13875 fi
be01d343
PB
13876else
13877 ok=yes
13878 case " ${configdirs} " in
13879 *" gcc "*) ;;
13880 *) ok=no ;;
13881 esac
c6b750e1 13882
be01d343
PB
13883 if test $ok = yes; then
13884 # An in-tree tool is available and we can use it
13885 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13887$as_echo "just compiled" >&6; }
2429c060
PB
13888 elif 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; }
be01d343
PB
13893 elif test "x$target" = "x$host"; then
13894 # We can use an host tool
13895 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13897$as_echo "host tool" >&6; }
be01d343
PB
13898 else
13899 # We need a cross tool
81ecdfbb
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901$as_echo "pre-installed" >&6; }
be01d343
PB
13902 fi
13903fi
4b900473 13904
81ecdfbb
RW
13905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13906$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13907if test "x${build}" != "x${host}" ; then
2429c060
PB
13908 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13909 # We already found the complete path
b8025f34 13910 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13912$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13913 else
13914 # Canadian cross, just use what we found
81ecdfbb
RW
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916$as_echo "pre-installed" >&6; }
2429c060 13917 fi
be01d343
PB
13918else
13919 ok=yes
13920 case " ${configdirs} " in
13921 *" gcc "*) ;;
13922 *) ok=no ;;
13923 esac
13924 case ,${enable_languages}, in
13925 *,c++,*) ;;
13926 *) ok=no ;;
13927 esac
13928 if test $ok = yes; then
13929 # An in-tree tool is available and we can use it
95e43135 13930 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
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13932$as_echo "just compiled" >&6; }
2429c060
PB
13933 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13934 # We already found the complete path
b8025f34 13935 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13937$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13938 elif test "x$target" = "x$host"; then
13939 # We can use an host tool
13940 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13942$as_echo "host tool" >&6; }
be01d343
PB
13943 else
13944 # We need a cross tool
81ecdfbb
RW
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946$as_echo "pre-installed" >&6; }
be01d343
PB
13947 fi
13948fi
4b900473 13949
81ecdfbb
RW
13950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13951$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13952if test "x${build}" != "x${host}" ; then
2429c060
PB
13953 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13954 # We already found the complete path
b8025f34 13955 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13957$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13958 else
13959 # Canadian cross, just use what we found
81ecdfbb
RW
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961$as_echo "pre-installed" >&6; }
2429c060 13962 fi
be01d343
PB
13963else
13964 ok=yes
13965 case " ${configdirs} " in
13966 *" gcc "*) ;;
13967 *) ok=no ;;
13968 esac
13969 case ,${enable_languages}, in
13970 *,c++,*) ;;
13971 *) ok=no ;;
13972 esac
13973 if test $ok = yes; then
13974 # An in-tree tool is available and we can use it
95e43135 13975 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
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13977$as_echo "just compiled" >&6; }
2429c060
PB
13978 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13979 # We already found the complete path
b8025f34 13980 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13982$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13983 elif test "x$target" = "x$host"; then
13984 # We can use an host tool
13985 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13987$as_echo "host tool" >&6; }
be01d343
PB
13988 else
13989 # We need a cross tool
81ecdfbb
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991$as_echo "pre-installed" >&6; }
be01d343
PB
13992 fi
13993fi
4b900473 13994
81ecdfbb
RW
13995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13996$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13997if test "x${build}" != "x${host}" ; then
2429c060
PB
13998 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13999 # We already found the complete path
b8025f34 14000 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14002$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14003 else
14004 # Canadian cross, just use what we found
81ecdfbb
RW
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006$as_echo "pre-installed" >&6; }
2429c060 14007 fi
be01d343
PB
14008else
14009 ok=yes
14010 case " ${configdirs} " in
14011 *" binutils "*) ;;
14012 *) ok=no ;;
14013 esac
c6b750e1 14014
be01d343
PB
14015 if test $ok = yes; then
14016 # An in-tree tool is available and we can use it
14017 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14019$as_echo "just compiled" >&6; }
2429c060
PB
14020 elif 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; }
be01d343
PB
14025 elif test "x$target" = "x$host"; then
14026 # We can use an host tool
14027 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14029$as_echo "host tool" >&6; }
be01d343
PB
14030 else
14031 # We need a cross tool
81ecdfbb
RW
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14033$as_echo "pre-installed" >&6; }
be01d343
PB
14034 fi
14035fi
4b900473 14036
81ecdfbb
RW
14037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14038$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 14039if test "x${build}" != "x${host}" ; then
2429c060
PB
14040 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14041 # We already found the complete path
b8025f34 14042 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14044$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14045 else
14046 # Canadian cross, just use what we found
81ecdfbb
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048$as_echo "pre-installed" >&6; }
2429c060 14049 fi
be01d343
PB
14050else
14051 ok=yes
14052 case " ${configdirs} " in
14053 *" gcc "*) ;;
14054 *) ok=no ;;
14055 esac
c6b750e1 14056
be01d343
PB
14057 if test $ok = yes; then
14058 # An in-tree tool is available and we can use it
14059 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14061$as_echo "just compiled" >&6; }
2429c060
PB
14062 elif 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; }
be01d343
PB
14067 elif test "x$target" = "x$host"; then
14068 # We can use an host tool
14069 GCC_FOR_TARGET='$()'
81ecdfbb
RW
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14071$as_echo "host tool" >&6; }
be01d343
PB
14072 else
14073 # We need a cross tool
81ecdfbb
RW
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14075$as_echo "pre-installed" >&6; }
be01d343
PB
14076 fi
14077fi
4b900473 14078
81ecdfbb
RW
14079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14080$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14081if test "x${build}" != "x${host}" ; then
2429c060
PB
14082 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14083 # We already found the complete path
b8025f34 14084 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14086$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14087 else
14088 # Canadian cross, just use what we found
81ecdfbb
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090$as_echo "pre-installed" >&6; }
2429c060 14091 fi
be01d343
PB
14092else
14093 ok=yes
14094 case " ${configdirs} " in
14095 *" gcc "*) ;;
14096 *) ok=no ;;
14097 esac
14098 case ,${enable_languages}, in
14099 *,fortran,*) ;;
14100 *) ok=no ;;
14101 esac
14102 if test $ok = yes; then
14103 # An in-tree tool is available and we can use it
14104 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14106$as_echo "just compiled" >&6; }
2429c060
PB
14107 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14108 # We already found the complete path
b8025f34 14109 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14111$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14112 elif test "x$target" = "x$host"; then
14113 # We can use an host tool
14114 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14116$as_echo "host tool" >&6; }
be01d343
PB
14117 else
14118 # We need a cross tool
81ecdfbb
RW
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14120$as_echo "pre-installed" >&6; }
be01d343
PB
14121 fi
14122fi
4b900473 14123
e552509b
ILT
14124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14125$as_echo_n "checking where to find the target gccgo... " >&6; }
14126if test "x${build}" != "x${host}" ; then
14127 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14128 # We already found the complete path
14129 ac_dir=`dirname $GOC_FOR_TARGET`
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14131$as_echo "pre-installed in $ac_dir" >&6; }
14132 else
14133 # Canadian cross, just use what we found
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14135$as_echo "pre-installed" >&6; }
14136 fi
14137else
14138 ok=yes
14139 case " ${configdirs} " in
14140 *" gcc "*) ;;
14141 *) ok=no ;;
14142 esac
14143 case ,${enable_languages}, in
14144 *,go,*) ;;
14145 *) ok=no ;;
14146 esac
14147 if test $ok = yes; then
14148 # An in-tree tool is available and we can use it
14149 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14151$as_echo "just compiled" >&6; }
14152 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14153 # We already found the complete path
14154 ac_dir=`dirname $GOC_FOR_TARGET`
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14156$as_echo "pre-installed in $ac_dir" >&6; }
14157 elif test "x$target" = "x$host"; then
14158 # We can use an host tool
14159 GOC_FOR_TARGET='$(GOC)'
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14161$as_echo "host tool" >&6; }
14162 else
14163 # We need a cross tool
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14165$as_echo "pre-installed" >&6; }
14166 fi
14167fi
14168
81ecdfbb
RW
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14170$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14171if test "x${build}" != "x${host}" ; then
2429c060
PB
14172 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14173 # We already found the complete path
b8025f34 14174 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14176$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14177 else
14178 # Canadian cross, just use what we found
81ecdfbb
RW
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14180$as_echo "pre-installed" >&6; }
2429c060 14181 fi
be01d343
PB
14182else
14183 ok=yes
14184 case " ${configdirs} " in
14185 *" ld "*) ;;
14186 *) ok=no ;;
14187 esac
c6b750e1 14188
be01d343
PB
14189 if test $ok = yes; then
14190 # An in-tree tool is available and we can use it
14191 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14193$as_echo "just compiled" >&6; }
2429c060
PB
14194 elif 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; }
be01d343
PB
14199 elif test "x$target" = "x$host"; then
14200 # We can use an host tool
14201 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14203$as_echo "host tool" >&6; }
be01d343
PB
14204 else
14205 # We need a cross tool
81ecdfbb
RW
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14207$as_echo "pre-installed" >&6; }
be01d343
PB
14208 fi
14209fi
4b900473 14210
81ecdfbb
RW
14211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14212$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14213if test "x${build}" != "x${host}" ; then
2429c060
PB
14214 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14215 # We already found the complete path
b8025f34 14216 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14218$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14219 else
14220 # Canadian cross, just use what we found
81ecdfbb
RW
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14222$as_echo "pre-installed" >&6; }
2429c060 14223 fi
be01d343 14224else
2429c060
PB
14225 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14226 # We already found the complete path
b8025f34 14227 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14229$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14230 elif test "x$target" = "x$host"; then
be01d343
PB
14231 # We can use an host tool
14232 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14234$as_echo "host tool" >&6; }
be01d343
PB
14235 else
14236 # We need a cross tool
81ecdfbb
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14238$as_echo "pre-installed" >&6; }
be01d343
PB
14239 fi
14240fi
4b900473 14241
81ecdfbb
RW
14242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14243$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14244if test "x${build}" != "x${host}" ; then
2429c060
PB
14245 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14246 # We already found the complete path
b8025f34 14247 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14249$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14250 else
14251 # Canadian cross, just use what we found
81ecdfbb
RW
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14253$as_echo "pre-installed" >&6; }
2429c060 14254 fi
be01d343
PB
14255else
14256 ok=yes
14257 case " ${configdirs} " in
14258 *" binutils "*) ;;
14259 *) ok=no ;;
14260 esac
c6b750e1 14261
be01d343
PB
14262 if test $ok = yes; then
14263 # An in-tree tool is available and we can use it
14264 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14266$as_echo "just compiled" >&6; }
2429c060
PB
14267 elif 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; }
be01d343
PB
14272 elif test "x$target" = "x$host"; then
14273 # We can use an host tool
14274 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14276$as_echo "host tool" >&6; }
be01d343
PB
14277 else
14278 # We need a cross tool
81ecdfbb
RW
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14280$as_echo "pre-installed" >&6; }
be01d343
PB
14281 fi
14282fi
4b900473 14283
6b91c541
AP
14284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14285$as_echo_n "checking where to find the target objcopy... " >&6; }
14286if test "x${build}" != "x${host}" ; then
14287 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14288 # We already found the complete path
14289 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14291$as_echo "pre-installed in $ac_dir" >&6; }
14292 else
14293 # Canadian cross, just use what we found
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14295$as_echo "pre-installed" >&6; }
14296 fi
14297else
14298 ok=yes
14299 case " ${configdirs} " in
14300 *" binutils "*) ;;
14301 *) ok=no ;;
14302 esac
14303
14304 if test $ok = yes; then
14305 # An in-tree tool is available and we can use it
14306 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14308$as_echo "just compiled" >&6; }
14309 elif 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 elif test "x$target" = "x$host"; then
14315 # We can use an host tool
1b6c0831 14316 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14318$as_echo "host tool" >&6; }
14319 else
14320 # We need a cross tool
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14322$as_echo "pre-installed" >&6; }
14323 fi
14324fi
14325
81ecdfbb
RW
14326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14327$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14328if test "x${build}" != "x${host}" ; then
2429c060
PB
14329 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14330 # We already found the complete path
b8025f34 14331 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14333$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14334 else
14335 # Canadian cross, just use what we found
81ecdfbb
RW
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14337$as_echo "pre-installed" >&6; }
2429c060 14338 fi
be01d343
PB
14339else
14340 ok=yes
14341 case " ${configdirs} " in
14342 *" binutils "*) ;;
14343 *) ok=no ;;
14344 esac
c6b750e1 14345
be01d343
PB
14346 if test $ok = yes; then
14347 # An in-tree tool is available and we can use it
14348 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14350$as_echo "just compiled" >&6; }
2429c060
PB
14351 elif 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; }
be01d343
PB
14356 elif test "x$target" = "x$host"; then
14357 # We can use an host tool
14358 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14360$as_echo "host tool" >&6; }
be01d343
PB
14361 else
14362 # We need a cross tool
81ecdfbb
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14364$as_echo "pre-installed" >&6; }
be01d343
PB
14365 fi
14366fi
4b900473 14367
81ecdfbb
RW
14368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14369$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14370if test "x${build}" != "x${host}" ; then
2429c060
PB
14371 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14372 # We already found the complete path
b8025f34 14373 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14375$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14376 else
14377 # Canadian cross, just use what we found
81ecdfbb
RW
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14379$as_echo "pre-installed" >&6; }
2429c060 14380 fi
be01d343
PB
14381else
14382 ok=yes
14383 case " ${configdirs} " in
14384 *" binutils "*) ;;
14385 *) ok=no ;;
14386 esac
c6b750e1 14387
be01d343
PB
14388 if test $ok = yes; then
14389 # An in-tree tool is available and we can use it
14390 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14392$as_echo "just compiled" >&6; }
2429c060
PB
14393 elif 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; }
be01d343
PB
14398 elif test "x$target" = "x$host"; then
14399 # We can use an host tool
14400 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14402$as_echo "host tool" >&6; }
be01d343
PB
14403 else
14404 # We need a cross tool
81ecdfbb
RW
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14406$as_echo "pre-installed" >&6; }
be01d343
PB
14407 fi
14408fi
4b900473 14409
b121d7d4
DD
14410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14411$as_echo_n "checking where to find the target readelf... " >&6; }
14412if test "x${build}" != "x${host}" ; then
14413 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14414 # We already found the complete path
14415 ac_dir=`dirname $READELF_FOR_TARGET`
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14417$as_echo "pre-installed in $ac_dir" >&6; }
14418 else
14419 # Canadian cross, just use what we found
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14421$as_echo "pre-installed" >&6; }
14422 fi
14423else
14424 ok=yes
14425 case " ${configdirs} " in
14426 *" binutils "*) ;;
14427 *) ok=no ;;
14428 esac
14429
14430 if test $ok = yes; then
14431 # An in-tree tool is available and we can use it
14432 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14434$as_echo "just compiled" >&6; }
14435 elif 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 elif test "x$target" = "x$host"; then
14441 # We can use an host tool
14442 READELF_FOR_TARGET='$(READELF)'
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14444$as_echo "host tool" >&6; }
14445 else
14446 # We need a cross tool
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14448$as_echo "pre-installed" >&6; }
14449 fi
14450fi
14451
81ecdfbb
RW
14452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14453$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14454if test "x${build}" != "x${host}" ; then
2429c060
PB
14455 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14456 # We already found the complete path
b8025f34 14457 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14459$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14460 else
14461 # Canadian cross, just use what we found
81ecdfbb
RW
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14463$as_echo "pre-installed" >&6; }
2429c060 14464 fi
be01d343
PB
14465else
14466 ok=yes
14467 case " ${configdirs} " in
14468 *" binutils "*) ;;
14469 *) ok=no ;;
14470 esac
c6b750e1 14471
be01d343
PB
14472 if test $ok = yes; then
14473 # An in-tree tool is available and we can use it
9b980aa1 14474 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14476$as_echo "just compiled" >&6; }
2429c060
PB
14477 elif 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; }
be01d343
PB
14482 elif test "x$target" = "x$host"; then
14483 # We can use an host tool
14484 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14486$as_echo "host tool" >&6; }
be01d343
PB
14487 else
14488 # We need a cross tool
81ecdfbb
RW
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14490$as_echo "pre-installed" >&6; }
be01d343
PB
14491 fi
14492fi
4b900473 14493
81ecdfbb
RW
14494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14495$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14496if test "x${build}" != "x${host}" ; then
2429c060
PB
14497 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14498 # We already found the complete path
b8025f34 14499 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14501$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14502 else
14503 # Canadian cross, just use what we found
81ecdfbb
RW
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14505$as_echo "pre-installed" >&6; }
2429c060 14506 fi
be01d343
PB
14507else
14508 ok=yes
14509 case " ${configdirs} " in
14510 *" binutils "*) ;;
14511 *) ok=no ;;
14512 esac
c6b750e1 14513
be01d343
PB
14514 if test $ok = yes; then
14515 # An in-tree tool is available and we can use it
14516 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14518$as_echo "just compiled" >&6; }
2429c060
PB
14519 elif 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; }
be01d343
PB
14524 elif test "x$target" = "x$host"; then
14525 # We can use an host tool
14526 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14528$as_echo "host tool" >&6; }
be01d343
PB
14529 else
14530 # We need a cross tool
81ecdfbb
RW
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14532$as_echo "pre-installed" >&6; }
be01d343 14533 fi
a0da8069 14534fi
54752a6b 14535
81ecdfbb
RW
14536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14537$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14538if test "x${build}" != "x${host}" ; then
14539 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14540 # We already found the complete path
14541 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14543$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14544 else
14545 # Canadian cross, just use what we found
81ecdfbb
RW
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14547$as_echo "pre-installed" >&6; }
0c24b341
NC
14548 fi
14549else
14550 ok=yes
14551 case " ${configdirs} " in
14552 *" binutils "*) ;;
14553 *) ok=no ;;
14554 esac
14555
14556 if test $ok = yes; then
14557 # An in-tree tool is available and we can use it
14558 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14560$as_echo "just compiled" >&6; }
0c24b341
NC
14561 elif 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 elif test "x$target" = "x$host"; then
14567 # We can use an host tool
14568 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14570$as_echo "host tool" >&6; }
0c24b341
NC
14571 else
14572 # We need a cross tool
81ecdfbb
RW
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14574$as_echo "pre-installed" >&6; }
0c24b341
NC
14575 fi
14576fi
14577
54752a6b
NN
14578
14579
be01d343 14580
4b900473 14581
a0da8069
NN
14582# Certain tools may need extra flags.
14583AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14584RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14585NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14586
be01d343
PB
14587# When building target libraries, except in a Canadian cross, we use
14588# the same toolchain as the compiler we just built.
14589COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14590COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14591COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14592if test $host = $build; then
14593 case " $configdirs " in
14594 *" gcc "*)
14595 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14596 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14597 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14598 ;;
14599 esac
14600fi
14601
14602
14603
14604
14605
81ecdfbb
RW
14606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14607$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14608# Check whether --enable-maintainer-mode was given.
14609if test "${enable_maintainer_mode+set}" = set; then :
14610 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14611else
14612 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14613fi
14614
14615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14616$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14617
14618
14619if test "$USE_MAINTAINER_MODE" = yes; then
14620 MAINTAINER_MODE_TRUE=
14621 MAINTAINER_MODE_FALSE='#'
14622else
14623 MAINTAINER_MODE_TRUE='#'
14624 MAINTAINER_MODE_FALSE=
c6b750e1 14625fi
3d5e36ae
AO
14626MAINT=$MAINTAINER_MODE_TRUE
14627
1d39f329
NN
14628# ---------------------
14629# GCC bootstrap support
14630# ---------------------
14631
14632# Stage specific cflags for build.
14633stage1_cflags="-g"
14634case $build in
14635 vax-*-*)
14636 case ${GCC} in
14637 yes) stage1_cflags="-g -Wa,-J" ;;
14638 *) stage1_cflags="-g -J" ;;
14639 esac ;;
1d39f329
NN
14640esac
14641
1d89b610 14642
1d39f329 14643
8a0d8a5c 14644# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14645# Check whether --enable-stage1-checking was given.
14646if test "${enable_stage1_checking+set}" = set; then :
14647 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14648else
5566c1fa 14649 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
14650 # For --disable-checking or implicit --enable-checking=release, avoid
14651 # setting --enable-checking=gc in the default stage1 checking for LTO
14652 # bootstraps. See PR62077.
ce6c656d
L
14653 case $BUILD_CONFIG in
14654 *lto*)
05a13254
NC
14655 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14656 *)
14657 stage1_checking=--enable-checking=yes,types;;
ce6c656d 14658 esac
05a13254
NC
14659 if test "x$enable_checking" = x && \
14660 test -d ${srcdir}/gcc && \
14661 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14662 stage1_checking=--enable-checking=yes,types,extra
14663 fi
8a0d8a5c 14664else
5566c1fa 14665 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14666fi
81ecdfbb 14667fi
8a0d8a5c
PB
14668
14669
c6b750e1 14670
81ecdfbb
RW
14671# Enable -Werror in bootstrap stage2 and later.
14672# Check whether --enable-werror was given.
14673if test "${enable_werror+set}" = set; then :
14674 enableval=$enable_werror;
1a6f2dc7
NN
14675case ${enable_werror} in
14676 yes) stage2_werror_flag="--enable-werror-always" ;;
14677 *) stage2_werror_flag="" ;;
1d39f329
NN
14678esac
14679
82033c9b 14680else
82033c9b 14681
bf41f30d
NC
14682if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14683 case $BUILD_CONFIG in
14684 bootstrap-debug)
14685 stage2_werror_flag="--enable-werror-always" ;;
14686 "")
14687 stage2_werror_flag="--enable-werror-always" ;;
14688 esac
14689fi
82033c9b 14690
bf41f30d 14691fi
82033c9b 14692
1b6c0831 14693
1b6c0831 14694
1b6c0831 14695
e8a5fa9c
RW
14696# Specify what files to not compare during bootstrap.
14697
14698compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14699case "$target" in
14700 hppa*64*-*-hpux*) ;;
bf41f30d 14701 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
1488e230 14702 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14703esac
14704
14705
81ecdfbb
RW
14706ac_config_files="$ac_config_files Makefile"
14707
c6b750e1 14708cat >confcache <<\_ACEOF
a0da8069
NN
14709# This file is a shell script that caches the results of configure
14710# tests run on this system so they can be shared between configure
c6b750e1
DJ
14711# scripts and configure runs, see configure's option --config-cache.
14712# It is not useful on other systems. If it contains results you don't
14713# want to keep, you may remove or edit it.
a0da8069 14714#
c6b750e1
DJ
14715# config.status only pays attention to the cache file if you give it
14716# the --recheck option to rerun configure.
a0da8069 14717#
c6b750e1
DJ
14718# `ac_cv_env_foo' variables (set or unset) will be overridden when
14719# loading this file, other *unset* `ac_cv_foo' will be assigned the
14720# following values.
14721
14722_ACEOF
14723
a0da8069
NN
14724# The following way of writing the cache mishandles newlines in values,
14725# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14726# So, we kill variables containing newlines.
a0da8069
NN
14727# Ultrix sh set writes to stderr and can't be redirected directly,
14728# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14729(
14730 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14731 eval ac_val=\$$ac_var
14732 case $ac_val in #(
14733 *${as_nl}*)
14734 case $ac_var in #(
14735 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14736$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14737 esac
14738 case $ac_var in #(
14739 _ | IFS | as_nl) ;; #(
14740 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14741 *) { eval $ac_var=; unset $ac_var;} ;;
14742 esac ;;
14743 esac
14744 done
14745
c6b750e1 14746 (set) 2>&1 |
81ecdfbb
RW
14747 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14748 *${as_nl}ac_space=\ *)
14749 # `set' does not quote correctly, so add quotes: double-quote
14750 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14751 sed -n \
14752 "s/'/'\\\\''/g;
14753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14754 ;; #(
c6b750e1
DJ
14755 *)
14756 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14758 ;;
81ecdfbb
RW
14759 esac |
14760 sort
14761) |
c6b750e1 14762 sed '
81ecdfbb 14763 /^ac_cv_env_/b end
c6b750e1 14764 t clear
81ecdfbb 14765 :clear
c6b750e1
DJ
14766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14767 t end
81ecdfbb
RW
14768 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14769 :end' >>confcache
14770if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14771 if test -w "$cache_file"; then
d0ac1c44 14772 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14774$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14775 if test ! -f "$cache_file" || test -h "$cache_file"; then
14776 cat confcache >"$cache_file"
14777 else
14778 case $cache_file in #(
14779 */* | ?:*)
14780 mv -f confcache "$cache_file"$$ &&
14781 mv -f "$cache_file"$$ "$cache_file" ;; #(
14782 *)
14783 mv -f confcache "$cache_file" ;;
14784 esac
14785 fi
14786 fi
a0da8069 14787 else
81ecdfbb
RW
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14789$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14790 fi
852e5f18 14791fi
a0da8069 14792rm -f confcache
852e5f18 14793
a0da8069
NN
14794test "x$prefix" = xNONE && prefix=$ac_default_prefix
14795# Let make expand exec_prefix.
14796test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14797
a0da8069
NN
14798# Transform confdefs.h into DEFS.
14799# Protect against shell expansion while executing Makefile rules.
14800# Protect against Makefile macro expansion.
c6b750e1
DJ
14801#
14802# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14803# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14804# look for a macro that doesn't take arguments.
81ecdfbb
RW
14805ac_script='
14806:mline
14807/\\$/{
14808 N
14809 s,\\\n,,
14810 b mline
14811}
c6b750e1 14812t clear
81ecdfbb
RW
14813:clear
14814s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14815t quote
81ecdfbb 14816s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14817t quote
81ecdfbb
RW
14818b any
14819:quote
14820s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14821s/\[/\\&/g
14822s/\]/\\&/g
14823s/\$/$$/g
14824H
14825:any
14826${
14827 g
14828 s/^\n//
14829 s/\n/ /g
14830 p
14831}
14832'
14833DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14834
14835
14836ac_libobjs=
14837ac_ltlibobjs=
d0ac1c44 14838U=
c6b750e1
DJ
14839for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14840 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14841 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14842 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14843 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14844 # will be set to the directory where LIBOBJS objects are built.
14845 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14846 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14847done
14848LIBOBJS=$ac_libobjs
852e5f18 14849
c6b750e1 14850LTLIBOBJS=$ac_ltlibobjs
376a0e54 14851
cac3d6c4 14852
c6b750e1 14853
d0ac1c44 14854: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14855ac_write_fail=0
c6b750e1
DJ
14856ac_clean_files_save=$ac_clean_files
14857ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14858{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14859$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14860as_write_fail=0
14861cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14862#! $SHELL
14863# Generated by $as_me.
a0da8069 14864# Run this file to recreate the current configuration.
a0da8069 14865# Compiler output produced by configure, useful for debugging
c6b750e1 14866# configure, is in config.log if it exists.
376a0e54 14867
c6b750e1
DJ
14868debug=false
14869ac_cs_recheck=false
14870ac_cs_silent=false
c6b750e1 14871
81ecdfbb
RW
14872SHELL=\${CONFIG_SHELL-$SHELL}
14873export SHELL
14874_ASEOF
14875cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14876## -------------------- ##
14877## M4sh Initialization. ##
14878## -------------------- ##
14879
14880# Be more Bourne compatible
14881DUALCASE=1; export DUALCASE # for MKS sh
14882if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14883 emulate sh
14884 NULLCMD=:
81ecdfbb 14885 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14886 # is contrary to our usage. Disable this feature.
14887 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14888 setopt NO_GLOB_SUBST
14889else
14890 case `(set -o) 2>/dev/null` in #(
14891 *posix*) :
14892 set -o posix ;; #(
14893 *) :
14894 ;;
14895esac
c6b750e1 14896fi
c6b750e1 14897
81ecdfbb
RW
14898
14899as_nl='
14900'
14901export as_nl
14902# Printing a long string crashes Solaris 7 /usr/bin/printf.
14903as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14904as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14905as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14906# Prefer a ksh shell builtin over an external printf program on Solaris,
14907# but without wasting forks for bash or zsh.
14908if test -z "$BASH_VERSION$ZSH_VERSION" \
14909 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14910 as_echo='print -r --'
14911 as_echo_n='print -rn --'
14912elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14913 as_echo='printf %s\n'
14914 as_echo_n='printf %s'
14915else
14916 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14917 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14918 as_echo_n='/usr/ucb/echo -n'
14919 else
14920 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14921 as_echo_n_body='eval
14922 arg=$1;
14923 case $arg in #(
14924 *"$as_nl"*)
14925 expr "X$arg" : "X\\(.*\\)$as_nl";
14926 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14927 esac;
14928 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14929 '
14930 export as_echo_n_body
14931 as_echo_n='sh -c $as_echo_n_body as_echo'
14932 fi
14933 export as_echo_body
14934 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14935fi
14936
81ecdfbb
RW
14937# The user is always right.
14938if test "${PATH_SEPARATOR+set}" != set; then
14939 PATH_SEPARATOR=:
14940 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14941 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14942 PATH_SEPARATOR=';'
14943 }
14944fi
14945
14946
14947# IFS
14948# We need space, tab and new line, in precisely that order. Quoting is
14949# there to prevent editors from complaining about space-tab.
14950# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14951# splitting by setting IFS to empty value.)
14952IFS=" "" $as_nl"
14953
14954# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 14955as_myself=
81ecdfbb
RW
14956case $0 in #((
14957 *[\\/]* ) as_myself=$0 ;;
14958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14959for as_dir in $PATH
14960do
14961 IFS=$as_save_IFS
14962 test -z "$as_dir" && as_dir=.
14963 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14964 done
14965IFS=$as_save_IFS
14966
14967 ;;
14968esac
14969# We did not find ourselves, most probably we were run as `sh COMMAND'
14970# in which case we are not to be found in the path.
14971if test "x$as_myself" = x; then
14972 as_myself=$0
14973fi
14974if test ! -f "$as_myself"; then
14975 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14976 exit 1
14977fi
c6b750e1 14978
81ecdfbb
RW
14979# Unset variables that we do not need and which cause bugs (e.g. in
14980# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14981# suppresses any "Segmentation fault" message there. '((' could
14982# trigger a bug in pdksh 5.2.14.
14983for as_var in BASH_ENV ENV MAIL MAILPATH
14984do eval test x\${$as_var+set} = xset \
14985 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14986done
c6b750e1
DJ
14987PS1='$ '
14988PS2='> '
14989PS4='+ '
14990
14991# NLS nuisances.
81ecdfbb
RW
14992LC_ALL=C
14993export LC_ALL
14994LANGUAGE=C
14995export LANGUAGE
14996
14997# CDPATH.
14998(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14999
15000
d0ac1c44
SM
15001# as_fn_error STATUS ERROR [LINENO LOG_FD]
15002# ----------------------------------------
81ecdfbb
RW
15003# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15004# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15005# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15006as_fn_error ()
15007{
d0ac1c44
SM
15008 as_status=$1; test $as_status -eq 0 && as_status=1
15009 if test "$4"; then
15010 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15011 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 15012 fi
d0ac1c44 15013 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15014 as_fn_exit $as_status
15015} # as_fn_error
15016
15017
15018# as_fn_set_status STATUS
15019# -----------------------
15020# Set $? to STATUS, without forking.
15021as_fn_set_status ()
15022{
15023 return $1
15024} # as_fn_set_status
15025
15026# as_fn_exit STATUS
15027# -----------------
15028# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15029as_fn_exit ()
15030{
15031 set +e
15032 as_fn_set_status $1
15033 exit $1
15034} # as_fn_exit
15035
15036# as_fn_unset VAR
15037# ---------------
15038# Portably unset VAR.
15039as_fn_unset ()
15040{
15041 { eval $1=; unset $1;}
15042}
15043as_unset=as_fn_unset
15044# as_fn_append VAR VALUE
15045# ----------------------
15046# Append the text in VALUE to the end of the definition contained in VAR. Take
15047# advantage of any shell optimizations that allow amortized linear growth over
15048# repeated appends, instead of the typical quadratic growth present in naive
15049# implementations.
15050if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15051 eval 'as_fn_append ()
15052 {
15053 eval $1+=\$2
15054 }'
15055else
15056 as_fn_append ()
15057 {
15058 eval $1=\$$1\$2
15059 }
15060fi # as_fn_append
15061
15062# as_fn_arith ARG...
15063# ------------------
15064# Perform arithmetic evaluation on the ARGs, and store the result in the
15065# global $as_val. Take advantage of shells that can avoid forks. The arguments
15066# must be portable across $(()) and expr.
15067if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15068 eval 'as_fn_arith ()
15069 {
15070 as_val=$(( $* ))
15071 }'
15072else
15073 as_fn_arith ()
15074 {
15075 as_val=`expr "$@" || test $? -eq 1`
15076 }
15077fi # as_fn_arith
15078
c6b750e1 15079
81ecdfbb
RW
15080if expr a : '\(a\)' >/dev/null 2>&1 &&
15081 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
15082 as_expr=expr
15083else
15084 as_expr=false
15085fi
15086
81ecdfbb 15087if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15088 as_basename=basename
15089else
15090 as_basename=false
15091fi
15092
81ecdfbb
RW
15093if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15094 as_dirname=dirname
15095else
15096 as_dirname=false
15097fi
c6b750e1 15098
81ecdfbb 15099as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15100$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15101 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15102 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15103$as_echo X/"$0" |
15104 sed '/^.*\/\([^/][^/]*\)\/*$/{
15105 s//\1/
15106 q
15107 }
15108 /^X\/\(\/\/\)$/{
15109 s//\1/
15110 q
15111 }
15112 /^X\/\(\/\).*/{
15113 s//\1/
15114 q
15115 }
15116 s/.*/./; q'`
c6b750e1 15117
c6b750e1
DJ
15118# Avoid depending upon Character Ranges.
15119as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15120as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15121as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15122as_cr_digits='0123456789'
15123as_cr_alnum=$as_cr_Letters$as_cr_digits
15124
81ecdfbb
RW
15125ECHO_C= ECHO_N= ECHO_T=
15126case `echo -n x` in #(((((
15127-n*)
15128 case `echo 'xy\c'` in
15129 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15130 xy) ECHO_C='\c';;
15131 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15132 ECHO_T=' ';;
15133 esac;;
15134*)
15135 ECHO_N='-n';;
c6b750e1
DJ
15136esac
15137
81ecdfbb
RW
15138rm -f conf$$ conf$$.exe conf$$.file
15139if test -d conf$$.dir; then
15140 rm -f conf$$.dir/conf$$.file
c6b750e1 15141else
81ecdfbb
RW
15142 rm -f conf$$.dir
15143 mkdir conf$$.dir 2>/dev/null
c6b750e1 15144fi
81ecdfbb
RW
15145if (echo >conf$$.file) 2>/dev/null; then
15146 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15147 as_ln_s='ln -s'
81ecdfbb
RW
15148 # ... but there are two gotchas:
15149 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15150 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15151 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15152 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15153 as_ln_s='cp -pR'
81ecdfbb
RW
15154 elif ln conf$$.file conf$$ 2>/dev/null; then
15155 as_ln_s=ln
15156 else
d0ac1c44 15157 as_ln_s='cp -pR'
c6b750e1 15158 fi
c6b750e1 15159else
d0ac1c44 15160 as_ln_s='cp -pR'
c6b750e1 15161fi
81ecdfbb
RW
15162rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15163rmdir conf$$.dir 2>/dev/null
15164
15165
15166# as_fn_mkdir_p
15167# -------------
15168# Create "$as_dir" as a directory, including parents if necessary.
15169as_fn_mkdir_p ()
15170{
15171
15172 case $as_dir in #(
15173 -*) as_dir=./$as_dir;;
15174 esac
15175 test -d "$as_dir" || eval $as_mkdir_p || {
15176 as_dirs=
15177 while :; do
15178 case $as_dir in #(
15179 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15180 *) as_qdir=$as_dir;;
15181 esac
15182 as_dirs="'$as_qdir' $as_dirs"
15183 as_dir=`$as_dirname -- "$as_dir" ||
15184$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15185 X"$as_dir" : 'X\(//\)[^/]' \| \
15186 X"$as_dir" : 'X\(//\)$' \| \
15187 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15188$as_echo X"$as_dir" |
15189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15190 s//\1/
15191 q
15192 }
15193 /^X\(\/\/\)[^/].*/{
15194 s//\1/
15195 q
15196 }
15197 /^X\(\/\/\)$/{
15198 s//\1/
15199 q
15200 }
15201 /^X\(\/\).*/{
15202 s//\1/
15203 q
15204 }
15205 s/.*/./; q'`
15206 test -d "$as_dir" && break
15207 done
15208 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15209 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 15210
c6b750e1 15211
81ecdfbb 15212} # as_fn_mkdir_p
c6b750e1 15213if mkdir -p . 2>/dev/null; then
81ecdfbb 15214 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15215else
15216 test -d ./-p && rmdir ./-p
15217 as_mkdir_p=false
15218fi
15219
d0ac1c44
SM
15220
15221# as_fn_executable_p FILE
15222# -----------------------
15223# Test if FILE is an executable regular file.
15224as_fn_executable_p ()
15225{
15226 test -f "$1" && test -x "$1"
15227} # as_fn_executable_p
15228as_test_x='test -x'
15229as_executable_p=as_fn_executable_p
c6b750e1
DJ
15230
15231# Sed expression to map a string onto a valid CPP name.
15232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15233
15234# Sed expression to map a string onto a valid variable name.
15235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15236
15237
c6b750e1 15238exec 6>&1
81ecdfbb
RW
15239## ----------------------------------- ##
15240## Main body of $CONFIG_STATUS script. ##
15241## ----------------------------------- ##
15242_ASEOF
15243test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15244
15245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15246# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15247# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15248# values after options handling.
15249ac_log="
c6b750e1 15250This file was extended by $as_me, which was
d0ac1c44 15251generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
15252
15253 CONFIG_FILES = $CONFIG_FILES
15254 CONFIG_HEADERS = $CONFIG_HEADERS
15255 CONFIG_LINKS = $CONFIG_LINKS
15256 CONFIG_COMMANDS = $CONFIG_COMMANDS
15257 $ $0 $@
15258
81ecdfbb
RW
15259on `(hostname || uname -n) 2>/dev/null | sed 1q`
15260"
15261
c6b750e1
DJ
15262_ACEOF
15263
81ecdfbb
RW
15264case $ac_config_files in *"
15265"*) set x $ac_config_files; shift; ac_config_files=$*;;
15266esac
c6b750e1 15267
c6b750e1 15268
c6b750e1 15269
81ecdfbb
RW
15270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15271# Files that config.status was made for.
15272config_files="$ac_config_files"
c6b750e1 15273
81ecdfbb 15274_ACEOF
c6b750e1 15275
81ecdfbb 15276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15277ac_cs_usage="\
81ecdfbb
RW
15278\`$as_me' instantiates files and other configuration actions
15279from templates according to the current configuration. Unless the files
15280and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15281
81ecdfbb 15282Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15283
15284 -h, --help print this help, then exit
81ecdfbb 15285 -V, --version print version number and configuration settings, then exit
d0ac1c44 15286 --config print configuration, then exit
81ecdfbb
RW
15287 -q, --quiet, --silent
15288 do not print progress messages
c6b750e1
DJ
15289 -d, --debug don't remove temporary files
15290 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15291 --file=FILE[:TEMPLATE]
15292 instantiate the configuration file FILE
c6b750e1
DJ
15293
15294Configuration files:
15295$config_files
15296
81ecdfbb 15297Report bugs to the package provider."
c6b750e1 15298
81ecdfbb
RW
15299_ACEOF
15300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15301ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
15302ac_cs_version="\\
15303config.status
d0ac1c44
SM
15304configured by $0, generated by GNU Autoconf 2.69,
15305 with options \\"\$ac_cs_config\\"
c6b750e1 15306
d0ac1c44 15307Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
15308This config.status script is free software; the Free Software Foundation
15309gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15310
15311ac_pwd='$ac_pwd'
15312srcdir='$srcdir'
15313INSTALL='$INSTALL'
8e957354 15314AWK='$AWK'
81ecdfbb 15315test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15316_ACEOF
15317
81ecdfbb
RW
15318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15319# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15320ac_need_defaults=:
15321while test $# != 0
a0da8069 15322do
c6b750e1 15323 case $1 in
d0ac1c44 15324 --*=?*)
81ecdfbb
RW
15325 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15326 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15327 ac_shift=:
15328 ;;
d0ac1c44
SM
15329 --*=)
15330 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15331 ac_optarg=
15332 ac_shift=:
15333 ;;
81ecdfbb 15334 *)
c6b750e1
DJ
15335 ac_option=$1
15336 ac_optarg=$2
15337 ac_shift=shift
15338 ;;
c6b750e1
DJ
15339 esac
15340
15341 case $ac_option in
15342 # Handling of the options.
a0da8069 15343 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15344 ac_cs_recheck=: ;;
81ecdfbb
RW
15345 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15346 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15347 --config | --confi | --conf | --con | --co | --c )
15348 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15349 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15350 debug=: ;;
15351 --file | --fil | --fi | --f )
15352 $ac_shift
81ecdfbb
RW
15353 case $ac_optarg in
15354 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15355 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15356 esac
15357 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15358 ac_need_defaults=false;;
81ecdfbb
RW
15359 --he | --h | --help | --hel | -h )
15360 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15362 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15363 ac_cs_silent=: ;;
15364
15365 # This is an error.
d0ac1c44 15366 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15367Try \`$0 --help' for more information." ;;
c6b750e1 15368
81ecdfbb
RW
15369 *) as_fn_append ac_config_targets " $1"
15370 ac_need_defaults=false ;;
c6b750e1 15371
376a0e54 15372 esac
c6b750e1 15373 shift
376a0e54
CM
15374done
15375
c6b750e1 15376ac_configure_extra_args=
376a0e54 15377
c6b750e1
DJ
15378if $ac_cs_silent; then
15379 exec 6>/dev/null
15380 ac_configure_extra_args="$ac_configure_extra_args --silent"
15381fi
376a0e54 15382
c6b750e1 15383_ACEOF
81ecdfbb 15384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15385if \$ac_cs_recheck; then
d0ac1c44 15386 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15387 shift
15388 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15389 CONFIG_SHELL='$SHELL'
15390 export CONFIG_SHELL
15391 exec "\$@"
c6b750e1
DJ
15392fi
15393
15394_ACEOF
81ecdfbb
RW
15395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15396exec 5>>config.log
15397{
15398 echo
15399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15400## Running $as_me. ##
15401_ASBOX
15402 $as_echo "$ac_log"
15403} >&5
c6b750e1 15404
81ecdfbb
RW
15405_ACEOF
15406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15407#
15408# INIT-COMMANDS
15409#
15410extrasub_build="$extrasub_build"
15411 extrasub_host="$extrasub_host"
15412 extrasub_target="$extrasub_target"
15413
81ecdfbb 15414_ACEOF
c6b750e1 15415
81ecdfbb 15416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15417
81ecdfbb 15418# Handling of arguments.
c6b750e1
DJ
15419for ac_config_target in $ac_config_targets
15420do
81ecdfbb
RW
15421 case $ac_config_target in
15422 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15423
d0ac1c44 15424 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15425 esac
15426done
15427
81ecdfbb 15428
c6b750e1
DJ
15429# If the user did not use the arguments to specify the items to instantiate,
15430# then the envvar interface is used. Set only those that are not.
15431# We use the long form for the default assignment because of an extremely
15432# bizarre bug on SunOS 4.1.3.
15433if $ac_need_defaults; then
15434 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15435fi
15436
15437# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15438# simply because there is no reason against having it here, and in addition,
c6b750e1 15439# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15440# Hook for its removal unless debugging.
15441# Note that there is a small window in which the directory will not be cleaned:
15442# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15443$debug ||
15444{
d0ac1c44 15445 tmp= ac_tmp=
81ecdfbb 15446 trap 'exit_status=$?
d0ac1c44
SM
15447 : "${ac_tmp:=$tmp}"
15448 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15449' 0
15450 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15451}
c6b750e1
DJ
15452# Create a (secure) tmp directory for tmp files.
15453
15454{
81ecdfbb 15455 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15456 test -d "$tmp"
c6b750e1
DJ
15457} ||
15458{
81ecdfbb
RW
15459 tmp=./conf$$-$RANDOM
15460 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15461} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15462ac_tmp=$tmp
81ecdfbb
RW
15463
15464# Set up the scripts for CONFIG_FILES section.
15465# No need to generate them if there are no CONFIG_FILES.
15466# This happens for instance with `./config.status config.h'.
15467if test -n "$CONFIG_FILES"; then
15468
15469if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15470 ac_cs_awk_getline=:
15471 ac_cs_awk_pipe_init=
15472 ac_cs_awk_read_file='
15473 while ((getline aline < (F[key])) > 0)
15474 print(aline)
15475 close(F[key])'
15476 ac_cs_awk_pipe_fini=
15477else
15478 ac_cs_awk_getline=false
15479 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15480 ac_cs_awk_read_file='
15481 print "|#_!!_#|"
15482 print "cat " F[key] " &&"
15483 '$ac_cs_awk_pipe_init
15484 # The final `:' finishes the AND list.
15485 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15486fi
15487ac_cr=`echo X | tr X '\015'`
15488# On cygwin, bash can eat \r inside `` if the user requested igncr.
15489# But we know of no other shell where ac_cr would be empty at this
15490# point, so we can use a bashism as a fallback.
15491if test "x$ac_cr" = x; then
15492 eval ac_cr=\$\'\\r\'
15493fi
15494ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15495if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15496 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15497else
15498 ac_cs_awk_cr=$ac_cr
15499fi
15500
d0ac1c44 15501echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15502_ACEOF
15503
15504# Create commands to substitute file output variables.
c6b750e1 15505{
81ecdfbb 15506 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 15507 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
15508 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15509 echo "_ACAWK" &&
15510 echo "_ACEOF"
15511} >conf$$files.sh &&
15512. ./conf$$files.sh ||
d0ac1c44 15513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15514rm -f conf$$files.sh
c6b750e1 15515
81ecdfbb
RW
15516{
15517 echo "cat >conf$$subs.awk <<_ACEOF" &&
15518 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15519 echo "_ACEOF"
15520} >conf$$subs.sh ||
d0ac1c44
SM
15521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15522ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15523ac_delim='%!_!# '
15524for ac_last_try in false false false false false :; do
15525 . ./conf$$subs.sh ||
d0ac1c44 15526 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15527
15528 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15529 if test $ac_delim_n = $ac_delim_num; then
15530 break
15531 elif $ac_last_try; then
d0ac1c44 15532 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15533 else
15534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15535 fi
15536done
15537rm -f conf$$subs.sh
15538
15539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15540cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15541_ACEOF
81ecdfbb
RW
15542sed -n '
15543h
15544s/^/S["/; s/!.*/"]=/
15545p
15546g
15547s/^[^!]*!//
15548:repl
15549t repl
15550s/'"$ac_delim"'$//
15551t delim
15552:nl
15553h
d0ac1c44 15554s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15555t more1
15556s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15557p
15558n
15559b repl
15560:more1
15561s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15562p
15563g
15564s/.\{148\}//
15565t nl
15566:delim
15567h
d0ac1c44 15568s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
15569t more2
15570s/["\\]/\\&/g; s/^/"/; s/$/"/
15571p
15572b
15573:more2
15574s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15575p
15576g
15577s/.\{148\}//
15578t delim
15579' <conf$$subs.awk | sed '
15580/^[^""]/{
15581 N
15582 s/\n//
15583}
15584' >>$CONFIG_STATUS || ac_write_fail=1
15585rm -f conf$$subs.awk
15586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15587_ACAWK
d0ac1c44 15588cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
15589 for (key in S) S_is_set[key] = 1
15590 FS = "\a"
15591 \$ac_cs_awk_pipe_init
15592}
15593{
15594 line = $ 0
15595 nfields = split(line, field, "@")
15596 substed = 0
15597 len = length(field[1])
15598 for (i = 2; i < nfields; i++) {
15599 key = field[i]
15600 keylen = length(key)
15601 if (S_is_set[key]) {
15602 value = S[key]
15603 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15604 len += length(value) + length(field[++i])
15605 substed = 1
15606 } else
15607 len += 1 + keylen
15608 }
15609 if (nfields == 3 && !substed) {
15610 key = field[2]
15611 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15612 \$ac_cs_awk_read_file
15613 next
15614 }
15615 }
15616 print line
15617}
15618\$ac_cs_awk_pipe_fini
15619_ACAWK
15620_ACEOF
15621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15622if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15623 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15624else
15625 cat
d0ac1c44
SM
15626fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15627 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
15628_ACEOF
15629
d0ac1c44
SM
15630# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15631# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
15632# trailing colons and then remove the whole line if VPATH becomes empty
15633# (actually we leave an empty line to preserve line numbers).
15634if test "x$srcdir" = x.; then
d0ac1c44
SM
15635 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15636h
15637s///
15638s/^/:/
15639s/[ ]*$/:/
15640s/:\$(srcdir):/:/g
15641s/:\${srcdir}:/:/g
15642s/:@srcdir@:/:/g
15643s/^:*//
81ecdfbb 15644s/:*$//
d0ac1c44
SM
15645x
15646s/\(=[ ]*\).*/\1/
15647G
15648s/\n//
81ecdfbb
RW
15649s/^[^=]*=[ ]*$//
15650}'
15651fi
c6b750e1 15652
81ecdfbb
RW
15653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15654fi # test -n "$CONFIG_FILES"
c6b750e1 15655
c6b750e1 15656
81ecdfbb
RW
15657eval set X " :F $CONFIG_FILES "
15658shift
15659for ac_tag
15660do
15661 case $ac_tag in
15662 :[FHLC]) ac_mode=$ac_tag; continue;;
15663 esac
15664 case $ac_mode$ac_tag in
15665 :[FHL]*:*);;
d0ac1c44 15666 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
15667 :[FH]-) ac_tag=-:-;;
15668 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15669 esac
15670 ac_save_IFS=$IFS
15671 IFS=:
15672 set x $ac_tag
15673 IFS=$ac_save_IFS
15674 shift
15675 ac_file=$1
15676 shift
252b5132 15677
81ecdfbb
RW
15678 case $ac_mode in
15679 :L) ac_source=$1;;
15680 :[FH])
15681 ac_file_inputs=
15682 for ac_f
15683 do
15684 case $ac_f in
d0ac1c44 15685 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
15686 *) # Look for the file first in the build tree, then in the source tree
15687 # (if the path is not absolute). The absolute path cannot be DOS-style,
15688 # because $ac_f cannot contain `:'.
15689 test -f "$ac_f" ||
15690 case $ac_f in
15691 [\\/$]*) false;;
15692 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15693 esac ||
d0ac1c44 15694 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
15695 esac
15696 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15697 as_fn_append ac_file_inputs " '$ac_f'"
15698 done
c6b750e1 15699
81ecdfbb
RW
15700 # Let's still pretend it is `configure' which instantiates (i.e., don't
15701 # use $as_me), people would be surprised to read:
15702 # /* config.h. Generated by config.status. */
15703 configure_input='Generated from '`
15704 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15705 `' by configure.'
15706 if test x"$ac_file" != x-; then
15707 configure_input="$ac_file. $configure_input"
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15709$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15710 fi
81ecdfbb
RW
15711 # Neutralize special characters interpreted by sed in replacement strings.
15712 case $configure_input in #(
15713 *\&* | *\|* | *\\* )
15714 ac_sed_conf_input=`$as_echo "$configure_input" |
15715 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15716 *) ac_sed_conf_input=$configure_input;;
15717 esac
cac3d6c4 15718
81ecdfbb 15719 case $ac_tag in
d0ac1c44
SM
15720 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
15722 esac
15723 ;;
a0da8069 15724 esac
252b5132 15725
81ecdfbb 15726 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15727$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15728 X"$ac_file" : 'X\(//\)[^/]' \| \
15729 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15730 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15731$as_echo X"$ac_file" |
15732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15733 s//\1/
15734 q
15735 }
15736 /^X\(\/\/\)[^/].*/{
15737 s//\1/
15738 q
15739 }
15740 /^X\(\/\/\)$/{
15741 s//\1/
15742 q
15743 }
15744 /^X\(\/\).*/{
15745 s//\1/
15746 q
15747 }
15748 s/.*/./; q'`
15749 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15750 ac_builddir=.
252b5132 15751
81ecdfbb
RW
15752case "$ac_dir" in
15753.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15754*)
15755 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15756 # A ".." for each directory in $ac_dir_suffix.
15757 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15758 case $ac_top_builddir_sub in
15759 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15760 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15761 esac ;;
15762esac
15763ac_abs_top_builddir=$ac_pwd
15764ac_abs_builddir=$ac_pwd$ac_dir_suffix
15765# for backward compatibility:
15766ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15767
15768case $srcdir in
81ecdfbb 15769 .) # We are building in place.
c6b750e1 15770 ac_srcdir=.
81ecdfbb
RW
15771 ac_top_srcdir=$ac_top_builddir_sub
15772 ac_abs_top_srcdir=$ac_pwd ;;
15773 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15774 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15775 ac_top_srcdir=$srcdir
15776 ac_abs_top_srcdir=$srcdir ;;
15777 *) # Relative name.
15778 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15779 ac_top_srcdir=$ac_top_build_prefix$srcdir
15780 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15781esac
81ecdfbb 15782ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15783
252b5132 15784
81ecdfbb
RW
15785 case $ac_mode in
15786 :F)
15787 #
15788 # CONFIG_FILE
15789 #
c6b750e1
DJ
15790
15791 case $INSTALL in
15792 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15793 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15794 esac
81ecdfbb 15795_ACEOF
252b5132 15796
81ecdfbb
RW
15797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15798# If the template does not know about datarootdir, expand it.
15799# FIXME: This hack should be removed a few years after 2.60.
15800ac_datarootdir_hack=; ac_datarootdir_seen=
15801ac_sed_dataroot='
15802/datarootdir/ {
15803 p
15804 q
15805}
15806/@datadir@/p
15807/@docdir@/p
15808/@infodir@/p
15809/@localedir@/p
15810/@mandir@/p'
15811case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15812*datarootdir*) ac_datarootdir_seen=yes;;
15813*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15815$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15816_ACEOF
81ecdfbb
RW
15817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15818 ac_datarootdir_hack='
15819 s&@datadir@&$datadir&g
15820 s&@docdir@&$docdir&g
15821 s&@infodir@&$infodir&g
15822 s&@localedir@&$localedir&g
15823 s&@mandir@&$mandir&g
15824 s&\\\${datarootdir}&$datarootdir&g' ;;
15825esac
15826_ACEOF
15827
15828# Neutralize VPATH when `$srcdir' = `.'.
15829# Shell code in configure.ac might set extrasub.
15830# FIXME: do we really want to maintain this feature?
15831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15832ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15833$extrasub
15834_ACEOF
81ecdfbb 15835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15836:t
15837/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15838s|@configure_input@|$ac_sed_conf_input|;t t
15839s&@top_builddir@&$ac_top_builddir_sub&;t t
15840s&@top_build_prefix@&$ac_top_build_prefix&;t t
15841s&@srcdir@&$ac_srcdir&;t t
15842s&@abs_srcdir@&$ac_abs_srcdir&;t t
15843s&@top_srcdir@&$ac_top_srcdir&;t t
15844s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15845s&@builddir@&$ac_builddir&;t t
15846s&@abs_builddir@&$ac_abs_builddir&;t t
15847s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15848s&@INSTALL@&$ac_INSTALL&;t t
15849$ac_datarootdir_hack
15850"
15851eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15852if $ac_cs_awk_getline; then
d0ac1c44 15853 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 15854else
d0ac1c44
SM
15855 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15856fi \
15857 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
15858
15859test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
15860 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15861 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15862 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15864which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 15865$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15866which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 15867
d0ac1c44 15868 rm -f "$ac_tmp/stdin"
81ecdfbb 15869 case $ac_file in
d0ac1c44
SM
15870 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15871 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 15872 esac \
d0ac1c44 15873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 15874 ;;
c148b4cb 15875
c148b4cb 15876
c148b4cb 15877
81ecdfbb
RW
15878 esac
15879
06a51eac
RW
15880
15881 case $ac_file$ac_mode in
15882 "Makefile":F) sed "$extrasub_build" Makefile |
15883 sed "$extrasub_host" |
15884 sed "$extrasub_target" > mf$$
15885 mv -f mf$$ Makefile ;;
15886
15887 esac
81ecdfbb
RW
15888done # for ac_tag
15889
15890
15891as_fn_exit 0
c6b750e1 15892_ACEOF
c6b750e1
DJ
15893ac_clean_files=$ac_clean_files_save
15894
81ecdfbb 15895test $ac_write_fail = 0 ||
d0ac1c44 15896 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15897
c6b750e1
DJ
15898
15899# configure is writing to config.log, and then calls config.status.
15900# config.status does its own redirection, appending to config.log.
15901# Unfortunately, on DOS this fails, as config.log is still kept open
15902# by configure, so config.status won't be able to write to it; its
15903# output is simply discarded. So we exec the FD to /dev/null,
15904# effectively closing config.log, so it can be properly (re)opened and
15905# appended to by config.status. When coming back to configure, we
15906# need to make the FD available again.
15907if test "$no_create" != yes; then
15908 ac_cs_success=:
15909 ac_config_status_args=
15910 test "$silent" = yes &&
15911 ac_config_status_args="$ac_config_status_args --quiet"
15912 exec 5>/dev/null
15913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15914 exec 5>>config.log
15915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15916 # would make configure fail if this is the last instruction.
d0ac1c44 15917 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
15918fi
15919if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15921$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15922fi
c148b4cb 15923